xref: /wlan-dirver/fw-api/hw/kiwi/v2/vht_sig_b_mu40_info.h (revision 08105d291dff2cbee57bfb0495e59dddf3a44849)
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_MU40_INFO_H_
21 #define _VHT_SIG_B_MU40_INFO_H_
22 #if !defined(__ASSEMBLER__)
23 #endif
24 
25 #define NUM_OF_DWORDS_VHT_SIG_B_MU40_INFO 2
26 
27 struct vht_sig_b_mu40_info {
28 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
29              uint32_t length                                                  : 17,
30                       mcs                                                     :  4,
31                       tail                                                    :  6,
32                       reserved_0                                              :  2,
33                       mu_user_number                                          :  3;
34              uint32_t length_copy                                             : 17,
35                       mcs_copy                                                :  4,
36                       tail_copy                                               :  6,
37                       reserved_1                                              :  5;
38 #else
39              uint32_t mu_user_number                                          :  3,
40                       reserved_0                                              :  2,
41                       tail                                                    :  6,
42                       mcs                                                     :  4,
43                       length                                                  : 17;
44              uint32_t reserved_1                                              :  5,
45                       tail_copy                                               :  6,
46                       mcs_copy                                                :  4,
47                       length_copy                                             : 17;
48 #endif
49 };
50 
51 #define VHT_SIG_B_MU40_INFO_LENGTH_OFFSET                                           0x00000000
52 #define VHT_SIG_B_MU40_INFO_LENGTH_LSB                                              0
53 #define VHT_SIG_B_MU40_INFO_LENGTH_MSB                                              16
54 #define VHT_SIG_B_MU40_INFO_LENGTH_MASK                                             0x0001ffff
55 
56 #define VHT_SIG_B_MU40_INFO_MCS_OFFSET                                              0x00000000
57 #define VHT_SIG_B_MU40_INFO_MCS_LSB                                                 17
58 #define VHT_SIG_B_MU40_INFO_MCS_MSB                                                 20
59 #define VHT_SIG_B_MU40_INFO_MCS_MASK                                                0x001e0000
60 
61 #define VHT_SIG_B_MU40_INFO_TAIL_OFFSET                                             0x00000000
62 #define VHT_SIG_B_MU40_INFO_TAIL_LSB                                                21
63 #define VHT_SIG_B_MU40_INFO_TAIL_MSB                                                26
64 #define VHT_SIG_B_MU40_INFO_TAIL_MASK                                               0x07e00000
65 
66 #define VHT_SIG_B_MU40_INFO_RESERVED_0_OFFSET                                       0x00000000
67 #define VHT_SIG_B_MU40_INFO_RESERVED_0_LSB                                          27
68 #define VHT_SIG_B_MU40_INFO_RESERVED_0_MSB                                          28
69 #define VHT_SIG_B_MU40_INFO_RESERVED_0_MASK                                         0x18000000
70 
71 #define VHT_SIG_B_MU40_INFO_MU_USER_NUMBER_OFFSET                                   0x00000000
72 #define VHT_SIG_B_MU40_INFO_MU_USER_NUMBER_LSB                                      29
73 #define VHT_SIG_B_MU40_INFO_MU_USER_NUMBER_MSB                                      31
74 #define VHT_SIG_B_MU40_INFO_MU_USER_NUMBER_MASK                                     0xe0000000
75 
76 #define VHT_SIG_B_MU40_INFO_LENGTH_COPY_OFFSET                                      0x00000004
77 #define VHT_SIG_B_MU40_INFO_LENGTH_COPY_LSB                                         0
78 #define VHT_SIG_B_MU40_INFO_LENGTH_COPY_MSB                                         16
79 #define VHT_SIG_B_MU40_INFO_LENGTH_COPY_MASK                                        0x0001ffff
80 
81 #define VHT_SIG_B_MU40_INFO_MCS_COPY_OFFSET                                         0x00000004
82 #define VHT_SIG_B_MU40_INFO_MCS_COPY_LSB                                            17
83 #define VHT_SIG_B_MU40_INFO_MCS_COPY_MSB                                            20
84 #define VHT_SIG_B_MU40_INFO_MCS_COPY_MASK                                           0x001e0000
85 
86 #define VHT_SIG_B_MU40_INFO_TAIL_COPY_OFFSET                                        0x00000004
87 #define VHT_SIG_B_MU40_INFO_TAIL_COPY_LSB                                           21
88 #define VHT_SIG_B_MU40_INFO_TAIL_COPY_MSB                                           26
89 #define VHT_SIG_B_MU40_INFO_TAIL_COPY_MASK                                          0x07e00000
90 
91 #define VHT_SIG_B_MU40_INFO_RESERVED_1_OFFSET                                       0x00000004
92 #define VHT_SIG_B_MU40_INFO_RESERVED_1_LSB                                          27
93 #define VHT_SIG_B_MU40_INFO_RESERVED_1_MSB                                          31
94 #define VHT_SIG_B_MU40_INFO_RESERVED_1_MASK                                         0xf8000000
95 
96 #endif
97