xref: /wlan-driver/fw-api/hw/qca6750/v1/tlv_hdr.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2020 The Linux Foundation. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for
5  * any purpose with or without fee is hereby granted, provided that the
6  * above copyright notice and this permission notice appear in all
7  * copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16  * PERFORMANCE OF THIS SOFTWARE.
17  */
18 
19 //
20 
21 // DO NOT EDIT!  This file is automatically generated
22 
23 //               These definitions are tied to a particular hardware layout
24 
25 
26 
27 #ifndef _TLV_HDR_H_
28 
29 #define _TLV_HDR_H_
30 
31 #if !defined(__ASSEMBLER__)
32 
33 #endif
34 
35 
36 
37 struct tlv_usr_16_hdr {
38 
39    volatile uint16_t             tlv_cflg_reserved   :   1,
40 
41                                  tlv_tag             :   5,
42 
43                                  tlv_len             :   4,
44 
45                                  tlv_usrid           :   6;
46 
47 };
48 
49 
50 
51 struct tlv_16_hdr {
52 
53    volatile uint16_t             tlv_cflg_reserved   :   1,
54 
55                                  tlv_tag             :   5,
56 
57                                  tlv_len             :   4,
58 
59                                  tlv_reserved        :   6;
60 
61 };
62 
63 
64 
65 struct tlv_usr_32_hdr {
66 
67    volatile uint32_t             tlv_cflg_reserved   :   1,
68 
69                                  tlv_tag             :   9,
70 
71                                  tlv_len             :  16,
72 
73                                  tlv_usrid           :   6;
74 
75 };
76 
77 
78 
79 struct tlv_32_hdr {
80 
81    volatile uint32_t             tlv_cflg_reserved   :   1,
82 
83                                  tlv_tag             :   9,
84 
85                                  tlv_len             :  16,
86 
87                                  tlv_reserved        :   6;
88 
89 };
90 
91 
92 
93 struct tlv_usr_42_hdr {
94 
95    volatile uint64_t             tlv_compression     :   1,
96 
97                                  tlv_tag             :   9,
98 
99                                  tlv_len             :  16,
100 
101                                  tlv_usrid           :   6,
102 
103                                  tlv_reserved        :  10,
104 
105                                  pad_42to64_bit      :  22;
106 
107 };
108 
109 
110 
111 struct tlv_42_hdr {
112 
113    volatile uint64_t             tlv_compression     :   1,
114 
115                                  tlv_tag             :   9,
116 
117                                  tlv_len             :  16,
118 
119                                  tlv_reserved        :  16,
120 
121                                  pad_42to64_bit      :  22;
122 
123 };
124 
125 
126 
127 struct tlv_usr_c_42_hdr {
128 
129    volatile uint64_t             tlv_compression     :   1,
130 
131                                  tlv_ctag            :   3,
132 
133                                  tlv_usrid           :   6,
134 
135                                  tlv_cdata           :  32,
136 
137                                  pad_42to64_bit      :  22;
138 
139 };
140 
141 
142 
143 #endif
144 
145