Staging: unisys: Remove RETINT macro
[linux/fpc-iii.git] / drivers / net / wireless / rtlwifi / rtl8723ae / pwrseq.c
blobdf6ca9a57f7f1ca016f87a0e1ffdac64d6879993
1 /******************************************************************************
3 * Copyright(c) 2009-2012 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
12 * more details.
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 * The full GNU General Public License is included in this distribution in the
19 * file called LICENSE.
21 * Contact Information:
22 * wlanfae <wlanfae@realtek.com>
23 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
24 * Hsinchu 300, Taiwan.
26 * Larry Finger <Larry.Finger@lwfinger.net>
28 *****************************************************************************/
30 #include "pwrseqcmd.h"
31 #include "pwrseq.h"
33 /* drivers should parse arrays below and do the corresponding actions */
35 /*3 Power on Array*/
36 struct wlan_pwr_cfg rtl8723A_power_on_flow[RTL8723A_TRANS_CARDEMU_TO_ACT_STPS
37 + RTL8723A_TRANS_END_STPS] = {
38 RTL8723A_TRANS_CARDEMU_TO_ACT,
39 RTL8723A_TRANS_END
42 /*3Radio off GPIO Array */
43 struct wlan_pwr_cfg rtl8723A_radio_off_flow[RTL8723A_TRANS_ACT_TO_CARDEMU_STPS
44 + RTL8723A_TRANS_END_STPS] = {
45 RTL8723A_TRANS_ACT_TO_CARDEMU,
46 RTL8723A_TRANS_END
49 /*3Card Disable Array*/
50 struct wlan_pwr_cfg
51 rtl8723A_card_disable_flow[RTL8723A_TRANS_ACT_TO_CARDEMU_STPS
52 + RTL8723A_TRANS_CARDEMU_TO_PDN_STPS
53 + RTL8723A_TRANS_END_STPS] = {
54 RTL8723A_TRANS_ACT_TO_CARDEMU,
55 RTL8723A_TRANS_CARDEMU_TO_CARDDIS,
56 RTL8723A_TRANS_END
59 /*3 Card Enable Array*/
60 struct wlan_pwr_cfg rtl8723A_card_enable_flow[RTL8723A_TRANS_ACT_TO_CARDEMU_STPS
61 + RTL8723A_TRANS_CARDEMU_TO_PDN_STPS
62 + RTL8723A_TRANS_END_STPS] = {
63 RTL8723A_TRANS_CARDDIS_TO_CARDEMU,
64 RTL8723A_TRANS_CARDEMU_TO_ACT,
65 RTL8723A_TRANS_END
68 /*3Suspend Array*/
69 struct wlan_pwr_cfg rtl8723A_suspend_flow[RTL8723A_TRANS_ACT_TO_CARDEMU_STPS
70 + RTL8723A_TRANS_CARDEMU_TO_SUS_STPS
71 + RTL8723A_TRANS_END_STPS] = {
72 RTL8723A_TRANS_ACT_TO_CARDEMU,
73 RTL8723A_TRANS_CARDEMU_TO_SUS,
74 RTL8723A_TRANS_END
77 /*3 Resume Array*/
78 struct wlan_pwr_cfg rtl8723A_resume_flow[RTL8723A_TRANS_ACT_TO_CARDEMU_STPS
79 + RTL8723A_TRANS_CARDEMU_TO_SUS_STPS
80 + RTL8723A_TRANS_END_STPS] = {
81 RTL8723A_TRANS_SUS_TO_CARDEMU,
82 RTL8723A_TRANS_CARDEMU_TO_ACT,
83 RTL8723A_TRANS_END
86 /*3HWPDN Array*/
87 struct wlan_pwr_cfg rtl8723A_hwpdn_flow[RTL8723A_TRANS_ACT_TO_CARDEMU_STPS
88 + RTL8723A_TRANS_CARDEMU_TO_PDN_STPS
89 + RTL8723A_TRANS_END_STPS] = {
90 RTL8723A_TRANS_ACT_TO_CARDEMU,
91 RTL8723A_TRANS_CARDEMU_TO_PDN,
92 RTL8723A_TRANS_END
95 /*3 Enter LPS */
96 struct wlan_pwr_cfg rtl8723A_enter_lps_flow[RTL8723A_TRANS_ACT_TO_LPS_STPS
97 + RTL8723A_TRANS_END_STPS] = {
98 /*FW behavior*/
99 RTL8723A_TRANS_ACT_TO_LPS,
100 RTL8723A_TRANS_END
103 /*3 Leave LPS */
104 struct wlan_pwr_cfg rtl8723A_leave_lps_flow[RTL8723A_TRANS_LPS_TO_ACT_STPS
105 + RTL8723A_TRANS_END_STPS] = {
106 /*FW behavior*/
107 RTL8723A_TRANS_LPS_TO_ACT,
108 RTL8723A_TRANS_END