1*5113495bSYour Name 2*5113495bSYour Name /* 3*5113495bSYour Name * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. 4*5113495bSYour Name * 5*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for 6*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the 7*5113495bSYour Name * above copyright notice and this permission notice appear in all 8*5113495bSYour Name * copies. 9*5113495bSYour Name * 10*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE. 18*5113495bSYour Name */ 19*5113495bSYour Name 20*5113495bSYour Name 21*5113495bSYour Name 22*5113495bSYour Name #ifndef _RECEIVE_USER_INFO_H_ 23*5113495bSYour Name #define _RECEIVE_USER_INFO_H_ 24*5113495bSYour Name #if !defined(__ASSEMBLER__) 25*5113495bSYour Name #endif 26*5113495bSYour Name 27*5113495bSYour Name #define NUM_OF_DWORDS_RECEIVE_USER_INFO 8 28*5113495bSYour Name 29*5113495bSYour Name struct receive_user_info { 30*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 31*5113495bSYour Name uint32_t phy_ppdu_id : 16, 32*5113495bSYour Name user_rssi : 8, 33*5113495bSYour Name pkt_type : 4, 34*5113495bSYour Name stbc : 1, 35*5113495bSYour Name reception_type : 3; 36*5113495bSYour Name uint32_t rate_mcs : 4, 37*5113495bSYour Name sgi : 2, 38*5113495bSYour Name __reserved_g_0004 : 1, 39*5113495bSYour Name reserved_1a : 1, 40*5113495bSYour Name mimo_ss_bitmap : 8, 41*5113495bSYour Name receive_bandwidth : 3, 42*5113495bSYour Name reserved_1b : 5, 43*5113495bSYour Name dl_ofdma_user_index : 8; 44*5113495bSYour Name uint32_t dl_ofdma_content_channel : 1, 45*5113495bSYour Name reserved_2a : 7, 46*5113495bSYour Name nss : 3, 47*5113495bSYour Name stream_offset : 3, 48*5113495bSYour Name sta_dcm : 1, 49*5113495bSYour Name ldpc : 1, 50*5113495bSYour Name ru_type_80_0 : 4, 51*5113495bSYour Name ru_type_80_1 : 4, 52*5113495bSYour Name ru_type_80_2 : 4, 53*5113495bSYour Name ru_type_80_3 : 4; 54*5113495bSYour Name uint32_t ru_start_index_80_0 : 6, 55*5113495bSYour Name reserved_3a : 2, 56*5113495bSYour Name ru_start_index_80_1 : 6, 57*5113495bSYour Name reserved_3b : 2, 58*5113495bSYour Name ru_start_index_80_2 : 6, 59*5113495bSYour Name reserved_3c : 2, 60*5113495bSYour Name ru_start_index_80_3 : 6, 61*5113495bSYour Name reserved_3d : 2; 62*5113495bSYour Name uint32_t user_fd_rssi_seg0 : 32; 63*5113495bSYour Name uint32_t user_fd_rssi_seg1 : 32; 64*5113495bSYour Name uint32_t user_fd_rssi_seg2 : 32; 65*5113495bSYour Name uint32_t user_fd_rssi_seg3 : 32; 66*5113495bSYour Name #else 67*5113495bSYour Name uint32_t reception_type : 3, 68*5113495bSYour Name stbc : 1, 69*5113495bSYour Name pkt_type : 4, 70*5113495bSYour Name user_rssi : 8, 71*5113495bSYour Name phy_ppdu_id : 16; 72*5113495bSYour Name uint32_t dl_ofdma_user_index : 8, 73*5113495bSYour Name reserved_1b : 5, 74*5113495bSYour Name receive_bandwidth : 3, 75*5113495bSYour Name mimo_ss_bitmap : 8, 76*5113495bSYour Name reserved_1a : 1, 77*5113495bSYour Name __reserved_g_0004 : 1, 78*5113495bSYour Name sgi : 2, 79*5113495bSYour Name rate_mcs : 4; 80*5113495bSYour Name uint32_t ru_type_80_3 : 4, 81*5113495bSYour Name ru_type_80_2 : 4, 82*5113495bSYour Name ru_type_80_1 : 4, 83*5113495bSYour Name ru_type_80_0 : 4, 84*5113495bSYour Name ldpc : 1, 85*5113495bSYour Name sta_dcm : 1, 86*5113495bSYour Name stream_offset : 3, 87*5113495bSYour Name nss : 3, 88*5113495bSYour Name reserved_2a : 7, 89*5113495bSYour Name dl_ofdma_content_channel : 1; 90*5113495bSYour Name uint32_t reserved_3d : 2, 91*5113495bSYour Name ru_start_index_80_3 : 6, 92*5113495bSYour Name reserved_3c : 2, 93*5113495bSYour Name ru_start_index_80_2 : 6, 94*5113495bSYour Name reserved_3b : 2, 95*5113495bSYour Name ru_start_index_80_1 : 6, 96*5113495bSYour Name reserved_3a : 2, 97*5113495bSYour Name ru_start_index_80_0 : 6; 98*5113495bSYour Name uint32_t user_fd_rssi_seg0 : 32; 99*5113495bSYour Name uint32_t user_fd_rssi_seg1 : 32; 100*5113495bSYour Name uint32_t user_fd_rssi_seg2 : 32; 101*5113495bSYour Name uint32_t user_fd_rssi_seg3 : 32; 102*5113495bSYour Name #endif 103*5113495bSYour Name }; 104*5113495bSYour Name 105*5113495bSYour Name #define RECEIVE_USER_INFO_PHY_PPDU_ID_OFFSET 0x00000000 106*5113495bSYour Name #define RECEIVE_USER_INFO_PHY_PPDU_ID_LSB 0 107*5113495bSYour Name #define RECEIVE_USER_INFO_PHY_PPDU_ID_MSB 15 108*5113495bSYour Name #define RECEIVE_USER_INFO_PHY_PPDU_ID_MASK 0x0000ffff 109*5113495bSYour Name 110*5113495bSYour Name #define RECEIVE_USER_INFO_USER_RSSI_OFFSET 0x00000000 111*5113495bSYour Name #define RECEIVE_USER_INFO_USER_RSSI_LSB 16 112*5113495bSYour Name #define RECEIVE_USER_INFO_USER_RSSI_MSB 23 113*5113495bSYour Name #define RECEIVE_USER_INFO_USER_RSSI_MASK 0x00ff0000 114*5113495bSYour Name 115*5113495bSYour Name #define RECEIVE_USER_INFO_PKT_TYPE_OFFSET 0x00000000 116*5113495bSYour Name #define RECEIVE_USER_INFO_PKT_TYPE_LSB 24 117*5113495bSYour Name #define RECEIVE_USER_INFO_PKT_TYPE_MSB 27 118*5113495bSYour Name #define RECEIVE_USER_INFO_PKT_TYPE_MASK 0x0f000000 119*5113495bSYour Name 120*5113495bSYour Name #define RECEIVE_USER_INFO_STBC_OFFSET 0x00000000 121*5113495bSYour Name #define RECEIVE_USER_INFO_STBC_LSB 28 122*5113495bSYour Name #define RECEIVE_USER_INFO_STBC_MSB 28 123*5113495bSYour Name #define RECEIVE_USER_INFO_STBC_MASK 0x10000000 124*5113495bSYour Name 125*5113495bSYour Name #define RECEIVE_USER_INFO_RECEPTION_TYPE_OFFSET 0x00000000 126*5113495bSYour Name #define RECEIVE_USER_INFO_RECEPTION_TYPE_LSB 29 127*5113495bSYour Name #define RECEIVE_USER_INFO_RECEPTION_TYPE_MSB 31 128*5113495bSYour Name #define RECEIVE_USER_INFO_RECEPTION_TYPE_MASK 0xe0000000 129*5113495bSYour Name 130*5113495bSYour Name #define RECEIVE_USER_INFO_RATE_MCS_OFFSET 0x00000004 131*5113495bSYour Name #define RECEIVE_USER_INFO_RATE_MCS_LSB 0 132*5113495bSYour Name #define RECEIVE_USER_INFO_RATE_MCS_MSB 3 133*5113495bSYour Name #define RECEIVE_USER_INFO_RATE_MCS_MASK 0x0000000f 134*5113495bSYour Name 135*5113495bSYour Name #define RECEIVE_USER_INFO_SGI_OFFSET 0x00000004 136*5113495bSYour Name #define RECEIVE_USER_INFO_SGI_LSB 4 137*5113495bSYour Name #define RECEIVE_USER_INFO_SGI_MSB 5 138*5113495bSYour Name #define RECEIVE_USER_INFO_SGI_MASK 0x00000030 139*5113495bSYour Name 140*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1A_OFFSET 0x00000004 141*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1A_LSB 7 142*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1A_MSB 7 143*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1A_MASK 0x00000080 144*5113495bSYour Name 145*5113495bSYour Name #define RECEIVE_USER_INFO_MIMO_SS_BITMAP_OFFSET 0x00000004 146*5113495bSYour Name #define RECEIVE_USER_INFO_MIMO_SS_BITMAP_LSB 8 147*5113495bSYour Name #define RECEIVE_USER_INFO_MIMO_SS_BITMAP_MSB 15 148*5113495bSYour Name #define RECEIVE_USER_INFO_MIMO_SS_BITMAP_MASK 0x0000ff00 149*5113495bSYour Name 150*5113495bSYour Name #define RECEIVE_USER_INFO_RECEIVE_BANDWIDTH_OFFSET 0x00000004 151*5113495bSYour Name #define RECEIVE_USER_INFO_RECEIVE_BANDWIDTH_LSB 16 152*5113495bSYour Name #define RECEIVE_USER_INFO_RECEIVE_BANDWIDTH_MSB 18 153*5113495bSYour Name #define RECEIVE_USER_INFO_RECEIVE_BANDWIDTH_MASK 0x00070000 154*5113495bSYour Name 155*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1B_OFFSET 0x00000004 156*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1B_LSB 19 157*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1B_MSB 23 158*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1B_MASK 0x00f80000 159*5113495bSYour Name 160*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_USER_INDEX_OFFSET 0x00000004 161*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_USER_INDEX_LSB 24 162*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_USER_INDEX_MSB 31 163*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_USER_INDEX_MASK 0xff000000 164*5113495bSYour Name 165*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_CONTENT_CHANNEL_OFFSET 0x00000008 166*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_CONTENT_CHANNEL_LSB 0 167*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_CONTENT_CHANNEL_MSB 0 168*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_CONTENT_CHANNEL_MASK 0x00000001 169*5113495bSYour Name 170*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_2A_OFFSET 0x00000008 171*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_2A_LSB 1 172*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_2A_MSB 7 173*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_2A_MASK 0x000000fe 174*5113495bSYour Name 175*5113495bSYour Name #define RECEIVE_USER_INFO_NSS_OFFSET 0x00000008 176*5113495bSYour Name #define RECEIVE_USER_INFO_NSS_LSB 8 177*5113495bSYour Name #define RECEIVE_USER_INFO_NSS_MSB 10 178*5113495bSYour Name #define RECEIVE_USER_INFO_NSS_MASK 0x00000700 179*5113495bSYour Name 180*5113495bSYour Name #define RECEIVE_USER_INFO_STREAM_OFFSET_OFFSET 0x00000008 181*5113495bSYour Name #define RECEIVE_USER_INFO_STREAM_OFFSET_LSB 11 182*5113495bSYour Name #define RECEIVE_USER_INFO_STREAM_OFFSET_MSB 13 183*5113495bSYour Name #define RECEIVE_USER_INFO_STREAM_OFFSET_MASK 0x00003800 184*5113495bSYour Name 185*5113495bSYour Name #define RECEIVE_USER_INFO_STA_DCM_OFFSET 0x00000008 186*5113495bSYour Name #define RECEIVE_USER_INFO_STA_DCM_LSB 14 187*5113495bSYour Name #define RECEIVE_USER_INFO_STA_DCM_MSB 14 188*5113495bSYour Name #define RECEIVE_USER_INFO_STA_DCM_MASK 0x00004000 189*5113495bSYour Name 190*5113495bSYour Name #define RECEIVE_USER_INFO_LDPC_OFFSET 0x00000008 191*5113495bSYour Name #define RECEIVE_USER_INFO_LDPC_LSB 15 192*5113495bSYour Name #define RECEIVE_USER_INFO_LDPC_MSB 15 193*5113495bSYour Name #define RECEIVE_USER_INFO_LDPC_MASK 0x00008000 194*5113495bSYour Name 195*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_0_OFFSET 0x00000008 196*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_0_LSB 16 197*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_0_MSB 19 198*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_0_MASK 0x000f0000 199*5113495bSYour Name 200*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_1_OFFSET 0x00000008 201*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_1_LSB 20 202*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_1_MSB 23 203*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_1_MASK 0x00f00000 204*5113495bSYour Name 205*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_2_OFFSET 0x00000008 206*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_2_LSB 24 207*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_2_MSB 27 208*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_2_MASK 0x0f000000 209*5113495bSYour Name 210*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_3_OFFSET 0x00000008 211*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_3_LSB 28 212*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_3_MSB 31 213*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_3_MASK 0xf0000000 214*5113495bSYour Name 215*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_0_OFFSET 0x0000000c 216*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_0_LSB 0 217*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_0_MSB 5 218*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_0_MASK 0x0000003f 219*5113495bSYour Name 220*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3A_OFFSET 0x0000000c 221*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3A_LSB 6 222*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3A_MSB 7 223*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3A_MASK 0x000000c0 224*5113495bSYour Name 225*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_1_OFFSET 0x0000000c 226*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_1_LSB 8 227*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_1_MSB 13 228*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_1_MASK 0x00003f00 229*5113495bSYour Name 230*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3B_OFFSET 0x0000000c 231*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3B_LSB 14 232*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3B_MSB 15 233*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3B_MASK 0x0000c000 234*5113495bSYour Name 235*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_2_OFFSET 0x0000000c 236*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_2_LSB 16 237*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_2_MSB 21 238*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_2_MASK 0x003f0000 239*5113495bSYour Name 240*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3C_OFFSET 0x0000000c 241*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3C_LSB 22 242*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3C_MSB 23 243*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3C_MASK 0x00c00000 244*5113495bSYour Name 245*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_3_OFFSET 0x0000000c 246*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_3_LSB 24 247*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_3_MSB 29 248*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_3_MASK 0x3f000000 249*5113495bSYour Name 250*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3D_OFFSET 0x0000000c 251*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3D_LSB 30 252*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3D_MSB 31 253*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3D_MASK 0xc0000000 254*5113495bSYour Name 255*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG0_OFFSET 0x00000010 256*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG0_LSB 0 257*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG0_MSB 31 258*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG0_MASK 0xffffffff 259*5113495bSYour Name 260*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG1_OFFSET 0x00000014 261*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG1_LSB 0 262*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG1_MSB 31 263*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG1_MASK 0xffffffff 264*5113495bSYour Name 265*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG2_OFFSET 0x00000018 266*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG2_LSB 0 267*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG2_MSB 31 268*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG2_MASK 0xffffffff 269*5113495bSYour Name 270*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG3_OFFSET 0x0000001c 271*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG3_LSB 0 272*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG3_MSB 31 273*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG3_MASK 0xffffffff 274*5113495bSYour Name 275*5113495bSYour Name #endif 276