xref: /wlan-driver/fw-api/hw/peach/v1/vht_sig_b_su80_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2023 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 _VHT_SIG_B_SU80_INFO_H_
19*5113495bSYour Name #define _VHT_SIG_B_SU80_INFO_H_
20*5113495bSYour Name 
21*5113495bSYour Name #define NUM_OF_DWORDS_VHT_SIG_B_SU80_INFO 4
22*5113495bSYour Name 
23*5113495bSYour Name struct vht_sig_b_su80_info {
24*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
25*5113495bSYour Name              uint32_t length                                                  : 21,
26*5113495bSYour Name                       vhtb_reserved                                           :  2,
27*5113495bSYour Name                       tail                                                    :  6,
28*5113495bSYour Name                       reserved_0                                              :  2,
29*5113495bSYour Name                       rx_ndp                                                  :  1;
30*5113495bSYour Name              uint32_t length_copy_a                                           : 21,
31*5113495bSYour Name                       vhtb_reserved_copy_a                                    :  2,
32*5113495bSYour Name                       tail_copy_a                                             :  6,
33*5113495bSYour Name                       reserved_1                                              :  2,
34*5113495bSYour Name                       rx_ndp_copy_a                                           :  1;
35*5113495bSYour Name              uint32_t length_copy_b                                           : 21,
36*5113495bSYour Name                       vhtb_reserved_copy_b                                    :  2,
37*5113495bSYour Name                       tail_copy_b                                             :  6,
38*5113495bSYour Name                       reserved_2                                              :  2,
39*5113495bSYour Name                       rx_ndp_copy_b                                           :  1;
40*5113495bSYour Name              uint32_t length_copy_c                                           : 21,
41*5113495bSYour Name                       vhtb_reserved_copy_c                                    :  2,
42*5113495bSYour Name                       tail_copy_c                                             :  6,
43*5113495bSYour Name                       reserved_3                                              :  2,
44*5113495bSYour Name                       rx_ndp_copy_c                                           :  1;
45*5113495bSYour Name #else
46*5113495bSYour Name              uint32_t rx_ndp                                                  :  1,
47*5113495bSYour Name                       reserved_0                                              :  2,
48*5113495bSYour Name                       tail                                                    :  6,
49*5113495bSYour Name                       vhtb_reserved                                           :  2,
50*5113495bSYour Name                       length                                                  : 21;
51*5113495bSYour Name              uint32_t rx_ndp_copy_a                                           :  1,
52*5113495bSYour Name                       reserved_1                                              :  2,
53*5113495bSYour Name                       tail_copy_a                                             :  6,
54*5113495bSYour Name                       vhtb_reserved_copy_a                                    :  2,
55*5113495bSYour Name                       length_copy_a                                           : 21;
56*5113495bSYour Name              uint32_t rx_ndp_copy_b                                           :  1,
57*5113495bSYour Name                       reserved_2                                              :  2,
58*5113495bSYour Name                       tail_copy_b                                             :  6,
59*5113495bSYour Name                       vhtb_reserved_copy_b                                    :  2,
60*5113495bSYour Name                       length_copy_b                                           : 21;
61*5113495bSYour Name              uint32_t rx_ndp_copy_c                                           :  1,
62*5113495bSYour Name                       reserved_3                                              :  2,
63*5113495bSYour Name                       tail_copy_c                                             :  6,
64*5113495bSYour Name                       vhtb_reserved_copy_c                                    :  2,
65*5113495bSYour Name                       length_copy_c                                           : 21;
66*5113495bSYour Name #endif
67*5113495bSYour Name };
68*5113495bSYour Name 
69*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_OFFSET                                           0x00000000
70*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_LSB                                              0
71*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_MSB                                              20
72*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_MASK                                             0x001fffff
73*5113495bSYour Name 
74*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_OFFSET                                    0x00000000
75*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_LSB                                       21
76*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_MSB                                       22
77*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_MASK                                      0x00600000
78*5113495bSYour Name 
79*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_OFFSET                                             0x00000000
80*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_LSB                                                23
81*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_MSB                                                28
82*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_MASK                                               0x1f800000
83*5113495bSYour Name 
84*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_0_OFFSET                                       0x00000000
85*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_0_LSB                                          29
86*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_0_MSB                                          30
87*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_0_MASK                                         0x60000000
88*5113495bSYour Name 
89*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_OFFSET                                           0x00000000
90*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_LSB                                              31
91*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_MSB                                              31
92*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_MASK                                             0x80000000
93*5113495bSYour Name 
94*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_OFFSET                                    0x00000004
95*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_LSB                                       0
96*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_MSB                                       20
97*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_MASK                                      0x001fffff
98*5113495bSYour Name 
99*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_OFFSET                             0x00000004
100*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_LSB                                21
101*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_MSB                                22
102*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_MASK                               0x00600000
103*5113495bSYour Name 
104*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_OFFSET                                      0x00000004
105*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_LSB                                         23
106*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_MSB                                         28
107*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_MASK                                        0x1f800000
108*5113495bSYour Name 
109*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_1_OFFSET                                       0x00000004
110*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_1_LSB                                          29
111*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_1_MSB                                          30
112*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_1_MASK                                         0x60000000
113*5113495bSYour Name 
114*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_OFFSET                                    0x00000004
115*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_LSB                                       31
116*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_MSB                                       31
117*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_MASK                                      0x80000000
118*5113495bSYour Name 
119*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_OFFSET                                    0x00000008
120*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_LSB                                       0
121*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_MSB                                       20
122*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_MASK                                      0x001fffff
123*5113495bSYour Name 
124*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_OFFSET                             0x00000008
125*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_LSB                                21
126*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_MSB                                22
127*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_MASK                               0x00600000
128*5113495bSYour Name 
129*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_OFFSET                                      0x00000008
130*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_LSB                                         23
131*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_MSB                                         28
132*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_MASK                                        0x1f800000
133*5113495bSYour Name 
134*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_2_OFFSET                                       0x00000008
135*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_2_LSB                                          29
136*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_2_MSB                                          30
137*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_2_MASK                                         0x60000000
138*5113495bSYour Name 
139*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_OFFSET                                    0x00000008
140*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_LSB                                       31
141*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_MSB                                       31
142*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_MASK                                      0x80000000
143*5113495bSYour Name 
144*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_OFFSET                                    0x0000000c
145*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_LSB                                       0
146*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_MSB                                       20
147*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_MASK                                      0x001fffff
148*5113495bSYour Name 
149*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_OFFSET                             0x0000000c
150*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_LSB                                21
151*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_MSB                                22
152*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_MASK                               0x00600000
153*5113495bSYour Name 
154*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_OFFSET                                      0x0000000c
155*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_LSB                                         23
156*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_MSB                                         28
157*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_MASK                                        0x1f800000
158*5113495bSYour Name 
159*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_3_OFFSET                                       0x0000000c
160*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_3_LSB                                          29
161*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_3_MSB                                          30
162*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RESERVED_3_MASK                                         0x60000000
163*5113495bSYour Name 
164*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_OFFSET                                    0x0000000c
165*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_LSB                                       31
166*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_MSB                                       31
167*5113495bSYour Name #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_MASK                                      0x80000000
168*5113495bSYour Name 
169*5113495bSYour Name #endif
170