xref: /wlan-driver/fw-api/hw/qca8074/v2/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 any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 // $ATH_LICENSE_HW_HDR_C$
18 //
19 // DO NOT EDIT!  This file is automatically generated
20 //               These definitions are tied to a particular hardware layout
21 
22 
23 #ifndef _TLV_HDR_H_
24 #define _TLV_HDR_H_
25 #if !defined(__ASSEMBLER__)
26 #endif
27 
28 struct tlv_usr_16_hdr {
29    volatile uint16_t             tlv_cflg_reserved   :   1,
30                                  tlv_tag             :   5,
31                                  tlv_len             :   4,
32                                  tlv_usrid           :   6;
33 };
34 
35 struct tlv_16_hdr {
36    volatile uint16_t             tlv_cflg_reserved   :   1,
37                                  tlv_tag             :   5,
38                                  tlv_len             :   4,
39                                  tlv_reserved        :   6;
40 };
41 
42 struct tlv_usr_32_hdr {
43    volatile uint32_t             tlv_cflg_reserved   :   1,
44                                  tlv_tag             :   9,
45                                  tlv_len             :  16,
46                                  tlv_usrid           :   6;
47 };
48 
49 struct tlv_32_hdr {
50    volatile uint32_t             tlv_cflg_reserved   :   1,
51                                  tlv_tag             :   9,
52                                  tlv_len             :  16,
53                                  tlv_reserved        :   6;
54 };
55 
56 struct tlv_usr_42_hdr {
57    volatile uint64_t             tlv_compression     :   1,
58                                  tlv_tag             :   9,
59                                  tlv_len             :  16,
60                                  tlv_usrid           :   6,
61                                  tlv_reserved        :  10,
62                                  pad_42to64_bit      :  22;
63 };
64 
65 struct tlv_42_hdr {
66    volatile uint64_t             tlv_compression     :   1,
67                                  tlv_tag             :   9,
68                                  tlv_len             :  16,
69                                  tlv_reserved        :  16,
70                                  pad_42to64_bit      :  22;
71 };
72 
73 struct tlv_usr_c_42_hdr {
74    volatile uint64_t             tlv_compression     :   1,
75                                  tlv_ctag            :   3,
76                                  tlv_usrid           :   6,
77                                  tlv_cdata           :  32,
78                                  pad_42to64_bit      :  22;
79 };
80 
81 #endif
82