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_SU80_INFO_H_ 21 #define _VHT_SIG_B_SU80_INFO_H_ 22 #if !defined(__ASSEMBLER__) 23 #endif 24 25 #define NUM_OF_DWORDS_VHT_SIG_B_SU80_INFO 4 26 27 struct vht_sig_b_su80_info { 28 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 29 uint32_t length : 21, 30 vhtb_reserved : 2, 31 tail : 6, 32 reserved_0 : 2, 33 rx_ndp : 1; 34 uint32_t length_copy_a : 21, 35 vhtb_reserved_copy_a : 2, 36 tail_copy_a : 6, 37 reserved_1 : 2, 38 rx_ndp_copy_a : 1; 39 uint32_t length_copy_b : 21, 40 vhtb_reserved_copy_b : 2, 41 tail_copy_b : 6, 42 reserved_2 : 2, 43 rx_ndp_copy_b : 1; 44 uint32_t length_copy_c : 21, 45 vhtb_reserved_copy_c : 2, 46 tail_copy_c : 6, 47 reserved_3 : 2, 48 rx_ndp_copy_c : 1; 49 #else 50 uint32_t rx_ndp : 1, 51 reserved_0 : 2, 52 tail : 6, 53 vhtb_reserved : 2, 54 length : 21; 55 uint32_t rx_ndp_copy_a : 1, 56 reserved_1 : 2, 57 tail_copy_a : 6, 58 vhtb_reserved_copy_a : 2, 59 length_copy_a : 21; 60 uint32_t rx_ndp_copy_b : 1, 61 reserved_2 : 2, 62 tail_copy_b : 6, 63 vhtb_reserved_copy_b : 2, 64 length_copy_b : 21; 65 uint32_t rx_ndp_copy_c : 1, 66 reserved_3 : 2, 67 tail_copy_c : 6, 68 vhtb_reserved_copy_c : 2, 69 length_copy_c : 21; 70 #endif 71 }; 72 73 #define VHT_SIG_B_SU80_INFO_LENGTH_OFFSET 0x00000000 74 #define VHT_SIG_B_SU80_INFO_LENGTH_LSB 0 75 #define VHT_SIG_B_SU80_INFO_LENGTH_MSB 20 76 #define VHT_SIG_B_SU80_INFO_LENGTH_MASK 0x001fffff 77 78 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_OFFSET 0x00000000 79 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_LSB 21 80 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_MSB 22 81 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_MASK 0x00600000 82 83 #define VHT_SIG_B_SU80_INFO_TAIL_OFFSET 0x00000000 84 #define VHT_SIG_B_SU80_INFO_TAIL_LSB 23 85 #define VHT_SIG_B_SU80_INFO_TAIL_MSB 28 86 #define VHT_SIG_B_SU80_INFO_TAIL_MASK 0x1f800000 87 88 #define VHT_SIG_B_SU80_INFO_RESERVED_0_OFFSET 0x00000000 89 #define VHT_SIG_B_SU80_INFO_RESERVED_0_LSB 29 90 #define VHT_SIG_B_SU80_INFO_RESERVED_0_MSB 30 91 #define VHT_SIG_B_SU80_INFO_RESERVED_0_MASK 0x60000000 92 93 #define VHT_SIG_B_SU80_INFO_RX_NDP_OFFSET 0x00000000 94 #define VHT_SIG_B_SU80_INFO_RX_NDP_LSB 31 95 #define VHT_SIG_B_SU80_INFO_RX_NDP_MSB 31 96 #define VHT_SIG_B_SU80_INFO_RX_NDP_MASK 0x80000000 97 98 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_OFFSET 0x00000004 99 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_LSB 0 100 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_MSB 20 101 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_MASK 0x001fffff 102 103 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_OFFSET 0x00000004 104 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_LSB 21 105 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_MSB 22 106 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_MASK 0x00600000 107 108 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_OFFSET 0x00000004 109 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_LSB 23 110 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_MSB 28 111 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_MASK 0x1f800000 112 113 #define VHT_SIG_B_SU80_INFO_RESERVED_1_OFFSET 0x00000004 114 #define VHT_SIG_B_SU80_INFO_RESERVED_1_LSB 29 115 #define VHT_SIG_B_SU80_INFO_RESERVED_1_MSB 30 116 #define VHT_SIG_B_SU80_INFO_RESERVED_1_MASK 0x60000000 117 118 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_OFFSET 0x00000004 119 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_LSB 31 120 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_MSB 31 121 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_MASK 0x80000000 122 123 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_OFFSET 0x00000008 124 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_LSB 0 125 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_MSB 20 126 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_MASK 0x001fffff 127 128 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_OFFSET 0x00000008 129 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_LSB 21 130 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_MSB 22 131 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_MASK 0x00600000 132 133 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_OFFSET 0x00000008 134 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_LSB 23 135 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_MSB 28 136 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_MASK 0x1f800000 137 138 #define VHT_SIG_B_SU80_INFO_RESERVED_2_OFFSET 0x00000008 139 #define VHT_SIG_B_SU80_INFO_RESERVED_2_LSB 29 140 #define VHT_SIG_B_SU80_INFO_RESERVED_2_MSB 30 141 #define VHT_SIG_B_SU80_INFO_RESERVED_2_MASK 0x60000000 142 143 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_OFFSET 0x00000008 144 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_LSB 31 145 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_MSB 31 146 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_MASK 0x80000000 147 148 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_OFFSET 0x0000000c 149 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_LSB 0 150 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_MSB 20 151 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_MASK 0x001fffff 152 153 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_OFFSET 0x0000000c 154 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_LSB 21 155 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_MSB 22 156 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_MASK 0x00600000 157 158 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_OFFSET 0x0000000c 159 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_LSB 23 160 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_MSB 28 161 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_MASK 0x1f800000 162 163 #define VHT_SIG_B_SU80_INFO_RESERVED_3_OFFSET 0x0000000c 164 #define VHT_SIG_B_SU80_INFO_RESERVED_3_LSB 29 165 #define VHT_SIG_B_SU80_INFO_RESERVED_3_MSB 30 166 #define VHT_SIG_B_SU80_INFO_RESERVED_3_MASK 0x60000000 167 168 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_OFFSET 0x0000000c 169 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_LSB 31 170 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_MSB 31 171 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_MASK 0x80000000 172 173 #endif 174