GNU Linux-libre 4.19.286-gnu1
[releases.git] / drivers / staging / rtlwifi / halmac / halmac_tx_desc_chip.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
3  *
4  * Copyright(c) 2016  Realtek Corporation.
5  *
6  * Contact Information:
7  * wlanfae <wlanfae@realtek.com>
8  * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
9  * Hsinchu 300, Taiwan.
10  *
11  * Larry Finger <Larry.Finger@lwfinger.net>
12  *
13  *****************************************************************************/
14 #ifndef _HALMAC_TX_DESC_CHIP_H_
15 #define _HALMAC_TX_DESC_CHIP_H_
16
17 /*TXDESC_WORD0*/
18
19 #define SET_TX_DESC_DISQSELSEQ_8822B(__tx_desc, __value)                       \
20         SET_TX_DESC_DISQSELSEQ(__tx_desc, __value)
21 #define GET_TX_DESC_DISQSELSEQ_8822B(__tx_desc)                                \
22         GET_TX_DESC_DISQSELSEQ(__tx_desc)
23 #define SET_TX_DESC_GF_8822B(__tx_desc, __value)                               \
24         SET_TX_DESC_GF(__tx_desc, __value)
25 #define GET_TX_DESC_GF_8822B(__tx_desc) GET_TX_DESC_GF(__tx_desc)
26 #define SET_TX_DESC_NO_ACM_8822B(__tx_desc, __value)                           \
27         SET_TX_DESC_NO_ACM(__tx_desc, __value)
28 #define GET_TX_DESC_NO_ACM_8822B(__tx_desc) GET_TX_DESC_NO_ACM(__tx_desc)
29 #define SET_TX_DESC_BCNPKT_TSF_CTRL_8822B(__tx_desc, __value)                  \
30         SET_TX_DESC_BCNPKT_TSF_CTRL(__tx_desc, __value)
31 #define GET_TX_DESC_BCNPKT_TSF_CTRL_8822B(__tx_desc)                           \
32         GET_TX_DESC_BCNPKT_TSF_CTRL(__tx_desc)
33 #define SET_TX_DESC_AMSDU_PAD_EN_8822B(__tx_desc, __value)                     \
34         SET_TX_DESC_AMSDU_PAD_EN(__tx_desc, __value)
35 #define GET_TX_DESC_AMSDU_PAD_EN_8822B(__tx_desc)                              \
36         GET_TX_DESC_AMSDU_PAD_EN(__tx_desc)
37 #define SET_TX_DESC_LS_8822B(__tx_desc, __value)                               \
38         SET_TX_DESC_LS(__tx_desc, __value)
39 #define GET_TX_DESC_LS_8822B(__tx_desc) GET_TX_DESC_LS(__tx_desc)
40 #define SET_TX_DESC_HTC_8822B(__tx_desc, __value)                              \
41         SET_TX_DESC_HTC(__tx_desc, __value)
42 #define GET_TX_DESC_HTC_8822B(__tx_desc) GET_TX_DESC_HTC(__tx_desc)
43 #define SET_TX_DESC_BMC_8822B(__tx_desc, __value)                              \
44         SET_TX_DESC_BMC(__tx_desc, __value)
45 #define GET_TX_DESC_BMC_8822B(__tx_desc) GET_TX_DESC_BMC(__tx_desc)
46 #define SET_TX_DESC_OFFSET_8822B(__tx_desc, __value)                           \
47         SET_TX_DESC_OFFSET(__tx_desc, __value)
48 #define GET_TX_DESC_OFFSET_8822B(__tx_desc) GET_TX_DESC_OFFSET(__tx_desc)
49 #define SET_TX_DESC_TXPKTSIZE_8822B(__tx_desc, __value)                        \
50         SET_TX_DESC_TXPKTSIZE(__tx_desc, __value)
51 #define GET_TX_DESC_TXPKTSIZE_8822B(__tx_desc) GET_TX_DESC_TXPKTSIZE(__tx_desc)
52
53 /*TXDESC_WORD1*/
54
55 #define SET_TX_DESC_MOREDATA_8822B(__tx_desc, __value)                         \
56         SET_TX_DESC_MOREDATA(__tx_desc, __value)
57 #define GET_TX_DESC_MOREDATA_8822B(__tx_desc) GET_TX_DESC_MOREDATA(__tx_desc)
58 #define SET_TX_DESC_PKT_OFFSET_8822B(__tx_desc, __value)                       \
59         SET_TX_DESC_PKT_OFFSET(__tx_desc, __value)
60 #define GET_TX_DESC_PKT_OFFSET_8822B(__tx_desc)                                \
61         GET_TX_DESC_PKT_OFFSET(__tx_desc)
62 #define SET_TX_DESC_SEC_TYPE_8822B(__tx_desc, __value)                         \
63         SET_TX_DESC_SEC_TYPE(__tx_desc, __value)
64 #define GET_TX_DESC_SEC_TYPE_8822B(__tx_desc) GET_TX_DESC_SEC_TYPE(__tx_desc)
65 #define SET_TX_DESC_EN_DESC_ID_8822B(__tx_desc, __value)                       \
66         SET_TX_DESC_EN_DESC_ID(__tx_desc, __value)
67 #define GET_TX_DESC_EN_DESC_ID_8822B(__tx_desc)                                \
68         GET_TX_DESC_EN_DESC_ID(__tx_desc)
69 #define SET_TX_DESC_RATE_ID_8822B(__tx_desc, __value)                          \
70         SET_TX_DESC_RATE_ID(__tx_desc, __value)
71 #define GET_TX_DESC_RATE_ID_8822B(__tx_desc) GET_TX_DESC_RATE_ID(__tx_desc)
72 #define SET_TX_DESC_PIFS_8822B(__tx_desc, __value)                             \
73         SET_TX_DESC_PIFS(__tx_desc, __value)
74 #define GET_TX_DESC_PIFS_8822B(__tx_desc) GET_TX_DESC_PIFS(__tx_desc)
75 #define SET_TX_DESC_LSIG_TXOP_EN_8822B(__tx_desc, __value)                     \
76         SET_TX_DESC_LSIG_TXOP_EN(__tx_desc, __value)
77 #define GET_TX_DESC_LSIG_TXOP_EN_8822B(__tx_desc)                              \
78         GET_TX_DESC_LSIG_TXOP_EN(__tx_desc)
79 #define SET_TX_DESC_RD_NAV_EXT_8822B(__tx_desc, __value)                       \
80         SET_TX_DESC_RD_NAV_EXT(__tx_desc, __value)
81 #define GET_TX_DESC_RD_NAV_EXT_8822B(__tx_desc)                                \
82         GET_TX_DESC_RD_NAV_EXT(__tx_desc)
83 #define SET_TX_DESC_QSEL_8822B(__tx_desc, __value)                             \
84         SET_TX_DESC_QSEL(__tx_desc, __value)
85 #define GET_TX_DESC_QSEL_8822B(__tx_desc) GET_TX_DESC_QSEL(__tx_desc)
86 #define SET_TX_DESC_MACID_8822B(__tx_desc, __value)                            \
87         SET_TX_DESC_MACID(__tx_desc, __value)
88 #define GET_TX_DESC_MACID_8822B(__tx_desc) GET_TX_DESC_MACID(__tx_desc)
89
90 /*TXDESC_WORD2*/
91
92 #define SET_TX_DESC_HW_AES_IV_8822B(__tx_desc, __value)                        \
93         SET_TX_DESC_HW_AES_IV(__tx_desc, __value)
94 #define GET_TX_DESC_HW_AES_IV_8822B(__tx_desc) GET_TX_DESC_HW_AES_IV(__tx_desc)
95 #define SET_TX_DESC_FTM_EN_8822B(__tx_desc, __value)                           \
96         SET_TX_DESC_FTM_EN(__tx_desc, __value)
97 #define GET_TX_DESC_FTM_EN_8822B(__tx_desc) GET_TX_DESC_FTM_EN(__tx_desc)
98 #define SET_TX_DESC_G_ID_8822B(__tx_desc, __value)                             \
99         SET_TX_DESC_G_ID(__tx_desc, __value)
100 #define GET_TX_DESC_G_ID_8822B(__tx_desc) GET_TX_DESC_G_ID(__tx_desc)
101 #define SET_TX_DESC_BT_NULL_8822B(__tx_desc, __value)                          \
102         SET_TX_DESC_BT_NULL(__tx_desc, __value)
103 #define GET_TX_DESC_BT_NULL_8822B(__tx_desc) GET_TX_DESC_BT_NULL(__tx_desc)
104 #define SET_TX_DESC_AMPDU_DENSITY_8822B(__tx_desc, __value)                    \
105         SET_TX_DESC_AMPDU_DENSITY(__tx_desc, __value)
106 #define GET_TX_DESC_AMPDU_DENSITY_8822B(__tx_desc)                             \
107         GET_TX_DESC_AMPDU_DENSITY(__tx_desc)
108 #define SET_TX_DESC_SPE_RPT_8822B(__tx_desc, __value)                          \
109         SET_TX_DESC_SPE_RPT(__tx_desc, __value)
110 #define GET_TX_DESC_SPE_RPT_8822B(__tx_desc) GET_TX_DESC_SPE_RPT(__tx_desc)
111 #define SET_TX_DESC_RAW_8822B(__tx_desc, __value)                              \
112         SET_TX_DESC_RAW(__tx_desc, __value)
113 #define GET_TX_DESC_RAW_8822B(__tx_desc) GET_TX_DESC_RAW(__tx_desc)
114 #define SET_TX_DESC_MOREFRAG_8822B(__tx_desc, __value)                         \
115         SET_TX_DESC_MOREFRAG(__tx_desc, __value)
116 #define GET_TX_DESC_MOREFRAG_8822B(__tx_desc) GET_TX_DESC_MOREFRAG(__tx_desc)
117 #define SET_TX_DESC_BK_8822B(__tx_desc, __value)                               \
118         SET_TX_DESC_BK(__tx_desc, __value)
119 #define GET_TX_DESC_BK_8822B(__tx_desc) GET_TX_DESC_BK(__tx_desc)
120 #define SET_TX_DESC_NULL_1_8822B(__tx_desc, __value)                           \
121         SET_TX_DESC_NULL_1(__tx_desc, __value)
122 #define GET_TX_DESC_NULL_1_8822B(__tx_desc) GET_TX_DESC_NULL_1(__tx_desc)
123 #define SET_TX_DESC_NULL_0_8822B(__tx_desc, __value)                           \
124         SET_TX_DESC_NULL_0(__tx_desc, __value)
125 #define GET_TX_DESC_NULL_0_8822B(__tx_desc) GET_TX_DESC_NULL_0(__tx_desc)
126 #define SET_TX_DESC_RDG_EN_8822B(__tx_desc, __value)                           \
127         SET_TX_DESC_RDG_EN(__tx_desc, __value)
128 #define GET_TX_DESC_RDG_EN_8822B(__tx_desc) GET_TX_DESC_RDG_EN(__tx_desc)
129 #define SET_TX_DESC_AGG_EN_8822B(__tx_desc, __value)                           \
130         SET_TX_DESC_AGG_EN(__tx_desc, __value)
131 #define GET_TX_DESC_AGG_EN_8822B(__tx_desc) GET_TX_DESC_AGG_EN(__tx_desc)
132 #define SET_TX_DESC_CCA_RTS_8822B(__tx_desc, __value)                          \
133         SET_TX_DESC_CCA_RTS(__tx_desc, __value)
134 #define GET_TX_DESC_CCA_RTS_8822B(__tx_desc) GET_TX_DESC_CCA_RTS(__tx_desc)
135 #define SET_TX_DESC_TRI_FRAME_8822B(__tx_desc, __value)                        \
136         SET_TX_DESC_TRI_FRAME(__tx_desc, __value)
137 #define GET_TX_DESC_TRI_FRAME_8822B(__tx_desc) GET_TX_DESC_TRI_FRAME(__tx_desc)
138 #define SET_TX_DESC_P_AID_8822B(__tx_desc, __value)                            \
139         SET_TX_DESC_P_AID(__tx_desc, __value)
140 #define GET_TX_DESC_P_AID_8822B(__tx_desc) GET_TX_DESC_P_AID(__tx_desc)
141
142 /*TXDESC_WORD3*/
143
144 #define SET_TX_DESC_AMPDU_MAX_TIME_8822B(__tx_desc, __value)                   \
145         SET_TX_DESC_AMPDU_MAX_TIME(__tx_desc, __value)
146 #define GET_TX_DESC_AMPDU_MAX_TIME_8822B(__tx_desc)                            \
147         GET_TX_DESC_AMPDU_MAX_TIME(__tx_desc)
148 #define SET_TX_DESC_NDPA_8822B(__tx_desc, __value)                             \
149         SET_TX_DESC_NDPA(__tx_desc, __value)
150 #define GET_TX_DESC_NDPA_8822B(__tx_desc) GET_TX_DESC_NDPA(__tx_desc)
151 #define SET_TX_DESC_MAX_AGG_NUM_8822B(__tx_desc, __value)                      \
152         SET_TX_DESC_MAX_AGG_NUM(__tx_desc, __value)
153 #define GET_TX_DESC_MAX_AGG_NUM_8822B(__tx_desc)                               \
154         GET_TX_DESC_MAX_AGG_NUM(__tx_desc)
155 #define SET_TX_DESC_USE_MAX_TIME_EN_8822B(__tx_desc, __value)                  \
156         SET_TX_DESC_USE_MAX_TIME_EN(__tx_desc, __value)
157 #define GET_TX_DESC_USE_MAX_TIME_EN_8822B(__tx_desc)                           \
158         GET_TX_DESC_USE_MAX_TIME_EN(__tx_desc)
159 #define SET_TX_DESC_NAVUSEHDR_8822B(__tx_desc, __value)                        \
160         SET_TX_DESC_NAVUSEHDR(__tx_desc, __value)
161 #define GET_TX_DESC_NAVUSEHDR_8822B(__tx_desc) GET_TX_DESC_NAVUSEHDR(__tx_desc)
162 #define SET_TX_DESC_CHK_EN_8822B(__tx_desc, __value)                           \
163         SET_TX_DESC_CHK_EN(__tx_desc, __value)
164 #define GET_TX_DESC_CHK_EN_8822B(__tx_desc) GET_TX_DESC_CHK_EN(__tx_desc)
165 #define SET_TX_DESC_HW_RTS_EN_8822B(__tx_desc, __value)                        \
166         SET_TX_DESC_HW_RTS_EN(__tx_desc, __value)
167 #define GET_TX_DESC_HW_RTS_EN_8822B(__tx_desc) GET_TX_DESC_HW_RTS_EN(__tx_desc)
168 #define SET_TX_DESC_RTSEN_8822B(__tx_desc, __value)                            \
169         SET_TX_DESC_RTSEN(__tx_desc, __value)
170 #define GET_TX_DESC_RTSEN_8822B(__tx_desc) GET_TX_DESC_RTSEN(__tx_desc)
171 #define SET_TX_DESC_CTS2SELF_8822B(__tx_desc, __value)                         \
172         SET_TX_DESC_CTS2SELF(__tx_desc, __value)
173 #define GET_TX_DESC_CTS2SELF_8822B(__tx_desc) GET_TX_DESC_CTS2SELF(__tx_desc)
174 #define SET_TX_DESC_DISDATAFB_8822B(__tx_desc, __value)                        \
175         SET_TX_DESC_DISDATAFB(__tx_desc, __value)
176 #define GET_TX_DESC_DISDATAFB_8822B(__tx_desc) GET_TX_DESC_DISDATAFB(__tx_desc)
177 #define SET_TX_DESC_DISRTSFB_8822B(__tx_desc, __value)                         \
178         SET_TX_DESC_DISRTSFB(__tx_desc, __value)
179 #define GET_TX_DESC_DISRTSFB_8822B(__tx_desc) GET_TX_DESC_DISRTSFB(__tx_desc)
180 #define SET_TX_DESC_USE_RATE_8822B(__tx_desc, __value)                         \
181         SET_TX_DESC_USE_RATE(__tx_desc, __value)
182 #define GET_TX_DESC_USE_RATE_8822B(__tx_desc) GET_TX_DESC_USE_RATE(__tx_desc)
183 #define SET_TX_DESC_HW_SSN_SEL_8822B(__tx_desc, __value)                       \
184         SET_TX_DESC_HW_SSN_SEL(__tx_desc, __value)
185 #define GET_TX_DESC_HW_SSN_SEL_8822B(__tx_desc)                                \
186         GET_TX_DESC_HW_SSN_SEL(__tx_desc)
187 #define SET_TX_DESC_WHEADER_LEN_8822B(__tx_desc, __value)                      \
188         SET_TX_DESC_WHEADER_LEN(__tx_desc, __value)
189 #define GET_TX_DESC_WHEADER_LEN_8822B(__tx_desc)                               \
190         GET_TX_DESC_WHEADER_LEN(__tx_desc)
191
192 /*TXDESC_WORD4*/
193
194 #define SET_TX_DESC_PCTS_MASK_IDX_8822B(__tx_desc, __value)                    \
195         SET_TX_DESC_PCTS_MASK_IDX(__tx_desc, __value)
196 #define GET_TX_DESC_PCTS_MASK_IDX_8822B(__tx_desc)                             \
197         GET_TX_DESC_PCTS_MASK_IDX(__tx_desc)
198 #define SET_TX_DESC_PCTS_EN_8822B(__tx_desc, __value)                          \
199         SET_TX_DESC_PCTS_EN(__tx_desc, __value)
200 #define GET_TX_DESC_PCTS_EN_8822B(__tx_desc) GET_TX_DESC_PCTS_EN(__tx_desc)
201 #define SET_TX_DESC_RTSRATE_8822B(__tx_desc, __value)                          \
202         SET_TX_DESC_RTSRATE(__tx_desc, __value)
203 #define GET_TX_DESC_RTSRATE_8822B(__tx_desc) GET_TX_DESC_RTSRATE(__tx_desc)
204 #define SET_TX_DESC_RTS_DATA_RTY_LMT_8822B(__tx_desc, __value)                 \
205         SET_TX_DESC_RTS_DATA_RTY_LMT(__tx_desc, __value)
206 #define GET_TX_DESC_RTS_DATA_RTY_LMT_8822B(__tx_desc)                          \
207         GET_TX_DESC_RTS_DATA_RTY_LMT(__tx_desc)
208 #define SET_TX_DESC_RTY_LMT_EN_8822B(__tx_desc, __value)                       \
209         SET_TX_DESC_RTY_LMT_EN(__tx_desc, __value)
210 #define GET_TX_DESC_RTY_LMT_EN_8822B(__tx_desc)                                \
211         GET_TX_DESC_RTY_LMT_EN(__tx_desc)
212 #define SET_TX_DESC_RTS_RTY_LOWEST_RATE_8822B(__tx_desc, __value)              \
213         SET_TX_DESC_RTS_RTY_LOWEST_RATE(__tx_desc, __value)
214 #define GET_TX_DESC_RTS_RTY_LOWEST_RATE_8822B(__tx_desc)                       \
215         GET_TX_DESC_RTS_RTY_LOWEST_RATE(__tx_desc)
216 #define SET_TX_DESC_DATA_RTY_LOWEST_RATE_8822B(__tx_desc, __value)             \
217         SET_TX_DESC_DATA_RTY_LOWEST_RATE(__tx_desc, __value)
218 #define GET_TX_DESC_DATA_RTY_LOWEST_RATE_8822B(__tx_desc)                      \
219         GET_TX_DESC_DATA_RTY_LOWEST_RATE(__tx_desc)
220 #define SET_TX_DESC_TRY_RATE_8822B(__tx_desc, __value)                         \
221         SET_TX_DESC_TRY_RATE(__tx_desc, __value)
222 #define GET_TX_DESC_TRY_RATE_8822B(__tx_desc) GET_TX_DESC_TRY_RATE(__tx_desc)
223 #define SET_TX_DESC_DATARATE_8822B(__tx_desc, __value)                         \
224         SET_TX_DESC_DATARATE(__tx_desc, __value)
225 #define GET_TX_DESC_DATARATE_8822B(__tx_desc) GET_TX_DESC_DATARATE(__tx_desc)
226
227 /*TXDESC_WORD5*/
228
229 #define SET_TX_DESC_POLLUTED_8822B(__tx_desc, __value)                         \
230         SET_TX_DESC_POLLUTED(__tx_desc, __value)
231 #define GET_TX_DESC_POLLUTED_8822B(__tx_desc) GET_TX_DESC_POLLUTED(__tx_desc)
232 #define SET_TX_DESC_TXPWR_OFSET_8822B(__tx_desc, __value)                      \
233         SET_TX_DESC_TXPWR_OFSET(__tx_desc, __value)
234 #define GET_TX_DESC_TXPWR_OFSET_8822B(__tx_desc)                               \
235         GET_TX_DESC_TXPWR_OFSET(__tx_desc)
236 #define SET_TX_DESC_TX_ANT_8822B(__tx_desc, __value)                           \
237         SET_TX_DESC_TX_ANT(__tx_desc, __value)
238 #define GET_TX_DESC_TX_ANT_8822B(__tx_desc) GET_TX_DESC_TX_ANT(__tx_desc)
239 #define SET_TX_DESC_PORT_ID_8822B(__tx_desc, __value)                          \
240         SET_TX_DESC_PORT_ID(__tx_desc, __value)
241 #define GET_TX_DESC_PORT_ID_8822B(__tx_desc) GET_TX_DESC_PORT_ID(__tx_desc)
242 #define SET_TX_DESC_MULTIPLE_PORT_8822B(__tx_desc, __value)                    \
243         SET_TX_DESC_MULTIPLE_PORT(__tx_desc, __value)
244 #define GET_TX_DESC_MULTIPLE_PORT_8822B(__tx_desc)                             \
245         GET_TX_DESC_MULTIPLE_PORT(__tx_desc)
246 #define SET_TX_DESC_SIGNALING_TAPKT_EN_8822B(__tx_desc, __value)               \
247         SET_TX_DESC_SIGNALING_TAPKT_EN(__tx_desc, __value)
248 #define GET_TX_DESC_SIGNALING_TAPKT_EN_8822B(__tx_desc)                        \
249         GET_TX_DESC_SIGNALING_TAPKT_EN(__tx_desc)
250 #define SET_TX_DESC_RTS_SC_8822B(__tx_desc, __value)                           \
251         SET_TX_DESC_RTS_SC(__tx_desc, __value)
252 #define GET_TX_DESC_RTS_SC_8822B(__tx_desc) GET_TX_DESC_RTS_SC(__tx_desc)
253 #define SET_TX_DESC_RTS_SHORT_8822B(__tx_desc, __value)                        \
254         SET_TX_DESC_RTS_SHORT(__tx_desc, __value)
255 #define GET_TX_DESC_RTS_SHORT_8822B(__tx_desc) GET_TX_DESC_RTS_SHORT(__tx_desc)
256 #define SET_TX_DESC_VCS_STBC_8822B(__tx_desc, __value)                         \
257         SET_TX_DESC_VCS_STBC(__tx_desc, __value)
258 #define GET_TX_DESC_VCS_STBC_8822B(__tx_desc) GET_TX_DESC_VCS_STBC(__tx_desc)
259 #define SET_TX_DESC_DATA_STBC_8822B(__tx_desc, __value)                        \
260         SET_TX_DESC_DATA_STBC(__tx_desc, __value)
261 #define GET_TX_DESC_DATA_STBC_8822B(__tx_desc) GET_TX_DESC_DATA_STBC(__tx_desc)
262 #define SET_TX_DESC_DATA_LDPC_8822B(__tx_desc, __value)                        \
263         SET_TX_DESC_DATA_LDPC(__tx_desc, __value)
264 #define GET_TX_DESC_DATA_LDPC_8822B(__tx_desc) GET_TX_DESC_DATA_LDPC(__tx_desc)
265 #define SET_TX_DESC_DATA_BW_8822B(__tx_desc, __value)                          \
266         SET_TX_DESC_DATA_BW(__tx_desc, __value)
267 #define GET_TX_DESC_DATA_BW_8822B(__tx_desc) GET_TX_DESC_DATA_BW(__tx_desc)
268 #define SET_TX_DESC_DATA_SHORT_8822B(__tx_desc, __value)                       \
269         SET_TX_DESC_DATA_SHORT(__tx_desc, __value)
270 #define GET_TX_DESC_DATA_SHORT_8822B(__tx_desc)                                \
271         GET_TX_DESC_DATA_SHORT(__tx_desc)
272 #define SET_TX_DESC_DATA_SC_8822B(__tx_desc, __value)                          \
273         SET_TX_DESC_DATA_SC(__tx_desc, __value)
274 #define GET_TX_DESC_DATA_SC_8822B(__tx_desc) GET_TX_DESC_DATA_SC(__tx_desc)
275
276 /*TXDESC_WORD6*/
277
278 #define SET_TX_DESC_ANTSEL_D_8822B(__tx_desc, __value)                         \
279         SET_TX_DESC_ANTSEL_D(__tx_desc, __value)
280 #define GET_TX_DESC_ANTSEL_D_8822B(__tx_desc) GET_TX_DESC_ANTSEL_D(__tx_desc)
281 #define SET_TX_DESC_ANT_MAPD_8822B(__tx_desc, __value)                         \
282         SET_TX_DESC_ANT_MAPD(__tx_desc, __value)
283 #define GET_TX_DESC_ANT_MAPD_8822B(__tx_desc) GET_TX_DESC_ANT_MAPD(__tx_desc)
284 #define SET_TX_DESC_ANT_MAPC_8822B(__tx_desc, __value)                         \
285         SET_TX_DESC_ANT_MAPC(__tx_desc, __value)
286 #define GET_TX_DESC_ANT_MAPC_8822B(__tx_desc) GET_TX_DESC_ANT_MAPC(__tx_desc)
287 #define SET_TX_DESC_ANT_MAPB_8822B(__tx_desc, __value)                         \
288         SET_TX_DESC_ANT_MAPB(__tx_desc, __value)
289 #define GET_TX_DESC_ANT_MAPB_8822B(__tx_desc) GET_TX_DESC_ANT_MAPB(__tx_desc)
290 #define SET_TX_DESC_ANT_MAPA_8822B(__tx_desc, __value)                         \
291         SET_TX_DESC_ANT_MAPA(__tx_desc, __value)
292 #define GET_TX_DESC_ANT_MAPA_8822B(__tx_desc) GET_TX_DESC_ANT_MAPA(__tx_desc)
293 #define SET_TX_DESC_ANTSEL_C_8822B(__tx_desc, __value)                         \
294         SET_TX_DESC_ANTSEL_C(__tx_desc, __value)
295 #define GET_TX_DESC_ANTSEL_C_8822B(__tx_desc) GET_TX_DESC_ANTSEL_C(__tx_desc)
296 #define SET_TX_DESC_ANTSEL_B_8822B(__tx_desc, __value)                         \
297         SET_TX_DESC_ANTSEL_B(__tx_desc, __value)
298 #define GET_TX_DESC_ANTSEL_B_8822B(__tx_desc) GET_TX_DESC_ANTSEL_B(__tx_desc)
299 #define SET_TX_DESC_ANTSEL_A_8822B(__tx_desc, __value)                         \
300         SET_TX_DESC_ANTSEL_A(__tx_desc, __value)
301 #define GET_TX_DESC_ANTSEL_A_8822B(__tx_desc) GET_TX_DESC_ANTSEL_A(__tx_desc)
302 #define SET_TX_DESC_MBSSID_8822B(__tx_desc, __value)                           \
303         SET_TX_DESC_MBSSID(__tx_desc, __value)
304 #define GET_TX_DESC_MBSSID_8822B(__tx_desc) GET_TX_DESC_MBSSID(__tx_desc)
305 #define SET_TX_DESC_SW_DEFINE_8822B(__tx_desc, __value)                        \
306         SET_TX_DESC_SW_DEFINE(__tx_desc, __value)
307 #define GET_TX_DESC_SW_DEFINE_8822B(__tx_desc) GET_TX_DESC_SW_DEFINE(__tx_desc)
308
309 /*TXDESC_WORD7*/
310
311 #define SET_TX_DESC_DMA_TXAGG_NUM_8822B(__tx_desc, __value)                    \
312         SET_TX_DESC_DMA_TXAGG_NUM(__tx_desc, __value)
313 #define GET_TX_DESC_DMA_TXAGG_NUM_8822B(__tx_desc)                             \
314         GET_TX_DESC_DMA_TXAGG_NUM(__tx_desc)
315 #define SET_TX_DESC_FINAL_DATA_RATE_8822B(__tx_desc, __value)                  \
316         SET_TX_DESC_FINAL_DATA_RATE(__tx_desc, __value)
317 #define GET_TX_DESC_FINAL_DATA_RATE_8822B(__tx_desc)                           \
318         GET_TX_DESC_FINAL_DATA_RATE(__tx_desc)
319 #define SET_TX_DESC_NTX_MAP_8822B(__tx_desc, __value)                          \
320         SET_TX_DESC_NTX_MAP(__tx_desc, __value)
321 #define GET_TX_DESC_NTX_MAP_8822B(__tx_desc) GET_TX_DESC_NTX_MAP(__tx_desc)
322 #define SET_TX_DESC_TX_BUFF_SIZE_8822B(__tx_desc, __value)                     \
323         SET_TX_DESC_TX_BUFF_SIZE(__tx_desc, __value)
324 #define GET_TX_DESC_TX_BUFF_SIZE_8822B(__tx_desc)                              \
325         GET_TX_DESC_TX_BUFF_SIZE(__tx_desc)
326 #define SET_TX_DESC_TXDESC_CHECKSUM_8822B(__tx_desc, __value)                  \
327         SET_TX_DESC_TXDESC_CHECKSUM(__tx_desc, __value)
328 #define GET_TX_DESC_TXDESC_CHECKSUM_8822B(__tx_desc)                           \
329         GET_TX_DESC_TXDESC_CHECKSUM(__tx_desc)
330 #define SET_TX_DESC_TIMESTAMP_8822B(__tx_desc, __value)                        \
331         SET_TX_DESC_TIMESTAMP(__tx_desc, __value)
332 #define GET_TX_DESC_TIMESTAMP_8822B(__tx_desc) GET_TX_DESC_TIMESTAMP(__tx_desc)
333
334 /*TXDESC_WORD8*/
335
336 #define SET_TX_DESC_TXWIFI_CP_8822B(__tx_desc, __value)                        \
337         SET_TX_DESC_TXWIFI_CP(__tx_desc, __value)
338 #define GET_TX_DESC_TXWIFI_CP_8822B(__tx_desc) GET_TX_DESC_TXWIFI_CP(__tx_desc)
339 #define SET_TX_DESC_MAC_CP_8822B(__tx_desc, __value)                           \
340         SET_TX_DESC_MAC_CP(__tx_desc, __value)
341 #define GET_TX_DESC_MAC_CP_8822B(__tx_desc) GET_TX_DESC_MAC_CP(__tx_desc)
342 #define SET_TX_DESC_STW_PKTRE_DIS_8822B(__tx_desc, __value)                    \
343         SET_TX_DESC_STW_PKTRE_DIS(__tx_desc, __value)
344 #define GET_TX_DESC_STW_PKTRE_DIS_8822B(__tx_desc)                             \
345         GET_TX_DESC_STW_PKTRE_DIS(__tx_desc)
346 #define SET_TX_DESC_STW_RB_DIS_8822B(__tx_desc, __value)                       \
347         SET_TX_DESC_STW_RB_DIS(__tx_desc, __value)
348 #define GET_TX_DESC_STW_RB_DIS_8822B(__tx_desc)                                \
349         GET_TX_DESC_STW_RB_DIS(__tx_desc)
350 #define SET_TX_DESC_STW_RATE_DIS_8822B(__tx_desc, __value)                     \
351         SET_TX_DESC_STW_RATE_DIS(__tx_desc, __value)
352 #define GET_TX_DESC_STW_RATE_DIS_8822B(__tx_desc)                              \
353         GET_TX_DESC_STW_RATE_DIS(__tx_desc)
354 #define SET_TX_DESC_STW_ANT_DIS_8822B(__tx_desc, __value)                      \
355         SET_TX_DESC_STW_ANT_DIS(__tx_desc, __value)
356 #define GET_TX_DESC_STW_ANT_DIS_8822B(__tx_desc)                               \
357         GET_TX_DESC_STW_ANT_DIS(__tx_desc)
358 #define SET_TX_DESC_STW_EN_8822B(__tx_desc, __value)                           \
359         SET_TX_DESC_STW_EN(__tx_desc, __value)
360 #define GET_TX_DESC_STW_EN_8822B(__tx_desc) GET_TX_DESC_STW_EN(__tx_desc)
361 #define SET_TX_DESC_SMH_EN_8822B(__tx_desc, __value)                           \
362         SET_TX_DESC_SMH_EN(__tx_desc, __value)
363 #define GET_TX_DESC_SMH_EN_8822B(__tx_desc) GET_TX_DESC_SMH_EN(__tx_desc)
364 #define SET_TX_DESC_TAILPAGE_L_8822B(__tx_desc, __value)                       \
365         SET_TX_DESC_TAILPAGE_L(__tx_desc, __value)
366 #define GET_TX_DESC_TAILPAGE_L_8822B(__tx_desc)                                \
367         GET_TX_DESC_TAILPAGE_L(__tx_desc)
368 #define SET_TX_DESC_SDIO_DMASEQ_8822B(__tx_desc, __value)                      \
369         SET_TX_DESC_SDIO_DMASEQ(__tx_desc, __value)
370 #define GET_TX_DESC_SDIO_DMASEQ_8822B(__tx_desc)                               \
371         GET_TX_DESC_SDIO_DMASEQ(__tx_desc)
372 #define SET_TX_DESC_NEXTHEADPAGE_L_8822B(__tx_desc, __value)                   \
373         SET_TX_DESC_NEXTHEADPAGE_L(__tx_desc, __value)
374 #define GET_TX_DESC_NEXTHEADPAGE_L_8822B(__tx_desc)                            \
375         GET_TX_DESC_NEXTHEADPAGE_L(__tx_desc)
376 #define SET_TX_DESC_EN_HWSEQ_8822B(__tx_desc, __value)                         \
377         SET_TX_DESC_EN_HWSEQ(__tx_desc, __value)
378 #define GET_TX_DESC_EN_HWSEQ_8822B(__tx_desc) GET_TX_DESC_EN_HWSEQ(__tx_desc)
379 #define SET_TX_DESC_EN_HWEXSEQ_8822B(__tx_desc, __value)                       \
380         SET_TX_DESC_EN_HWEXSEQ(__tx_desc, __value)
381 #define GET_TX_DESC_EN_HWEXSEQ_8822B(__tx_desc)                                \
382         GET_TX_DESC_EN_HWEXSEQ(__tx_desc)
383 #define SET_TX_DESC_DATA_RC_8822B(__tx_desc, __value)                          \
384         SET_TX_DESC_DATA_RC(__tx_desc, __value)
385 #define GET_TX_DESC_DATA_RC_8822B(__tx_desc) GET_TX_DESC_DATA_RC(__tx_desc)
386 #define SET_TX_DESC_BAR_RTY_TH_8822B(__tx_desc, __value)                       \
387         SET_TX_DESC_BAR_RTY_TH(__tx_desc, __value)
388 #define GET_TX_DESC_BAR_RTY_TH_8822B(__tx_desc)                                \
389         GET_TX_DESC_BAR_RTY_TH(__tx_desc)
390 #define SET_TX_DESC_RTS_RC_8822B(__tx_desc, __value)                           \
391         SET_TX_DESC_RTS_RC(__tx_desc, __value)
392 #define GET_TX_DESC_RTS_RC_8822B(__tx_desc) GET_TX_DESC_RTS_RC(__tx_desc)
393
394 /*TXDESC_WORD9*/
395
396 #define SET_TX_DESC_TAILPAGE_H_8822B(__tx_desc, __value)                       \
397         SET_TX_DESC_TAILPAGE_H(__tx_desc, __value)
398 #define GET_TX_DESC_TAILPAGE_H_8822B(__tx_desc)                                \
399         GET_TX_DESC_TAILPAGE_H(__tx_desc)
400 #define SET_TX_DESC_NEXTHEADPAGE_H_8822B(__tx_desc, __value)                   \
401         SET_TX_DESC_NEXTHEADPAGE_H(__tx_desc, __value)
402 #define GET_TX_DESC_NEXTHEADPAGE_H_8822B(__tx_desc)                            \
403         GET_TX_DESC_NEXTHEADPAGE_H(__tx_desc)
404 #define SET_TX_DESC_SW_SEQ_8822B(__tx_desc, __value)                           \
405         SET_TX_DESC_SW_SEQ(__tx_desc, __value)
406 #define GET_TX_DESC_SW_SEQ_8822B(__tx_desc) GET_TX_DESC_SW_SEQ(__tx_desc)
407 #define SET_TX_DESC_TXBF_PATH_8822B(__tx_desc, __value)                        \
408         SET_TX_DESC_TXBF_PATH(__tx_desc, __value)
409 #define GET_TX_DESC_TXBF_PATH_8822B(__tx_desc) GET_TX_DESC_TXBF_PATH(__tx_desc)
410 #define SET_TX_DESC_PADDING_LEN_8822B(__tx_desc, __value)                      \
411         SET_TX_DESC_PADDING_LEN(__tx_desc, __value)
412 #define GET_TX_DESC_PADDING_LEN_8822B(__tx_desc)                               \
413         GET_TX_DESC_PADDING_LEN(__tx_desc)
414 #define SET_TX_DESC_GROUP_BIT_IE_OFFSET_8822B(__tx_desc, __value)              \
415         SET_TX_DESC_GROUP_BIT_IE_OFFSET(__tx_desc, __value)
416 #define GET_TX_DESC_GROUP_BIT_IE_OFFSET_8822B(__tx_desc)                       \
417         GET_TX_DESC_GROUP_BIT_IE_OFFSET(__tx_desc)
418
419 /*WORD10*/
420
421 #define SET_TX_DESC_MU_DATARATE_8822B(__tx_desc, __value)                      \
422         SET_TX_DESC_MU_DATARATE(__tx_desc, __value)
423 #define GET_TX_DESC_MU_DATARATE_8822B(__tx_desc)                               \
424         GET_TX_DESC_MU_DATARATE(__tx_desc)
425 #define SET_TX_DESC_MU_RC_8822B(__tx_desc, __value)                            \
426         SET_TX_DESC_MU_RC(__tx_desc, __value)
427 #define GET_TX_DESC_MU_RC_8822B(__tx_desc) GET_TX_DESC_MU_RC(__tx_desc)
428 #define SET_TX_DESC_SND_PKT_SEL_8822B(__tx_desc, __value)                      \
429         SET_TX_DESC_SND_PKT_SEL(__tx_desc, __value)
430 #define GET_TX_DESC_SND_PKT_SEL_8822B(__tx_desc)                               \
431         GET_TX_DESC_SND_PKT_SEL(__tx_desc)
432
433 #endif