hc
2024-05-08 f309769f8af08599af39b6de4f675784ce76530d
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
/******************************************************************************
 *
 * Copyright(c) 2016 - 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 _HALMAC_TX_DESC_IE_NIC_H_
#define _HALMAC_TX_DESC_IE_NIC_H_
#if (HALMAC_8814B_SUPPORT)
 
#define IE0_GET_TX_DESC_IE_END(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 31, 1)
#define IE0_SET_TX_DESC_IE_END(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 31, 1, value)
#define IE0_GET_TX_DESC_IE_UP(txdesc_ie)                                       \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 30, 1)
#define IE0_SET_TX_DESC_IE_UP(txdesc_ie, value)                                \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 30, 1, value)
#define IE0_GET_TX_DESC_IE_NUM(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 24, 4)
#define IE0_SET_TX_DESC_IE_NUM(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 24, 4, value)
#define IE0_GET_TX_DESC_ARFR_TABLE_SEL(txdesc_ie)                              \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 19, 1)
#define IE0_SET_TX_DESC_ARFR_TABLE_SEL(txdesc_ie, value)                       \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 19, 1, value)
#define IE0_GET_TX_DESC_ARFR_HT_EN(txdesc_ie)                                  \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 18, 1)
#define IE0_SET_TX_DESC_ARFR_HT_EN(txdesc_ie, value)                           \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 18, 1, value)
#define IE0_GET_TX_DESC_ARFR_OFDM_EN(txdesc_ie)                                \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 17, 1)
#define IE0_SET_TX_DESC_ARFR_OFDM_EN(txdesc_ie, value)                         \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 17, 1, value)
#define IE0_GET_TX_DESC_ARFR_CCK_EN(txdesc_ie)                                 \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 16, 1)
#define IE0_SET_TX_DESC_ARFR_CCK_EN(txdesc_ie, value)                          \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 16, 1, value)
#define IE0_GET_TX_DESC_HW_RTS_EN(txdesc_ie)                                   \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 9, 1)
#define IE0_SET_TX_DESC_HW_RTS_EN(txdesc_ie, value)                            \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 9, 1, value)
#define IE0_GET_TX_DESC_RTS_EN(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 8, 1)
#define IE0_SET_TX_DESC_RTS_EN(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 8, 1, value)
#define IE0_GET_TX_DESC_CTS2SELF(txdesc_ie)                                    \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 7, 1)
#define IE0_SET_TX_DESC_CTS2SELF(txdesc_ie, value)                             \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 7, 1, value)
#define IE0_GET_TX_DESC_RTY_LMT_EN(txdesc_ie)                                  \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 6, 1)
#define IE0_SET_TX_DESC_RTY_LMT_EN(txdesc_ie, value)                           \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 6, 1, value)
#define IE0_GET_TX_DESC_RTS_SHORT(txdesc_ie)                                   \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 5, 1)
#define IE0_SET_TX_DESC_RTS_SHORT(txdesc_ie, value)                            \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 5, 1, value)
#define IE0_GET_TX_DESC_DISDATAFB(txdesc_ie)                                   \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 4, 1)
#define IE0_SET_TX_DESC_DISDATAFB(txdesc_ie, value)                            \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 4, 1, value)
#define IE0_GET_TX_DESC_DISRTSFB(txdesc_ie)                                    \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 3, 1)
#define IE0_SET_TX_DESC_DISRTSFB(txdesc_ie, value)                             \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 3, 1, value)
#define IE0_GET_TX_DESC_DATA_SHORT(txdesc_ie)                                  \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 2, 1)
#define IE0_SET_TX_DESC_DATA_SHORT(txdesc_ie, value)                           \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 2, 1, value)
#define IE0_GET_TX_DESC_TRY_RATE(txdesc_ie)                                    \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 1, 1)
#define IE0_SET_TX_DESC_TRY_RATE(txdesc_ie, value)                             \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 1, 1, value)
#define IE0_GET_TX_DESC_USERATE(txdesc_ie)                                     \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 0, 1)
#define IE0_SET_TX_DESC_USERATE(txdesc_ie, value)                              \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 0, 1, value)
#define IE0_GET_TX_DESC_RTS_RTY_LOWEST_RATE(txdesc_ie)                         \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 27, 4)
#define IE0_SET_TX_DESC_RTS_RTY_LOWEST_RATE(txdesc_ie, value)                  \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 27, 4, value)
#define IE0_GET_TX_DESC_DATA_RTY_LOWEST_RATE(txdesc_ie)                        \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 22, 5)
#define IE0_SET_TX_DESC_DATA_RTY_LOWEST_RATE(txdesc_ie, value)                 \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 22, 5, value)
#define IE0_GET_TX_DESC_RTS_DATA_RTY_LMT(txdesc_ie)                            \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 16, 6)
#define IE0_SET_TX_DESC_RTS_DATA_RTY_LMT(txdesc_ie, value)                     \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 16, 6, value)
#define IE0_GET_TX_DESC_DATA_BW(txdesc_ie)                                     \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 12, 2)
#define IE0_SET_TX_DESC_DATA_BW(txdesc_ie, value)                              \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 12, 2, value)
#define IE0_GET_TX_DESC_RTSRATE(txdesc_ie)                                     \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 7, 4)
#define IE0_SET_TX_DESC_RTSRATE(txdesc_ie, value)                              \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 7, 4, value)
#define IE0_GET_TX_DESC_DATARATE(txdesc_ie)                                    \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 0, 7)
#define IE0_SET_TX_DESC_DATARATE(txdesc_ie, value)                             \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 0, 7, value)
#define IE1_GET_TX_DESC_IE_END(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 31, 1)
#define IE1_SET_TX_DESC_IE_END(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 31, 1, value)
#define IE1_GET_TX_DESC_IE_UP(txdesc_ie)                                       \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 30, 1)
#define IE1_SET_TX_DESC_IE_UP(txdesc_ie, value)                                \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 30, 1, value)
#define IE1_GET_TX_DESC_IE_NUM(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 24, 4)
#define IE1_SET_TX_DESC_IE_NUM(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 24, 4, value)
#define IE1_GET_TX_DESC_AMPDU_DENSITY(txdesc_ie)                               \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 21, 3)
#define IE1_SET_TX_DESC_AMPDU_DENSITY(txdesc_ie, value)                        \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 21, 3, value)
#define IE1_GET_TX_DESC_MAX_AGG_NUM(txdesc_ie)                                 \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 16, 5)
#define IE1_SET_TX_DESC_MAX_AGG_NUM(txdesc_ie, value)                          \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 16, 5, value)
#define IE1_GET_TX_DESC_SECTYPE(txdesc_ie)                                     \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 14, 2)
#define IE1_SET_TX_DESC_SECTYPE(txdesc_ie, value)                              \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 14, 2, value)
#define IE1_GET_TX_DESC_MOREFRAG(txdesc_ie)                                    \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 13, 1)
#define IE1_SET_TX_DESC_MOREFRAG(txdesc_ie, value)                             \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 13, 1, value)
#define IE1_GET_TX_DESC_NOACM(txdesc_ie)                                       \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 12, 1)
#define IE1_SET_TX_DESC_NOACM(txdesc_ie, value)                                \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 12, 1, value)
#define IE1_GET_TX_DESC_BCNPKT_TSF_CTRL(txdesc_ie)                             \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 11, 1)
#define IE1_SET_TX_DESC_BCNPKT_TSF_CTRL(txdesc_ie, value)                      \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 11, 1, value)
#define IE1_GET_TX_DESC_NAVUSEHDR(txdesc_ie)                                   \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 10, 1)
#define IE1_SET_TX_DESC_NAVUSEHDR(txdesc_ie, value)                            \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 10, 1, value)
#define IE1_GET_TX_DESC_HTC(txdesc_ie) LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 9, 1)
#define IE1_SET_TX_DESC_HTC(txdesc_ie, value)                                  \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 9, 1, value)
#define IE1_GET_TX_DESC_BMC(txdesc_ie) LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 8, 1)
#define IE1_SET_TX_DESC_BMC(txdesc_ie, value)                                  \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 8, 1, value)
#define IE1_GET_TX_DESC_TX_PKT_AFTER_PIFS(txdesc_ie)                           \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 7, 1)
#define IE1_SET_TX_DESC_TX_PKT_AFTER_PIFS(txdesc_ie, value)                    \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 7, 1, value)
#define IE1_GET_TX_DESC_USE_MAX_TIME_EN(txdesc_ie)                             \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 6, 1)
#define IE1_SET_TX_DESC_USE_MAX_TIME_EN(txdesc_ie, value)                      \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 6, 1, value)
#define IE1_GET_TX_DESC_HW_SSN_SEL(txdesc_ie)                                  \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 4, 2)
#define IE1_SET_TX_DESC_HW_SSN_SEL(txdesc_ie, value)                           \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 4, 2, value)
#define IE1_GET_TX_DESC_DISQSELSEQ(txdesc_ie)                                  \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 3, 1)
#define IE1_SET_TX_DESC_DISQSELSEQ(txdesc_ie, value)                           \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 3, 1, value)
#define IE1_GET_TX_DESC_EN_HWSEQ(txdesc_ie)                                    \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 2, 1)
#define IE1_SET_TX_DESC_EN_HWSEQ(txdesc_ie, value)                             \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 2, 1, value)
#define IE1_GET_TX_DESC_EN_HWEXSEQ(txdesc_ie)                                  \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 1, 1)
#define IE1_SET_TX_DESC_EN_HWEXSEQ(txdesc_ie, value)                           \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 1, 1, value)
#define IE1_GET_TX_DESC_EN_DESC_ID(txdesc_ie)                                  \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 0, 1)
#define IE1_SET_TX_DESC_EN_DESC_ID(txdesc_ie, value)                           \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 0, 1, value)
#define IE1_GET_TX_DESC_AMPDU_MAX_TIME(txdesc_ie)                              \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 24, 8)
#define IE1_SET_TX_DESC_AMPDU_MAX_TIME(txdesc_ie, value)                       \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 24, 8, value)
#define IE1_GET_TX_DESC_P_AID(txdesc_ie)                                       \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 15, 9)
#define IE1_SET_TX_DESC_P_AID(txdesc_ie, value)                                \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 15, 9, value)
#define IE1_GET_TX_DESC_MOREDATA(txdesc_ie)                                    \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 14, 1)
#define IE1_SET_TX_DESC_MOREDATA(txdesc_ie, value)                             \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 14, 1, value)
#define IE1_GET_TX_DESC_SW_SEQ(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 0, 12)
#define IE1_SET_TX_DESC_SW_SEQ(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 0, 12, value)
#define IE2_GET_TX_DESC_IE_END(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 31, 1)
#define IE2_SET_TX_DESC_IE_END(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 31, 1, value)
#define IE2_GET_TX_DESC_IE_UP(txdesc_ie)                                       \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 30, 1)
#define IE2_SET_TX_DESC_IE_UP(txdesc_ie, value)                                \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 30, 1, value)
#define IE2_GET_TX_DESC_IE_NUM(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 24, 4)
#define IE2_SET_TX_DESC_IE_NUM(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 24, 4, value)
#define IE2_GET_TX_DESC_ADDR_CAM(txdesc_ie)                                    \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 16, 8)
#define IE2_SET_TX_DESC_ADDR_CAM(txdesc_ie, value)                             \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 16, 8, value)
#define IE2_GET_TX_DESC_MULTIPLE_PORT(txdesc_ie)                               \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 12, 3)
#define IE2_SET_TX_DESC_MULTIPLE_PORT(txdesc_ie, value)                        \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 12, 3, value)
#define IE2_GET_TX_DESC_RAW(txdesc_ie) LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 11, 1)
#define IE2_SET_TX_DESC_RAW(txdesc_ie, value)                                  \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 11, 1, value)
#define IE2_GET_TX_DESC_RDG_EN(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 10, 1)
#define IE2_SET_TX_DESC_RDG_EN(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 10, 1, value)
#define IE2_GET_TX_DESC_SPECIAL_CW(txdesc_ie)                                  \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 7, 1)
#define IE2_SET_TX_DESC_SPECIAL_CW(txdesc_ie, value)                           \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 7, 1, value)
#define IE2_GET_TX_DESC_POLLUTED(txdesc_ie)                                    \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 6, 1)
#define IE2_SET_TX_DESC_POLLUTED(txdesc_ie, value)                             \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 6, 1, value)
#define IE2_GET_TX_DESC_BT_NULL(txdesc_ie)                                     \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 5, 1)
#define IE2_SET_TX_DESC_BT_NULL(txdesc_ie, value)                              \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 5, 1, value)
#define IE2_GET_TX_DESC_NULL_1(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 4, 1)
#define IE2_SET_TX_DESC_NULL_1(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 4, 1, value)
#define IE2_GET_TX_DESC_NULL_0(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 3, 1)
#define IE2_SET_TX_DESC_NULL_0(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 3, 1, value)
#define IE2_GET_TX_DESC_TRI_FRAME(txdesc_ie)                                   \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 2, 1)
#define IE2_SET_TX_DESC_TRI_FRAME(txdesc_ie, value)                            \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 2, 1, value)
#define IE2_GET_TX_DESC_SPE_RPT(txdesc_ie)                                     \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 1, 1)
#define IE2_SET_TX_DESC_SPE_RPT(txdesc_ie, value)                              \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 1, 1, value)
#define IE2_GET_TX_DESC_FTM_EN(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 0, 1)
#define IE2_SET_TX_DESC_FTM_EN(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 0, 1, value)
#define IE2_GET_TX_DESC_MBSSID(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 27, 4)
#define IE2_SET_TX_DESC_MBSSID(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 27, 4, value)
#define IE2_GET_TX_DESC_GROUP_BIT_IE_OFFSET(txdesc_ie)                         \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 16, 11)
#define IE2_SET_TX_DESC_GROUP_BIT_IE_OFFSET(txdesc_ie, value)                  \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 16, 11, value)
#define IE2_GET_TX_DESC_RDG_NAV_EXT(txdesc_ie)                                 \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 15, 1)
#define IE2_SET_TX_DESC_RDG_NAV_EXT(txdesc_ie, value)                          \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 15, 1, value)
#define IE2_GET_TX_DESC_DROP_ID(txdesc_ie)                                     \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 12, 2)
#define IE2_SET_TX_DESC_DROP_ID(txdesc_ie, value)                              \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 12, 2, value)
#define IE2_GET_TX_DESC_SW_DEFINE(txdesc_ie)                                   \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 0, 12)
#define IE2_SET_TX_DESC_SW_DEFINE(txdesc_ie, value)                            \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 0, 12, value)
#define IE3_GET_TX_DESC_IE_END(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 31, 1)
#define IE3_SET_TX_DESC_IE_END(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 31, 1, value)
#define IE3_GET_TX_DESC_IE_UP(txdesc_ie)                                       \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 30, 1)
#define IE3_SET_TX_DESC_IE_UP(txdesc_ie, value)                                \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 30, 1, value)
#define IE3_GET_TX_DESC_IE_NUM(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 24, 4)
#define IE3_SET_TX_DESC_IE_NUM(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 24, 4, value)
#define IE3_GET_TX_DESC_DATA_SC(txdesc_ie)                                     \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 20, 4)
#define IE3_SET_TX_DESC_DATA_SC(txdesc_ie, value)                              \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 20, 4, value)
#define IE3_GET_TX_DESC_SIGNALING_TA_PKT_SC(txdesc_ie)                         \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 16, 4)
#define IE3_SET_TX_DESC_SIGNALING_TA_PKT_SC(txdesc_ie, value)                  \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 16, 4, value)
#define IE3_GET_TX_DESC_CTRL_CNT(txdesc_ie)                                    \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 8, 4)
#define IE3_SET_TX_DESC_CTRL_CNT(txdesc_ie, value)                             \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 8, 4, value)
#define IE3_GET_TX_DESC_CTRL_CNT_VALID(txdesc_ie)                              \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 1, 1)
#define IE3_SET_TX_DESC_CTRL_CNT_VALID(txdesc_ie, value)                       \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 1, 1, value)
#define IE3_GET_TX_DESC_SIGNALING_TA_PKT_EN(txdesc_ie)                         \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 0, 1)
#define IE3_SET_TX_DESC_SIGNALING_TA_PKT_EN(txdesc_ie, value)                  \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 0, 1, value)
#define IE3_GET_TX_DESC_G_ID(txdesc_ie)                                        \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 24, 6)
#define IE3_SET_TX_DESC_G_ID(txdesc_ie, value)                                 \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 24, 6, value)
#define IE3_GET_TX_DESC_SND_TARGET(txdesc_ie)                                  \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 16, 8)
#define IE3_SET_TX_DESC_SND_TARGET(txdesc_ie, value)                           \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 16, 8, value)
#define IE3_GET_TX_DESC_CCA_RTS(txdesc_ie)                                     \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 11, 2)
#define IE3_SET_TX_DESC_CCA_RTS(txdesc_ie, value)                              \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 11, 2, value)
#define IE3_GET_TX_DESC_SND_PKT_SEL(txdesc_ie)                                 \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 9, 2)
#define IE3_SET_TX_DESC_SND_PKT_SEL(txdesc_ie, value)                          \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 9, 2, value)
#define IE3_GET_TX_DESC_NDPA(txdesc_ie) LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 7, 2)
#define IE3_SET_TX_DESC_NDPA(txdesc_ie, value)                                 \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 7, 2, value)
#define IE3_GET_TX_DESC_MU_DATARATE(txdesc_ie)                                 \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 0, 7)
#define IE3_SET_TX_DESC_MU_DATARATE(txdesc_ie, value)                          \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 0, 7, value)
#define IE4_GET_TX_DESC_IE_END(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 31, 1)
#define IE4_SET_TX_DESC_IE_END(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 31, 1, value)
#define IE4_GET_TX_DESC_IE_UP(txdesc_ie)                                       \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 30, 1)
#define IE4_SET_TX_DESC_IE_UP(txdesc_ie, value)                                \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 30, 1, value)
#define IE4_GET_TX_DESC_IE_NUM(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 24, 4)
#define IE4_SET_TX_DESC_IE_NUM(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 24, 4, value)
#define IE4_GET_TX_DESC_VCS_STBC(txdesc_ie)                                    \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 10, 2)
#define IE4_SET_TX_DESC_VCS_STBC(txdesc_ie, value)                             \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 10, 2, value)
#define IE4_GET_TX_DESC_DATA_STBC(txdesc_ie)                                   \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 8, 2)
#define IE4_SET_TX_DESC_DATA_STBC(txdesc_ie, value)                            \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 8, 2, value)
#define IE4_GET_TX_DESC_DATA_LDPC(txdesc_ie)                                   \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 2, 1)
#define IE4_SET_TX_DESC_DATA_LDPC(txdesc_ie, value)                            \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 2, 1, value)
#define IE4_GET_TX_DESC_GF(txdesc_ie) LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 1, 1)
#define IE4_SET_TX_DESC_GF(txdesc_ie, value)                                   \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 1, 1, value)
#define IE4_GET_TX_DESC_LSIG_TXOP_EN(txdesc_ie)                                \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 0, 1)
#define IE4_SET_TX_DESC_LSIG_TXOP_EN(txdesc_ie, value)                         \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 0, 1, value)
#define IE4_GET_TX_DESC_PATH_MAPA(txdesc_ie)                                   \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 30, 2)
#define IE4_SET_TX_DESC_PATH_MAPA(txdesc_ie, value)                            \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 30, 2, value)
#define IE4_GET_TX_DESC_PATH_MAPB(txdesc_ie)                                   \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 28, 2)
#define IE4_SET_TX_DESC_PATH_MAPB(txdesc_ie, value)                            \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 28, 2, value)
#define IE4_GET_TX_DESC_PATH_MAPC(txdesc_ie)                                   \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 26, 2)
#define IE4_SET_TX_DESC_PATH_MAPC(txdesc_ie, value)                            \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 26, 2, value)
#define IE4_GET_TX_DESC_PATH_MAPD(txdesc_ie)                                   \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 24, 2)
#define IE4_SET_TX_DESC_PATH_MAPD(txdesc_ie, value)                            \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 24, 2, value)
#define IE4_GET_TX_DESC_ANTSEL_A(txdesc_ie)                                    \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 20, 4)
#define IE4_SET_TX_DESC_ANTSEL_A(txdesc_ie, value)                             \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 20, 4, value)
#define IE4_GET_TX_DESC_ANTSEL_B(txdesc_ie)                                    \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 16, 4)
#define IE4_SET_TX_DESC_ANTSEL_B(txdesc_ie, value)                             \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 16, 4, value)
#define IE4_GET_TX_DESC_ANTSEL_C(txdesc_ie)                                    \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 12, 4)
#define IE4_SET_TX_DESC_ANTSEL_C(txdesc_ie, value)                             \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 12, 4, value)
#define IE4_GET_TX_DESC_ANTSEL_D(txdesc_ie)                                    \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 8, 4)
#define IE4_SET_TX_DESC_ANTSEL_D(txdesc_ie, value)                             \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 8, 4, value)
#define IE4_GET_TX_DESC_NTX_PATH_EN(txdesc_ie)                                 \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 4, 4)
#define IE4_SET_TX_DESC_NTX_PATH_EN(txdesc_ie, value)                          \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 4, 4, value)
#define IE4_GET_TX_DESC_ANTLSEL_EN(txdesc_ie)                                  \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 3, 1)
#define IE4_SET_TX_DESC_ANTLSEL_EN(txdesc_ie, value)                           \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 3, 1, value)
#define IE4_GET_TX_DESC_TXPWR_OFSET_TYPE(txdesc_ie)                            \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 0, 2)
#define IE4_SET_TX_DESC_TXPWR_OFSET_TYPE(txdesc_ie, value)                     \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 0, 2, value)
#define IE5_GET_TX_DESC_IE_END(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 31, 1)
#define IE5_SET_TX_DESC_IE_END(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 31, 1, value)
#define IE5_GET_TX_DESC_IE_UP(txdesc_ie)                                       \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 30, 1)
#define IE5_SET_TX_DESC_IE_UP(txdesc_ie, value)                                \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 30, 1, value)
#define IE5_GET_TX_DESC_IE_NUM(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 24, 4)
#define IE5_SET_TX_DESC_IE_NUM(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 24, 4, value)
#define IE5_GET_TX_DESC_LEN1_L(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 17, 7)
#define IE5_SET_TX_DESC_LEN1_L(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 17, 7, value)
#define IE5_GET_TX_DESC_LEN0(txdesc_ie)                                        \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 4, 13)
#define IE5_SET_TX_DESC_LEN0(txdesc_ie, value)                                 \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 4, 13, value)
#define IE5_GET_TX_DESC_PKT_NUM(txdesc_ie)                                     \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x00, 0, 4)
#define IE5_SET_TX_DESC_PKT_NUM(txdesc_ie, value)                              \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x00, 0, 4, value)
#define IE5_GET_TX_DESC_LEN3(txdesc_ie)                                        \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 19, 13)
#define IE5_SET_TX_DESC_LEN3(txdesc_ie, value)                                 \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 19, 13, value)
#define IE5_GET_TX_DESC_LEN2(txdesc_ie)                                        \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 6, 13)
#define IE5_SET_TX_DESC_LEN2(txdesc_ie, value)                                 \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 6, 13, value)
#define IE5_GET_TX_DESC_LEN1_H(txdesc_ie)                                      \
   LE_BITS_TO_4BYTE(txdesc_ie + 0x04, 0, 6)
#define IE5_SET_TX_DESC_LEN1_H(txdesc_ie, value)                               \
   SET_BITS_TO_LE_4BYTE(txdesc_ie + 0x04, 0, 6, value)
 
#endif
 
#endif