1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /****************************************************************************** 3 * 4 * Copyright(c) 2007 - 2017 Realtek Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of version 2 of the GNU General Public License as 8 * published by the Free Software Foundation. 9 * 10 * This program is distributed in the hope that it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 * more details. 14 * 15 *****************************************************************************/ 16 17 #include "Hal8188EPwrSeq.h" 18 #include <rtl8188e_hal.h> 19 20 /* 21 drivers should parse below arrays and do the corresponding actions 22 */ 23 /* 3 Power on Array */ 24 WLAN_PWR_CFG rtl8188E_power_on_flow[RTL8188E_TRANS_CARDEMU_TO_ACT_STEPS + RTL8188E_TRANS_END_STEPS] = { 25 RTL8188E_TRANS_CARDEMU_TO_ACT 26 RTL8188E_TRANS_END 27 }; 28 29 /* 3Radio off Array */ 30 WLAN_PWR_CFG rtl8188E_radio_off_flow[RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS + RTL8188E_TRANS_END_STEPS] = { 31 RTL8188E_TRANS_ACT_TO_CARDEMU 32 RTL8188E_TRANS_END 33 }; 34 35 /* 3Card Disable Array */ 36 WLAN_PWR_CFG rtl8188E_card_disable_flow[RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS + RTL8188E_TRANS_CARDEMU_TO_PDN_STEPS + RTL8188E_TRANS_END_STEPS] = { 37 RTL8188E_TRANS_ACT_TO_CARDEMU 38 RTL8188E_TRANS_CARDEMU_TO_CARDDIS 39 RTL8188E_TRANS_END 40 }; 41 42 /* 3 Card Enable Array */ 43 WLAN_PWR_CFG rtl8188E_card_enable_flow[RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS + RTL8188E_TRANS_CARDEMU_TO_PDN_STEPS + RTL8188E_TRANS_END_STEPS] = { 44 RTL8188E_TRANS_CARDDIS_TO_CARDEMU 45 RTL8188E_TRANS_CARDEMU_TO_ACT 46 RTL8188E_TRANS_END 47 }; 48 49 /* 3Suspend Array */ 50 WLAN_PWR_CFG rtl8188E_suspend_flow[RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS + RTL8188E_TRANS_CARDEMU_TO_SUS_STEPS + RTL8188E_TRANS_END_STEPS] = { 51 RTL8188E_TRANS_ACT_TO_CARDEMU 52 RTL8188E_TRANS_CARDEMU_TO_SUS 53 RTL8188E_TRANS_END 54 }; 55 56 /* 3 Resume Array */ 57 WLAN_PWR_CFG rtl8188E_resume_flow[RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS + RTL8188E_TRANS_CARDEMU_TO_SUS_STEPS + RTL8188E_TRANS_END_STEPS] = { 58 RTL8188E_TRANS_SUS_TO_CARDEMU 59 RTL8188E_TRANS_CARDEMU_TO_ACT 60 RTL8188E_TRANS_END 61 }; 62 63 64 /* 3HWPDN Array */ 65 WLAN_PWR_CFG rtl8188E_hwpdn_flow[RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS + RTL8188E_TRANS_CARDEMU_TO_PDN_STEPS + RTL8188E_TRANS_END_STEPS] = { 66 RTL8188E_TRANS_ACT_TO_CARDEMU 67 RTL8188E_TRANS_CARDEMU_TO_PDN 68 RTL8188E_TRANS_END 69 }; 70 71 /* 3 Enter LPS */ 72 WLAN_PWR_CFG rtl8188E_enter_lps_flow[RTL8188E_TRANS_ACT_TO_LPS_STEPS + RTL8188E_TRANS_END_STEPS] = { 73 /* FW behavior */ 74 RTL8188E_TRANS_ACT_TO_LPS 75 RTL8188E_TRANS_END 76 }; 77 78 /* 3 Leave LPS */ 79 WLAN_PWR_CFG rtl8188E_leave_lps_flow[RTL8188E_TRANS_LPS_TO_ACT_STEPS + RTL8188E_TRANS_END_STEPS] = { 80 /* FW behavior */ 81 RTL8188E_TRANS_LPS_TO_ACT 82 RTL8188E_TRANS_END 83 }; 84