18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci/* Copyright(c) 2009-2014 Realtek Corporation.*/ 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#include "../pwrseqcmd.h" 58c2ecf20Sopenharmony_ci#include "pwrseq.h" 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci/* drivers should parse below arrays and do the corresponding actions */ 98c2ecf20Sopenharmony_ci/*3 Power on Array*/ 108c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8723B_power_on_flow[RTL8723B_TRANS_CARDEMU_TO_ACT_STEPS + 118c2ecf20Sopenharmony_ci RTL8723B_TRANS_END_STEPS] = { 128c2ecf20Sopenharmony_ci RTL8723B_TRANS_CARDEMU_TO_ACT 138c2ecf20Sopenharmony_ci RTL8723B_TRANS_END 148c2ecf20Sopenharmony_ci}; 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci/*3Radio off GPIO Array */ 178c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8723B_radio_off_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS 188c2ecf20Sopenharmony_ci + RTL8723B_TRANS_END_STEPS] = { 198c2ecf20Sopenharmony_ci RTL8723B_TRANS_ACT_TO_CARDEMU 208c2ecf20Sopenharmony_ci RTL8723B_TRANS_END 218c2ecf20Sopenharmony_ci}; 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci/*3Card Disable Array*/ 248c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8723B_card_disable_flow 258c2ecf20Sopenharmony_ci [RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS + 268c2ecf20Sopenharmony_ci RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS + 278c2ecf20Sopenharmony_ci RTL8723B_TRANS_END_STEPS] = { 288c2ecf20Sopenharmony_ci RTL8723B_TRANS_ACT_TO_CARDEMU 298c2ecf20Sopenharmony_ci RTL8723B_TRANS_CARDEMU_TO_CARDDIS 308c2ecf20Sopenharmony_ci RTL8723B_TRANS_END 318c2ecf20Sopenharmony_ci}; 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci/*3 Card Enable Array*/ 348c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8723B_card_enable_flow 358c2ecf20Sopenharmony_ci [RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS + 368c2ecf20Sopenharmony_ci RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS + 378c2ecf20Sopenharmony_ci RTL8723B_TRANS_END_STEPS] = { 388c2ecf20Sopenharmony_ci RTL8723B_TRANS_CARDDIS_TO_CARDEMU 398c2ecf20Sopenharmony_ci RTL8723B_TRANS_CARDEMU_TO_ACT 408c2ecf20Sopenharmony_ci RTL8723B_TRANS_END 418c2ecf20Sopenharmony_ci}; 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci/*3Suspend Array*/ 448c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8723B_suspend_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS + 458c2ecf20Sopenharmony_ci RTL8723B_TRANS_CARDEMU_TO_SUS_STEPS + 468c2ecf20Sopenharmony_ci RTL8723B_TRANS_END_STEPS] = { 478c2ecf20Sopenharmony_ci RTL8723B_TRANS_ACT_TO_CARDEMU 488c2ecf20Sopenharmony_ci RTL8723B_TRANS_CARDEMU_TO_SUS 498c2ecf20Sopenharmony_ci RTL8723B_TRANS_END 508c2ecf20Sopenharmony_ci}; 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci/*3 Resume Array*/ 538c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8723B_resume_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS + 548c2ecf20Sopenharmony_ci RTL8723B_TRANS_CARDEMU_TO_SUS_STEPS + 558c2ecf20Sopenharmony_ci RTL8723B_TRANS_END_STEPS] = { 568c2ecf20Sopenharmony_ci RTL8723B_TRANS_SUS_TO_CARDEMU 578c2ecf20Sopenharmony_ci RTL8723B_TRANS_CARDEMU_TO_ACT 588c2ecf20Sopenharmony_ci RTL8723B_TRANS_END 598c2ecf20Sopenharmony_ci}; 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci/*3HWPDN Array*/ 628c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8723B_hwpdn_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS + 638c2ecf20Sopenharmony_ci RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS + 648c2ecf20Sopenharmony_ci RTL8723B_TRANS_END_STEPS] = { 658c2ecf20Sopenharmony_ci RTL8723B_TRANS_ACT_TO_CARDEMU 668c2ecf20Sopenharmony_ci RTL8723B_TRANS_CARDEMU_TO_PDN 678c2ecf20Sopenharmony_ci RTL8723B_TRANS_END 688c2ecf20Sopenharmony_ci}; 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ci/*3 Enter LPS */ 718c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8723B_enter_lps_flow[RTL8723B_TRANS_ACT_TO_LPS_STEPS + 728c2ecf20Sopenharmony_ci RTL8723B_TRANS_END_STEPS] = { 738c2ecf20Sopenharmony_ci /*FW behavior*/ 748c2ecf20Sopenharmony_ci RTL8723B_TRANS_ACT_TO_LPS 758c2ecf20Sopenharmony_ci RTL8723B_TRANS_END 768c2ecf20Sopenharmony_ci}; 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci/*3 Leave LPS */ 798c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8723B_leave_lps_flow[RTL8723B_TRANS_LPS_TO_ACT_STEPS + 808c2ecf20Sopenharmony_ci RTL8723B_TRANS_END_STEPS] = { 818c2ecf20Sopenharmony_ci /*FW behavior*/ 828c2ecf20Sopenharmony_ci RTL8723B_TRANS_LPS_TO_ACT 838c2ecf20Sopenharmony_ci RTL8723B_TRANS_END 848c2ecf20Sopenharmony_ci}; 85