xref: /wlan-driver/fw-api/hw/kiwi/v2/vht_sig_a_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name 
2*5113495bSYour Name /*
3*5113495bSYour Name  * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
4*5113495bSYour Name  *
5*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for
6*5113495bSYour Name  * any purpose with or without fee is hereby granted, provided that the
7*5113495bSYour Name  * above copyright notice and this permission notice appear in all
8*5113495bSYour Name  * copies.
9*5113495bSYour Name  *
10*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11*5113495bSYour Name  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12*5113495bSYour Name  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13*5113495bSYour Name  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14*5113495bSYour Name  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15*5113495bSYour Name  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16*5113495bSYour Name  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17*5113495bSYour Name  * PERFORMANCE OF THIS SOFTWARE.
18*5113495bSYour Name  */
19*5113495bSYour Name 
20*5113495bSYour Name 
21*5113495bSYour Name 
22*5113495bSYour Name #ifndef _VHT_SIG_A_INFO_H_
23*5113495bSYour Name #define _VHT_SIG_A_INFO_H_
24*5113495bSYour Name #if !defined(__ASSEMBLER__)
25*5113495bSYour Name #endif
26*5113495bSYour Name 
27*5113495bSYour Name #define NUM_OF_DWORDS_VHT_SIG_A_INFO 2
28*5113495bSYour Name 
29*5113495bSYour Name struct vht_sig_a_info {
30*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
31*5113495bSYour Name              uint32_t bandwidth                                               :  2,
32*5113495bSYour Name                       vhta_reserved_0                                         :  1,
33*5113495bSYour Name                       stbc                                                    :  1,
34*5113495bSYour Name                       group_id                                                :  6,
35*5113495bSYour Name                       n_sts                                                   : 12,
36*5113495bSYour Name                       txop_ps_not_allowed                                     :  1,
37*5113495bSYour Name                       vhta_reserved_0b                                        :  1,
38*5113495bSYour Name                       reserved_0                                              :  8;
39*5113495bSYour Name              uint32_t gi_setting                                              :  2,
40*5113495bSYour Name                       su_mu_coding                                            :  1,
41*5113495bSYour Name                       ldpc_extra_symbol                                       :  1,
42*5113495bSYour Name                       mcs                                                     :  4,
43*5113495bSYour Name                       beamformed                                              :  1,
44*5113495bSYour Name                       vhta_reserved_1                                         :  1,
45*5113495bSYour Name                       crc                                                     :  8,
46*5113495bSYour Name                       tail                                                    :  6,
47*5113495bSYour Name                       reserved_1                                              :  7,
48*5113495bSYour Name                       rx_integrity_check_passed                               :  1;
49*5113495bSYour Name #else
50*5113495bSYour Name              uint32_t reserved_0                                              :  8,
51*5113495bSYour Name                       vhta_reserved_0b                                        :  1,
52*5113495bSYour Name                       txop_ps_not_allowed                                     :  1,
53*5113495bSYour Name                       n_sts                                                   : 12,
54*5113495bSYour Name                       group_id                                                :  6,
55*5113495bSYour Name                       stbc                                                    :  1,
56*5113495bSYour Name                       vhta_reserved_0                                         :  1,
57*5113495bSYour Name                       bandwidth                                               :  2;
58*5113495bSYour Name              uint32_t rx_integrity_check_passed                               :  1,
59*5113495bSYour Name                       reserved_1                                              :  7,
60*5113495bSYour Name                       tail                                                    :  6,
61*5113495bSYour Name                       crc                                                     :  8,
62*5113495bSYour Name                       vhta_reserved_1                                         :  1,
63*5113495bSYour Name                       beamformed                                              :  1,
64*5113495bSYour Name                       mcs                                                     :  4,
65*5113495bSYour Name                       ldpc_extra_symbol                                       :  1,
66*5113495bSYour Name                       su_mu_coding                                            :  1,
67*5113495bSYour Name                       gi_setting                                              :  2;
68*5113495bSYour Name #endif
69*5113495bSYour Name };
70*5113495bSYour Name 
71*5113495bSYour Name #define VHT_SIG_A_INFO_BANDWIDTH_OFFSET                                             0x00000000
72*5113495bSYour Name #define VHT_SIG_A_INFO_BANDWIDTH_LSB                                                0
73*5113495bSYour Name #define VHT_SIG_A_INFO_BANDWIDTH_MSB                                                1
74*5113495bSYour Name #define VHT_SIG_A_INFO_BANDWIDTH_MASK                                               0x00000003
75*5113495bSYour Name 
76*5113495bSYour Name #define VHT_SIG_A_INFO_VHTA_RESERVED_0_OFFSET                                       0x00000000
77*5113495bSYour Name #define VHT_SIG_A_INFO_VHTA_RESERVED_0_LSB                                          2
78*5113495bSYour Name #define VHT_SIG_A_INFO_VHTA_RESERVED_0_MSB                                          2
79*5113495bSYour Name #define VHT_SIG_A_INFO_VHTA_RESERVED_0_MASK                                         0x00000004
80*5113495bSYour Name 
81*5113495bSYour Name #define VHT_SIG_A_INFO_STBC_OFFSET                                                  0x00000000
82*5113495bSYour Name #define VHT_SIG_A_INFO_STBC_LSB                                                     3
83*5113495bSYour Name #define VHT_SIG_A_INFO_STBC_MSB                                                     3
84*5113495bSYour Name #define VHT_SIG_A_INFO_STBC_MASK                                                    0x00000008
85*5113495bSYour Name 
86*5113495bSYour Name #define VHT_SIG_A_INFO_GROUP_ID_OFFSET                                              0x00000000
87*5113495bSYour Name #define VHT_SIG_A_INFO_GROUP_ID_LSB                                                 4
88*5113495bSYour Name #define VHT_SIG_A_INFO_GROUP_ID_MSB                                                 9
89*5113495bSYour Name #define VHT_SIG_A_INFO_GROUP_ID_MASK                                                0x000003f0
90*5113495bSYour Name 
91*5113495bSYour Name #define VHT_SIG_A_INFO_N_STS_OFFSET                                                 0x00000000
92*5113495bSYour Name #define VHT_SIG_A_INFO_N_STS_LSB                                                    10
93*5113495bSYour Name #define VHT_SIG_A_INFO_N_STS_MSB                                                    21
94*5113495bSYour Name #define VHT_SIG_A_INFO_N_STS_MASK                                                   0x003ffc00
95*5113495bSYour Name 
96*5113495bSYour Name #define VHT_SIG_A_INFO_TXOP_PS_NOT_ALLOWED_OFFSET                                   0x00000000
97*5113495bSYour Name #define VHT_SIG_A_INFO_TXOP_PS_NOT_ALLOWED_LSB                                      22
98*5113495bSYour Name #define VHT_SIG_A_INFO_TXOP_PS_NOT_ALLOWED_MSB                                      22
99*5113495bSYour Name #define VHT_SIG_A_INFO_TXOP_PS_NOT_ALLOWED_MASK                                     0x00400000
100*5113495bSYour Name 
101*5113495bSYour Name #define VHT_SIG_A_INFO_VHTA_RESERVED_0B_OFFSET                                      0x00000000
102*5113495bSYour Name #define VHT_SIG_A_INFO_VHTA_RESERVED_0B_LSB                                         23
103*5113495bSYour Name #define VHT_SIG_A_INFO_VHTA_RESERVED_0B_MSB                                         23
104*5113495bSYour Name #define VHT_SIG_A_INFO_VHTA_RESERVED_0B_MASK                                        0x00800000
105*5113495bSYour Name 
106*5113495bSYour Name #define VHT_SIG_A_INFO_RESERVED_0_OFFSET                                            0x00000000
107*5113495bSYour Name #define VHT_SIG_A_INFO_RESERVED_0_LSB                                               24
108*5113495bSYour Name #define VHT_SIG_A_INFO_RESERVED_0_MSB                                               31
109*5113495bSYour Name #define VHT_SIG_A_INFO_RESERVED_0_MASK                                              0xff000000
110*5113495bSYour Name 
111*5113495bSYour Name #define VHT_SIG_A_INFO_GI_SETTING_OFFSET                                            0x00000004
112*5113495bSYour Name #define VHT_SIG_A_INFO_GI_SETTING_LSB                                               0
113*5113495bSYour Name #define VHT_SIG_A_INFO_GI_SETTING_MSB                                               1
114*5113495bSYour Name #define VHT_SIG_A_INFO_GI_SETTING_MASK                                              0x00000003
115*5113495bSYour Name 
116*5113495bSYour Name #define VHT_SIG_A_INFO_SU_MU_CODING_OFFSET                                          0x00000004
117*5113495bSYour Name #define VHT_SIG_A_INFO_SU_MU_CODING_LSB                                             2
118*5113495bSYour Name #define VHT_SIG_A_INFO_SU_MU_CODING_MSB                                             2
119*5113495bSYour Name #define VHT_SIG_A_INFO_SU_MU_CODING_MASK                                            0x00000004
120*5113495bSYour Name 
121*5113495bSYour Name #define VHT_SIG_A_INFO_LDPC_EXTRA_SYMBOL_OFFSET                                     0x00000004
122*5113495bSYour Name #define VHT_SIG_A_INFO_LDPC_EXTRA_SYMBOL_LSB                                        3
123*5113495bSYour Name #define VHT_SIG_A_INFO_LDPC_EXTRA_SYMBOL_MSB                                        3
124*5113495bSYour Name #define VHT_SIG_A_INFO_LDPC_EXTRA_SYMBOL_MASK                                       0x00000008
125*5113495bSYour Name 
126*5113495bSYour Name #define VHT_SIG_A_INFO_MCS_OFFSET                                                   0x00000004
127*5113495bSYour Name #define VHT_SIG_A_INFO_MCS_LSB                                                      4
128*5113495bSYour Name #define VHT_SIG_A_INFO_MCS_MSB                                                      7
129*5113495bSYour Name #define VHT_SIG_A_INFO_MCS_MASK                                                     0x000000f0
130*5113495bSYour Name 
131*5113495bSYour Name #define VHT_SIG_A_INFO_BEAMFORMED_OFFSET                                            0x00000004
132*5113495bSYour Name #define VHT_SIG_A_INFO_BEAMFORMED_LSB                                               8
133*5113495bSYour Name #define VHT_SIG_A_INFO_BEAMFORMED_MSB                                               8
134*5113495bSYour Name #define VHT_SIG_A_INFO_BEAMFORMED_MASK                                              0x00000100
135*5113495bSYour Name 
136*5113495bSYour Name #define VHT_SIG_A_INFO_VHTA_RESERVED_1_OFFSET                                       0x00000004
137*5113495bSYour Name #define VHT_SIG_A_INFO_VHTA_RESERVED_1_LSB                                          9
138*5113495bSYour Name #define VHT_SIG_A_INFO_VHTA_RESERVED_1_MSB                                          9
139*5113495bSYour Name #define VHT_SIG_A_INFO_VHTA_RESERVED_1_MASK                                         0x00000200
140*5113495bSYour Name 
141*5113495bSYour Name #define VHT_SIG_A_INFO_CRC_OFFSET                                                   0x00000004
142*5113495bSYour Name #define VHT_SIG_A_INFO_CRC_LSB                                                      10
143*5113495bSYour Name #define VHT_SIG_A_INFO_CRC_MSB                                                      17
144*5113495bSYour Name #define VHT_SIG_A_INFO_CRC_MASK                                                     0x0003fc00
145*5113495bSYour Name 
146*5113495bSYour Name #define VHT_SIG_A_INFO_TAIL_OFFSET                                                  0x00000004
147*5113495bSYour Name #define VHT_SIG_A_INFO_TAIL_LSB                                                     18
148*5113495bSYour Name #define VHT_SIG_A_INFO_TAIL_MSB                                                     23
149*5113495bSYour Name #define VHT_SIG_A_INFO_TAIL_MASK                                                    0x00fc0000
150*5113495bSYour Name 
151*5113495bSYour Name #define VHT_SIG_A_INFO_RESERVED_1_OFFSET                                            0x00000004
152*5113495bSYour Name #define VHT_SIG_A_INFO_RESERVED_1_LSB                                               24
153*5113495bSYour Name #define VHT_SIG_A_INFO_RESERVED_1_MSB                                               30
154*5113495bSYour Name #define VHT_SIG_A_INFO_RESERVED_1_MASK                                              0x7f000000
155*5113495bSYour Name 
156*5113495bSYour Name #define VHT_SIG_A_INFO_RX_INTEGRITY_CHECK_PASSED_OFFSET                             0x00000004
157*5113495bSYour Name #define VHT_SIG_A_INFO_RX_INTEGRITY_CHECK_PASSED_LSB                                31
158*5113495bSYour Name #define VHT_SIG_A_INFO_RX_INTEGRITY_CHECK_PASSED_MSB                                31
159*5113495bSYour Name #define VHT_SIG_A_INFO_RX_INTEGRITY_CHECK_PASSED_MASK                               0x80000000
160*5113495bSYour Name 
161*5113495bSYour Name #endif
162