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_MU_INFO_H_ 31 #define _HE_SIG_B2_MU_INFO_H_ 32 #if !defined(__ASSEMBLER__) 33 #endif 34 35 #define NUM_OF_DWORDS_HE_SIG_B2_MU_INFO 2 36 37 38 struct he_sig_b2_mu_info { 39 uint32_t sta_id : 11, 40 sta_spatial_config : 4, 41 sta_mcs : 4, 42 reserved_set_to_1 : 1, 43 sta_coding : 1, 44 reserved_0a : 7, 45 nsts : 3, 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_MU_INFO_STA_ID_OFFSET 0x00000000 55 #define HE_SIG_B2_MU_INFO_STA_ID_LSB 0 56 #define HE_SIG_B2_MU_INFO_STA_ID_MSB 10 57 #define HE_SIG_B2_MU_INFO_STA_ID_MASK 0x000007ff 58 59 60 61 62 #define HE_SIG_B2_MU_INFO_STA_SPATIAL_CONFIG_OFFSET 0x00000000 63 #define HE_SIG_B2_MU_INFO_STA_SPATIAL_CONFIG_LSB 11 64 #define HE_SIG_B2_MU_INFO_STA_SPATIAL_CONFIG_MSB 14 65 #define HE_SIG_B2_MU_INFO_STA_SPATIAL_CONFIG_MASK 0x00007800 66 67 68 69 70 #define HE_SIG_B2_MU_INFO_STA_MCS_OFFSET 0x00000000 71 #define HE_SIG_B2_MU_INFO_STA_MCS_LSB 15 72 #define HE_SIG_B2_MU_INFO_STA_MCS_MSB 18 73 #define HE_SIG_B2_MU_INFO_STA_MCS_MASK 0x00078000 74 75 76 77 78 #define HE_SIG_B2_MU_INFO_RESERVED_SET_TO_1_OFFSET 0x00000000 79 #define HE_SIG_B2_MU_INFO_RESERVED_SET_TO_1_LSB 19 80 #define HE_SIG_B2_MU_INFO_RESERVED_SET_TO_1_MSB 19 81 #define HE_SIG_B2_MU_INFO_RESERVED_SET_TO_1_MASK 0x00080000 82 83 84 85 86 #define HE_SIG_B2_MU_INFO_STA_CODING_OFFSET 0x00000000 87 #define HE_SIG_B2_MU_INFO_STA_CODING_LSB 20 88 #define HE_SIG_B2_MU_INFO_STA_CODING_MSB 20 89 #define HE_SIG_B2_MU_INFO_STA_CODING_MASK 0x00100000 90 91 92 93 94 #define HE_SIG_B2_MU_INFO_RESERVED_0A_OFFSET 0x00000000 95 #define HE_SIG_B2_MU_INFO_RESERVED_0A_LSB 21 96 #define HE_SIG_B2_MU_INFO_RESERVED_0A_MSB 27 97 #define HE_SIG_B2_MU_INFO_RESERVED_0A_MASK 0x0fe00000 98 99 100 101 102 #define HE_SIG_B2_MU_INFO_NSTS_OFFSET 0x00000000 103 #define HE_SIG_B2_MU_INFO_NSTS_LSB 28 104 #define HE_SIG_B2_MU_INFO_NSTS_MSB 30 105 #define HE_SIG_B2_MU_INFO_NSTS_MASK 0x70000000 106 107 108 109 110 #define HE_SIG_B2_MU_INFO_RX_INTEGRITY_CHECK_PASSED_OFFSET 0x00000000 111 #define HE_SIG_B2_MU_INFO_RX_INTEGRITY_CHECK_PASSED_LSB 31 112 #define HE_SIG_B2_MU_INFO_RX_INTEGRITY_CHECK_PASSED_MSB 31 113 #define HE_SIG_B2_MU_INFO_RX_INTEGRITY_CHECK_PASSED_MASK 0x80000000 114 115 116 117 118 #define HE_SIG_B2_MU_INFO_USER_ORDER_OFFSET 0x00000004 119 #define HE_SIG_B2_MU_INFO_USER_ORDER_LSB 0 120 #define HE_SIG_B2_MU_INFO_USER_ORDER_MSB 7 121 #define HE_SIG_B2_MU_INFO_USER_ORDER_MASK 0x000000ff 122 123 124 125 126 #define HE_SIG_B2_MU_INFO_RESERVED_1A_OFFSET 0x00000004 127 #define HE_SIG_B2_MU_INFO_RESERVED_1A_LSB 8 128 #define HE_SIG_B2_MU_INFO_RESERVED_1A_MSB 31 129 #define HE_SIG_B2_MU_INFO_RESERVED_1A_MASK 0xffffff00 130 131 132 133 #endif 134