Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nu11secur1ty
GitHub Repository: nu11secur1ty/Kali-Linux
Path: blob/master/ALFA-W1F1/RTL8814AU/hal/rtl8814a/Hal8814PwrSeq.c
1307 views
1
/******************************************************************************
2
*
3
* Copyright(c) 2007 - 2017 Realtek Corporation.
4
*
5
* This program is free software; you can redistribute it and/or modify it
6
* under the terms of version 2 of the GNU General Public License as
7
* published by the Free Software Foundation.
8
*
9
* This program is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
* more details.
13
*
14
*****************************************************************************/
15
16
#include "Hal8814PwrSeq.h"
17
#include <rtl8814a_hal.h>
18
19
/*
20
drivers should parse below arrays and do the corresponding actions
21
*/
22
/* 3 Power on Array */
23
WLAN_PWR_CFG rtl8814A_power_on_flow[RTL8814A_TRANS_CARDEMU_TO_ACT_STEPS + RTL8814A_TRANS_END_STEPS] = {
24
RTL8814A_TRANS_CARDEMU_TO_ACT
25
RTL8814A_TRANS_END
26
};
27
28
/* 3Radio off GPIO Array */
29
WLAN_PWR_CFG rtl8814A_radio_off_flow[RTL8814A_TRANS_ACT_TO_CARDEMU_STEPS + RTL8814A_TRANS_END_STEPS] = {
30
RTL8814A_TRANS_ACT_TO_CARDEMU
31
RTL8814A_TRANS_END
32
};
33
34
/* 3Card Disable Array */
35
WLAN_PWR_CFG rtl8814A_card_disable_flow[RTL8814A_TRANS_ACT_TO_CARDEMU_STEPS + RTL8814A_TRANS_CARDEMU_TO_PDN_STEPS + RTL8814A_TRANS_END_STEPS] = {
36
RTL8814A_TRANS_ACT_TO_CARDEMU
37
RTL8814A_TRANS_CARDEMU_TO_CARDDIS
38
RTL8814A_TRANS_END
39
};
40
41
/* 3 Card Enable Array */
42
WLAN_PWR_CFG rtl8814A_card_enable_flow[RTL8814A_TRANS_ACT_TO_CARDEMU_STEPS + RTL8814A_TRANS_CARDEMU_TO_PDN_STEPS + RTL8814A_TRANS_END_STEPS] = {
43
RTL8814A_TRANS_CARDDIS_TO_CARDEMU
44
RTL8814A_TRANS_CARDEMU_TO_ACT
45
RTL8814A_TRANS_END
46
};
47
48
/* 3Suspend Array */
49
WLAN_PWR_CFG rtl8814A_suspend_flow[RTL8814A_TRANS_ACT_TO_CARDEMU_STEPS + RTL8814A_TRANS_CARDEMU_TO_SUS_STEPS + RTL8814A_TRANS_END_STEPS] = {
50
RTL8814A_TRANS_ACT_TO_CARDEMU
51
RTL8814A_TRANS_CARDEMU_TO_SUS
52
RTL8814A_TRANS_END
53
};
54
55
/* 3 Resume Array */
56
WLAN_PWR_CFG rtl8814A_resume_flow[RTL8814A_TRANS_ACT_TO_CARDEMU_STEPS + RTL8814A_TRANS_CARDEMU_TO_SUS_STEPS + RTL8814A_TRANS_END_STEPS] = {
57
RTL8814A_TRANS_SUS_TO_CARDEMU
58
RTL8814A_TRANS_CARDEMU_TO_ACT
59
RTL8814A_TRANS_END
60
};
61
62
63
64
/* 3HWPDN Array */
65
WLAN_PWR_CFG rtl8814A_hwpdn_flow[RTL8814A_TRANS_ACT_TO_CARDEMU_STEPS + RTL8814A_TRANS_CARDEMU_TO_PDN_STEPS + RTL8814A_TRANS_END_STEPS] = {
66
RTL8814A_TRANS_ACT_TO_CARDEMU
67
RTL8814A_TRANS_CARDEMU_TO_PDN
68
RTL8814A_TRANS_END
69
};
70
71
/* 3 Enter LPS */
72
WLAN_PWR_CFG rtl8814A_enter_lps_flow[RTL8814A_TRANS_ACT_TO_LPS_STEPS + RTL8814A_TRANS_END_STEPS] = {
73
/* FW behavior */
74
RTL8814A_TRANS_ACT_TO_LPS
75
RTL8814A_TRANS_END
76
};
77
78
/* 3 Leave LPS */
79
WLAN_PWR_CFG rtl8814A_leave_lps_flow[RTL8814A_TRANS_LPS_TO_ACT_STEPS + RTL8814A_TRANS_END_STEPS] = {
80
/* FW behavior */
81
RTL8814A_TRANS_LPS_TO_ACT
82
RTL8814A_TRANS_END
83
};
84
85