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