18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci/* Copyright(c) 2009-2014 Realtek Corporation.*/ 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#include "pwrseq.h" 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci/* drivers should parse below arrays and do the corresponding actions */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci/*3 Power on Array*/ 98c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8192E_power_on_flow 108c2ecf20Sopenharmony_ci [RTL8192E_TRANS_CARDEMU_TO_ACT_STEPS + 118c2ecf20Sopenharmony_ci RTL8192E_TRANS_END_STEPS] = { 128c2ecf20Sopenharmony_ci RTL8192E_TRANS_CARDEMU_TO_ACT 138c2ecf20Sopenharmony_ci RTL8192E_TRANS_END 148c2ecf20Sopenharmony_ci}; 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci/*3Radio off GPIO Array */ 178c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8192E_radio_off_flow 188c2ecf20Sopenharmony_ci [RTL8192E_TRANS_ACT_TO_CARDEMU_STEPS 198c2ecf20Sopenharmony_ci + RTL8192E_TRANS_END_STEPS] = { 208c2ecf20Sopenharmony_ci RTL8192E_TRANS_ACT_TO_CARDEMU 218c2ecf20Sopenharmony_ci RTL8192E_TRANS_END 228c2ecf20Sopenharmony_ci}; 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci/*3Card Disable Array*/ 258c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8192E_card_disable_flow 268c2ecf20Sopenharmony_ci [RTL8192E_TRANS_ACT_TO_CARDEMU_STEPS + 278c2ecf20Sopenharmony_ci RTL8192E_TRANS_CARDEMU_TO_PDN_STEPS + 288c2ecf20Sopenharmony_ci RTL8192E_TRANS_END_STEPS] = { 298c2ecf20Sopenharmony_ci RTL8192E_TRANS_ACT_TO_CARDEMU 308c2ecf20Sopenharmony_ci RTL8192E_TRANS_CARDEMU_TO_CARDDIS 318c2ecf20Sopenharmony_ci RTL8192E_TRANS_END 328c2ecf20Sopenharmony_ci}; 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci/*3 Card Enable Array*/ 358c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8192E_card_enable_flow 368c2ecf20Sopenharmony_ci [RTL8192E_TRANS_ACT_TO_CARDEMU_STEPS + 378c2ecf20Sopenharmony_ci RTL8192E_TRANS_CARDEMU_TO_PDN_STEPS + 388c2ecf20Sopenharmony_ci RTL8192E_TRANS_END_STEPS] = { 398c2ecf20Sopenharmony_ci RTL8192E_TRANS_CARDDIS_TO_CARDEMU 408c2ecf20Sopenharmony_ci RTL8192E_TRANS_CARDEMU_TO_ACT 418c2ecf20Sopenharmony_ci RTL8192E_TRANS_END 428c2ecf20Sopenharmony_ci}; 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci/*3Suspend Array*/ 458c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8192E_suspend_flow 468c2ecf20Sopenharmony_ci [RTL8192E_TRANS_ACT_TO_CARDEMU_STEPS + 478c2ecf20Sopenharmony_ci RTL8192E_TRANS_CARDEMU_TO_SUS_STEPS + 488c2ecf20Sopenharmony_ci RTL8192E_TRANS_END_STEPS] = { 498c2ecf20Sopenharmony_ci RTL8192E_TRANS_ACT_TO_CARDEMU 508c2ecf20Sopenharmony_ci RTL8192E_TRANS_CARDEMU_TO_SUS 518c2ecf20Sopenharmony_ci RTL8192E_TRANS_END 528c2ecf20Sopenharmony_ci}; 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci/*3 Resume Array*/ 558c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8192E_resume_flow 568c2ecf20Sopenharmony_ci [RTL8192E_TRANS_ACT_TO_CARDEMU_STEPS + 578c2ecf20Sopenharmony_ci RTL8192E_TRANS_CARDEMU_TO_SUS_STEPS + 588c2ecf20Sopenharmony_ci RTL8192E_TRANS_END_STEPS] = { 598c2ecf20Sopenharmony_ci RTL8192E_TRANS_SUS_TO_CARDEMU 608c2ecf20Sopenharmony_ci RTL8192E_TRANS_CARDEMU_TO_ACT 618c2ecf20Sopenharmony_ci RTL8192E_TRANS_END 628c2ecf20Sopenharmony_ci}; 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci/*3HWPDN Array*/ 658c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8192E_hwpdn_flow 668c2ecf20Sopenharmony_ci [RTL8192E_TRANS_ACT_TO_CARDEMU_STEPS + 678c2ecf20Sopenharmony_ci RTL8192E_TRANS_CARDEMU_TO_PDN_STEPS + 688c2ecf20Sopenharmony_ci RTL8192E_TRANS_END_STEPS] = { 698c2ecf20Sopenharmony_ci RTL8192E_TRANS_ACT_TO_CARDEMU 708c2ecf20Sopenharmony_ci RTL8192E_TRANS_CARDEMU_TO_PDN 718c2ecf20Sopenharmony_ci RTL8192E_TRANS_END 728c2ecf20Sopenharmony_ci}; 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci/*3 Enter LPS */ 758c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8192E_enter_lps_flow 768c2ecf20Sopenharmony_ci [RTL8192E_TRANS_ACT_TO_LPS_STEPS + 778c2ecf20Sopenharmony_ci RTL8192E_TRANS_END_STEPS] = { 788c2ecf20Sopenharmony_ci /*FW behavior*/ 798c2ecf20Sopenharmony_ci RTL8192E_TRANS_ACT_TO_LPS 808c2ecf20Sopenharmony_ci RTL8192E_TRANS_END 818c2ecf20Sopenharmony_ci}; 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci/*3 Leave LPS */ 848c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8192E_leave_lps_flow 858c2ecf20Sopenharmony_ci [RTL8192E_TRANS_LPS_TO_ACT_STEPS + 868c2ecf20Sopenharmony_ci RTL8192E_TRANS_END_STEPS] = { 878c2ecf20Sopenharmony_ci /*FW behavior*/ 888c2ecf20Sopenharmony_ci RTL8192E_TRANS_LPS_TO_ACT 898c2ecf20Sopenharmony_ci RTL8192E_TRANS_END 908c2ecf20Sopenharmony_ci}; 91