18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/* Copyright(c) 2009-2013  Realtek Corporation.*/
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#include "../pwrseqcmd.h"
58c2ecf20Sopenharmony_ci#include "pwrseq.h"
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci/* drivers should parse below arrays and do the corresponding actions */
88c2ecf20Sopenharmony_ci/*3 Power on  Array*/
98c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8188ee_power_on_flow[RTL8188EE_TRANS_CARDEMU_TO_ACT_STEPS
108c2ecf20Sopenharmony_ci					+ RTL8188EE_TRANS_END_STEPS] = {
118c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_CARDEMU_TO_ACT
128c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_END
138c2ecf20Sopenharmony_ci};
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci/*3Radio off GPIO Array */
168c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8188ee_radio_off_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
178c2ecf20Sopenharmony_ci					+ RTL8188EE_TRANS_END_STEPS] = {
188c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_ACT_TO_CARDEMU
198c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_END
208c2ecf20Sopenharmony_ci};
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci/*3Card Disable Array*/
238c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8188ee_card_disable_flow
248c2ecf20Sopenharmony_ci		[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS +
258c2ecf20Sopenharmony_ci		 RTL8188EE_TRANS_CARDEMU_TO_PDN_STEPS +
268c2ecf20Sopenharmony_ci		 RTL8188EE_TRANS_END_STEPS] = {
278c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_ACT_TO_CARDEMU
288c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_CARDEMU_TO_CARDDIS
298c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_END
308c2ecf20Sopenharmony_ci};
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci/*3 Card Enable Array*/
338c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8188ee_card_enable_flow
348c2ecf20Sopenharmony_ci		[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS +
358c2ecf20Sopenharmony_ci		 RTL8188EE_TRANS_CARDEMU_TO_PDN_STEPS +
368c2ecf20Sopenharmony_ci		 RTL8188EE_TRANS_END_STEPS] = {
378c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_CARDDIS_TO_CARDEMU
388c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_CARDEMU_TO_ACT
398c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_END
408c2ecf20Sopenharmony_ci};
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci/*3Suspend Array*/
438c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8188ee_suspend_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
448c2ecf20Sopenharmony_ci					+ RTL8188EE_TRANS_CARDEMU_TO_SUS_STEPS
458c2ecf20Sopenharmony_ci					+ RTL8188EE_TRANS_END_STEPS] = {
468c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_ACT_TO_CARDEMU
478c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_CARDEMU_TO_SUS
488c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_END
498c2ecf20Sopenharmony_ci};
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci/*3 Resume Array*/
528c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8188ee_resume_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
538c2ecf20Sopenharmony_ci					+ RTL8188EE_TRANS_CARDEMU_TO_SUS_STEPS
548c2ecf20Sopenharmony_ci					+ RTL8188EE_TRANS_END_STEPS] = {
558c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_SUS_TO_CARDEMU
568c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_CARDEMU_TO_ACT
578c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_END
588c2ecf20Sopenharmony_ci};
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ci/*3HWPDN Array*/
618c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8188ee_hwpdn_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
628c2ecf20Sopenharmony_ci				+ RTL8188EE_TRANS_CARDEMU_TO_PDN_STEPS
638c2ecf20Sopenharmony_ci				+ RTL8188EE_TRANS_END_STEPS] = {
648c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_ACT_TO_CARDEMU
658c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_CARDEMU_TO_PDN
668c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_END
678c2ecf20Sopenharmony_ci};
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ci/*3 Enter LPS */
708c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8188ee_enter_lps_flow[RTL8188EE_TRANS_ACT_TO_LPS_STEPS
718c2ecf20Sopenharmony_ci					+ RTL8188EE_TRANS_END_STEPS] = {
728c2ecf20Sopenharmony_ci	/*FW behavior*/
738c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_ACT_TO_LPS
748c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_END
758c2ecf20Sopenharmony_ci};
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ci/*3 Leave LPS */
788c2ecf20Sopenharmony_cistruct wlan_pwr_cfg rtl8188ee_leave_lps_flow[RTL8188EE_TRANS_LPS_TO_ACT_STEPS
798c2ecf20Sopenharmony_ci					+ RTL8188EE_TRANS_END_STEPS] = {
808c2ecf20Sopenharmony_ci	/*FW behavior*/
818c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_LPS_TO_ACT
828c2ecf20Sopenharmony_ci	RTL8188EE_TRANS_END
838c2ecf20Sopenharmony_ci};
84