xref: /wlan-driver/fw-api/hw/kiwi/v2/vht_sig_b_mu80_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name 
2*5113495bSYour Name /*
3*5113495bSYour Name  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
4*5113495bSYour Name  *
5*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for any
6*5113495bSYour Name  * purpose with or without fee is hereby granted, provided that the above
7*5113495bSYour Name  * copyright notice and this permission notice appear in all copies.
8*5113495bSYour Name  *
9*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10*5113495bSYour Name  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11*5113495bSYour Name  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12*5113495bSYour Name  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13*5113495bSYour Name  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14*5113495bSYour Name  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15*5113495bSYour Name  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16*5113495bSYour Name  */
17*5113495bSYour Name 
18*5113495bSYour Name 
19*5113495bSYour Name 
20*5113495bSYour Name #ifndef _VHT_SIG_B_MU80_INFO_H_
21*5113495bSYour Name #define _VHT_SIG_B_MU80_INFO_H_
22*5113495bSYour Name #if !defined(__ASSEMBLER__)
23*5113495bSYour Name #endif
24*5113495bSYour Name 
25*5113495bSYour Name #define NUM_OF_DWORDS_VHT_SIG_B_MU80_INFO 4
26*5113495bSYour Name 
27*5113495bSYour Name struct vht_sig_b_mu80_info {
28*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
29*5113495bSYour Name              uint32_t length                                                  : 19,
30*5113495bSYour Name                       mcs                                                     :  4,
31*5113495bSYour Name                       tail                                                    :  6,
32*5113495bSYour Name                       reserved_0                                              :  3;
33*5113495bSYour Name              uint32_t length_copy_a                                           : 19,
34*5113495bSYour Name                       mcs_copy_a                                              :  4,
35*5113495bSYour Name                       tail_copy_a                                             :  6,
36*5113495bSYour Name                       reserved_1                                              :  3;
37*5113495bSYour Name              uint32_t length_copy_b                                           : 19,
38*5113495bSYour Name                       mcs_copy_b                                              :  4,
39*5113495bSYour Name                       tail_copy_b                                             :  6,
40*5113495bSYour Name                       mu_user_number                                          :  3;
41*5113495bSYour Name              uint32_t length_copy_c                                           : 19,
42*5113495bSYour Name                       mcs_copy_c                                              :  4,
43*5113495bSYour Name                       tail_copy_c                                             :  6,
44*5113495bSYour Name                       reserved_3                                              :  3;
45*5113495bSYour Name #else
46*5113495bSYour Name              uint32_t reserved_0                                              :  3,
47*5113495bSYour Name                       tail                                                    :  6,
48*5113495bSYour Name                       mcs                                                     :  4,
49*5113495bSYour Name                       length                                                  : 19;
50*5113495bSYour Name              uint32_t reserved_1                                              :  3,
51*5113495bSYour Name                       tail_copy_a                                             :  6,
52*5113495bSYour Name                       mcs_copy_a                                              :  4,
53*5113495bSYour Name                       length_copy_a                                           : 19;
54*5113495bSYour Name              uint32_t mu_user_number                                          :  3,
55*5113495bSYour Name                       tail_copy_b                                             :  6,
56*5113495bSYour Name                       mcs_copy_b                                              :  4,
57*5113495bSYour Name                       length_copy_b                                           : 19;
58*5113495bSYour Name              uint32_t reserved_3                                              :  3,
59*5113495bSYour Name                       tail_copy_c                                             :  6,
60*5113495bSYour Name                       mcs_copy_c                                              :  4,
61*5113495bSYour Name                       length_copy_c                                           : 19;
62*5113495bSYour Name #endif
63*5113495bSYour Name };
64*5113495bSYour Name 
65*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_OFFSET                                           0x00000000
66*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_LSB                                              0
67*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_MSB                                              18
68*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_MASK                                             0x0007ffff
69*5113495bSYour Name 
70*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_OFFSET                                              0x00000000
71*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_LSB                                                 19
72*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_MSB                                                 22
73*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_MASK                                                0x00780000
74*5113495bSYour Name 
75*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_OFFSET                                             0x00000000
76*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_LSB                                                23
77*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_MSB                                                28
78*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_MASK                                               0x1f800000
79*5113495bSYour Name 
80*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_RESERVED_0_OFFSET                                       0x00000000
81*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_RESERVED_0_LSB                                          29
82*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_RESERVED_0_MSB                                          31
83*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_RESERVED_0_MASK                                         0xe0000000
84*5113495bSYour Name 
85*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_OFFSET                                    0x00000004
86*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_LSB                                       0
87*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_MSB                                       18
88*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_MASK                                      0x0007ffff
89*5113495bSYour Name 
90*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_OFFSET                                       0x00000004
91*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_LSB                                          19
92*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_MSB                                          22
93*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_MASK                                         0x00780000
94*5113495bSYour Name 
95*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_OFFSET                                      0x00000004
96*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_LSB                                         23
97*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_MSB                                         28
98*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_MASK                                        0x1f800000
99*5113495bSYour Name 
100*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_RESERVED_1_OFFSET                                       0x00000004
101*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_RESERVED_1_LSB                                          29
102*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_RESERVED_1_MSB                                          31
103*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_RESERVED_1_MASK                                         0xe0000000
104*5113495bSYour Name 
105*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_OFFSET                                    0x00000008
106*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_LSB                                       0
107*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_MSB                                       18
108*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_MASK                                      0x0007ffff
109*5113495bSYour Name 
110*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_OFFSET                                       0x00000008
111*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_LSB                                          19
112*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_MSB                                          22
113*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_MASK                                         0x00780000
114*5113495bSYour Name 
115*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_OFFSET                                      0x00000008
116*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_LSB                                         23
117*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_MSB                                         28
118*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_MASK                                        0x1f800000
119*5113495bSYour Name 
120*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_OFFSET                                   0x00000008
121*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_LSB                                      29
122*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_MSB                                      31
123*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_MASK                                     0xe0000000
124*5113495bSYour Name 
125*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_OFFSET                                    0x0000000c
126*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_LSB                                       0
127*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_MSB                                       18
128*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_MASK                                      0x0007ffff
129*5113495bSYour Name 
130*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_OFFSET                                       0x0000000c
131*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_LSB                                          19
132*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_MSB                                          22
133*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_MASK                                         0x00780000
134*5113495bSYour Name 
135*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_OFFSET                                      0x0000000c
136*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_LSB                                         23
137*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_MSB                                         28
138*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_MASK                                        0x1f800000
139*5113495bSYour Name 
140*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_RESERVED_3_OFFSET                                       0x0000000c
141*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_RESERVED_3_LSB                                          29
142*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_RESERVED_3_MSB                                          31
143*5113495bSYour Name #define VHT_SIG_B_MU80_INFO_RESERVED_3_MASK                                         0xe0000000
144*5113495bSYour Name 
145*5113495bSYour Name #endif
146