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_MU80_INFO_H_ 21 #define _VHT_SIG_B_MU80_INFO_H_ 22 #if !defined(__ASSEMBLER__) 23 #endif 24 25 #define NUM_OF_DWORDS_VHT_SIG_B_MU80_INFO 4 26 27 struct vht_sig_b_mu80_info { 28 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 29 uint32_t length : 19, 30 mcs : 4, 31 tail : 6, 32 reserved_0 : 3; 33 uint32_t length_copy_a : 19, 34 mcs_copy_a : 4, 35 tail_copy_a : 6, 36 reserved_1 : 3; 37 uint32_t length_copy_b : 19, 38 mcs_copy_b : 4, 39 tail_copy_b : 6, 40 mu_user_number : 3; 41 uint32_t length_copy_c : 19, 42 mcs_copy_c : 4, 43 tail_copy_c : 6, 44 reserved_3 : 3; 45 #else 46 uint32_t reserved_0 : 3, 47 tail : 6, 48 mcs : 4, 49 length : 19; 50 uint32_t reserved_1 : 3, 51 tail_copy_a : 6, 52 mcs_copy_a : 4, 53 length_copy_a : 19; 54 uint32_t mu_user_number : 3, 55 tail_copy_b : 6, 56 mcs_copy_b : 4, 57 length_copy_b : 19; 58 uint32_t reserved_3 : 3, 59 tail_copy_c : 6, 60 mcs_copy_c : 4, 61 length_copy_c : 19; 62 #endif 63 }; 64 65 #define VHT_SIG_B_MU80_INFO_LENGTH_OFFSET 0x00000000 66 #define VHT_SIG_B_MU80_INFO_LENGTH_LSB 0 67 #define VHT_SIG_B_MU80_INFO_LENGTH_MSB 18 68 #define VHT_SIG_B_MU80_INFO_LENGTH_MASK 0x0007ffff 69 70 #define VHT_SIG_B_MU80_INFO_MCS_OFFSET 0x00000000 71 #define VHT_SIG_B_MU80_INFO_MCS_LSB 19 72 #define VHT_SIG_B_MU80_INFO_MCS_MSB 22 73 #define VHT_SIG_B_MU80_INFO_MCS_MASK 0x00780000 74 75 #define VHT_SIG_B_MU80_INFO_TAIL_OFFSET 0x00000000 76 #define VHT_SIG_B_MU80_INFO_TAIL_LSB 23 77 #define VHT_SIG_B_MU80_INFO_TAIL_MSB 28 78 #define VHT_SIG_B_MU80_INFO_TAIL_MASK 0x1f800000 79 80 #define VHT_SIG_B_MU80_INFO_RESERVED_0_OFFSET 0x00000000 81 #define VHT_SIG_B_MU80_INFO_RESERVED_0_LSB 29 82 #define VHT_SIG_B_MU80_INFO_RESERVED_0_MSB 31 83 #define VHT_SIG_B_MU80_INFO_RESERVED_0_MASK 0xe0000000 84 85 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_OFFSET 0x00000004 86 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_LSB 0 87 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_MSB 18 88 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_MASK 0x0007ffff 89 90 #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_OFFSET 0x00000004 91 #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_LSB 19 92 #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_MSB 22 93 #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_MASK 0x00780000 94 95 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_OFFSET 0x00000004 96 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_LSB 23 97 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_MSB 28 98 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_MASK 0x1f800000 99 100 #define VHT_SIG_B_MU80_INFO_RESERVED_1_OFFSET 0x00000004 101 #define VHT_SIG_B_MU80_INFO_RESERVED_1_LSB 29 102 #define VHT_SIG_B_MU80_INFO_RESERVED_1_MSB 31 103 #define VHT_SIG_B_MU80_INFO_RESERVED_1_MASK 0xe0000000 104 105 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_OFFSET 0x00000008 106 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_LSB 0 107 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_MSB 18 108 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_MASK 0x0007ffff 109 110 #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_OFFSET 0x00000008 111 #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_LSB 19 112 #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_MSB 22 113 #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_MASK 0x00780000 114 115 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_OFFSET 0x00000008 116 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_LSB 23 117 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_MSB 28 118 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_MASK 0x1f800000 119 120 #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_OFFSET 0x00000008 121 #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_LSB 29 122 #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_MSB 31 123 #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_MASK 0xe0000000 124 125 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_OFFSET 0x0000000c 126 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_LSB 0 127 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_MSB 18 128 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_MASK 0x0007ffff 129 130 #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_OFFSET 0x0000000c 131 #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_LSB 19 132 #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_MSB 22 133 #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_MASK 0x00780000 134 135 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_OFFSET 0x0000000c 136 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_LSB 23 137 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_MSB 28 138 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_MASK 0x1f800000 139 140 #define VHT_SIG_B_MU80_INFO_RESERVED_3_OFFSET 0x0000000c 141 #define VHT_SIG_B_MU80_INFO_RESERVED_3_LSB 29 142 #define VHT_SIG_B_MU80_INFO_RESERVED_3_MSB 31 143 #define VHT_SIG_B_MU80_INFO_RESERVED_3_MASK 0xe0000000 144 145 #endif 146