84 lines · c
1// SPDX-License-Identifier: GPL-2.02/* Copyright(c) 2009-2013 Realtek Corporation.*/3 4#include "../pwrseqcmd.h"5#include "pwrseq.h"6 7/* drivers should parse below arrays and do the corresponding actions */8/*3 Power on Array*/9struct wlan_pwr_cfg rtl8188ee_power_on_flow[RTL8188EE_TRANS_CARDEMU_TO_ACT_STEPS10 + RTL8188EE_TRANS_END_STEPS] = {11 RTL8188EE_TRANS_CARDEMU_TO_ACT12 RTL8188EE_TRANS_END13};14 15/*3Radio off GPIO Array */16struct wlan_pwr_cfg rtl8188ee_radio_off_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS17 + RTL8188EE_TRANS_END_STEPS] = {18 RTL8188EE_TRANS_ACT_TO_CARDEMU19 RTL8188EE_TRANS_END20};21 22/*3Card Disable Array*/23struct wlan_pwr_cfg rtl8188ee_card_disable_flow24 [RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS +25 RTL8188EE_TRANS_CARDEMU_TO_PDN_STEPS +26 RTL8188EE_TRANS_END_STEPS] = {27 RTL8188EE_TRANS_ACT_TO_CARDEMU28 RTL8188EE_TRANS_CARDEMU_TO_CARDDIS29 RTL8188EE_TRANS_END30};31 32/*3 Card Enable Array*/33struct wlan_pwr_cfg rtl8188ee_card_enable_flow34 [RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS +35 RTL8188EE_TRANS_CARDEMU_TO_PDN_STEPS +36 RTL8188EE_TRANS_END_STEPS] = {37 RTL8188EE_TRANS_CARDDIS_TO_CARDEMU38 RTL8188EE_TRANS_CARDEMU_TO_ACT39 RTL8188EE_TRANS_END40};41 42/*3Suspend Array*/43struct wlan_pwr_cfg rtl8188ee_suspend_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS44 + RTL8188EE_TRANS_CARDEMU_TO_SUS_STEPS45 + RTL8188EE_TRANS_END_STEPS] = {46 RTL8188EE_TRANS_ACT_TO_CARDEMU47 RTL8188EE_TRANS_CARDEMU_TO_SUS48 RTL8188EE_TRANS_END49};50 51/*3 Resume Array*/52struct wlan_pwr_cfg rtl8188ee_resume_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS53 + RTL8188EE_TRANS_CARDEMU_TO_SUS_STEPS54 + RTL8188EE_TRANS_END_STEPS] = {55 RTL8188EE_TRANS_SUS_TO_CARDEMU56 RTL8188EE_TRANS_CARDEMU_TO_ACT57 RTL8188EE_TRANS_END58};59 60/*3HWPDN Array*/61struct wlan_pwr_cfg rtl8188ee_hwpdn_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS62 + RTL8188EE_TRANS_CARDEMU_TO_PDN_STEPS63 + RTL8188EE_TRANS_END_STEPS] = {64 RTL8188EE_TRANS_ACT_TO_CARDEMU65 RTL8188EE_TRANS_CARDEMU_TO_PDN66 RTL8188EE_TRANS_END67};68 69/*3 Enter LPS */70struct wlan_pwr_cfg rtl8188ee_enter_lps_flow[RTL8188EE_TRANS_ACT_TO_LPS_STEPS71 + RTL8188EE_TRANS_END_STEPS] = {72 /*FW behavior*/73 RTL8188EE_TRANS_ACT_TO_LPS74 RTL8188EE_TRANS_END75};76 77/*3 Leave LPS */78struct wlan_pwr_cfg rtl8188ee_leave_lps_flow[RTL8188EE_TRANS_LPS_TO_ACT_STEPS79 + RTL8188EE_TRANS_END_STEPS] = {80 /*FW behavior*/81 RTL8188EE_TRANS_LPS_TO_ACT82 RTL8188EE_TRANS_END83};84