xref: /wlan-driver/fw-api/hw/peach/v2/tlv_hdr.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.
3*5113495bSYour Name  *
4*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for any
5*5113495bSYour Name  * purpose with or without fee is hereby granted, provided that the above
6*5113495bSYour Name  * copyright notice and this permission notice appear in all copies.
7*5113495bSYour Name  *
8*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9*5113495bSYour Name  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10*5113495bSYour Name  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11*5113495bSYour Name  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12*5113495bSYour Name  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13*5113495bSYour Name  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14*5113495bSYour Name  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*5113495bSYour Name  */
16*5113495bSYour Name 
17*5113495bSYour Name 
18*5113495bSYour Name #ifndef _TLV_HDR_H_
19*5113495bSYour Name #define _TLV_HDR_H_
20*5113495bSYour Name 
21*5113495bSYour Name #define _TLV_USERID_WIDTH_      6
22*5113495bSYour Name #define _TLV_DATA_WIDTH_        32
23*5113495bSYour Name #define _TLV_TAG_WIDTH_         9
24*5113495bSYour Name 
25*5113495bSYour Name #define _TLV_MRV_EN_LEN_WIDTH_  9
26*5113495bSYour Name #define _TLV_MRV_DIS_LEN_WIDTH_ 12
27*5113495bSYour Name 
28*5113495bSYour Name #define _TLV_16_DATA_WIDTH_     16
29*5113495bSYour Name #define _TLV_16_TAG_WIDTH_      5
30*5113495bSYour Name #define _TLV_16_LEN_WIDTH_      4
31*5113495bSYour Name #define _TLV_CTAG_WIDTH_        5
32*5113495bSYour Name #define _TLV_44_DATA_WIDTH_     44
33*5113495bSYour Name #define _TLV_64_DATA_WIDTH_     64
34*5113495bSYour Name #define _TLV_76_DATA_WIDTH_     64
35*5113495bSYour Name #define _TLV_CDATA_WIDTH_       32
36*5113495bSYour Name #define _TLV_CDATA_76_WIDTH_    64
37*5113495bSYour Name 
38*5113495bSYour Name struct tlv_usr_16_tlword_t {
39*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
40*5113495bSYour Name            uint16_t             tlv_cflg_reserved   :   1,
41*5113495bSYour Name                                 tlv_tag             :   _TLV_16_TAG_WIDTH_,
42*5113495bSYour Name                                 tlv_len             :   _TLV_16_LEN_WIDTH_,
43*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_;
44*5113495bSYour Name #else
45*5113495bSYour Name            uint16_t             tlv_usrid           :   _TLV_USERID_WIDTH_,
46*5113495bSYour Name                                 tlv_len             :   _TLV_16_LEN_WIDTH_,
47*5113495bSYour Name                                 tlv_tag             :   _TLV_16_TAG_WIDTH_,
48*5113495bSYour Name                                 tlv_cflg_reserved   :   1;
49*5113495bSYour Name #endif
50*5113495bSYour Name };
51*5113495bSYour Name 
52*5113495bSYour Name struct tlv_16_tlword_t {
53*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
54*5113495bSYour Name            uint16_t             tlv_cflg_reserved   :   1,
55*5113495bSYour Name                                 tlv_len             :   _TLV_16_LEN_WIDTH_,
56*5113495bSYour Name                                 tlv_tag             :   _TLV_16_TAG_WIDTH_,
57*5113495bSYour Name                                 tlv_reserved        :   6;
58*5113495bSYour Name #else
59*5113495bSYour Name            uint16_t             tlv_reserved        :   6,
60*5113495bSYour Name                                 tlv_tag             :   _TLV_16_TAG_WIDTH_,
61*5113495bSYour Name                                 tlv_len             :   _TLV_16_LEN_WIDTH_,
62*5113495bSYour Name                                 tlv_cflg_reserved   :   1;
63*5113495bSYour Name #endif
64*5113495bSYour Name };
65*5113495bSYour Name 
66*5113495bSYour Name struct tlv_mac_usr_32_tlword_t {
67*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
68*5113495bSYour Name            uint32_t             tlv_cflg_reserved   :   1,
69*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
70*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
71*5113495bSYour Name                                 tlv_src_linkid      :   3,
72*5113495bSYour Name                                 tlv_mrv             :   1,
73*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_;
74*5113495bSYour Name #else
75*5113495bSYour Name            uint32_t             tlv_usrid           :   _TLV_USERID_WIDTH_,
76*5113495bSYour Name                                 tlv_mrv             :   1,
77*5113495bSYour Name                                 tlv_src_linkid      :   3,
78*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
79*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
80*5113495bSYour Name                                 tlv_cflg_reserved   :   1;
81*5113495bSYour Name #endif
82*5113495bSYour Name };
83*5113495bSYour Name 
84*5113495bSYour Name struct tlv_mac_32_tlword_t {
85*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
86*5113495bSYour Name            uint32_t             tlv_cflg_reserved   :   1,
87*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
88*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
89*5113495bSYour Name                                 tlv_src_linkid      :   3,
90*5113495bSYour Name                                 tlv_mrv             :   1,
91*5113495bSYour Name                                 tlv_reserved        :   6;
92*5113495bSYour Name #else
93*5113495bSYour Name            uint32_t             tlv_reserved        :   6,
94*5113495bSYour Name                                 tlv_mrv             :   1,
95*5113495bSYour Name                                 tlv_src_linkid      :   3,
96*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
97*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
98*5113495bSYour Name                                 tlv_cflg_reserved   :   1;
99*5113495bSYour Name #endif
100*5113495bSYour Name };
101*5113495bSYour Name 
102*5113495bSYour Name struct tlv_mac_usr_64_tlword_t {
103*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
104*5113495bSYour Name            uint64_t             tlv_cflg_reserved   :   1,
105*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
106*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
107*5113495bSYour Name                                 tlv_src_linkid      :   3,
108*5113495bSYour Name                                 tlv_mrv             :   1,
109*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_,
110*5113495bSYour Name #else
111*5113495bSYour Name            uint64_t             tlv_usrid           :   _TLV_USERID_WIDTH_,
112*5113495bSYour Name                                 tlv_mrv             :   1,
113*5113495bSYour Name                                 tlv_src_linkid      :   3,
114*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
115*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
116*5113495bSYour Name                                 tlv_cflg_reserved   :   1,
117*5113495bSYour Name #endif
118*5113495bSYour Name                                 tlv_reserved        :   32;
119*5113495bSYour Name };
120*5113495bSYour Name 
121*5113495bSYour Name struct tlv_mac_64_tlword_t {
122*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
123*5113495bSYour Name            uint64_t             tlv_cflg_reserved   :   1,
124*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
125*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
126*5113495bSYour Name                                 tlv_src_linkid      :   3,
127*5113495bSYour Name                                 tlv_mrv             :   1,
128*5113495bSYour Name                                 tlv_reserved        :   38;
129*5113495bSYour Name #else
130*5113495bSYour Name            uint64_t             tlv_usrid_reserved  :   _TLV_USERID_WIDTH_,
131*5113495bSYour Name                                 tlv_mrv             :   1,
132*5113495bSYour Name                                 tlv_src_linkid      :   3,
133*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
134*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
135*5113495bSYour Name                                 tlv_cflg_reserved   :   1,
136*5113495bSYour Name                                 tlv_reserved        :   32;
137*5113495bSYour Name #endif
138*5113495bSYour Name };
139*5113495bSYour Name 
140*5113495bSYour Name struct tlv_mac_usr_44_tlword_t {
141*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
142*5113495bSYour Name            uint64_t             tlv_compression     :   1,
143*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
144*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
145*5113495bSYour Name                                 tlv_src_linkid      :   3,
146*5113495bSYour Name                                 tlv_mrv             :   1,
147*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_,
148*5113495bSYour Name                                 tlv_reserved        :   10,
149*5113495bSYour Name                                 pad_44to64_bit      :   22;
150*5113495bSYour Name #else
151*5113495bSYour Name            uint64_t             tlv_usrid           :   _TLV_USERID_WIDTH_,
152*5113495bSYour Name                                 tlv_mrv             :   1,
153*5113495bSYour Name                                 tlv_src_linkid      :   3,
154*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
155*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
156*5113495bSYour Name                                 tlv_compression     :   1,
157*5113495bSYour Name                                 pad_44to64_bit      :   22,
158*5113495bSYour Name                                 tlv_reserved        :   10;
159*5113495bSYour Name #endif
160*5113495bSYour Name };
161*5113495bSYour Name 
162*5113495bSYour Name struct tlv_mac_44_tlword_t {
163*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
164*5113495bSYour Name            uint64_t             tlv_compression     :   1,
165*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
166*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
167*5113495bSYour Name                                 tlv_src_linkid      :   3,
168*5113495bSYour Name                                 tlv_mrv             :   1,
169*5113495bSYour Name                                 tlv_reserved        :   16,
170*5113495bSYour Name                                 pad_44to64_bit      :   22;
171*5113495bSYour Name #else
172*5113495bSYour Name            uint64_t             tlv_usrid_reserved  :   _TLV_USERID_WIDTH_,
173*5113495bSYour Name                                 tlv_mrv             :   1,
174*5113495bSYour Name                                 tlv_src_linkid      :   3,
175*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
176*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
177*5113495bSYour Name                                 tlv_compression     :   1,
178*5113495bSYour Name                                 pad_44to64_bit      :   22,
179*5113495bSYour Name                                 tlv_reserved        :   10;
180*5113495bSYour Name #endif
181*5113495bSYour Name };
182*5113495bSYour Name 
183*5113495bSYour Name struct tlv_mac_usr_76_tlword_t {
184*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
185*5113495bSYour Name            uint64_t             tlv_compression     :   1,
186*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
187*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
188*5113495bSYour Name                                 tlv_src_linkid      :   3,
189*5113495bSYour Name                                 tlv_mrv             :   1,
190*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_,
191*5113495bSYour Name #else
192*5113495bSYour Name            uint64_t             tlv_usrid           :   _TLV_USERID_WIDTH_,
193*5113495bSYour Name                                 tlv_mrv             :   1,
194*5113495bSYour Name                                 tlv_src_linkid      :   3,
195*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
196*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
197*5113495bSYour Name                                 tlv_compression     :   1,
198*5113495bSYour Name #endif
199*5113495bSYour Name                                 tlv_reserved        :   32;
200*5113495bSYour Name            uint64_t             pad_64to128_bit     :   64;
201*5113495bSYour Name };
202*5113495bSYour Name 
203*5113495bSYour Name struct tlv_mac_76_tlword_t {
204*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
205*5113495bSYour Name            uint64_t             tlv_compression     :   1,
206*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
207*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
208*5113495bSYour Name                                 tlv_src_linkid      :   3,
209*5113495bSYour Name                                 tlv_mrv             :   1,
210*5113495bSYour Name                                 tlv_reserved        :   38;
211*5113495bSYour Name #else
212*5113495bSYour Name            uint64_t             tlv_usrid_reserved  :   _TLV_USERID_WIDTH_,
213*5113495bSYour Name                                 tlv_mrv             :   1,
214*5113495bSYour Name                                 tlv_src_linkid      :   3,
215*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
216*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
217*5113495bSYour Name                                 tlv_compression     :   1,
218*5113495bSYour Name                                 tlv_reserved        :   32;
219*5113495bSYour Name #endif
220*5113495bSYour Name            uint64_t             pad_64to128_bit     :   64;
221*5113495bSYour Name };
222*5113495bSYour Name 
223*5113495bSYour Name struct tlv_usr_c_44_tlword_t {
224*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
225*5113495bSYour Name            uint64_t             tlv_compression     :   1,
226*5113495bSYour Name                                 tlv_ctag            :   _TLV_CTAG_WIDTH_,
227*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_,
228*5113495bSYour Name                                 tlv_cdata           :   _TLV_CDATA_WIDTH_,
229*5113495bSYour Name                                 pad_44to64_bit      :   20;
230*5113495bSYour Name #else
231*5113495bSYour Name            uint64_t             tlv_cdata_lower_20  :   20,
232*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_,
233*5113495bSYour Name                                 tlv_ctag            :   _TLV_CTAG_WIDTH_,
234*5113495bSYour Name                                 tlv_compression     :   1,
235*5113495bSYour Name                                 pad_44to64_bit      :   20,
236*5113495bSYour Name                                 tlv_cdata_upper_12  :   12;
237*5113495bSYour Name #endif
238*5113495bSYour Name };
239*5113495bSYour Name 
240*5113495bSYour Name struct tlv_usr_c_76_tlword_t {
241*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
242*5113495bSYour Name            uint64_t             tlv_compression     :   1,
243*5113495bSYour Name                                 tlv_ctag            :   _TLV_CTAG_WIDTH_,
244*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_,
245*5113495bSYour Name                                 tlv_cdata_lower_52  :   52;
246*5113495bSYour Name            uint64_t             tlv_cdata_upper_12  :   12,
247*5113495bSYour Name                                 pad_76to128_bit     :   52;
248*5113495bSYour Name #else
249*5113495bSYour Name            uint64_t             tlv_cdata_lower_20  :   20,
250*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_,
251*5113495bSYour Name                                 tlv_ctag            :   _TLV_CTAG_WIDTH_,
252*5113495bSYour Name                                 tlv_compression     :   1,
253*5113495bSYour Name                                 tlv_cdata_middle_32 :   32;
254*5113495bSYour Name            uint64_t             pad_76to96_bit      :   20,
255*5113495bSYour Name                                 tlv_cdata_upper_12  :   12,
256*5113495bSYour Name                                 pad_96to128_bit     :   32;
257*5113495bSYour Name #endif
258*5113495bSYour Name };
259*5113495bSYour Name 
260*5113495bSYour Name struct tlv_usr_32_hdr {
261*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
262*5113495bSYour Name            uint32_t             tlv_cflg_reserved   :   1,
263*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
264*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
265*5113495bSYour Name                                 tlv_src_linkid      :   3,
266*5113495bSYour Name                                 tlv_mrv             :   1,
267*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_;
268*5113495bSYour Name #else
269*5113495bSYour Name            uint32_t             tlv_usrid           :   _TLV_USERID_WIDTH_,
270*5113495bSYour Name                                 tlv_mrv             :   1,
271*5113495bSYour Name                                 tlv_src_linkid      :   3,
272*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
273*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
274*5113495bSYour Name                                 tlv_cflg_reserved   :   1;
275*5113495bSYour Name #endif
276*5113495bSYour Name };
277*5113495bSYour Name 
278*5113495bSYour Name struct tlv_32_hdr {
279*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
280*5113495bSYour Name            uint32_t             tlv_cflg_reserved   :   1,
281*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
282*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
283*5113495bSYour Name                                 tlv_src_linkid      :   3,
284*5113495bSYour Name                                 tlv_mrv             :   1,
285*5113495bSYour Name                                 tlv_reserved        :   6;
286*5113495bSYour Name #else
287*5113495bSYour Name            uint32_t             tlv_reserved        :   6,
288*5113495bSYour Name                                 tlv_mrv             :   1,
289*5113495bSYour Name                                 tlv_src_linkid      :   3,
290*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
291*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
292*5113495bSYour Name                                 tlv_cflg_reserved   :   1;
293*5113495bSYour Name #endif
294*5113495bSYour Name };
295*5113495bSYour Name 
296*5113495bSYour Name struct tlv_mlo_usr_64_tlw32_t {
297*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
298*5113495bSYour Name            uint32_t             tlv_cflg_reserved   :   1,
299*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
300*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_EN_LEN_WIDTH_,
301*5113495bSYour Name                                 tlv_dst_linkid      :   3,
302*5113495bSYour Name                                 tlv_src_linkid      :   3,
303*5113495bSYour Name                                 tlv_mrv             :   1,
304*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_;
305*5113495bSYour Name #else
306*5113495bSYour Name            uint32_t             tlv_usrid           :   _TLV_USERID_WIDTH_,
307*5113495bSYour Name                                 tlv_mrv             :   1,
308*5113495bSYour Name                                 tlv_src_linkid      :   3,
309*5113495bSYour Name                                 tlv_dst_linkid      :   3,
310*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_EN_LEN_WIDTH_,
311*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
312*5113495bSYour Name                                 tlv_cflg_reserved   :   1;
313*5113495bSYour Name #endif
314*5113495bSYour Name            uint32_t             pad_32to64_bit      :   32;
315*5113495bSYour Name };
316*5113495bSYour Name 
317*5113495bSYour Name struct tlv_mlo_64_tlw32_t {
318*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
319*5113495bSYour Name            uint32_t             tlv_cflg_reserved   :   1,
320*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
321*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_EN_LEN_WIDTH_,
322*5113495bSYour Name                                 tlv_dst_linkid      :   3,
323*5113495bSYour Name                                 tlv_src_linkid      :   3,
324*5113495bSYour Name                                 tlv_mrv             :   1,
325*5113495bSYour Name                                 tlv_reserved        :   _TLV_USERID_WIDTH_;
326*5113495bSYour Name #else
327*5113495bSYour Name            uint32_t             tlv_reserved        :   _TLV_USERID_WIDTH_,
328*5113495bSYour Name                                 tlv_mrv             :   1,
329*5113495bSYour Name                                 tlv_src_linkid      :   3,
330*5113495bSYour Name                                 tlv_dst_linkid      :   3,
331*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_EN_LEN_WIDTH_,
332*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
333*5113495bSYour Name                                 tlv_cflg_reserved   :   1;
334*5113495bSYour Name #endif
335*5113495bSYour Name            uint32_t             pad_32to64_bit      :   32;
336*5113495bSYour Name };
337*5113495bSYour Name 
338*5113495bSYour Name struct tlv_mac_usr_64_tlw32_t {
339*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
340*5113495bSYour Name            uint32_t             tlv_cflg_reserved   :   1,
341*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
342*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
343*5113495bSYour Name                                 tlv_src_linkid      :   3,
344*5113495bSYour Name                                 tlv_mrv             :   1,
345*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_;
346*5113495bSYour Name #else
347*5113495bSYour Name            uint32_t             tlv_usrid           :   _TLV_USERID_WIDTH_,
348*5113495bSYour Name                                 tlv_mrv             :   1,
349*5113495bSYour Name                                 tlv_src_linkid      :   3,
350*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
351*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
352*5113495bSYour Name                                 tlv_cflg_reserved   :   1;
353*5113495bSYour Name #endif
354*5113495bSYour Name            uint32_t             pad_32to64_bit      :   32;
355*5113495bSYour Name };
356*5113495bSYour Name 
357*5113495bSYour Name struct tlv_mac_64_tlw32_t {
358*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
359*5113495bSYour Name            uint32_t             tlv_cflg_reserved   :   1,
360*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
361*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
362*5113495bSYour Name                                 tlv_src_linkid      :   3,
363*5113495bSYour Name                                 tlv_mrv             :   1,
364*5113495bSYour Name                                 tlv_reserved        :   _TLV_USERID_WIDTH_;
365*5113495bSYour Name #else
366*5113495bSYour Name            uint32_t             tlv_reserved        :   _TLV_USERID_WIDTH_,
367*5113495bSYour Name                                 tlv_mrv             :   1,
368*5113495bSYour Name                                 tlv_src_linkid      :   3,
369*5113495bSYour Name                                 tlv_len             :   _TLV_MRV_DIS_LEN_WIDTH_,
370*5113495bSYour Name                                 tlv_tag             :   _TLV_TAG_WIDTH_,
371*5113495bSYour Name                                 tlv_cflg_reserved   :   1;
372*5113495bSYour Name #endif
373*5113495bSYour Name            uint32_t             pad_32to64_bit      :   32;
374*5113495bSYour Name };
375*5113495bSYour Name 
376*5113495bSYour Name struct tlv_usr_c_44_tlw32_t {
377*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
378*5113495bSYour Name            uint32_t             tlv_compression     :   1,
379*5113495bSYour Name                                 tlv_ctag            :   _TLV_CTAG_WIDTH_,
380*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_,
381*5113495bSYour Name                                 tlv_cdata_lower_20  :   20;
382*5113495bSYour Name            uint32_t             tlv_cdata_upper_12  :   12,
383*5113495bSYour Name                                 pad_44to64_bit      :   20;
384*5113495bSYour Name #else
385*5113495bSYour Name            uint32_t             tlv_cdata_lower_20  :   20,
386*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_,
387*5113495bSYour Name                                 tlv_ctag            :   _TLV_CTAG_WIDTH_,
388*5113495bSYour Name                                 tlv_compression     :   1;
389*5113495bSYour Name            uint32_t             pad_44to64_bit      :   20,
390*5113495bSYour Name                                 tlv_cdata_upper_12  :   12;
391*5113495bSYour Name #endif
392*5113495bSYour Name };
393*5113495bSYour Name 
394*5113495bSYour Name struct tlv_usr_c_76_tlw32_t {
395*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
396*5113495bSYour Name            uint32_t             tlv_compression     :   1,
397*5113495bSYour Name                                 tlv_ctag            :   _TLV_CTAG_WIDTH_,
398*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_,
399*5113495bSYour Name                                 tlv_cdata_lower_20  :   20;
400*5113495bSYour Name            uint32_t             tlv_cdata_middle_32 :   32;
401*5113495bSYour Name            uint32_t             tlv_cdata_upper_12  :   12,
402*5113495bSYour Name                                 pad_76to96_bit      :   20;
403*5113495bSYour Name            uint32_t             pad_96to128_bit     :   32;
404*5113495bSYour Name #else
405*5113495bSYour Name            uint32_t             tlv_cdata_lower_20  :   20,
406*5113495bSYour Name                                 tlv_usrid           :   _TLV_USERID_WIDTH_,
407*5113495bSYour Name                                 tlv_ctag            :   _TLV_CTAG_WIDTH_,
408*5113495bSYour Name                                 tlv_compression     :   1;
409*5113495bSYour Name            uint32_t             tlv_cdata_middle_32 :   32;
410*5113495bSYour Name            uint32_t             pad_76to96_bit      :   20,
411*5113495bSYour Name                                 tlv_cdata_upper_12  :   12;
412*5113495bSYour Name            uint32_t             pad_96to128_bit     :   32;
413*5113495bSYour Name #endif
414*5113495bSYour Name };
415*5113495bSYour Name 
416*5113495bSYour Name #endif
417