xref: /wlan-driver/fw-api/hw/kiwi/v1/he_sig_b2_ofdma_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 
2 /*
3  * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 #ifndef _HE_SIG_B2_OFDMA_INFO_H_
31 #define _HE_SIG_B2_OFDMA_INFO_H_
32 #if !defined(__ASSEMBLER__)
33 #endif
34 
35 #define NUM_OF_DWORDS_HE_SIG_B2_OFDMA_INFO 2
36 
37 
38 struct he_sig_b2_ofdma_info {
39 	     uint32_t sta_id                                                  : 11,
40 		      nsts                                                    :  3,
41 		      txbf                                                    :  1,
42 		      sta_mcs                                                 :  4,
43 		      sta_dcm                                                 :  1,
44 		      sta_coding                                              :  1,
45 		      reserved_0                                              : 10,
46 		      rx_integrity_check_passed                               :  1;
47 	     uint32_t user_order                                              :  8,
48 		      reserved_1a                                             : 24;
49 };
50 
51 
52 
53 
54 #define HE_SIG_B2_OFDMA_INFO_STA_ID_OFFSET                                          0x00000000
55 #define HE_SIG_B2_OFDMA_INFO_STA_ID_LSB                                             0
56 #define HE_SIG_B2_OFDMA_INFO_STA_ID_MSB                                             10
57 #define HE_SIG_B2_OFDMA_INFO_STA_ID_MASK                                            0x000007ff
58 
59 
60 
61 
62 #define HE_SIG_B2_OFDMA_INFO_NSTS_OFFSET                                            0x00000000
63 #define HE_SIG_B2_OFDMA_INFO_NSTS_LSB                                               11
64 #define HE_SIG_B2_OFDMA_INFO_NSTS_MSB                                               13
65 #define HE_SIG_B2_OFDMA_INFO_NSTS_MASK                                              0x00003800
66 
67 
68 
69 
70 #define HE_SIG_B2_OFDMA_INFO_TXBF_OFFSET                                            0x00000000
71 #define HE_SIG_B2_OFDMA_INFO_TXBF_LSB                                               14
72 #define HE_SIG_B2_OFDMA_INFO_TXBF_MSB                                               14
73 #define HE_SIG_B2_OFDMA_INFO_TXBF_MASK                                              0x00004000
74 
75 
76 
77 
78 #define HE_SIG_B2_OFDMA_INFO_STA_MCS_OFFSET                                         0x00000000
79 #define HE_SIG_B2_OFDMA_INFO_STA_MCS_LSB                                            15
80 #define HE_SIG_B2_OFDMA_INFO_STA_MCS_MSB                                            18
81 #define HE_SIG_B2_OFDMA_INFO_STA_MCS_MASK                                           0x00078000
82 
83 
84 
85 
86 #define HE_SIG_B2_OFDMA_INFO_STA_DCM_OFFSET                                         0x00000000
87 #define HE_SIG_B2_OFDMA_INFO_STA_DCM_LSB                                            19
88 #define HE_SIG_B2_OFDMA_INFO_STA_DCM_MSB                                            19
89 #define HE_SIG_B2_OFDMA_INFO_STA_DCM_MASK                                           0x00080000
90 
91 
92 
93 
94 #define HE_SIG_B2_OFDMA_INFO_STA_CODING_OFFSET                                      0x00000000
95 #define HE_SIG_B2_OFDMA_INFO_STA_CODING_LSB                                         20
96 #define HE_SIG_B2_OFDMA_INFO_STA_CODING_MSB                                         20
97 #define HE_SIG_B2_OFDMA_INFO_STA_CODING_MASK                                        0x00100000
98 
99 
100 
101 
102 #define HE_SIG_B2_OFDMA_INFO_RESERVED_0_OFFSET                                      0x00000000
103 #define HE_SIG_B2_OFDMA_INFO_RESERVED_0_LSB                                         21
104 #define HE_SIG_B2_OFDMA_INFO_RESERVED_0_MSB                                         30
105 #define HE_SIG_B2_OFDMA_INFO_RESERVED_0_MASK                                        0x7fe00000
106 
107 
108 
109 
110 #define HE_SIG_B2_OFDMA_INFO_RX_INTEGRITY_CHECK_PASSED_OFFSET                       0x00000000
111 #define HE_SIG_B2_OFDMA_INFO_RX_INTEGRITY_CHECK_PASSED_LSB                          31
112 #define HE_SIG_B2_OFDMA_INFO_RX_INTEGRITY_CHECK_PASSED_MSB                          31
113 #define HE_SIG_B2_OFDMA_INFO_RX_INTEGRITY_CHECK_PASSED_MASK                         0x80000000
114 
115 
116 
117 
118 #define HE_SIG_B2_OFDMA_INFO_USER_ORDER_OFFSET                                      0x00000004
119 #define HE_SIG_B2_OFDMA_INFO_USER_ORDER_LSB                                         0
120 #define HE_SIG_B2_OFDMA_INFO_USER_ORDER_MSB                                         7
121 #define HE_SIG_B2_OFDMA_INFO_USER_ORDER_MASK                                        0x000000ff
122 
123 
124 
125 
126 #define HE_SIG_B2_OFDMA_INFO_RESERVED_1A_OFFSET                                     0x00000004
127 #define HE_SIG_B2_OFDMA_INFO_RESERVED_1A_LSB                                        8
128 #define HE_SIG_B2_OFDMA_INFO_RESERVED_1A_MSB                                        31
129 #define HE_SIG_B2_OFDMA_INFO_RESERVED_1A_MASK                                       0xffffff00
130 
131 
132 
133 #endif
134