hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
/** @file */
/******************************************************************************
 *
 * Copyright(c) 2019 Realtek Corporation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 ******************************************************************************/
 
#ifndef _MAC_OUTSRC_DEF_H_
#define _MAC_OUTSRC_DEF_H_
 
// for other submodule ref definition defined here
/*--------------------Define -------------------------------------------*/
/*--------------------Define MACRO--------------------------------------*/
/*--------------------Define Enum---------------------------------------*/
 
/**
 * @enum rtw_mac_src_cmd_ofld
 *
 * @brief rtw_mac_src_cmd_ofld
 *
 * @var rtw_mac_src_cmd_ofld::MAC_AX_BB_CMD_OFLD
 * Please Place Description here.
 * @var rtw_mac_src_cmd_ofld::MAC_AX_RF_CMD_OFLD
 * Please Place Description here.
 * @var rtw_mac_src_cmd_ofld::MAC_AX_MAC_CMD_OFLD
 * Please Place Description here.
 * @var rtw_mac_src_cmd_ofld::MAC_RF_DDIE_CMD_OFLD
 * Please Place Description here.
 * @var rtw_mac_src_cmd_ofld::MAC_AX_OTHER_CMD_OFLD
 * Please Place Description here.
 */
enum rtw_mac_src_cmd_ofld {
   RTW_MAC_BB_CMD_OFLD = 0,
   RTW_MAC_RF_CMD_OFLD,
   RTW_MAC_MAC_CMD_OFLD,
   RTW_MAC_RF_DDIE_CMD_OFLD,
   RTW_MAC_OTHER_CMD_OFLD
};
 
/**
 * @enum rtw_mac_cmd_type_ofld
 *
 * @brief rtw_mac_cmd_type_ofld
 *
 * @var rtw_mac_cmd_type_ofld::MAC_AX_WRITE_OFLD
 * Please Place Description here.
 * @var rtw_mac_cmd_type_ofld::MAC_AX_POLLING_OFLD
 * Please Place Description here.
 * @var rtw_mac_cmd_type_ofld::MAC_AX_DELAY_OFLD
 * Please Place Description here.
 */
enum rtw_mac_cmd_type_ofld {
   RTW_MAC_WRITE_OFLD = 0,
   RTW_MAC_COMPARE_OFLD,
   RTW_MAC_DELAY_OFLD,
   RTW_MAC_MOVE_OFLD
};
 
/**
 * @enum mac_ax_cmd_id
 *
 * @brief mac_ax_cmd_id
 *
 * @var mac_ax_host_rpr_mode::MAC_AX_ID_0
 * Please Place Description here.
 * @var mac_ax_host_rpr_mode::MAC_AX_ID_1
 * Please Place Description here.
 */
enum mac_ax_cmd_id {
   MAC_AX_ID_0 = 0,
   MAC_AX_ID_1
};
 
/**
 * @enum rtw_mac_rf_path
 *
 * @brief rtw_mac_rf_path
 *
 * @var rtw_mac_rf_path::RF_PATH_A
 * Please Place Description here.
 * @var rtw_mac_rf_path::RF_PATH_B
 * Please Place Description here.
 * @var rtw_mac_rf_path::RF_PATH_C
 * Please Place Description here.
 * @var rtw_mac_rf_path::RF_PATH_D
 * Please Place Description here.
 */
enum rtw_mac_rf_path {
   RTW_MAC_RF_PATH_A = 0,   //Radio Path A
   RTW_MAC_RF_PATH_B,    //Radio Path B
   RTW_MAC_RF_PATH_C,    //Radio Path C
   RTW_MAC_RF_PATH_D,    //Radio Path D
};
 
enum rtw_fw_cap {
   FW_CAP_IO_OFLD = BIT(0),
};
 
/*--------------------Define Struct-------------------------------------*/
 
/**
 * @struct rtw_mac_cmd
 * @brief rtw_mac_cmd
 *
 * @var rtw_mac_cmd::src
 * Please Place Description here.
 * @var rtw_mac_cmd::type
 * Please Place Description here.
 * @var rtw_mac_cmd::lc
 * Please Place Description here.
 * @var rtw_mac_cmd::rf_path
 * Please Place Description here.
 * @var rtw_mac_cmd::offset
 * Please Place Description here.
 * @var rtw_mac_cmd::id
 * Please Place Description here.
 * @var rtw_mac_cmd::value
 * Please Place Description here.
 * @var rtw_mac_cmd::mask
 * Please Place Description here.
 */
struct rtw_mac_cmd {
   enum rtw_mac_src_cmd_ofld src;
   enum rtw_mac_cmd_type_ofld type;
   u8 lc;
   enum rtw_mac_rf_path rf_path;
   u16 offset;
   u16 id;
   u32 value;
   u32 mask;
};
 
/**
 * @struct rtw_mac_cmd_v1
 * @brief rtw_mac_cmd_v1
 *
 * @var rtw_mac_cmd::src0
 * Please Place Description here.
 * @var rtw_mac_cmd::src1
 * Please Place Description here.
 * @var rtw_mac_cmd_v1::type
 * Please Place Description here.
 * @var rtw_mac_cmd_v1::lc
 * Please Place Description here.
 * @var rtw_mac_cmd_v1::rf_path
 * Please Place Description here.
 * @var rtw_mac_cmd_v1::offset0
 * Please Place Description here.
 * @var rtw_mac_cmd_v1::value0
 * Please Place Description here.
 * @var rtw_mac_cmd_v1::mask0
 * Please Place Description here.
 * @var rtw_mac_cmd_v1::offset1
 * Please Place Description here.
 * @var rtw_mac_cmd_v1::rsvd0
 * Please Place Description here.
 * @var rtw_mac_cmd_v1::mask1
 * Please Place Description here.
 */
struct rtw_mac_cmd_v1 {
   enum rtw_mac_src_cmd_ofld src0;
   enum rtw_mac_rf_path rf_path0;
   enum rtw_mac_src_cmd_ofld src1;
   enum rtw_mac_rf_path rf_path1;
   enum rtw_mac_cmd_type_ofld type;
   u8 lc;
   u16 offset0;
   u16 offset1;
   u32 mask0;
   u32 value;
};
#endif //_MAC_OUTSRC_DEF_H_