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