1 /******************************************************************************
3 * Copyright(c) 2009-2013 Realtek Corporation.
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.
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
14 * The full GNU General Public License is included in this distribution in the
15 * file called LICENSE.
17 * Contact Information:
18 * wlanfae <wlanfae@realtek.com>
19 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20 * Hsinchu 300, Taiwan.
22 * Larry Finger <Larry.Finger@lwfinger.net>
24 *****************************************************************************/
26 #include "../pwrseqcmd.h"
29 /* drivers should parse below arrays and do the corresponding actions */
31 struct wlan_pwr_cfg rtl8188ee_power_on_flow
[RTL8188EE_TRANS_CARDEMU_TO_ACT_STEPS
32 + RTL8188EE_TRANS_END_STEPS
] = {
33 RTL8188EE_TRANS_CARDEMU_TO_ACT
37 /*3Radio off GPIO Array */
38 struct wlan_pwr_cfg rtl8188ee_radio_off_flow
[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
39 + RTL8188EE_TRANS_END_STEPS
] = {
40 RTL8188EE_TRANS_ACT_TO_CARDEMU
44 /*3Card Disable Array*/
45 struct wlan_pwr_cfg rtl8188ee_card_disable_flow
46 [RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
+
47 RTL8188EE_TRANS_CARDEMU_TO_PDN_STEPS
+
48 RTL8188EE_TRANS_END_STEPS
] = {
49 RTL8188EE_TRANS_ACT_TO_CARDEMU
50 RTL8188EE_TRANS_CARDEMU_TO_CARDDIS
54 /*3 Card Enable Array*/
55 struct wlan_pwr_cfg rtl8188ee_card_enable_flow
56 [RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
+
57 RTL8188EE_TRANS_CARDEMU_TO_PDN_STEPS
+
58 RTL8188EE_TRANS_END_STEPS
] = {
59 RTL8188EE_TRANS_CARDDIS_TO_CARDEMU
60 RTL8188EE_TRANS_CARDEMU_TO_ACT
65 struct wlan_pwr_cfg rtl8188ee_suspend_flow
[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
66 + RTL8188EE_TRANS_CARDEMU_TO_SUS_STEPS
67 + RTL8188EE_TRANS_END_STEPS
] = {
68 RTL8188EE_TRANS_ACT_TO_CARDEMU
69 RTL8188EE_TRANS_CARDEMU_TO_SUS
74 struct wlan_pwr_cfg rtl8188ee_resume_flow
[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
75 + RTL8188EE_TRANS_CARDEMU_TO_SUS_STEPS
76 + RTL8188EE_TRANS_END_STEPS
] = {
77 RTL8188EE_TRANS_SUS_TO_CARDEMU
78 RTL8188EE_TRANS_CARDEMU_TO_ACT
83 struct wlan_pwr_cfg rtl8188ee_hwpdn_flow
[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
84 + RTL8188EE_TRANS_CARDEMU_TO_PDN_STEPS
85 + RTL8188EE_TRANS_END_STEPS
] = {
86 RTL8188EE_TRANS_ACT_TO_CARDEMU
87 RTL8188EE_TRANS_CARDEMU_TO_PDN
92 struct wlan_pwr_cfg rtl8188ee_enter_lps_flow
[RTL8188EE_TRANS_ACT_TO_LPS_STEPS
93 + RTL8188EE_TRANS_END_STEPS
] = {
95 RTL8188EE_TRANS_ACT_TO_LPS
100 struct wlan_pwr_cfg rtl8188ee_leave_lps_flow
[RTL8188EE_TRANS_LPS_TO_ACT_STEPS
101 + RTL8188EE_TRANS_END_STEPS
] = {
103 RTL8188EE_TRANS_LPS_TO_ACT