xref: /wlan-driver/fw-api/hw/qcn9224/v1/vht_sig_b_su40_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 
2 /*
3  * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16  */
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 #ifndef _VHT_SIG_B_SU40_INFO_H_
28 #define _VHT_SIG_B_SU40_INFO_H_
29 #if !defined(__ASSEMBLER__)
30 #endif
31 
32 #define NUM_OF_DWORDS_VHT_SIG_B_SU40_INFO 2
33 
34 
35 struct vht_sig_b_su40_info {
36 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
37              uint32_t length                                                  : 19, // [18:0]
38                       vhtb_reserved                                           :  2, // [20:19]
39                       tail                                                    :  6, // [26:21]
40                       reserved                                                :  4, // [30:27]
41                       rx_ndp                                                  :  1; // [31:31]
42              uint32_t length_copy                                             : 19, // [18:0]
43                       vhtb_reserved_copy                                      :  2, // [20:19]
44                       tail_copy                                               :  6, // [26:21]
45                       reserved_copy                                           :  4, // [30:27]
46                       rx_ndp_copy                                             :  1; // [31:31]
47 #else
48              uint32_t rx_ndp                                                  :  1, // [31:31]
49                       reserved                                                :  4, // [30:27]
50                       tail                                                    :  6, // [26:21]
51                       vhtb_reserved                                           :  2, // [20:19]
52                       length                                                  : 19; // [18:0]
53              uint32_t rx_ndp_copy                                             :  1, // [31:31]
54                       reserved_copy                                           :  4, // [30:27]
55                       tail_copy                                               :  6, // [26:21]
56                       vhtb_reserved_copy                                      :  2, // [20:19]
57                       length_copy                                             : 19; // [18:0]
58 #endif
59 };
60 
61 
62 
63 
64 #define VHT_SIG_B_SU40_INFO_LENGTH_OFFSET                                           0x00000000
65 #define VHT_SIG_B_SU40_INFO_LENGTH_LSB                                              0
66 #define VHT_SIG_B_SU40_INFO_LENGTH_MSB                                              18
67 #define VHT_SIG_B_SU40_INFO_LENGTH_MASK                                             0x0007ffff
68 
69 
70 
71 
72 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_OFFSET                                    0x00000000
73 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_LSB                                       19
74 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_MSB                                       20
75 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_MASK                                      0x00180000
76 
77 
78 
79 
80 #define VHT_SIG_B_SU40_INFO_TAIL_OFFSET                                             0x00000000
81 #define VHT_SIG_B_SU40_INFO_TAIL_LSB                                                21
82 #define VHT_SIG_B_SU40_INFO_TAIL_MSB                                                26
83 #define VHT_SIG_B_SU40_INFO_TAIL_MASK                                               0x07e00000
84 
85 
86 
87 
88 #define VHT_SIG_B_SU40_INFO_RESERVED_OFFSET                                         0x00000000
89 #define VHT_SIG_B_SU40_INFO_RESERVED_LSB                                            27
90 #define VHT_SIG_B_SU40_INFO_RESERVED_MSB                                            30
91 #define VHT_SIG_B_SU40_INFO_RESERVED_MASK                                           0x78000000
92 
93 
94 
95 
96 #define VHT_SIG_B_SU40_INFO_RX_NDP_OFFSET                                           0x00000000
97 #define VHT_SIG_B_SU40_INFO_RX_NDP_LSB                                              31
98 #define VHT_SIG_B_SU40_INFO_RX_NDP_MSB                                              31
99 #define VHT_SIG_B_SU40_INFO_RX_NDP_MASK                                             0x80000000
100 
101 
102 
103 
104 #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_OFFSET                                      0x00000004
105 #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_LSB                                         0
106 #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_MSB                                         18
107 #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_MASK                                        0x0007ffff
108 
109 
110 
111 
112 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_OFFSET                               0x00000004
113 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_LSB                                  19
114 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_MSB                                  20
115 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_MASK                                 0x00180000
116 
117 
118 
119 
120 #define VHT_SIG_B_SU40_INFO_TAIL_COPY_OFFSET                                        0x00000004
121 #define VHT_SIG_B_SU40_INFO_TAIL_COPY_LSB                                           21
122 #define VHT_SIG_B_SU40_INFO_TAIL_COPY_MSB                                           26
123 #define VHT_SIG_B_SU40_INFO_TAIL_COPY_MASK                                          0x07e00000
124 
125 
126 
127 
128 #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_OFFSET                                    0x00000004
129 #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_LSB                                       27
130 #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_MSB                                       30
131 #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_MASK                                      0x78000000
132 
133 
134 
135 
136 #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_OFFSET                                      0x00000004
137 #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_LSB                                         31
138 #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_MSB                                         31
139 #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_MASK                                        0x80000000
140 
141 
142 
143 
144 #endif
145