xref: /wlan-driver/fw-api/hw/qcn9224/v2/vht_sig_b_su40_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 
2 /* Copyright (c) 2022, Qualcomm Innovation Center, Inc. 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 
18 
19 
20 
21 
22 
23 
24 
25 
26 #ifndef _VHT_SIG_B_SU40_INFO_H_
27 #define _VHT_SIG_B_SU40_INFO_H_
28 #if !defined(__ASSEMBLER__)
29 #endif
30 
31 #define NUM_OF_DWORDS_VHT_SIG_B_SU40_INFO 2
32 
33 
34 struct vht_sig_b_su40_info {
35 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
36              uint32_t length                                                  : 19,
37                       vhtb_reserved                                           :  2,
38                       tail                                                    :  6,
39                       reserved                                                :  4,
40                       rx_ndp                                                  :  1;
41              uint32_t length_copy                                             : 19,
42                       vhtb_reserved_copy                                      :  2,
43                       tail_copy                                               :  6,
44                       reserved_copy                                           :  4,
45                       rx_ndp_copy                                             :  1;
46 #else
47              uint32_t rx_ndp                                                  :  1,
48                       reserved                                                :  4,
49                       tail                                                    :  6,
50                       vhtb_reserved                                           :  2,
51                       length                                                  : 19;
52              uint32_t rx_ndp_copy                                             :  1,
53                       reserved_copy                                           :  4,
54                       tail_copy                                               :  6,
55                       vhtb_reserved_copy                                      :  2,
56                       length_copy                                             : 19;
57 #endif
58 };
59 
60 
61 
62 
63 #define VHT_SIG_B_SU40_INFO_LENGTH_OFFSET                                           0x00000000
64 #define VHT_SIG_B_SU40_INFO_LENGTH_LSB                                              0
65 #define VHT_SIG_B_SU40_INFO_LENGTH_MSB                                              18
66 #define VHT_SIG_B_SU40_INFO_LENGTH_MASK                                             0x0007ffff
67 
68 
69 
70 
71 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_OFFSET                                    0x00000000
72 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_LSB                                       19
73 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_MSB                                       20
74 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_MASK                                      0x00180000
75 
76 
77 
78 
79 #define VHT_SIG_B_SU40_INFO_TAIL_OFFSET                                             0x00000000
80 #define VHT_SIG_B_SU40_INFO_TAIL_LSB                                                21
81 #define VHT_SIG_B_SU40_INFO_TAIL_MSB                                                26
82 #define VHT_SIG_B_SU40_INFO_TAIL_MASK                                               0x07e00000
83 
84 
85 
86 
87 #define VHT_SIG_B_SU40_INFO_RESERVED_OFFSET                                         0x00000000
88 #define VHT_SIG_B_SU40_INFO_RESERVED_LSB                                            27
89 #define VHT_SIG_B_SU40_INFO_RESERVED_MSB                                            30
90 #define VHT_SIG_B_SU40_INFO_RESERVED_MASK                                           0x78000000
91 
92 
93 
94 
95 #define VHT_SIG_B_SU40_INFO_RX_NDP_OFFSET                                           0x00000000
96 #define VHT_SIG_B_SU40_INFO_RX_NDP_LSB                                              31
97 #define VHT_SIG_B_SU40_INFO_RX_NDP_MSB                                              31
98 #define VHT_SIG_B_SU40_INFO_RX_NDP_MASK                                             0x80000000
99 
100 
101 
102 
103 #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_OFFSET                                      0x00000004
104 #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_LSB                                         0
105 #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_MSB                                         18
106 #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_MASK                                        0x0007ffff
107 
108 
109 
110 
111 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_OFFSET                               0x00000004
112 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_LSB                                  19
113 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_MSB                                  20
114 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_MASK                                 0x00180000
115 
116 
117 
118 
119 #define VHT_SIG_B_SU40_INFO_TAIL_COPY_OFFSET                                        0x00000004
120 #define VHT_SIG_B_SU40_INFO_TAIL_COPY_LSB                                           21
121 #define VHT_SIG_B_SU40_INFO_TAIL_COPY_MSB                                           26
122 #define VHT_SIG_B_SU40_INFO_TAIL_COPY_MASK                                          0x07e00000
123 
124 
125 
126 
127 #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_OFFSET                                    0x00000004
128 #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_LSB                                       27
129 #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_MSB                                       30
130 #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_MASK                                      0x78000000
131 
132 
133 
134 
135 #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_OFFSET                                      0x00000004
136 #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_LSB                                         31
137 #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_MSB                                         31
138 #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_MASK                                        0x80000000
139 
140 
141 
142 #endif
143