1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2023 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 #ifndef _RX_MSDU_DETAILS_H_ 18*5113495bSYour Name #define _RX_MSDU_DETAILS_H_ 19*5113495bSYour Name #if !defined(__ASSEMBLER__) 20*5113495bSYour Name #endif 21*5113495bSYour Name 22*5113495bSYour Name #include "rx_msdu_desc_info.h" 23*5113495bSYour Name #include "rx_msdu_ext_desc_info.h" 24*5113495bSYour Name #include "buffer_addr_info.h" 25*5113495bSYour Name #define NUM_OF_DWORDS_RX_MSDU_DETAILS 4 26*5113495bSYour Name 27*5113495bSYour Name 28*5113495bSYour Name struct rx_msdu_details { 29*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 30*5113495bSYour Name struct buffer_addr_info buffer_addr_info_details; 31*5113495bSYour Name struct rx_msdu_desc_info rx_msdu_desc_info_details; 32*5113495bSYour Name struct rx_msdu_ext_desc_info rx_msdu_ext_desc_info_details; 33*5113495bSYour Name #else 34*5113495bSYour Name struct buffer_addr_info buffer_addr_info_details; 35*5113495bSYour Name struct rx_msdu_desc_info rx_msdu_desc_info_details; 36*5113495bSYour Name struct rx_msdu_ext_desc_info rx_msdu_ext_desc_info_details; 37*5113495bSYour Name #endif 38*5113495bSYour Name }; 39*5113495bSYour Name 40*5113495bSYour Name 41*5113495bSYour Name /* Description BUFFER_ADDR_INFO_DETAILS 42*5113495bSYour Name 43*5113495bSYour Name Consumer: REO/SW 44*5113495bSYour Name Producer: RXDMA 45*5113495bSYour Name 46*5113495bSYour Name Details of the physical address of the buffer containing 47*5113495bSYour Name an MSDU (or entire MPDU) 48*5113495bSYour Name */ 49*5113495bSYour Name 50*5113495bSYour Name 51*5113495bSYour Name /* Description BUFFER_ADDR_31_0 52*5113495bSYour Name 53*5113495bSYour Name Address (lower 32 bits) of the MSDU buffer OR MSDU_EXTENSION 54*5113495bSYour Name descriptor OR Link Descriptor 55*5113495bSYour Name 56*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 57*5113495bSYour Name <legal all> 58*5113495bSYour Name */ 59*5113495bSYour Name 60*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_BUFFER_ADDR_31_0_OFFSET 0x00000000 61*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_BUFFER_ADDR_31_0_LSB 0 62*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_BUFFER_ADDR_31_0_MSB 31 63*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_BUFFER_ADDR_31_0_MASK 0xffffffff 64*5113495bSYour Name 65*5113495bSYour Name 66*5113495bSYour Name /* Description BUFFER_ADDR_39_32 67*5113495bSYour Name 68*5113495bSYour Name Address (upper 8 bits) of the MSDU buffer OR MSDU_EXTENSION 69*5113495bSYour Name descriptor OR Link Descriptor 70*5113495bSYour Name 71*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 72*5113495bSYour Name <legal all> 73*5113495bSYour Name */ 74*5113495bSYour Name 75*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_BUFFER_ADDR_39_32_OFFSET 0x00000004 76*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_BUFFER_ADDR_39_32_LSB 0 77*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_BUFFER_ADDR_39_32_MSB 7 78*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_BUFFER_ADDR_39_32_MASK 0x000000ff 79*5113495bSYour Name 80*5113495bSYour Name 81*5113495bSYour Name /* Description RETURN_BUFFER_MANAGER 82*5113495bSYour Name 83*5113495bSYour Name Consumer: WBM 84*5113495bSYour Name Producer: SW/FW 85*5113495bSYour Name 86*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 87*5113495bSYour Name 88*5113495bSYour Name Indicates to which buffer manager the buffer OR MSDU_EXTENSION 89*5113495bSYour Name descriptor OR link descriptor that is being pointed to 90*5113495bSYour Name shall be returned after the frame has been processed. It 91*5113495bSYour Name is used by WBM for routing purposes. 92*5113495bSYour Name 93*5113495bSYour Name <enum 0 WBM_IDLE_BUF_LIST> This buffer shall be returned 94*5113495bSYour Name to the WMB buffer idle list 95*5113495bSYour Name <enum 1 WBM_CHIP0_IDLE_DESC_LIST> This buffer shall be returned 96*5113495bSYour Name to the WBM idle link descriptor idle list, where the chip 97*5113495bSYour Name 0 WBM is chosen in case of a multi-chip config 98*5113495bSYour Name <enum 2 WBM_CHIP1_IDLE_DESC_LIST> This buffer shall be returned 99*5113495bSYour Name to the chip 1 WBM idle link descriptor idle list 100*5113495bSYour Name <enum 3 WBM_CHIP2_IDLE_DESC_LIST> This buffer shall be returned 101*5113495bSYour Name to the chip 2 WBM idle link descriptor idle list 102*5113495bSYour Name <enum 12 WBM_CHIP3_IDLE_DESC_LIST> This buffer shall be 103*5113495bSYour Name returned to chip 3 WBM idle link descriptor idle list 104*5113495bSYour Name <enum 4 FW_BM> This buffer shall be returned to the FW 105*5113495bSYour Name <enum 5 SW0_BM> This buffer shall be returned to the SW, 106*5113495bSYour Name ring 0 107*5113495bSYour Name <enum 6 SW1_BM> This buffer shall be returned to the SW, 108*5113495bSYour Name ring 1 109*5113495bSYour Name <enum 7 SW2_BM> This buffer shall be returned to the SW, 110*5113495bSYour Name ring 2 111*5113495bSYour Name <enum 8 SW3_BM> This buffer shall be returned to the SW, 112*5113495bSYour Name ring 3 113*5113495bSYour Name <enum 9 SW4_BM> This buffer shall be returned to the SW, 114*5113495bSYour Name ring 4 115*5113495bSYour Name <enum 10 SW5_BM> This buffer shall be returned to the SW, 116*5113495bSYour Name ring 5 117*5113495bSYour Name <enum 11 SW6_BM> This buffer shall be returned to the SW, 118*5113495bSYour Name ring 6 119*5113495bSYour Name 120*5113495bSYour Name <legal 0-12> 121*5113495bSYour Name */ 122*5113495bSYour Name 123*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_RETURN_BUFFER_MANAGER_OFFSET 0x00000004 124*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_RETURN_BUFFER_MANAGER_LSB 8 125*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_RETURN_BUFFER_MANAGER_MSB 11 126*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_RETURN_BUFFER_MANAGER_MASK 0x00000f00 127*5113495bSYour Name 128*5113495bSYour Name 129*5113495bSYour Name /* Description SW_BUFFER_COOKIE 130*5113495bSYour Name 131*5113495bSYour Name Cookie field exclusively used by SW. 132*5113495bSYour Name 133*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 134*5113495bSYour Name 135*5113495bSYour Name HW ignores the contents, accept that it passes the programmed 136*5113495bSYour Name value on to other descriptors together with the physical 137*5113495bSYour Name address 138*5113495bSYour Name 139*5113495bSYour Name Field can be used by SW to for example associate the buffers 140*5113495bSYour Name physical address with the virtual address 141*5113495bSYour Name The bit definitions as used by SW are within SW HLD specification 142*5113495bSYour Name 143*5113495bSYour Name 144*5113495bSYour Name NOTE1: 145*5113495bSYour Name The three most significant bits can have a special meaning 146*5113495bSYour Name in case this struct is embedded in a TX_MPDU_DETAILS STRUCT, 147*5113495bSYour Name and field transmit_bw_restriction is set 148*5113495bSYour Name 149*5113495bSYour Name In case of NON punctured transmission: 150*5113495bSYour Name Sw_buffer_cookie[19:17] = 3'b000: 20 MHz TX only 151*5113495bSYour Name Sw_buffer_cookie[19:17] = 3'b001: 40 MHz TX only 152*5113495bSYour Name Sw_buffer_cookie[19:17] = 3'b010: 80 MHz TX only 153*5113495bSYour Name Sw_buffer_cookie[19:17] = 3'b011: 160 MHz TX only 154*5113495bSYour Name Sw_buffer_cookie[19:17] = 3'b101: 240 MHz TX only 155*5113495bSYour Name Sw_buffer_cookie[19:17] = 3'b100: 320 MHz TX only 156*5113495bSYour Name Sw_buffer_cookie[19:18] = 2'b11: reserved 157*5113495bSYour Name 158*5113495bSYour Name In case of punctured transmission: 159*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0000: pattern 0 only 160*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0001: pattern 1 only 161*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0010: pattern 2 only 162*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0011: pattern 3 only 163*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0100: pattern 4 only 164*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0101: pattern 5 only 165*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0110: pattern 6 only 166*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0111: pattern 7 only 167*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b1000: pattern 8 only 168*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b1001: pattern 9 only 169*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b1010: pattern 10 only 170*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b1011: pattern 11 only 171*5113495bSYour Name Sw_buffer_cookie[19:18] = 2'b11: reserved 172*5113495bSYour Name 173*5113495bSYour Name Note: a punctured transmission is indicated by the presence 174*5113495bSYour Name of TLV TX_PUNCTURE_SETUP embedded in the scheduler TLV 175*5113495bSYour Name 176*5113495bSYour Name <legal all> 177*5113495bSYour Name */ 178*5113495bSYour Name 179*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_SW_BUFFER_COOKIE_OFFSET 0x00000004 180*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_SW_BUFFER_COOKIE_LSB 12 181*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_SW_BUFFER_COOKIE_MSB 31 182*5113495bSYour Name #define RX_MSDU_DETAILS_BUFFER_ADDR_INFO_DETAILS_SW_BUFFER_COOKIE_MASK 0xfffff000 183*5113495bSYour Name 184*5113495bSYour Name 185*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_DETAILS 186*5113495bSYour Name 187*5113495bSYour Name Consumer: REO/SW 188*5113495bSYour Name Producer: RXDMA 189*5113495bSYour Name 190*5113495bSYour Name General information related to the MSDU that should be passed 191*5113495bSYour Name on from RXDMA all the way to to the REO destination ring. 192*5113495bSYour Name 193*5113495bSYour Name */ 194*5113495bSYour Name 195*5113495bSYour Name 196*5113495bSYour Name /* Description FIRST_MSDU_IN_MPDU_FLAG 197*5113495bSYour Name 198*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans over 199*5113495bSYour Name multiple buffers, this field will be valid in the Last 200*5113495bSYour Name buffer used by the MSDU 201*5113495bSYour Name 202*5113495bSYour Name <enum 0 Not_first_msdu> This is not the first MSDU in the 203*5113495bSYour Name MPDU. 204*5113495bSYour Name <enum 1 first_msdu> This MSDU is the first one in the MPDU. 205*5113495bSYour Name 206*5113495bSYour Name 207*5113495bSYour Name <legal all> 208*5113495bSYour Name */ 209*5113495bSYour Name 210*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_FIRST_MSDU_IN_MPDU_FLAG_OFFSET 0x00000008 211*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_FIRST_MSDU_IN_MPDU_FLAG_LSB 0 212*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_FIRST_MSDU_IN_MPDU_FLAG_MSB 0 213*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_FIRST_MSDU_IN_MPDU_FLAG_MASK 0x00000001 214*5113495bSYour Name 215*5113495bSYour Name 216*5113495bSYour Name /* Description LAST_MSDU_IN_MPDU_FLAG 217*5113495bSYour Name 218*5113495bSYour Name Consumer: WBM/REO/SW/FW 219*5113495bSYour Name Producer: RXDMA 220*5113495bSYour Name 221*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans over 222*5113495bSYour Name multiple buffers, this field will be valid in the Last 223*5113495bSYour Name buffer used by the MSDU 224*5113495bSYour Name 225*5113495bSYour Name <enum 0 Not_last_msdu> There are more MSDUs linked to this 226*5113495bSYour Name MSDU that belongs to this MPDU 227*5113495bSYour Name <enum 1 Last_msdu> this MSDU is the last one in the MPDU. 228*5113495bSYour Name This setting is only allowed in combination with 'Msdu_continuation' 229*5113495bSYour Name set to 0. This implies that when an msdu is spread out over 230*5113495bSYour Name multiple buffers and thus msdu_continuation is set, only 231*5113495bSYour Name for the very last buffer of the msdu, can the 'last_msdu_in_mpdu_flag' 232*5113495bSYour Name be set. 233*5113495bSYour Name 234*5113495bSYour Name When both first_msdu_in_mpdu_flag and last_msdu_in_mpdu_flag 235*5113495bSYour Name are set, the MPDU that this MSDU belongs to only contains 236*5113495bSYour Name a single MSDU. 237*5113495bSYour Name 238*5113495bSYour Name 239*5113495bSYour Name <legal all> 240*5113495bSYour Name */ 241*5113495bSYour Name 242*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_LAST_MSDU_IN_MPDU_FLAG_OFFSET 0x00000008 243*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_LAST_MSDU_IN_MPDU_FLAG_LSB 1 244*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_LAST_MSDU_IN_MPDU_FLAG_MSB 1 245*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_LAST_MSDU_IN_MPDU_FLAG_MASK 0x00000002 246*5113495bSYour Name 247*5113495bSYour Name 248*5113495bSYour Name /* Description MSDU_CONTINUATION 249*5113495bSYour Name 250*5113495bSYour Name When set, this MSDU buffer was not able to hold the entire 251*5113495bSYour Name MSDU. The next buffer will therefor contain additional 252*5113495bSYour Name information related to this MSDU. 253*5113495bSYour Name 254*5113495bSYour Name <legal all> 255*5113495bSYour Name */ 256*5113495bSYour Name 257*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_MSDU_CONTINUATION_OFFSET 0x00000008 258*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_MSDU_CONTINUATION_LSB 2 259*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_MSDU_CONTINUATION_MSB 2 260*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_MSDU_CONTINUATION_MASK 0x00000004 261*5113495bSYour Name 262*5113495bSYour Name 263*5113495bSYour Name /* Description MSDU_LENGTH 264*5113495bSYour Name 265*5113495bSYour Name Parsed from RX_MSDU_START TLV . In the case MSDU spans over 266*5113495bSYour Name multiple buffers, this field will be valid in the First 267*5113495bSYour Name buffer used by MSDU. 268*5113495bSYour Name 269*5113495bSYour Name Full MSDU length in bytes after decapsulation. 270*5113495bSYour Name 271*5113495bSYour Name This field is still valid for MPDU frames without A-MSDU. 272*5113495bSYour Name It still represents MSDU length after decapsulation 273*5113495bSYour Name 274*5113495bSYour Name Or in case of RAW MPDUs, it indicates the length of the 275*5113495bSYour Name entire MPDU (without FCS field) 276*5113495bSYour Name <legal all> 277*5113495bSYour Name */ 278*5113495bSYour Name 279*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_MSDU_LENGTH_OFFSET 0x00000008 280*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_MSDU_LENGTH_LSB 3 281*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_MSDU_LENGTH_MSB 16 282*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_MSDU_LENGTH_MASK 0x0001fff8 283*5113495bSYour Name 284*5113495bSYour Name 285*5113495bSYour Name /* Description MSDU_DROP 286*5113495bSYour Name 287*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans over 288*5113495bSYour Name multiple buffers, this field will be valid in the Last 289*5113495bSYour Name buffer used by the MSDU 290*5113495bSYour Name 291*5113495bSYour Name When set, REO shall drop this MSDU and not forward it to 292*5113495bSYour Name any other ring... 293*5113495bSYour Name <legal all> 294*5113495bSYour Name */ 295*5113495bSYour Name 296*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_MSDU_DROP_OFFSET 0x00000008 297*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_MSDU_DROP_LSB 17 298*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_MSDU_DROP_MSB 17 299*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_MSDU_DROP_MASK 0x00020000 300*5113495bSYour Name 301*5113495bSYour Name 302*5113495bSYour Name /* Description SA_IS_VALID 303*5113495bSYour Name 304*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans over 305*5113495bSYour Name multiple buffers, this field will be valid in the Last 306*5113495bSYour Name buffer used by the MSDU 307*5113495bSYour Name 308*5113495bSYour Name Indicates that OLE found a valid SA entry for this MSDU 309*5113495bSYour Name <legal all> 310*5113495bSYour Name */ 311*5113495bSYour Name 312*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_SA_IS_VALID_OFFSET 0x00000008 313*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_SA_IS_VALID_LSB 18 314*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_SA_IS_VALID_MSB 18 315*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_SA_IS_VALID_MASK 0x00040000 316*5113495bSYour Name 317*5113495bSYour Name 318*5113495bSYour Name /* Description DA_IS_VALID 319*5113495bSYour Name 320*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans over 321*5113495bSYour Name multiple buffers, this field will be valid in the Last 322*5113495bSYour Name buffer used by the MSDU 323*5113495bSYour Name 324*5113495bSYour Name Indicates that OLE found a valid DA entry for this MSDU 325*5113495bSYour Name <legal all> 326*5113495bSYour Name */ 327*5113495bSYour Name 328*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DA_IS_VALID_OFFSET 0x00000008 329*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DA_IS_VALID_LSB 19 330*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DA_IS_VALID_MSB 19 331*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DA_IS_VALID_MASK 0x00080000 332*5113495bSYour Name 333*5113495bSYour Name 334*5113495bSYour Name /* Description DA_IS_MCBC 335*5113495bSYour Name 336*5113495bSYour Name Field Only valid if "da_is_valid" is set 337*5113495bSYour Name 338*5113495bSYour Name Indicates the DA address was a Multicast of Broadcast address 339*5113495bSYour Name for this MSDU 340*5113495bSYour Name <legal all> 341*5113495bSYour Name */ 342*5113495bSYour Name 343*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DA_IS_MCBC_OFFSET 0x00000008 344*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DA_IS_MCBC_LSB 20 345*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DA_IS_MCBC_MSB 20 346*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DA_IS_MCBC_MASK 0x00100000 347*5113495bSYour Name 348*5113495bSYour Name 349*5113495bSYour Name /* Description L3_HEADER_PADDING_MSB 350*5113495bSYour Name 351*5113495bSYour Name Passed on from 'RX_MSDU_END' TLV (only the MSB is reported 352*5113495bSYour Name as the LSB is always zero) 353*5113495bSYour Name Number of bytes padded to make sure that the L3 header will 354*5113495bSYour Name always start of a Dword boundary 355*5113495bSYour Name <legal all> 356*5113495bSYour Name */ 357*5113495bSYour Name 358*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_L3_HEADER_PADDING_MSB_OFFSET 0x00000008 359*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_L3_HEADER_PADDING_MSB_LSB 21 360*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_L3_HEADER_PADDING_MSB_MSB 21 361*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_L3_HEADER_PADDING_MSB_MASK 0x00200000 362*5113495bSYour Name 363*5113495bSYour Name 364*5113495bSYour Name /* Description TCP_UDP_CHKSUM_FAIL 365*5113495bSYour Name 366*5113495bSYour Name Passed on from 'RX_ATTENTION' TLV 367*5113495bSYour Name Indicates that the computed checksum did not match the checksum 368*5113495bSYour Name in the TCP/UDP header. 369*5113495bSYour Name <legal all> 370*5113495bSYour Name */ 371*5113495bSYour Name 372*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_TCP_UDP_CHKSUM_FAIL_OFFSET 0x00000008 373*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_TCP_UDP_CHKSUM_FAIL_LSB 22 374*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_TCP_UDP_CHKSUM_FAIL_MSB 22 375*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_TCP_UDP_CHKSUM_FAIL_MASK 0x00400000 376*5113495bSYour Name 377*5113495bSYour Name 378*5113495bSYour Name /* Description IP_CHKSUM_FAIL 379*5113495bSYour Name 380*5113495bSYour Name Passed on from 'RX_ATTENTION' TLV 381*5113495bSYour Name Indicates that the computed checksum did not match the checksum 382*5113495bSYour Name in the IP header. 383*5113495bSYour Name <legal all> 384*5113495bSYour Name */ 385*5113495bSYour Name 386*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_IP_CHKSUM_FAIL_OFFSET 0x00000008 387*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_IP_CHKSUM_FAIL_LSB 23 388*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_IP_CHKSUM_FAIL_MSB 23 389*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_IP_CHKSUM_FAIL_MASK 0x00800000 390*5113495bSYour Name 391*5113495bSYour Name 392*5113495bSYour Name /* Description FR_DS 393*5113495bSYour Name 394*5113495bSYour Name Passed on from 'RX_MPDU_INFO' structure in 'RX_MPDU_START' 395*5113495bSYour Name TLV 396*5113495bSYour Name Set if the 'from DS' bit is set in the frame control. 397*5113495bSYour Name <legal all> 398*5113495bSYour Name */ 399*5113495bSYour Name 400*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_FR_DS_OFFSET 0x00000008 401*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_FR_DS_LSB 24 402*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_FR_DS_MSB 24 403*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_FR_DS_MASK 0x01000000 404*5113495bSYour Name 405*5113495bSYour Name 406*5113495bSYour Name /* Description TO_DS 407*5113495bSYour Name 408*5113495bSYour Name Passed on from 'RX_MPDU_INFO' structure in 'RX_MPDU_START' 409*5113495bSYour Name TLV 410*5113495bSYour Name Set if the 'to DS' bit is set in the frame control. 411*5113495bSYour Name <legal all> 412*5113495bSYour Name */ 413*5113495bSYour Name 414*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_TO_DS_OFFSET 0x00000008 415*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_TO_DS_LSB 25 416*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_TO_DS_MSB 25 417*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_TO_DS_MASK 0x02000000 418*5113495bSYour Name 419*5113495bSYour Name 420*5113495bSYour Name /* Description INTRA_BSS 421*5113495bSYour Name 422*5113495bSYour Name This packet needs intra-BSS routing by SW as the 'vdev_id' 423*5113495bSYour Name for the destination is the same as the 'vdev_id' (from 'RX_MPDU_PCU_START') 424*5113495bSYour Name that this MSDU was got in. 425*5113495bSYour Name 426*5113495bSYour Name <legal all> 427*5113495bSYour Name */ 428*5113495bSYour Name 429*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_INTRA_BSS_OFFSET 0x00000008 430*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_INTRA_BSS_LSB 26 431*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_INTRA_BSS_MSB 26 432*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_INTRA_BSS_MASK 0x04000000 433*5113495bSYour Name 434*5113495bSYour Name 435*5113495bSYour Name /* Description DEST_CHIP_ID 436*5113495bSYour Name 437*5113495bSYour Name If intra_bss is set, copied by RXOLE/RXDMA from 'ADDR_SEARCH_ENTRY' 438*5113495bSYour Name to support intra-BSS routing with multi-chip multi-link 439*5113495bSYour Name operation. 440*5113495bSYour Name 441*5113495bSYour Name This indicates into which chip's TCL the packet should be 442*5113495bSYour Name queued. 443*5113495bSYour Name 444*5113495bSYour Name <legal all> 445*5113495bSYour Name */ 446*5113495bSYour Name 447*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DEST_CHIP_ID_OFFSET 0x00000008 448*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DEST_CHIP_ID_LSB 27 449*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DEST_CHIP_ID_MSB 28 450*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DEST_CHIP_ID_MASK 0x18000000 451*5113495bSYour Name 452*5113495bSYour Name 453*5113495bSYour Name /* Description DECAP_FORMAT 454*5113495bSYour Name 455*5113495bSYour Name Indicates the format after decapsulation: 456*5113495bSYour Name 457*5113495bSYour Name <enum 0 RAW> No encapsulation 458*5113495bSYour Name <enum 1 Native_WiFi> 459*5113495bSYour Name <enum 2 Ethernet> Ethernet 2 (DIX) or 802.3 (uses SNAP/LLC) 460*5113495bSYour Name 461*5113495bSYour Name <enum 3 802_3> Indicate Ethernet 462*5113495bSYour Name 463*5113495bSYour Name <legal all> 464*5113495bSYour Name */ 465*5113495bSYour Name 466*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DECAP_FORMAT_OFFSET 0x00000008 467*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DECAP_FORMAT_LSB 29 468*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DECAP_FORMAT_MSB 30 469*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DECAP_FORMAT_MASK 0x60000000 470*5113495bSYour Name 471*5113495bSYour Name 472*5113495bSYour Name /* Description DEST_CHIP_PMAC_ID 473*5113495bSYour Name 474*5113495bSYour Name If intra_bss is set, copied by RXOLE/RXDMA from 'ADDR_SEARCH_ENTRY' 475*5113495bSYour Name to support intra-BSS routing with multi-chip multi-link 476*5113495bSYour Name operation. 477*5113495bSYour Name 478*5113495bSYour Name This indicates into which link/'vdev' the packet should 479*5113495bSYour Name be queued in TCL. 480*5113495bSYour Name 481*5113495bSYour Name <legal all> 482*5113495bSYour Name */ 483*5113495bSYour Name 484*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DEST_CHIP_PMAC_ID_OFFSET 0x00000008 485*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DEST_CHIP_PMAC_ID_LSB 31 486*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DEST_CHIP_PMAC_ID_MSB 31 487*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_DESC_INFO_DETAILS_DEST_CHIP_PMAC_ID_MASK 0x80000000 488*5113495bSYour Name 489*5113495bSYour Name 490*5113495bSYour Name /* Description RX_MSDU_EXT_DESC_INFO_DETAILS 491*5113495bSYour Name 492*5113495bSYour Name Consumer: REO/SW 493*5113495bSYour Name Producer: RXDMA 494*5113495bSYour Name 495*5113495bSYour Name Extended information related to the MSDU that is passed 496*5113495bSYour Name on from RXDMA to REO but not part of the REO destination 497*5113495bSYour Name ring. Some fields are passed on to PPE. 498*5113495bSYour Name */ 499*5113495bSYour Name 500*5113495bSYour Name 501*5113495bSYour Name /* Description REO_DESTINATION_INDICATION 502*5113495bSYour Name 503*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans over 504*5113495bSYour Name multiple buffers, this field will be valid in the Last 505*5113495bSYour Name buffer used by the MSDU 506*5113495bSYour Name 507*5113495bSYour Name The ID of the REO exit ring where the MSDU frame shall push 508*5113495bSYour Name after (MPDU level) reordering has finished. 509*5113495bSYour Name 510*5113495bSYour Name <enum 0 reo_destination_sw0> Reo will push the frame into 511*5113495bSYour Name the REO2SW0 ring 512*5113495bSYour Name <enum 1 reo_destination_sw1> Reo will push the frame into 513*5113495bSYour Name the REO2SW1 ring 514*5113495bSYour Name <enum 2 reo_destination_sw2> Reo will push the frame into 515*5113495bSYour Name the REO2SW2 ring 516*5113495bSYour Name <enum 3 reo_destination_sw3> Reo will push the frame into 517*5113495bSYour Name the REO2SW3 ring 518*5113495bSYour Name <enum 4 reo_destination_sw4> Reo will push the frame into 519*5113495bSYour Name the REO2SW4 ring 520*5113495bSYour Name <enum 5 reo_destination_release> Reo will push the frame 521*5113495bSYour Name into the REO_release ring 522*5113495bSYour Name <enum 6 reo_destination_fw> Reo will push the frame into 523*5113495bSYour Name the REO2FW ring 524*5113495bSYour Name <enum 7 reo_destination_sw5> Reo will push the frame into 525*5113495bSYour Name the REO2SW5 ring (REO remaps this in chips without REO2SW5 526*5113495bSYour Name ring) 527*5113495bSYour Name <enum 8 reo_destination_sw6> Reo will push the frame into 528*5113495bSYour Name the REO2SW6 ring (REO remaps this in chips without REO2SW6 529*5113495bSYour Name ring) 530*5113495bSYour Name <enum 9 reo_destination_sw7> Reo will push the frame into 531*5113495bSYour Name the REO2SW7 ring (REO remaps this in chips without REO2SW7 532*5113495bSYour Name ring) 533*5113495bSYour Name <enum 10 reo_destination_sw8> Reo will push the frame into 534*5113495bSYour Name the REO2SW8 ring (REO remaps this in chips without REO2SW8 535*5113495bSYour Name ring) 536*5113495bSYour Name <enum 11 reo_destination_11> REO remaps this 537*5113495bSYour Name <enum 12 reo_destination_12> REO remaps this <enum 13 reo_destination_13> 538*5113495bSYour Name REO remaps this 539*5113495bSYour Name <enum 14 reo_destination_14> REO remaps this 540*5113495bSYour Name <enum 15 reo_destination_15> REO remaps this 541*5113495bSYour Name <enum 16 reo_destination_16> REO remaps this 542*5113495bSYour Name <enum 17 reo_destination_17> REO remaps this 543*5113495bSYour Name <enum 18 reo_destination_18> REO remaps this 544*5113495bSYour Name <enum 19 reo_destination_19> REO remaps this 545*5113495bSYour Name <enum 20 reo_destination_20> REO remaps this 546*5113495bSYour Name <enum 21 reo_destination_21> REO remaps this 547*5113495bSYour Name <enum 22 reo_destination_22> REO remaps this 548*5113495bSYour Name <enum 23 reo_destination_23> REO remaps this 549*5113495bSYour Name <enum 24 reo_destination_24> REO remaps this 550*5113495bSYour Name <enum 25 reo_destination_25> REO remaps this 551*5113495bSYour Name <enum 26 reo_destination_26> REO remaps this 552*5113495bSYour Name <enum 27 reo_destination_27> REO remaps this 553*5113495bSYour Name <enum 28 reo_destination_28> REO remaps this 554*5113495bSYour Name <enum 29 reo_destination_29> REO remaps this 555*5113495bSYour Name <enum 30 reo_destination_30> REO remaps this 556*5113495bSYour Name <enum 31 reo_destination_31> REO remaps this 557*5113495bSYour Name 558*5113495bSYour Name <legal all> 559*5113495bSYour Name */ 560*5113495bSYour Name 561*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_REO_DESTINATION_INDICATION_OFFSET 0x0000000c 562*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_REO_DESTINATION_INDICATION_LSB 0 563*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_REO_DESTINATION_INDICATION_MSB 4 564*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_REO_DESTINATION_INDICATION_MASK 0x0000001f 565*5113495bSYour Name 566*5113495bSYour Name 567*5113495bSYour Name /* Description SERVICE_CODE 568*5113495bSYour Name 569*5113495bSYour Name Opaque service code between PPE and Wi-Fi 570*5113495bSYour Name 571*5113495bSYour Name This field gets passed on by REO to PPE in the EDMA descriptor 572*5113495bSYour Name ('REO_TO_PPE_RING'). 573*5113495bSYour Name 574*5113495bSYour Name <legal all> 575*5113495bSYour Name */ 576*5113495bSYour Name 577*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_SERVICE_CODE_OFFSET 0x0000000c 578*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_SERVICE_CODE_LSB 5 579*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_SERVICE_CODE_MSB 13 580*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_SERVICE_CODE_MASK 0x00003fe0 581*5113495bSYour Name 582*5113495bSYour Name 583*5113495bSYour Name /* Description PRIORITY_VALID 584*5113495bSYour Name 585*5113495bSYour Name This field gets passed on by REO to PPE in the EDMA descriptor 586*5113495bSYour Name ('REO_TO_PPE_RING'). 587*5113495bSYour Name 588*5113495bSYour Name <legal all> 589*5113495bSYour Name */ 590*5113495bSYour Name 591*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_PRIORITY_VALID_OFFSET 0x0000000c 592*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_PRIORITY_VALID_LSB 14 593*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_PRIORITY_VALID_MSB 14 594*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_PRIORITY_VALID_MASK 0x00004000 595*5113495bSYour Name 596*5113495bSYour Name 597*5113495bSYour Name /* Description DATA_OFFSET 598*5113495bSYour Name 599*5113495bSYour Name The offset to Rx packet data within the buffer (including 600*5113495bSYour Name Rx DMA offset programming and L3 header padding inserted 601*5113495bSYour Name by Rx OLE). 602*5113495bSYour Name 603*5113495bSYour Name This field gets passed on by REO to PPE in the EDMA descriptor 604*5113495bSYour Name ('REO_TO_PPE_RING'). 605*5113495bSYour Name 606*5113495bSYour Name <legal all> 607*5113495bSYour Name */ 608*5113495bSYour Name 609*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_DATA_OFFSET_OFFSET 0x0000000c 610*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_DATA_OFFSET_LSB 15 611*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_DATA_OFFSET_MSB 26 612*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_DATA_OFFSET_MASK 0x07ff8000 613*5113495bSYour Name 614*5113495bSYour Name 615*5113495bSYour Name /* Description SRC_LINK_ID 616*5113495bSYour Name 617*5113495bSYour Name Consumer: SW 618*5113495bSYour Name Producer: RXDMA 619*5113495bSYour Name 620*5113495bSYour Name Set to the link ID of the PMAC that received the frame 621*5113495bSYour Name <legal all> 622*5113495bSYour Name */ 623*5113495bSYour Name 624*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_SRC_LINK_ID_OFFSET 0x0000000c 625*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_SRC_LINK_ID_LSB 27 626*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_SRC_LINK_ID_MSB 29 627*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_SRC_LINK_ID_MASK 0x38000000 628*5113495bSYour Name 629*5113495bSYour Name 630*5113495bSYour Name /* Description RESERVED_0A 631*5113495bSYour Name 632*5113495bSYour Name <legal 0> 633*5113495bSYour Name */ 634*5113495bSYour Name 635*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_RESERVED_0A_OFFSET 0x0000000c 636*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_RESERVED_0A_LSB 30 637*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_RESERVED_0A_MSB 31 638*5113495bSYour Name #define RX_MSDU_DETAILS_RX_MSDU_EXT_DESC_INFO_DETAILS_RESERVED_0A_MASK 0xc0000000 639*5113495bSYour Name 640*5113495bSYour Name 641*5113495bSYour Name 642*5113495bSYour Name #endif // RX_MSDU_DETAILS 643