1 /* 2 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 */ 16 17 18 #ifndef _VHT_SIG_B_MU160_INFO_H_ 19 #define _VHT_SIG_B_MU160_INFO_H_ 20 21 #define NUM_OF_DWORDS_VHT_SIG_B_MU160_INFO 8 22 23 struct vht_sig_b_mu160_info { 24 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 25 uint32_t length : 19, 26 mcs : 4, 27 tail : 6, 28 reserved_0 : 3; 29 uint32_t length_copy_a : 19, 30 mcs_copy_a : 4, 31 tail_copy_a : 6, 32 reserved_1 : 3; 33 uint32_t length_copy_b : 19, 34 mcs_copy_b : 4, 35 tail_copy_b : 6, 36 reserved_2 : 3; 37 uint32_t length_copy_c : 19, 38 mcs_copy_c : 4, 39 tail_copy_c : 6, 40 reserved_3 : 3; 41 uint32_t length_copy_d : 19, 42 mcs_copy_d : 4, 43 tail_copy_d : 6, 44 reserved_4 : 3; 45 uint32_t length_copy_e : 19, 46 mcs_copy_e : 4, 47 tail_copy_e : 6, 48 reserved_5 : 3; 49 uint32_t length_copy_f : 19, 50 mcs_copy_f : 4, 51 tail_copy_f : 6, 52 mu_user_number : 3; 53 uint32_t length_copy_g : 19, 54 mcs_copy_g : 4, 55 tail_copy_g : 6, 56 reserved_7 : 3; 57 #else 58 uint32_t reserved_0 : 3, 59 tail : 6, 60 mcs : 4, 61 length : 19; 62 uint32_t reserved_1 : 3, 63 tail_copy_a : 6, 64 mcs_copy_a : 4, 65 length_copy_a : 19; 66 uint32_t reserved_2 : 3, 67 tail_copy_b : 6, 68 mcs_copy_b : 4, 69 length_copy_b : 19; 70 uint32_t reserved_3 : 3, 71 tail_copy_c : 6, 72 mcs_copy_c : 4, 73 length_copy_c : 19; 74 uint32_t reserved_4 : 3, 75 tail_copy_d : 6, 76 mcs_copy_d : 4, 77 length_copy_d : 19; 78 uint32_t reserved_5 : 3, 79 tail_copy_e : 6, 80 mcs_copy_e : 4, 81 length_copy_e : 19; 82 uint32_t mu_user_number : 3, 83 tail_copy_f : 6, 84 mcs_copy_f : 4, 85 length_copy_f : 19; 86 uint32_t reserved_7 : 3, 87 tail_copy_g : 6, 88 mcs_copy_g : 4, 89 length_copy_g : 19; 90 #endif 91 }; 92 93 #define VHT_SIG_B_MU160_INFO_LENGTH_OFFSET 0x00000000 94 #define VHT_SIG_B_MU160_INFO_LENGTH_LSB 0 95 #define VHT_SIG_B_MU160_INFO_LENGTH_MSB 18 96 #define VHT_SIG_B_MU160_INFO_LENGTH_MASK 0x0007ffff 97 98 #define VHT_SIG_B_MU160_INFO_MCS_OFFSET 0x00000000 99 #define VHT_SIG_B_MU160_INFO_MCS_LSB 19 100 #define VHT_SIG_B_MU160_INFO_MCS_MSB 22 101 #define VHT_SIG_B_MU160_INFO_MCS_MASK 0x00780000 102 103 #define VHT_SIG_B_MU160_INFO_TAIL_OFFSET 0x00000000 104 #define VHT_SIG_B_MU160_INFO_TAIL_LSB 23 105 #define VHT_SIG_B_MU160_INFO_TAIL_MSB 28 106 #define VHT_SIG_B_MU160_INFO_TAIL_MASK 0x1f800000 107 108 #define VHT_SIG_B_MU160_INFO_RESERVED_0_OFFSET 0x00000000 109 #define VHT_SIG_B_MU160_INFO_RESERVED_0_LSB 29 110 #define VHT_SIG_B_MU160_INFO_RESERVED_0_MSB 31 111 #define VHT_SIG_B_MU160_INFO_RESERVED_0_MASK 0xe0000000 112 113 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_A_OFFSET 0x00000004 114 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_A_LSB 0 115 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_A_MSB 18 116 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_A_MASK 0x0007ffff 117 118 #define VHT_SIG_B_MU160_INFO_MCS_COPY_A_OFFSET 0x00000004 119 #define VHT_SIG_B_MU160_INFO_MCS_COPY_A_LSB 19 120 #define VHT_SIG_B_MU160_INFO_MCS_COPY_A_MSB 22 121 #define VHT_SIG_B_MU160_INFO_MCS_COPY_A_MASK 0x00780000 122 123 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_A_OFFSET 0x00000004 124 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_A_LSB 23 125 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_A_MSB 28 126 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_A_MASK 0x1f800000 127 128 #define VHT_SIG_B_MU160_INFO_RESERVED_1_OFFSET 0x00000004 129 #define VHT_SIG_B_MU160_INFO_RESERVED_1_LSB 29 130 #define VHT_SIG_B_MU160_INFO_RESERVED_1_MSB 31 131 #define VHT_SIG_B_MU160_INFO_RESERVED_1_MASK 0xe0000000 132 133 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_B_OFFSET 0x00000008 134 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_B_LSB 0 135 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_B_MSB 18 136 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_B_MASK 0x0007ffff 137 138 #define VHT_SIG_B_MU160_INFO_MCS_COPY_B_OFFSET 0x00000008 139 #define VHT_SIG_B_MU160_INFO_MCS_COPY_B_LSB 19 140 #define VHT_SIG_B_MU160_INFO_MCS_COPY_B_MSB 22 141 #define VHT_SIG_B_MU160_INFO_MCS_COPY_B_MASK 0x00780000 142 143 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_B_OFFSET 0x00000008 144 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_B_LSB 23 145 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_B_MSB 28 146 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_B_MASK 0x1f800000 147 148 #define VHT_SIG_B_MU160_INFO_RESERVED_2_OFFSET 0x00000008 149 #define VHT_SIG_B_MU160_INFO_RESERVED_2_LSB 29 150 #define VHT_SIG_B_MU160_INFO_RESERVED_2_MSB 31 151 #define VHT_SIG_B_MU160_INFO_RESERVED_2_MASK 0xe0000000 152 153 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_C_OFFSET 0x0000000c 154 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_C_LSB 0 155 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_C_MSB 18 156 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_C_MASK 0x0007ffff 157 158 #define VHT_SIG_B_MU160_INFO_MCS_COPY_C_OFFSET 0x0000000c 159 #define VHT_SIG_B_MU160_INFO_MCS_COPY_C_LSB 19 160 #define VHT_SIG_B_MU160_INFO_MCS_COPY_C_MSB 22 161 #define VHT_SIG_B_MU160_INFO_MCS_COPY_C_MASK 0x00780000 162 163 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_C_OFFSET 0x0000000c 164 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_C_LSB 23 165 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_C_MSB 28 166 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_C_MASK 0x1f800000 167 168 #define VHT_SIG_B_MU160_INFO_RESERVED_3_OFFSET 0x0000000c 169 #define VHT_SIG_B_MU160_INFO_RESERVED_3_LSB 29 170 #define VHT_SIG_B_MU160_INFO_RESERVED_3_MSB 31 171 #define VHT_SIG_B_MU160_INFO_RESERVED_3_MASK 0xe0000000 172 173 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_D_OFFSET 0x00000010 174 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_D_LSB 0 175 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_D_MSB 18 176 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_D_MASK 0x0007ffff 177 178 #define VHT_SIG_B_MU160_INFO_MCS_COPY_D_OFFSET 0x00000010 179 #define VHT_SIG_B_MU160_INFO_MCS_COPY_D_LSB 19 180 #define VHT_SIG_B_MU160_INFO_MCS_COPY_D_MSB 22 181 #define VHT_SIG_B_MU160_INFO_MCS_COPY_D_MASK 0x00780000 182 183 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_D_OFFSET 0x00000010 184 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_D_LSB 23 185 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_D_MSB 28 186 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_D_MASK 0x1f800000 187 188 #define VHT_SIG_B_MU160_INFO_RESERVED_4_OFFSET 0x00000010 189 #define VHT_SIG_B_MU160_INFO_RESERVED_4_LSB 29 190 #define VHT_SIG_B_MU160_INFO_RESERVED_4_MSB 31 191 #define VHT_SIG_B_MU160_INFO_RESERVED_4_MASK 0xe0000000 192 193 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_E_OFFSET 0x00000014 194 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_E_LSB 0 195 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_E_MSB 18 196 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_E_MASK 0x0007ffff 197 198 #define VHT_SIG_B_MU160_INFO_MCS_COPY_E_OFFSET 0x00000014 199 #define VHT_SIG_B_MU160_INFO_MCS_COPY_E_LSB 19 200 #define VHT_SIG_B_MU160_INFO_MCS_COPY_E_MSB 22 201 #define VHT_SIG_B_MU160_INFO_MCS_COPY_E_MASK 0x00780000 202 203 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_E_OFFSET 0x00000014 204 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_E_LSB 23 205 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_E_MSB 28 206 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_E_MASK 0x1f800000 207 208 #define VHT_SIG_B_MU160_INFO_RESERVED_5_OFFSET 0x00000014 209 #define VHT_SIG_B_MU160_INFO_RESERVED_5_LSB 29 210 #define VHT_SIG_B_MU160_INFO_RESERVED_5_MSB 31 211 #define VHT_SIG_B_MU160_INFO_RESERVED_5_MASK 0xe0000000 212 213 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_F_OFFSET 0x00000018 214 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_F_LSB 0 215 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_F_MSB 18 216 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_F_MASK 0x0007ffff 217 218 #define VHT_SIG_B_MU160_INFO_MCS_COPY_F_OFFSET 0x00000018 219 #define VHT_SIG_B_MU160_INFO_MCS_COPY_F_LSB 19 220 #define VHT_SIG_B_MU160_INFO_MCS_COPY_F_MSB 22 221 #define VHT_SIG_B_MU160_INFO_MCS_COPY_F_MASK 0x00780000 222 223 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_F_OFFSET 0x00000018 224 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_F_LSB 23 225 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_F_MSB 28 226 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_F_MASK 0x1f800000 227 228 #define VHT_SIG_B_MU160_INFO_MU_USER_NUMBER_OFFSET 0x00000018 229 #define VHT_SIG_B_MU160_INFO_MU_USER_NUMBER_LSB 29 230 #define VHT_SIG_B_MU160_INFO_MU_USER_NUMBER_MSB 31 231 #define VHT_SIG_B_MU160_INFO_MU_USER_NUMBER_MASK 0xe0000000 232 233 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_G_OFFSET 0x0000001c 234 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_G_LSB 0 235 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_G_MSB 18 236 #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_G_MASK 0x0007ffff 237 238 #define VHT_SIG_B_MU160_INFO_MCS_COPY_G_OFFSET 0x0000001c 239 #define VHT_SIG_B_MU160_INFO_MCS_COPY_G_LSB 19 240 #define VHT_SIG_B_MU160_INFO_MCS_COPY_G_MSB 22 241 #define VHT_SIG_B_MU160_INFO_MCS_COPY_G_MASK 0x00780000 242 243 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_G_OFFSET 0x0000001c 244 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_G_LSB 23 245 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_G_MSB 28 246 #define VHT_SIG_B_MU160_INFO_TAIL_COPY_G_MASK 0x1f800000 247 248 #define VHT_SIG_B_MU160_INFO_RESERVED_7_OFFSET 0x0000001c 249 #define VHT_SIG_B_MU160_INFO_RESERVED_7_LSB 29 250 #define VHT_SIG_B_MU160_INFO_RESERVED_7_MSB 31 251 #define VHT_SIG_B_MU160_INFO_RESERVED_7_MASK 0xe0000000 252 253 #endif 254