1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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 ******************************************************************************/
17 #include <rtl8188e_hal.h>
20 drivers should parse below arrays and do the corresponding actions
22 /* 3 Power on Array */
23 struct wl_pwr_cfg rtl8188E_power_on_flow[RTL8188E_TRANS_CARDEMU_TO_ACT_STEPS +
24 RTL8188E_TRANS_END_STEPS] = {
25 RTL8188E_TRANS_CARDEMU_TO_ACT
29 /* 3Radio off Array */
30 struct wl_pwr_cfg rtl8188E_radio_off_flow[RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS +
31 RTL8188E_TRANS_END_STEPS] = {
32 RTL8188E_TRANS_ACT_TO_CARDEMU
36 /* 3Card Disable Array */
37 struct wl_pwr_cfg rtl8188E_card_disable_flow
38 [RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS +
39 RTL8188E_TRANS_CARDEMU_TO_PDN_STEPS +
40 RTL8188E_TRANS_END_STEPS] = {
41 RTL8188E_TRANS_ACT_TO_CARDEMU
42 RTL8188E_TRANS_CARDEMU_TO_CARDDIS
46 /* 3 Card Enable Array */
47 struct wl_pwr_cfg rtl8188E_card_enable_flow
48 [RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS +
49 RTL8188E_TRANS_CARDEMU_TO_PDN_STEPS +
50 RTL8188E_TRANS_END_STEPS] = {
51 RTL8188E_TRANS_CARDDIS_TO_CARDEMU
52 RTL8188E_TRANS_CARDEMU_TO_ACT
57 struct wl_pwr_cfg rtl8188E_suspend_flow[RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS +
58 RTL8188E_TRANS_CARDEMU_TO_SUS_STEPS +
59 RTL8188E_TRANS_END_STEPS] = {
60 RTL8188E_TRANS_ACT_TO_CARDEMU
61 RTL8188E_TRANS_CARDEMU_TO_SUS
66 struct wl_pwr_cfg rtl8188E_resume_flow[RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS +
67 RTL8188E_TRANS_CARDEMU_TO_SUS_STEPS +
68 RTL8188E_TRANS_END_STEPS] = {
69 RTL8188E_TRANS_SUS_TO_CARDEMU
70 RTL8188E_TRANS_CARDEMU_TO_ACT
75 struct wl_pwr_cfg rtl8188E_hwpdn_flow[RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS +
76 RTL8188E_TRANS_CARDEMU_TO_PDN_STEPS +
77 RTL8188E_TRANS_END_STEPS] = {
78 RTL8188E_TRANS_ACT_TO_CARDEMU
79 RTL8188E_TRANS_CARDEMU_TO_PDN
84 struct wl_pwr_cfg rtl8188E_enter_lps_flow[RTL8188E_TRANS_ACT_TO_LPS_STEPS +
85 RTL8188E_TRANS_END_STEPS] = {
87 RTL8188E_TRANS_ACT_TO_LPS
92 struct wl_pwr_cfg rtl8188E_leave_lps_flow[RTL8188E_TRANS_LPS_TO_ACT_STEPS +
93 RTL8188E_TRANS_END_STEPS] = {
95 RTL8188E_TRANS_LPS_TO_ACT