1*5113495bSYour Name 2*5113495bSYour Name /* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. 3*5113495bSYour Name * 4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for any 5*5113495bSYour Name * purpose with or without fee is hereby granted, provided that the above 6*5113495bSYour Name * copyright notice and this permission notice appear in all copies. 7*5113495bSYour Name * 8*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9*5113495bSYour Name * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10*5113495bSYour Name * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11*5113495bSYour Name * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12*5113495bSYour Name * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13*5113495bSYour Name * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14*5113495bSYour Name * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15*5113495bSYour Name */ 16*5113495bSYour Name 17*5113495bSYour Name 18*5113495bSYour Name 19*5113495bSYour Name 20*5113495bSYour Name 21*5113495bSYour Name 22*5113495bSYour Name 23*5113495bSYour Name 24*5113495bSYour Name 25*5113495bSYour Name 26*5113495bSYour Name #ifndef _RECEIVE_USER_INFO_H_ 27*5113495bSYour Name #define _RECEIVE_USER_INFO_H_ 28*5113495bSYour Name #if !defined(__ASSEMBLER__) 29*5113495bSYour Name #endif 30*5113495bSYour Name 31*5113495bSYour Name #define NUM_OF_DWORDS_RECEIVE_USER_INFO 8 32*5113495bSYour Name 33*5113495bSYour Name 34*5113495bSYour Name struct receive_user_info { 35*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 36*5113495bSYour Name uint32_t phy_ppdu_id : 16, // [15:0] 37*5113495bSYour Name user_rssi : 8, // [23:16] 38*5113495bSYour Name pkt_type : 4, // [27:24] 39*5113495bSYour Name stbc : 1, // [28:28] 40*5113495bSYour Name reception_type : 3; // [31:29] 41*5113495bSYour Name uint32_t rate_mcs : 4, // [3:0] 42*5113495bSYour Name sgi : 2, // [5:4] 43*5113495bSYour Name he_ranging_ndp : 1, // [6:6] 44*5113495bSYour Name reserved_1a : 1, // [7:7] 45*5113495bSYour Name mimo_ss_bitmap : 8, // [15:8] 46*5113495bSYour Name receive_bandwidth : 3, // [18:16] 47*5113495bSYour Name reserved_1b : 5, // [23:19] 48*5113495bSYour Name dl_ofdma_user_index : 8; // [31:24] 49*5113495bSYour Name uint32_t dl_ofdma_content_channel : 1, // [0:0] 50*5113495bSYour Name reserved_2a : 7, // [7:1] 51*5113495bSYour Name nss : 3, // [10:8] 52*5113495bSYour Name stream_offset : 3, // [13:11] 53*5113495bSYour Name sta_dcm : 1, // [14:14] 54*5113495bSYour Name ldpc : 1, // [15:15] 55*5113495bSYour Name ru_type_80_0 : 4, // [19:16] 56*5113495bSYour Name ru_type_80_1 : 4, // [23:20] 57*5113495bSYour Name ru_type_80_2 : 4, // [27:24] 58*5113495bSYour Name ru_type_80_3 : 4; // [31:28] 59*5113495bSYour Name uint32_t ru_start_index_80_0 : 6, // [5:0] 60*5113495bSYour Name reserved_3a : 2, // [7:6] 61*5113495bSYour Name ru_start_index_80_1 : 6, // [13:8] 62*5113495bSYour Name reserved_3b : 2, // [15:14] 63*5113495bSYour Name ru_start_index_80_2 : 6, // [21:16] 64*5113495bSYour Name reserved_3c : 2, // [23:22] 65*5113495bSYour Name ru_start_index_80_3 : 6, // [29:24] 66*5113495bSYour Name reserved_3d : 2; // [31:30] 67*5113495bSYour Name uint32_t user_fd_rssi_seg0 : 32; // [31:0] 68*5113495bSYour Name uint32_t user_fd_rssi_seg1 : 32; // [31:0] 69*5113495bSYour Name uint32_t user_fd_rssi_seg2 : 32; // [31:0] 70*5113495bSYour Name uint32_t user_fd_rssi_seg3 : 32; // [31:0] 71*5113495bSYour Name #else 72*5113495bSYour Name uint32_t reception_type : 3, // [31:29] 73*5113495bSYour Name stbc : 1, // [28:28] 74*5113495bSYour Name pkt_type : 4, // [27:24] 75*5113495bSYour Name user_rssi : 8, // [23:16] 76*5113495bSYour Name phy_ppdu_id : 16; // [15:0] 77*5113495bSYour Name uint32_t dl_ofdma_user_index : 8, // [31:24] 78*5113495bSYour Name reserved_1b : 5, // [23:19] 79*5113495bSYour Name receive_bandwidth : 3, // [18:16] 80*5113495bSYour Name mimo_ss_bitmap : 8, // [15:8] 81*5113495bSYour Name reserved_1a : 1, // [7:7] 82*5113495bSYour Name he_ranging_ndp : 1, // [6:6] 83*5113495bSYour Name sgi : 2, // [5:4] 84*5113495bSYour Name rate_mcs : 4; // [3:0] 85*5113495bSYour Name uint32_t ru_type_80_3 : 4, // [31:28] 86*5113495bSYour Name ru_type_80_2 : 4, // [27:24] 87*5113495bSYour Name ru_type_80_1 : 4, // [23:20] 88*5113495bSYour Name ru_type_80_0 : 4, // [19:16] 89*5113495bSYour Name ldpc : 1, // [15:15] 90*5113495bSYour Name sta_dcm : 1, // [14:14] 91*5113495bSYour Name stream_offset : 3, // [13:11] 92*5113495bSYour Name nss : 3, // [10:8] 93*5113495bSYour Name reserved_2a : 7, // [7:1] 94*5113495bSYour Name dl_ofdma_content_channel : 1; // [0:0] 95*5113495bSYour Name uint32_t reserved_3d : 2, // [31:30] 96*5113495bSYour Name ru_start_index_80_3 : 6, // [29:24] 97*5113495bSYour Name reserved_3c : 2, // [23:22] 98*5113495bSYour Name ru_start_index_80_2 : 6, // [21:16] 99*5113495bSYour Name reserved_3b : 2, // [15:14] 100*5113495bSYour Name ru_start_index_80_1 : 6, // [13:8] 101*5113495bSYour Name reserved_3a : 2, // [7:6] 102*5113495bSYour Name ru_start_index_80_0 : 6; // [5:0] 103*5113495bSYour Name uint32_t user_fd_rssi_seg0 : 32; // [31:0] 104*5113495bSYour Name uint32_t user_fd_rssi_seg1 : 32; // [31:0] 105*5113495bSYour Name uint32_t user_fd_rssi_seg2 : 32; // [31:0] 106*5113495bSYour Name uint32_t user_fd_rssi_seg3 : 32; // [31:0] 107*5113495bSYour Name #endif 108*5113495bSYour Name }; 109*5113495bSYour Name 110*5113495bSYour Name 111*5113495bSYour Name /* Description PHY_PPDU_ID 112*5113495bSYour Name 113*5113495bSYour Name A ppdu counter value that PHY increments for every PPDU 114*5113495bSYour Name received. The counter value wraps around 115*5113495bSYour Name <legal all> 116*5113495bSYour Name */ 117*5113495bSYour Name 118*5113495bSYour Name #define RECEIVE_USER_INFO_PHY_PPDU_ID_OFFSET 0x00000000 119*5113495bSYour Name #define RECEIVE_USER_INFO_PHY_PPDU_ID_LSB 0 120*5113495bSYour Name #define RECEIVE_USER_INFO_PHY_PPDU_ID_MSB 15 121*5113495bSYour Name #define RECEIVE_USER_INFO_PHY_PPDU_ID_MASK 0x0000ffff 122*5113495bSYour Name 123*5113495bSYour Name 124*5113495bSYour Name /* Description USER_RSSI 125*5113495bSYour Name 126*5113495bSYour Name RSSI for this user 127*5113495bSYour Name Frequency domain RSSI measurement for this user. Based on 128*5113495bSYour Name the channel estimate. 129*5113495bSYour Name 130*5113495bSYour Name <legal all> 131*5113495bSYour Name */ 132*5113495bSYour Name 133*5113495bSYour Name #define RECEIVE_USER_INFO_USER_RSSI_OFFSET 0x00000000 134*5113495bSYour Name #define RECEIVE_USER_INFO_USER_RSSI_LSB 16 135*5113495bSYour Name #define RECEIVE_USER_INFO_USER_RSSI_MSB 23 136*5113495bSYour Name #define RECEIVE_USER_INFO_USER_RSSI_MASK 0x00ff0000 137*5113495bSYour Name 138*5113495bSYour Name 139*5113495bSYour Name /* Description PKT_TYPE 140*5113495bSYour Name 141*5113495bSYour Name Packet type: 142*5113495bSYour Name 143*5113495bSYour Name <enum 0 dot11a>802.11a PPDU type 144*5113495bSYour Name <enum 1 dot11b>802.11b PPDU type 145*5113495bSYour Name <enum 2 dot11n_mm>802.11n Mixed Mode PPDU type 146*5113495bSYour Name <enum 3 dot11ac>802.11ac PPDU type 147*5113495bSYour Name <enum 4 dot11ax>802.11ax PPDU type 148*5113495bSYour Name <enum 5 dot11ba>802.11ba (WUR) PPDU type 149*5113495bSYour Name <enum 6 dot11be>802.11be PPDU type 150*5113495bSYour Name <enum 7 dot11az>802.11az (ranging) PPDU type 151*5113495bSYour Name <enum 8 dot11n_gf>802.11n Green Field PPDU type (unsupported 152*5113495bSYour Name & aborted) 153*5113495bSYour Name */ 154*5113495bSYour Name 155*5113495bSYour Name #define RECEIVE_USER_INFO_PKT_TYPE_OFFSET 0x00000000 156*5113495bSYour Name #define RECEIVE_USER_INFO_PKT_TYPE_LSB 24 157*5113495bSYour Name #define RECEIVE_USER_INFO_PKT_TYPE_MSB 27 158*5113495bSYour Name #define RECEIVE_USER_INFO_PKT_TYPE_MASK 0x0f000000 159*5113495bSYour Name 160*5113495bSYour Name 161*5113495bSYour Name /* Description STBC 162*5113495bSYour Name 163*5113495bSYour Name When set, use STBC transmission rates 164*5113495bSYour Name */ 165*5113495bSYour Name 166*5113495bSYour Name #define RECEIVE_USER_INFO_STBC_OFFSET 0x00000000 167*5113495bSYour Name #define RECEIVE_USER_INFO_STBC_LSB 28 168*5113495bSYour Name #define RECEIVE_USER_INFO_STBC_MSB 28 169*5113495bSYour Name #define RECEIVE_USER_INFO_STBC_MASK 0x10000000 170*5113495bSYour Name 171*5113495bSYour Name 172*5113495bSYour Name /* Description RECEPTION_TYPE 173*5113495bSYour Name 174*5113495bSYour Name Indicates what type of reception this is. 175*5113495bSYour Name <enum 0 reception_type_SU > Basic SU reception (not 176*5113495bSYour Name part of OFDMA or MU-MIMO) 177*5113495bSYour Name <enum 1 reception_type_MU_MIMO > This is related to 178*5113495bSYour Name DL type of reception 179*5113495bSYour Name <enum 2 reception_type_MU_OFDMA > This is related to 180*5113495bSYour Name DL type of reception 181*5113495bSYour Name <enum 3 reception_type_MU_OFDMA_MIMO > This is related 182*5113495bSYour Name to DL type of reception 183*5113495bSYour Name <enum 4 reception_type_UL_MU_MIMO > This is related 184*5113495bSYour Name to UL type of reception 185*5113495bSYour Name <enum 5 reception_type_UL_MU_OFDMA > This is related 186*5113495bSYour Name to UL type of reception 187*5113495bSYour Name <enum 6 reception_type_UL_MU_OFDMA_MIMO > This is related 188*5113495bSYour Name to UL type of reception 189*5113495bSYour Name 190*5113495bSYour Name <legal 0-6> 191*5113495bSYour Name */ 192*5113495bSYour Name 193*5113495bSYour Name #define RECEIVE_USER_INFO_RECEPTION_TYPE_OFFSET 0x00000000 194*5113495bSYour Name #define RECEIVE_USER_INFO_RECEPTION_TYPE_LSB 29 195*5113495bSYour Name #define RECEIVE_USER_INFO_RECEPTION_TYPE_MSB 31 196*5113495bSYour Name #define RECEIVE_USER_INFO_RECEPTION_TYPE_MASK 0xe0000000 197*5113495bSYour Name 198*5113495bSYour Name 199*5113495bSYour Name /* Description RATE_MCS 200*5113495bSYour Name 201*5113495bSYour Name For details, refer to MCS_TYPE description 202*5113495bSYour Name <legal all> 203*5113495bSYour Name */ 204*5113495bSYour Name 205*5113495bSYour Name #define RECEIVE_USER_INFO_RATE_MCS_OFFSET 0x00000004 206*5113495bSYour Name #define RECEIVE_USER_INFO_RATE_MCS_LSB 0 207*5113495bSYour Name #define RECEIVE_USER_INFO_RATE_MCS_MSB 3 208*5113495bSYour Name #define RECEIVE_USER_INFO_RATE_MCS_MASK 0x0000000f 209*5113495bSYour Name 210*5113495bSYour Name 211*5113495bSYour Name /* Description SGI 212*5113495bSYour Name 213*5113495bSYour Name Field only valid when pkt type is HT, VHT or HE. 214*5113495bSYour Name 215*5113495bSYour Name <enum 0 gi_0_8_us > Legacy normal GI. Can also be used 216*5113495bSYour Name for HE 217*5113495bSYour Name <enum 1 gi_0_4_us > Legacy short GI. Can also be used 218*5113495bSYour Name for HE 219*5113495bSYour Name <enum 2 gi_1_6_us > HE related GI 220*5113495bSYour Name <enum 3 gi_3_2_us > HE related GI 221*5113495bSYour Name <legal 0 - 3> 222*5113495bSYour Name */ 223*5113495bSYour Name 224*5113495bSYour Name #define RECEIVE_USER_INFO_SGI_OFFSET 0x00000004 225*5113495bSYour Name #define RECEIVE_USER_INFO_SGI_LSB 4 226*5113495bSYour Name #define RECEIVE_USER_INFO_SGI_MSB 5 227*5113495bSYour Name #define RECEIVE_USER_INFO_SGI_MASK 0x00000030 228*5113495bSYour Name 229*5113495bSYour Name 230*5113495bSYour Name /* Description HE_RANGING_NDP 231*5113495bSYour Name 232*5113495bSYour Name Set to 1 for expected HE TB ranging NDP Rx in response to 233*5113495bSYour Name sounding/secure sounding ranging Trigger Tx 234*5113495bSYour Name 235*5113495bSYour Name <legal all> 236*5113495bSYour Name */ 237*5113495bSYour Name 238*5113495bSYour Name #define RECEIVE_USER_INFO_HE_RANGING_NDP_OFFSET 0x00000004 239*5113495bSYour Name #define RECEIVE_USER_INFO_HE_RANGING_NDP_LSB 6 240*5113495bSYour Name #define RECEIVE_USER_INFO_HE_RANGING_NDP_MSB 6 241*5113495bSYour Name #define RECEIVE_USER_INFO_HE_RANGING_NDP_MASK 0x00000040 242*5113495bSYour Name 243*5113495bSYour Name 244*5113495bSYour Name /* Description RESERVED_1A 245*5113495bSYour Name 246*5113495bSYour Name <legal 0> 247*5113495bSYour Name */ 248*5113495bSYour Name 249*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1A_OFFSET 0x00000004 250*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1A_LSB 7 251*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1A_MSB 7 252*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1A_MASK 0x00000080 253*5113495bSYour Name 254*5113495bSYour Name 255*5113495bSYour Name /* Description MIMO_SS_BITMAP 256*5113495bSYour Name 257*5113495bSYour Name Bitmap, with each bit indicating if the related spatial 258*5113495bSYour Name stream is used for this STA 259*5113495bSYour Name LSB related to SS 0 260*5113495bSYour Name 261*5113495bSYour Name 0: spatial stream not used for this reception 262*5113495bSYour Name 1: spatial stream used for this reception 263*5113495bSYour Name 264*5113495bSYour Name <legal all> 265*5113495bSYour Name */ 266*5113495bSYour Name 267*5113495bSYour Name #define RECEIVE_USER_INFO_MIMO_SS_BITMAP_OFFSET 0x00000004 268*5113495bSYour Name #define RECEIVE_USER_INFO_MIMO_SS_BITMAP_LSB 8 269*5113495bSYour Name #define RECEIVE_USER_INFO_MIMO_SS_BITMAP_MSB 15 270*5113495bSYour Name #define RECEIVE_USER_INFO_MIMO_SS_BITMAP_MASK 0x0000ff00 271*5113495bSYour Name 272*5113495bSYour Name 273*5113495bSYour Name /* Description RECEIVE_BANDWIDTH 274*5113495bSYour Name 275*5113495bSYour Name Full receive Bandwidth 276*5113495bSYour Name 277*5113495bSYour Name <enum 0 20_mhz>20 Mhz BW 278*5113495bSYour Name <enum 1 40_mhz>40 Mhz BW 279*5113495bSYour Name <enum 2 80_mhz>80 Mhz BW 280*5113495bSYour Name <enum 3 160_mhz>160 Mhz BW 281*5113495bSYour Name <enum 4 320_mhz>320 Mhz BW 282*5113495bSYour Name <enum 5 240_mhz>240 Mhz BW 283*5113495bSYour Name */ 284*5113495bSYour Name 285*5113495bSYour Name #define RECEIVE_USER_INFO_RECEIVE_BANDWIDTH_OFFSET 0x00000004 286*5113495bSYour Name #define RECEIVE_USER_INFO_RECEIVE_BANDWIDTH_LSB 16 287*5113495bSYour Name #define RECEIVE_USER_INFO_RECEIVE_BANDWIDTH_MSB 18 288*5113495bSYour Name #define RECEIVE_USER_INFO_RECEIVE_BANDWIDTH_MASK 0x00070000 289*5113495bSYour Name 290*5113495bSYour Name 291*5113495bSYour Name /* Description RESERVED_1B 292*5113495bSYour Name 293*5113495bSYour Name <legal 0> 294*5113495bSYour Name */ 295*5113495bSYour Name 296*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1B_OFFSET 0x00000004 297*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1B_LSB 19 298*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1B_MSB 23 299*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_1B_MASK 0x00f80000 300*5113495bSYour Name 301*5113495bSYour Name 302*5113495bSYour Name /* Description DL_OFDMA_USER_INDEX 303*5113495bSYour Name 304*5113495bSYour Name Field only valid in the of DL MU OFDMA reception 305*5113495bSYour Name 306*5113495bSYour Name The user number within the RU_allocation. 307*5113495bSYour Name 308*5113495bSYour Name This is needed for SW to determine the exact RU position 309*5113495bSYour Name within the reception. 310*5113495bSYour Name <legal all> 311*5113495bSYour Name */ 312*5113495bSYour Name 313*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_USER_INDEX_OFFSET 0x00000004 314*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_USER_INDEX_LSB 24 315*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_USER_INDEX_MSB 31 316*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_USER_INDEX_MASK 0xff000000 317*5113495bSYour Name 318*5113495bSYour Name 319*5113495bSYour Name /* Description DL_OFDMA_CONTENT_CHANNEL 320*5113495bSYour Name 321*5113495bSYour Name Field only valid in the of DL MU OFDMA/MIMO reception 322*5113495bSYour Name 323*5113495bSYour Name In case of DL MU reception, this field indicates the content 324*5113495bSYour Name channel number where PHY found the RU information for this 325*5113495bSYour Name user 326*5113495bSYour Name 327*5113495bSYour Name This is needed for SW to determine the exact RU position 328*5113495bSYour Name within the reception. 329*5113495bSYour Name 330*5113495bSYour Name <enum 0 content_channel_1> 331*5113495bSYour Name <enum 1 content_channel_2> 332*5113495bSYour Name 333*5113495bSYour Name <legal all> 334*5113495bSYour Name */ 335*5113495bSYour Name 336*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_CONTENT_CHANNEL_OFFSET 0x00000008 337*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_CONTENT_CHANNEL_LSB 0 338*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_CONTENT_CHANNEL_MSB 0 339*5113495bSYour Name #define RECEIVE_USER_INFO_DL_OFDMA_CONTENT_CHANNEL_MASK 0x00000001 340*5113495bSYour Name 341*5113495bSYour Name 342*5113495bSYour Name /* Description RESERVED_2A 343*5113495bSYour Name 344*5113495bSYour Name <legal 0> 345*5113495bSYour Name */ 346*5113495bSYour Name 347*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_2A_OFFSET 0x00000008 348*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_2A_LSB 1 349*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_2A_MSB 7 350*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_2A_MASK 0x000000fe 351*5113495bSYour Name 352*5113495bSYour Name 353*5113495bSYour Name /* Description NSS 354*5113495bSYour Name 355*5113495bSYour Name Field only valid in case of Uplink_receive_type == mimo_only 356*5113495bSYour Name OR ofdma_mimo 357*5113495bSYour Name 358*5113495bSYour Name Number of Spatial Streams occupied by the User 359*5113495bSYour Name 360*5113495bSYour Name <enum 0 1_spatial_stream>Single spatial stream 361*5113495bSYour Name <enum 1 2_spatial_streams>2 spatial streams 362*5113495bSYour Name <enum 2 3_spatial_streams>3 spatial streams 363*5113495bSYour Name <enum 3 4_spatial_streams>4 spatial streams 364*5113495bSYour Name <enum 4 5_spatial_streams>5 spatial streams 365*5113495bSYour Name <enum 5 6_spatial_streams>6 spatial streams 366*5113495bSYour Name <enum 6 7_spatial_streams>7 spatial streams 367*5113495bSYour Name <enum 7 8_spatial_streams>8 spatial streams 368*5113495bSYour Name */ 369*5113495bSYour Name 370*5113495bSYour Name #define RECEIVE_USER_INFO_NSS_OFFSET 0x00000008 371*5113495bSYour Name #define RECEIVE_USER_INFO_NSS_LSB 8 372*5113495bSYour Name #define RECEIVE_USER_INFO_NSS_MSB 10 373*5113495bSYour Name #define RECEIVE_USER_INFO_NSS_MASK 0x00000700 374*5113495bSYour Name 375*5113495bSYour Name 376*5113495bSYour Name /* Description STREAM_OFFSET 377*5113495bSYour Name 378*5113495bSYour Name Field only valid in case of Uplink_receive_type == mimo_only 379*5113495bSYour Name OR ofdma_mimo 380*5113495bSYour Name 381*5113495bSYour Name Stream Offset from which the User occupies the Streams 382*5113495bSYour Name 383*5113495bSYour Name Note MAC: 384*5113495bSYour Name directly from pdg_fes_setup, based on BW 385*5113495bSYour Name */ 386*5113495bSYour Name 387*5113495bSYour Name #define RECEIVE_USER_INFO_STREAM_OFFSET_OFFSET 0x00000008 388*5113495bSYour Name #define RECEIVE_USER_INFO_STREAM_OFFSET_LSB 11 389*5113495bSYour Name #define RECEIVE_USER_INFO_STREAM_OFFSET_MSB 13 390*5113495bSYour Name #define RECEIVE_USER_INFO_STREAM_OFFSET_MASK 0x00003800 391*5113495bSYour Name 392*5113495bSYour Name 393*5113495bSYour Name /* Description STA_DCM 394*5113495bSYour Name 395*5113495bSYour Name Indicates whether dual sub-carrier modulation is applied 396*5113495bSYour Name 397*5113495bSYour Name 0: No DCM 398*5113495bSYour Name 1:DCM 399*5113495bSYour Name <legal all> 400*5113495bSYour Name */ 401*5113495bSYour Name 402*5113495bSYour Name #define RECEIVE_USER_INFO_STA_DCM_OFFSET 0x00000008 403*5113495bSYour Name #define RECEIVE_USER_INFO_STA_DCM_LSB 14 404*5113495bSYour Name #define RECEIVE_USER_INFO_STA_DCM_MSB 14 405*5113495bSYour Name #define RECEIVE_USER_INFO_STA_DCM_MASK 0x00004000 406*5113495bSYour Name 407*5113495bSYour Name 408*5113495bSYour Name /* Description LDPC 409*5113495bSYour Name 410*5113495bSYour Name When set, use LDPC transmission rates were used. 411*5113495bSYour Name <legal all> 412*5113495bSYour Name */ 413*5113495bSYour Name 414*5113495bSYour Name #define RECEIVE_USER_INFO_LDPC_OFFSET 0x00000008 415*5113495bSYour Name #define RECEIVE_USER_INFO_LDPC_LSB 15 416*5113495bSYour Name #define RECEIVE_USER_INFO_LDPC_MSB 15 417*5113495bSYour Name #define RECEIVE_USER_INFO_LDPC_MASK 0x00008000 418*5113495bSYour Name 419*5113495bSYour Name 420*5113495bSYour Name /* Description RU_TYPE_80_0 421*5113495bSYour Name 422*5113495bSYour Name Indicates the size of the RU in the first 80 MHz sub-band 423*5113495bSYour Name 424*5113495bSYour Name <enum 0 RU_26_per80> 425*5113495bSYour Name <enum 1 RU_52_per80> 426*5113495bSYour Name <enum 2 RU_78_per80> 427*5113495bSYour Name <enum 3 RU_106_per80> 428*5113495bSYour Name <enum 4 RU_132_per80> 429*5113495bSYour Name <enum 5 RU_242_per80> 430*5113495bSYour Name <enum 6 RU_484_per80> 431*5113495bSYour Name <enum 7 RU_726_per80> 432*5113495bSYour Name <enum 8 RU_996_per80> 433*5113495bSYour Name <enum 9 RU_996x2> 434*5113495bSYour Name <enum 10 RU_996x3> 435*5113495bSYour Name <enum 11 RU_996x4> 436*5113495bSYour Name <enum 12 RU_rsvd0> DO NOT USE 437*5113495bSYour Name <enum 13 RU_rsvd1> DO NOT USE 438*5113495bSYour Name <enum 14 RU_rsvd2> DO NOT USE 439*5113495bSYour Name <enum 15 RU_NONE> No RUs in this 80 MHz 440*5113495bSYour Name <legal 0-15> 441*5113495bSYour Name */ 442*5113495bSYour Name 443*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_0_OFFSET 0x00000008 444*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_0_LSB 16 445*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_0_MSB 19 446*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_0_MASK 0x000f0000 447*5113495bSYour Name 448*5113495bSYour Name 449*5113495bSYour Name /* Description RU_TYPE_80_1 450*5113495bSYour Name 451*5113495bSYour Name Indicates the size of the RU in the second 80 MHz sub-band 452*5113495bSYour Name 453*5113495bSYour Name <enum 0 RU_26_per80> 454*5113495bSYour Name <enum 1 RU_52_per80> 455*5113495bSYour Name <enum 2 RU_78_per80> 456*5113495bSYour Name <enum 3 RU_106_per80> 457*5113495bSYour Name <enum 4 RU_132_per80> 458*5113495bSYour Name <enum 5 RU_242_per80> 459*5113495bSYour Name <enum 6 RU_484_per80> 460*5113495bSYour Name <enum 7 RU_726_per80> 461*5113495bSYour Name <enum 8 RU_996_per80> 462*5113495bSYour Name <enum 9 RU_996x2> 463*5113495bSYour Name <enum 10 RU_996x3> 464*5113495bSYour Name <enum 11 RU_996x4> 465*5113495bSYour Name <enum 12 RU_rsvd0> DO NOT USE 466*5113495bSYour Name <enum 13 RU_rsvd1> DO NOT USE 467*5113495bSYour Name <enum 14 RU_rsvd2> DO NOT USE 468*5113495bSYour Name <enum 15 RU_NONE> No RUs in this 80 MHz 469*5113495bSYour Name <legal 0-15> 470*5113495bSYour Name */ 471*5113495bSYour Name 472*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_1_OFFSET 0x00000008 473*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_1_LSB 20 474*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_1_MSB 23 475*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_1_MASK 0x00f00000 476*5113495bSYour Name 477*5113495bSYour Name 478*5113495bSYour Name /* Description RU_TYPE_80_2 479*5113495bSYour Name 480*5113495bSYour Name Indicates the size of the RU in the third 80 MHz sub-band 481*5113495bSYour Name 482*5113495bSYour Name <enum 0 RU_26_per80> 483*5113495bSYour Name <enum 1 RU_52_per80> 484*5113495bSYour Name <enum 2 RU_78_per80> 485*5113495bSYour Name <enum 3 RU_106_per80> 486*5113495bSYour Name <enum 4 RU_132_per80> 487*5113495bSYour Name <enum 5 RU_242_per80> 488*5113495bSYour Name <enum 6 RU_484_per80> 489*5113495bSYour Name <enum 7 RU_726_per80> 490*5113495bSYour Name <enum 8 RU_996_per80> 491*5113495bSYour Name <enum 9 RU_996x2> 492*5113495bSYour Name <enum 10 RU_996x3> 493*5113495bSYour Name <enum 11 RU_996x4> 494*5113495bSYour Name <enum 12 RU_rsvd0> DO NOT USE 495*5113495bSYour Name <enum 13 RU_rsvd1> DO NOT USE 496*5113495bSYour Name <enum 14 RU_rsvd2> DO NOT USE 497*5113495bSYour Name <enum 15 RU_NONE> No RUs in this 80 MHz 498*5113495bSYour Name <legal 0-15> 499*5113495bSYour Name */ 500*5113495bSYour Name 501*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_2_OFFSET 0x00000008 502*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_2_LSB 24 503*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_2_MSB 27 504*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_2_MASK 0x0f000000 505*5113495bSYour Name 506*5113495bSYour Name 507*5113495bSYour Name /* Description RU_TYPE_80_3 508*5113495bSYour Name 509*5113495bSYour Name Indicates the size of the RU in the fourth 80 MHz sub-band 510*5113495bSYour Name 511*5113495bSYour Name <enum 0 RU_26_per80> 512*5113495bSYour Name <enum 1 RU_52_per80> 513*5113495bSYour Name <enum 2 RU_78_per80> 514*5113495bSYour Name <enum 3 RU_106_per80> 515*5113495bSYour Name <enum 4 RU_132_per80> 516*5113495bSYour Name <enum 5 RU_242_per80> 517*5113495bSYour Name <enum 6 RU_484_per80> 518*5113495bSYour Name <enum 7 RU_726_per80> 519*5113495bSYour Name <enum 8 RU_996_per80> 520*5113495bSYour Name <enum 9 RU_996x2> 521*5113495bSYour Name <enum 10 RU_996x3> 522*5113495bSYour Name <enum 11 RU_996x4> 523*5113495bSYour Name <enum 12 RU_rsvd0> DO NOT USE 524*5113495bSYour Name <enum 13 RU_rsvd1> DO NOT USE 525*5113495bSYour Name <enum 14 RU_rsvd2> DO NOT USE 526*5113495bSYour Name <enum 15 RU_NONE> No RUs in this 80 MHz 527*5113495bSYour Name <legal 0-15> 528*5113495bSYour Name */ 529*5113495bSYour Name 530*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_3_OFFSET 0x00000008 531*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_3_LSB 28 532*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_3_MSB 31 533*5113495bSYour Name #define RECEIVE_USER_INFO_RU_TYPE_80_3_MASK 0xf0000000 534*5113495bSYour Name 535*5113495bSYour Name 536*5113495bSYour Name /* Description RU_START_INDEX_80_0 537*5113495bSYour Name 538*5113495bSYour Name RU index number to which User is assigned in the first 80 539*5113495bSYour Name MHz 540*5113495bSYour Name RU numbering is over the entire BW, starting from 0 and 541*5113495bSYour Name in increasing frequency order and not primary-secondary 542*5113495bSYour Name order 543*5113495bSYour Name <legal 0-36> 544*5113495bSYour Name */ 545*5113495bSYour Name 546*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_0_OFFSET 0x0000000c 547*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_0_LSB 0 548*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_0_MSB 5 549*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_0_MASK 0x0000003f 550*5113495bSYour Name 551*5113495bSYour Name 552*5113495bSYour Name /* Description RESERVED_3A 553*5113495bSYour Name 554*5113495bSYour Name <legal 0> 555*5113495bSYour Name */ 556*5113495bSYour Name 557*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3A_OFFSET 0x0000000c 558*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3A_LSB 6 559*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3A_MSB 7 560*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3A_MASK 0x000000c0 561*5113495bSYour Name 562*5113495bSYour Name 563*5113495bSYour Name /* Description RU_START_INDEX_80_1 564*5113495bSYour Name 565*5113495bSYour Name RU index number to which User is assigned in the second 566*5113495bSYour Name 80 MHz 567*5113495bSYour Name RU numbering is over the entire BW, starting from 0 and 568*5113495bSYour Name in increasing frequency order and not primary-secondary 569*5113495bSYour Name order 570*5113495bSYour Name <legal 0-36> 571*5113495bSYour Name */ 572*5113495bSYour Name 573*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_1_OFFSET 0x0000000c 574*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_1_LSB 8 575*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_1_MSB 13 576*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_1_MASK 0x00003f00 577*5113495bSYour Name 578*5113495bSYour Name 579*5113495bSYour Name /* Description RESERVED_3B 580*5113495bSYour Name 581*5113495bSYour Name <legal 0> 582*5113495bSYour Name */ 583*5113495bSYour Name 584*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3B_OFFSET 0x0000000c 585*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3B_LSB 14 586*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3B_MSB 15 587*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3B_MASK 0x0000c000 588*5113495bSYour Name 589*5113495bSYour Name 590*5113495bSYour Name /* Description RU_START_INDEX_80_2 591*5113495bSYour Name 592*5113495bSYour Name RU index number to which User is assigned in the third 80 593*5113495bSYour Name MHz 594*5113495bSYour Name RU numbering is over the entire BW, starting from 0 and 595*5113495bSYour Name in increasing frequency order and not primary-secondary 596*5113495bSYour Name order 597*5113495bSYour Name <legal 0-36> 598*5113495bSYour Name */ 599*5113495bSYour Name 600*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_2_OFFSET 0x0000000c 601*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_2_LSB 16 602*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_2_MSB 21 603*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_2_MASK 0x003f0000 604*5113495bSYour Name 605*5113495bSYour Name 606*5113495bSYour Name /* Description RESERVED_3C 607*5113495bSYour Name 608*5113495bSYour Name <legal 0> 609*5113495bSYour Name */ 610*5113495bSYour Name 611*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3C_OFFSET 0x0000000c 612*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3C_LSB 22 613*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3C_MSB 23 614*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3C_MASK 0x00c00000 615*5113495bSYour Name 616*5113495bSYour Name 617*5113495bSYour Name /* Description RU_START_INDEX_80_3 618*5113495bSYour Name 619*5113495bSYour Name RU index number to which User is assigned in the fourth 620*5113495bSYour Name 80 MHz 621*5113495bSYour Name RU numbering is over the entire BW, starting from 0 and 622*5113495bSYour Name in increasing frequency order and not primary-secondary 623*5113495bSYour Name order 624*5113495bSYour Name <legal 0-36> 625*5113495bSYour Name */ 626*5113495bSYour Name 627*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_3_OFFSET 0x0000000c 628*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_3_LSB 24 629*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_3_MSB 29 630*5113495bSYour Name #define RECEIVE_USER_INFO_RU_START_INDEX_80_3_MASK 0x3f000000 631*5113495bSYour Name 632*5113495bSYour Name 633*5113495bSYour Name /* Description RESERVED_3D 634*5113495bSYour Name 635*5113495bSYour Name <legal 0> 636*5113495bSYour Name */ 637*5113495bSYour Name 638*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3D_OFFSET 0x0000000c 639*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3D_LSB 30 640*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3D_MSB 31 641*5113495bSYour Name #define RECEIVE_USER_INFO_RESERVED_3D_MASK 0xc0000000 642*5113495bSYour Name 643*5113495bSYour Name 644*5113495bSYour Name /* Description USER_FD_RSSI_SEG0 645*5113495bSYour Name 646*5113495bSYour Name Frequency domain RSSI measurement for the lowest 80 MHz 647*5113495bSYour Name subband of this user, per spatial stream 648*5113495bSYour Name [7:0]: first spatial stream 649*5113495bSYour Name ... 650*5113495bSYour Name [31:24]: fourth spatial stream 651*5113495bSYour Name 652*5113495bSYour Name <legal all> 653*5113495bSYour Name */ 654*5113495bSYour Name 655*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG0_OFFSET 0x00000010 656*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG0_LSB 0 657*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG0_MSB 31 658*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG0_MASK 0xffffffff 659*5113495bSYour Name 660*5113495bSYour Name 661*5113495bSYour Name /* Description USER_FD_RSSI_SEG1 662*5113495bSYour Name 663*5113495bSYour Name Frequency domain RSSI measurement for the second lowest 664*5113495bSYour Name 80 MHz subband of this user, per spatial stream 665*5113495bSYour Name [7:0]: first spatial stream 666*5113495bSYour Name ... 667*5113495bSYour Name [31:24]: fourth spatial stream 668*5113495bSYour Name 669*5113495bSYour Name <legal all> 670*5113495bSYour Name */ 671*5113495bSYour Name 672*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG1_OFFSET 0x00000014 673*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG1_LSB 0 674*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG1_MSB 31 675*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG1_MASK 0xffffffff 676*5113495bSYour Name 677*5113495bSYour Name 678*5113495bSYour Name /* Description USER_FD_RSSI_SEG2 679*5113495bSYour Name 680*5113495bSYour Name Frequency domain RSSI measurement for the third lowest 80 681*5113495bSYour Name MHz subband of this user, per spatial stream 682*5113495bSYour Name [7:0]: first spatial stream 683*5113495bSYour Name ... 684*5113495bSYour Name [31:24]: fourth spatial stream 685*5113495bSYour Name 686*5113495bSYour Name <legal all> 687*5113495bSYour Name */ 688*5113495bSYour Name 689*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG2_OFFSET 0x00000018 690*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG2_LSB 0 691*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG2_MSB 31 692*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG2_MASK 0xffffffff 693*5113495bSYour Name 694*5113495bSYour Name 695*5113495bSYour Name /* Description USER_FD_RSSI_SEG3 696*5113495bSYour Name 697*5113495bSYour Name Frequency domain RSSI measurement for the highest 80 MHz 698*5113495bSYour Name subband of this user, per spatial stream 699*5113495bSYour Name [7:0]: first spatial stream 700*5113495bSYour Name ... 701*5113495bSYour Name [31:24]: fourth spatial stream 702*5113495bSYour Name 703*5113495bSYour Name In Hamilton v1 this structure had 4 more (32-bit) words 704*5113495bSYour Name after this field. 705*5113495bSYour Name <legal all> 706*5113495bSYour Name */ 707*5113495bSYour Name 708*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG3_OFFSET 0x0000001c 709*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG3_LSB 0 710*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG3_MSB 31 711*5113495bSYour Name #define RECEIVE_USER_INFO_USER_FD_RSSI_SEG3_MASK 0xffffffff 712*5113495bSYour Name 713*5113495bSYour Name 714*5113495bSYour Name 715*5113495bSYour Name #endif // RECEIVE_USER_INFO 716