OSDN Git Service

7c1080b5596fc72712811fb54a6a09218de4f700
[android-x86/kernel.git] / drivers / staging / rtl8723bs / hal / Hal8723BPwrSeq.c
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  ******************************************************************************/
15
16 /*++
17         This file includes all kinds of Power Action event for RTL8723B and corresponding hardware configurtions which are released from HW SD.
18
19 Major Change History:
20         When       Who               What
21         ---------- ---------------   -------------------------------
22         2011-08-08 Roger            Create.
23
24 --*/
25
26 #include "Hal8723BPwrSeq.h"
27
28 /*
29     drivers should parse below arrays and do the corresponding actions
30 */
31 /* 3 Power on  Array */
32 WLAN_PWR_CFG rtl8723B_power_on_flow[RTL8723B_TRANS_CARDEMU_TO_ACT_STEPS+RTL8723B_TRANS_END_STEPS]=
33 {
34         RTL8723B_TRANS_CARDEMU_TO_ACT
35         RTL8723B_TRANS_END
36 };
37
38 /* 3Radio off GPIO Array */
39 WLAN_PWR_CFG rtl8723B_radio_off_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS+RTL8723B_TRANS_END_STEPS]=
40 {
41         RTL8723B_TRANS_ACT_TO_CARDEMU
42         RTL8723B_TRANS_END
43 };
44
45 /* 3Card Disable Array */
46 WLAN_PWR_CFG rtl8723B_card_disable_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS+RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS+RTL8723B_TRANS_END_STEPS]=
47 {
48         RTL8723B_TRANS_ACT_TO_CARDEMU
49         RTL8723B_TRANS_CARDEMU_TO_CARDDIS
50         RTL8723B_TRANS_END
51 };
52
53 /* 3 Card Enable Array */
54 WLAN_PWR_CFG rtl8723B_card_enable_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS+RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS+RTL8723B_TRANS_END_STEPS]=
55 {
56         RTL8723B_TRANS_CARDDIS_TO_CARDEMU
57         RTL8723B_TRANS_CARDEMU_TO_ACT
58         RTL8723B_TRANS_END
59 };
60
61 /* 3Suspend Array */
62 WLAN_PWR_CFG rtl8723B_suspend_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS+RTL8723B_TRANS_CARDEMU_TO_SUS_STEPS+RTL8723B_TRANS_END_STEPS]=
63 {
64         RTL8723B_TRANS_ACT_TO_CARDEMU
65         RTL8723B_TRANS_CARDEMU_TO_SUS
66         RTL8723B_TRANS_END
67 };
68
69 /* 3 Resume Array */
70 WLAN_PWR_CFG rtl8723B_resume_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS+RTL8723B_TRANS_CARDEMU_TO_SUS_STEPS+RTL8723B_TRANS_END_STEPS]=
71 {
72         RTL8723B_TRANS_SUS_TO_CARDEMU
73         RTL8723B_TRANS_CARDEMU_TO_ACT
74         RTL8723B_TRANS_END
75 };
76
77 /* 3HWPDN Array */
78 WLAN_PWR_CFG rtl8723B_hwpdn_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS+RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS+RTL8723B_TRANS_END_STEPS]=
79 {
80         RTL8723B_TRANS_ACT_TO_CARDEMU
81         RTL8723B_TRANS_CARDEMU_TO_PDN
82         RTL8723B_TRANS_END
83 };
84
85 /* 3 Enter LPS */
86 WLAN_PWR_CFG rtl8723B_enter_lps_flow[RTL8723B_TRANS_ACT_TO_LPS_STEPS+RTL8723B_TRANS_END_STEPS]=
87 {
88         /* FW behavior */
89         RTL8723B_TRANS_ACT_TO_LPS
90         RTL8723B_TRANS_END
91 };
92
93 /* 3 Leave LPS */
94 WLAN_PWR_CFG rtl8723B_leave_lps_flow[RTL8723B_TRANS_LPS_TO_ACT_STEPS+RTL8723B_TRANS_END_STEPS]=
95 {
96         /* FW behavior */
97         RTL8723B_TRANS_LPS_TO_ACT
98         RTL8723B_TRANS_END
99 };
100
101 /* 3 Enter SW LPS */
102 WLAN_PWR_CFG rtl8723B_enter_swlps_flow[RTL8723B_TRANS_ACT_TO_SWLPS_STEPS+RTL8723B_TRANS_END_STEPS]=
103 {
104         /* SW behavior */
105         RTL8723B_TRANS_ACT_TO_SWLPS
106         RTL8723B_TRANS_END
107 };
108
109 /* 3 Leave SW LPS */
110 WLAN_PWR_CFG rtl8723B_leave_swlps_flow[RTL8723B_TRANS_SWLPS_TO_ACT_STEPS+RTL8723B_TRANS_END_STEPS]=
111 {
112         /* SW behavior */
113         RTL8723B_TRANS_SWLPS_TO_ACT
114         RTL8723B_TRANS_END
115 };