1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2020, The Linux Foundation. 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_DESC_INFO_H_ 18*5113495bSYour Name #define _RX_MSDU_DESC_INFO_H_ 19*5113495bSYour Name #if !defined(__ASSEMBLER__) 20*5113495bSYour Name #endif 21*5113495bSYour Name 22*5113495bSYour Name 23*5113495bSYour Name // ################ START SUMMARY ################# 24*5113495bSYour Name // 25*5113495bSYour Name // Dword Fields 26*5113495bSYour Name // 0 first_msdu_in_mpdu_flag[0], last_msdu_in_mpdu_flag[1], msdu_continuation[2], msdu_length[16:3], reo_destination_indication[21:17], msdu_drop[22], sa_is_valid[23], sa_idx_timeout[24], da_is_valid[25], da_is_mcbc[26], da_idx_timeout[27], l3_header_padding_msb[28], tcp_udp_chksum_fail[29], ip_chksum_fail[30], raw_mpdu[31] 27*5113495bSYour Name // 1 sa_idx_or_sw_peer_id_14_0[14:0], mpdu_ast_idx_or_sw_peer_id_14_0[29:15], fr_ds[30], to_ds[31] 28*5113495bSYour Name // 29*5113495bSYour Name // ################ END SUMMARY ################# 30*5113495bSYour Name 31*5113495bSYour Name #define NUM_OF_DWORDS_RX_MSDU_DESC_INFO 2 32*5113495bSYour Name 33*5113495bSYour Name struct rx_msdu_desc_info { 34*5113495bSYour Name uint32_t first_msdu_in_mpdu_flag : 1, //[0] 35*5113495bSYour Name last_msdu_in_mpdu_flag : 1, //[1] 36*5113495bSYour Name msdu_continuation : 1, //[2] 37*5113495bSYour Name msdu_length : 14, //[16:3] 38*5113495bSYour Name reo_destination_indication : 5, //[21:17] 39*5113495bSYour Name msdu_drop : 1, //[22] 40*5113495bSYour Name sa_is_valid : 1, //[23] 41*5113495bSYour Name sa_idx_timeout : 1, //[24] 42*5113495bSYour Name da_is_valid : 1, //[25] 43*5113495bSYour Name da_is_mcbc : 1, //[26] 44*5113495bSYour Name da_idx_timeout : 1, //[27] 45*5113495bSYour Name l3_header_padding_msb : 1, //[28] 46*5113495bSYour Name tcp_udp_chksum_fail : 1, //[29] 47*5113495bSYour Name ip_chksum_fail : 1, //[30] 48*5113495bSYour Name raw_mpdu : 1; //[31] 49*5113495bSYour Name uint32_t sa_idx_or_sw_peer_id_14_0 : 15, //[14:0] 50*5113495bSYour Name mpdu_ast_idx_or_sw_peer_id_14_0 : 15, //[29:15] 51*5113495bSYour Name fr_ds : 1, //[30] 52*5113495bSYour Name to_ds : 1; //[31] 53*5113495bSYour Name }; 54*5113495bSYour Name 55*5113495bSYour Name /* 56*5113495bSYour Name 57*5113495bSYour Name first_msdu_in_mpdu_flag 58*5113495bSYour Name 59*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 60*5113495bSYour Name over multiple buffers, this field will be valid in the Last 61*5113495bSYour Name buffer used by the MSDU 62*5113495bSYour Name 63*5113495bSYour Name 64*5113495bSYour Name 65*5113495bSYour Name <enum 0 Not_first_msdu> This is not the first MSDU in 66*5113495bSYour Name the MPDU. 67*5113495bSYour Name 68*5113495bSYour Name <enum 1 first_msdu> This MSDU is the first one in the 69*5113495bSYour Name MPDU. 70*5113495bSYour Name 71*5113495bSYour Name 72*5113495bSYour Name 73*5113495bSYour Name <legal all> 74*5113495bSYour Name 75*5113495bSYour Name last_msdu_in_mpdu_flag 76*5113495bSYour Name 77*5113495bSYour Name Consumer: WBM/REO/SW/FW 78*5113495bSYour Name 79*5113495bSYour Name Producer: RXDMA 80*5113495bSYour Name 81*5113495bSYour Name 82*5113495bSYour Name 83*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 84*5113495bSYour Name over multiple buffers, this field will be valid in the Last 85*5113495bSYour Name buffer used by the MSDU 86*5113495bSYour Name 87*5113495bSYour Name 88*5113495bSYour Name 89*5113495bSYour Name <enum 0 Not_last_msdu> There are more MSDUs linked to 90*5113495bSYour Name this MSDU that belongs to this MPDU 91*5113495bSYour Name 92*5113495bSYour Name <enum 1 Last_msdu> this MSDU is the last one in the 93*5113495bSYour Name MPDU. This setting is only allowed in combination with 94*5113495bSYour Name 'Msdu_continuation' set to 0. This implies that when an msdu 95*5113495bSYour Name is spread out over multiple buffers and thus 96*5113495bSYour Name msdu_continuation is set, only for the very last buffer of 97*5113495bSYour Name the msdu, can the 'last_msdu_in_mpdu_flag' be set. 98*5113495bSYour Name 99*5113495bSYour Name 100*5113495bSYour Name 101*5113495bSYour Name When both first_msdu_in_mpdu_flag and 102*5113495bSYour Name last_msdu_in_mpdu_flag are set, the MPDU that this MSDU 103*5113495bSYour Name belongs to only contains a single MSDU. 104*5113495bSYour Name 105*5113495bSYour Name 106*5113495bSYour Name 107*5113495bSYour Name 108*5113495bSYour Name 109*5113495bSYour Name <legal all> 110*5113495bSYour Name 111*5113495bSYour Name msdu_continuation 112*5113495bSYour Name 113*5113495bSYour Name When set, this MSDU buffer was not able to hold the 114*5113495bSYour Name entire MSDU. The next buffer will therefor contain 115*5113495bSYour Name additional information related to this MSDU. 116*5113495bSYour Name 117*5113495bSYour Name 118*5113495bSYour Name 119*5113495bSYour Name <legal all> 120*5113495bSYour Name 121*5113495bSYour Name msdu_length 122*5113495bSYour Name 123*5113495bSYour Name Parsed from RX_MSDU_START TLV . In the case MSDU spans 124*5113495bSYour Name over multiple buffers, this field will be valid in the First 125*5113495bSYour Name buffer used by MSDU. 126*5113495bSYour Name 127*5113495bSYour Name 128*5113495bSYour Name 129*5113495bSYour Name Full MSDU length in bytes after decapsulation. 130*5113495bSYour Name 131*5113495bSYour Name 132*5113495bSYour Name 133*5113495bSYour Name This field is still valid for MPDU frames without 134*5113495bSYour Name A-MSDU. It still represents MSDU length after decapsulation 135*5113495bSYour Name 136*5113495bSYour Name 137*5113495bSYour Name 138*5113495bSYour Name Or in case of RAW MPDUs, it indicates the length of the 139*5113495bSYour Name entire MPDU (without FCS field) 140*5113495bSYour Name 141*5113495bSYour Name <legal all> 142*5113495bSYour Name 143*5113495bSYour Name reo_destination_indication 144*5113495bSYour Name 145*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 146*5113495bSYour Name over multiple buffers, this field will be valid in the Last 147*5113495bSYour Name buffer used by the MSDU 148*5113495bSYour Name 149*5113495bSYour Name 150*5113495bSYour Name 151*5113495bSYour Name The ID of the REO exit ring where the MSDU frame shall 152*5113495bSYour Name push after (MPDU level) reordering has finished. 153*5113495bSYour Name 154*5113495bSYour Name 155*5113495bSYour Name 156*5113495bSYour Name <enum 0 reo_destination_tcl> Reo will push the frame 157*5113495bSYour Name into the REO2TCL ring 158*5113495bSYour Name 159*5113495bSYour Name <enum 1 reo_destination_sw1> Reo will push the frame 160*5113495bSYour Name into the REO2SW1 ring 161*5113495bSYour Name 162*5113495bSYour Name <enum 2 reo_destination_sw2> Reo will push the frame 163*5113495bSYour Name into the REO2SW2 ring 164*5113495bSYour Name 165*5113495bSYour Name <enum 3 reo_destination_sw3> Reo will push the frame 166*5113495bSYour Name into the REO2SW3 ring 167*5113495bSYour Name 168*5113495bSYour Name <enum 4 reo_destination_sw4> Reo will push the frame 169*5113495bSYour Name into the REO2SW4 ring 170*5113495bSYour Name 171*5113495bSYour Name <enum 5 reo_destination_release> Reo will push the frame 172*5113495bSYour Name into the REO_release ring 173*5113495bSYour Name 174*5113495bSYour Name <enum 6 reo_destination_fw> Reo will push the frame into 175*5113495bSYour Name the REO2FW ring 176*5113495bSYour Name 177*5113495bSYour Name <enum 7 reo_destination_sw5> Reo will push the frame 178*5113495bSYour Name into the REO2SW5 ring (REO remaps this in chips without 179*5113495bSYour Name REO2SW5 ring, e.g. Pine) 180*5113495bSYour Name 181*5113495bSYour Name <enum 8 reo_destination_sw6> Reo will push the frame 182*5113495bSYour Name into the REO2SW6 ring (REO remaps this in chips without 183*5113495bSYour Name REO2SW6 ring, e.g. Pine) 184*5113495bSYour Name 185*5113495bSYour Name <enum 9 reo_destination_9> REO remaps this <enum 10 186*5113495bSYour Name reo_destination_10> REO remaps this 187*5113495bSYour Name 188*5113495bSYour Name <enum 11 reo_destination_11> REO remaps this 189*5113495bSYour Name 190*5113495bSYour Name <enum 12 reo_destination_12> REO remaps this <enum 13 191*5113495bSYour Name reo_destination_13> REO remaps this 192*5113495bSYour Name 193*5113495bSYour Name <enum 14 reo_destination_14> REO remaps this 194*5113495bSYour Name 195*5113495bSYour Name <enum 15 reo_destination_15> REO remaps this 196*5113495bSYour Name 197*5113495bSYour Name <enum 16 reo_destination_16> REO remaps this 198*5113495bSYour Name 199*5113495bSYour Name <enum 17 reo_destination_17> REO remaps this 200*5113495bSYour Name 201*5113495bSYour Name <enum 18 reo_destination_18> REO remaps this 202*5113495bSYour Name 203*5113495bSYour Name <enum 19 reo_destination_19> REO remaps this 204*5113495bSYour Name 205*5113495bSYour Name <enum 20 reo_destination_20> REO remaps this 206*5113495bSYour Name 207*5113495bSYour Name <enum 21 reo_destination_21> REO remaps this 208*5113495bSYour Name 209*5113495bSYour Name <enum 22 reo_destination_22> REO remaps this 210*5113495bSYour Name 211*5113495bSYour Name <enum 23 reo_destination_23> REO remaps this 212*5113495bSYour Name 213*5113495bSYour Name <enum 24 reo_destination_24> REO remaps this 214*5113495bSYour Name 215*5113495bSYour Name <enum 25 reo_destination_25> REO remaps this 216*5113495bSYour Name 217*5113495bSYour Name <enum 26 reo_destination_26> REO remaps this 218*5113495bSYour Name 219*5113495bSYour Name <enum 27 reo_destination_27> REO remaps this 220*5113495bSYour Name 221*5113495bSYour Name <enum 28 reo_destination_28> REO remaps this 222*5113495bSYour Name 223*5113495bSYour Name <enum 29 reo_destination_29> REO remaps this 224*5113495bSYour Name 225*5113495bSYour Name <enum 30 reo_destination_30> REO remaps this 226*5113495bSYour Name 227*5113495bSYour Name <enum 31 reo_destination_31> REO remaps this 228*5113495bSYour Name 229*5113495bSYour Name 230*5113495bSYour Name 231*5113495bSYour Name <legal all> 232*5113495bSYour Name 233*5113495bSYour Name msdu_drop 234*5113495bSYour Name 235*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 236*5113495bSYour Name over multiple buffers, this field will be valid in the Last 237*5113495bSYour Name buffer used by the MSDU 238*5113495bSYour Name 239*5113495bSYour Name 240*5113495bSYour Name 241*5113495bSYour Name When set, REO shall drop this MSDU and not forward it to 242*5113495bSYour Name any other ring... 243*5113495bSYour Name 244*5113495bSYour Name <legal all> 245*5113495bSYour Name 246*5113495bSYour Name sa_is_valid 247*5113495bSYour Name 248*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 249*5113495bSYour Name over multiple buffers, this field will be valid in the Last 250*5113495bSYour Name buffer used by the MSDU 251*5113495bSYour Name 252*5113495bSYour Name 253*5113495bSYour Name 254*5113495bSYour Name Indicates that OLE found a valid SA entry for this MSDU 255*5113495bSYour Name 256*5113495bSYour Name <legal all> 257*5113495bSYour Name 258*5113495bSYour Name sa_idx_timeout 259*5113495bSYour Name 260*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 261*5113495bSYour Name over multiple buffers, this field will be valid in the Last 262*5113495bSYour Name buffer used by the MSDU 263*5113495bSYour Name 264*5113495bSYour Name 265*5113495bSYour Name 266*5113495bSYour Name Indicates an unsuccessful MAC source address search due 267*5113495bSYour Name to the expiring of the search timer for this MSDU 268*5113495bSYour Name 269*5113495bSYour Name <legal all> 270*5113495bSYour Name 271*5113495bSYour Name da_is_valid 272*5113495bSYour Name 273*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 274*5113495bSYour Name over multiple buffers, this field will be valid in the Last 275*5113495bSYour Name buffer used by the MSDU 276*5113495bSYour Name 277*5113495bSYour Name 278*5113495bSYour Name 279*5113495bSYour Name Indicates that OLE found a valid DA entry for this MSDU 280*5113495bSYour Name 281*5113495bSYour Name <legal all> 282*5113495bSYour Name 283*5113495bSYour Name da_is_mcbc 284*5113495bSYour Name 285*5113495bSYour Name Field Only valid if da_is_valid is set 286*5113495bSYour Name 287*5113495bSYour Name 288*5113495bSYour Name 289*5113495bSYour Name Indicates the DA address was a Multicast of Broadcast 290*5113495bSYour Name address for this MSDU 291*5113495bSYour Name 292*5113495bSYour Name <legal all> 293*5113495bSYour Name 294*5113495bSYour Name da_idx_timeout 295*5113495bSYour Name 296*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 297*5113495bSYour Name over multiple buffers, this field will be valid in the Last 298*5113495bSYour Name buffer used by the MSDU 299*5113495bSYour Name 300*5113495bSYour Name 301*5113495bSYour Name 302*5113495bSYour Name Indicates an unsuccessful MAC destination address search 303*5113495bSYour Name due to the expiring of the search timer for this MSDU 304*5113495bSYour Name 305*5113495bSYour Name <legal all> 306*5113495bSYour Name 307*5113495bSYour Name l3_header_padding_msb 308*5113495bSYour Name 309*5113495bSYour Name Passed on from 'RX_MSDU_END' TLV (only the MSB is 310*5113495bSYour Name reported as the LSB is always zero) 311*5113495bSYour Name 312*5113495bSYour Name Number of bytes padded to make sure that the L3 header 313*5113495bSYour Name will always start of a Dword boundary 314*5113495bSYour Name 315*5113495bSYour Name <legal all> 316*5113495bSYour Name 317*5113495bSYour Name tcp_udp_chksum_fail 318*5113495bSYour Name 319*5113495bSYour Name Passed on from 'RX_ATTENTION' TLV 320*5113495bSYour Name 321*5113495bSYour Name Indicates that the computed checksum did not match the 322*5113495bSYour Name checksum in the TCP/UDP header. 323*5113495bSYour Name 324*5113495bSYour Name <legal all> 325*5113495bSYour Name 326*5113495bSYour Name ip_chksum_fail 327*5113495bSYour Name 328*5113495bSYour Name Passed on from 'RX_ATTENTION' TLV 329*5113495bSYour Name 330*5113495bSYour Name Indicates that the computed checksum did not match the 331*5113495bSYour Name checksum in the IP header. 332*5113495bSYour Name 333*5113495bSYour Name <legal all> 334*5113495bSYour Name 335*5113495bSYour Name raw_mpdu 336*5113495bSYour Name 337*5113495bSYour Name Passed on from 'RX_MPDU_INFO' structure in 338*5113495bSYour Name 'RX_MPDU_START' TLV 339*5113495bSYour Name 340*5113495bSYour Name Set to 1 by RXOLE when it has not performed any 802.11 341*5113495bSYour Name to Ethernet/Natvie WiFi header conversion on this MPDU. 342*5113495bSYour Name 343*5113495bSYour Name <legal all> 344*5113495bSYour Name 345*5113495bSYour Name sa_idx_or_sw_peer_id_14_0 346*5113495bSYour Name 347*5113495bSYour Name Passed on from 'RX_MSDU_END' TLV (one MSB is omitted) 348*5113495bSYour Name 349*5113495bSYour Name Based on a register configuration in RXDMA, this field 350*5113495bSYour Name will contain: 351*5113495bSYour Name 352*5113495bSYour Name The offset in the address search table which matches the 353*5113495bSYour Name MAC source address 354*5113495bSYour Name 355*5113495bSYour Name OR 356*5113495bSYour Name 357*5113495bSYour Name 358*5113495bSYour Name 359*5113495bSYour Name 'sw_peer_id' from the address search entry corresponding 360*5113495bSYour Name to the source address of the MSDU 361*5113495bSYour Name 362*5113495bSYour Name <legal all> 363*5113495bSYour Name 364*5113495bSYour Name mpdu_ast_idx_or_sw_peer_id_14_0 365*5113495bSYour Name 366*5113495bSYour Name Passed on from 'RX_MPDU_INFO' structure in 367*5113495bSYour Name 'RX_MPDU_START' TLV (one MSB is omitted) 368*5113495bSYour Name 369*5113495bSYour Name 370*5113495bSYour Name 371*5113495bSYour Name Based on a register configuration in RXDMA, this field 372*5113495bSYour Name will contain: 373*5113495bSYour Name 374*5113495bSYour Name The index of the address search entry corresponding to 375*5113495bSYour Name this MPDU (a value of 0xFFFF indicates an invalid AST index, 376*5113495bSYour Name meaning that no AST entry was found or no AST search was 377*5113495bSYour Name performed) 378*5113495bSYour Name 379*5113495bSYour Name 380*5113495bSYour Name 381*5113495bSYour Name OR: 382*5113495bSYour Name 383*5113495bSYour Name 384*5113495bSYour Name 385*5113495bSYour Name 'sw_peer_id' from the address search entry corresponding 386*5113495bSYour Name to this MPDU (in case of ndp or phy_err or 387*5113495bSYour Name AST_based_lookup_valid == 0, this field will be set to 0) 388*5113495bSYour Name 389*5113495bSYour Name <legal all> 390*5113495bSYour Name 391*5113495bSYour Name fr_ds 392*5113495bSYour Name 393*5113495bSYour Name Passed on from 'RX_MPDU_INFO' structure in 394*5113495bSYour Name 'RX_MPDU_START' TLV 395*5113495bSYour Name 396*5113495bSYour Name Set if the 'from DS' bit is set in the frame control. 397*5113495bSYour Name 398*5113495bSYour Name <legal all> 399*5113495bSYour Name 400*5113495bSYour Name to_ds 401*5113495bSYour Name 402*5113495bSYour Name Passed on from 'RX_MPDU_INFO' structure in 403*5113495bSYour Name 'RX_MPDU_START' TLV 404*5113495bSYour Name 405*5113495bSYour Name Set if the 'to DS' bit is set in the frame control. 406*5113495bSYour Name 407*5113495bSYour Name <legal all> 408*5113495bSYour Name */ 409*5113495bSYour Name 410*5113495bSYour Name 411*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_0_FIRST_MSDU_IN_MPDU_FLAG 412*5113495bSYour Name 413*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 414*5113495bSYour Name over multiple buffers, this field will be valid in the Last 415*5113495bSYour Name buffer used by the MSDU 416*5113495bSYour Name 417*5113495bSYour Name 418*5113495bSYour Name 419*5113495bSYour Name <enum 0 Not_first_msdu> This is not the first MSDU in 420*5113495bSYour Name the MPDU. 421*5113495bSYour Name 422*5113495bSYour Name <enum 1 first_msdu> This MSDU is the first one in the 423*5113495bSYour Name MPDU. 424*5113495bSYour Name 425*5113495bSYour Name 426*5113495bSYour Name 427*5113495bSYour Name <legal all> 428*5113495bSYour Name */ 429*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_FIRST_MSDU_IN_MPDU_FLAG_OFFSET 0x00000000 430*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_FIRST_MSDU_IN_MPDU_FLAG_LSB 0 431*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_FIRST_MSDU_IN_MPDU_FLAG_MASK 0x00000001 432*5113495bSYour Name 433*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_0_LAST_MSDU_IN_MPDU_FLAG 434*5113495bSYour Name 435*5113495bSYour Name Consumer: WBM/REO/SW/FW 436*5113495bSYour Name 437*5113495bSYour Name Producer: RXDMA 438*5113495bSYour Name 439*5113495bSYour Name 440*5113495bSYour Name 441*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 442*5113495bSYour Name over multiple buffers, this field will be valid in the Last 443*5113495bSYour Name buffer used by the MSDU 444*5113495bSYour Name 445*5113495bSYour Name 446*5113495bSYour Name 447*5113495bSYour Name <enum 0 Not_last_msdu> There are more MSDUs linked to 448*5113495bSYour Name this MSDU that belongs to this MPDU 449*5113495bSYour Name 450*5113495bSYour Name <enum 1 Last_msdu> this MSDU is the last one in the 451*5113495bSYour Name MPDU. This setting is only allowed in combination with 452*5113495bSYour Name 'Msdu_continuation' set to 0. This implies that when an msdu 453*5113495bSYour Name is spread out over multiple buffers and thus 454*5113495bSYour Name msdu_continuation is set, only for the very last buffer of 455*5113495bSYour Name the msdu, can the 'last_msdu_in_mpdu_flag' be set. 456*5113495bSYour Name 457*5113495bSYour Name 458*5113495bSYour Name 459*5113495bSYour Name When both first_msdu_in_mpdu_flag and 460*5113495bSYour Name last_msdu_in_mpdu_flag are set, the MPDU that this MSDU 461*5113495bSYour Name belongs to only contains a single MSDU. 462*5113495bSYour Name 463*5113495bSYour Name 464*5113495bSYour Name 465*5113495bSYour Name 466*5113495bSYour Name 467*5113495bSYour Name <legal all> 468*5113495bSYour Name */ 469*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_LAST_MSDU_IN_MPDU_FLAG_OFFSET 0x00000000 470*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_LAST_MSDU_IN_MPDU_FLAG_LSB 1 471*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_LAST_MSDU_IN_MPDU_FLAG_MASK 0x00000002 472*5113495bSYour Name 473*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_0_MSDU_CONTINUATION 474*5113495bSYour Name 475*5113495bSYour Name When set, this MSDU buffer was not able to hold the 476*5113495bSYour Name entire MSDU. The next buffer will therefor contain 477*5113495bSYour Name additional information related to this MSDU. 478*5113495bSYour Name 479*5113495bSYour Name 480*5113495bSYour Name 481*5113495bSYour Name <legal all> 482*5113495bSYour Name */ 483*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_MSDU_CONTINUATION_OFFSET 0x00000000 484*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_MSDU_CONTINUATION_LSB 2 485*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_MSDU_CONTINUATION_MASK 0x00000004 486*5113495bSYour Name 487*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_0_MSDU_LENGTH 488*5113495bSYour Name 489*5113495bSYour Name Parsed from RX_MSDU_START TLV . In the case MSDU spans 490*5113495bSYour Name over multiple buffers, this field will be valid in the First 491*5113495bSYour Name buffer used by MSDU. 492*5113495bSYour Name 493*5113495bSYour Name 494*5113495bSYour Name 495*5113495bSYour Name Full MSDU length in bytes after decapsulation. 496*5113495bSYour Name 497*5113495bSYour Name 498*5113495bSYour Name 499*5113495bSYour Name This field is still valid for MPDU frames without 500*5113495bSYour Name A-MSDU. It still represents MSDU length after decapsulation 501*5113495bSYour Name 502*5113495bSYour Name 503*5113495bSYour Name 504*5113495bSYour Name Or in case of RAW MPDUs, it indicates the length of the 505*5113495bSYour Name entire MPDU (without FCS field) 506*5113495bSYour Name 507*5113495bSYour Name <legal all> 508*5113495bSYour Name */ 509*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_MSDU_LENGTH_OFFSET 0x00000000 510*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_MSDU_LENGTH_LSB 3 511*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_MSDU_LENGTH_MASK 0x0001fff8 512*5113495bSYour Name 513*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_0_REO_DESTINATION_INDICATION 514*5113495bSYour Name 515*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 516*5113495bSYour Name over multiple buffers, this field will be valid in the Last 517*5113495bSYour Name buffer used by the MSDU 518*5113495bSYour Name 519*5113495bSYour Name 520*5113495bSYour Name 521*5113495bSYour Name The ID of the REO exit ring where the MSDU frame shall 522*5113495bSYour Name push after (MPDU level) reordering has finished. 523*5113495bSYour Name 524*5113495bSYour Name 525*5113495bSYour Name 526*5113495bSYour Name <enum 0 reo_destination_tcl> Reo will push the frame 527*5113495bSYour Name into the REO2TCL ring 528*5113495bSYour Name 529*5113495bSYour Name <enum 1 reo_destination_sw1> Reo will push the frame 530*5113495bSYour Name into the REO2SW1 ring 531*5113495bSYour Name 532*5113495bSYour Name <enum 2 reo_destination_sw2> Reo will push the frame 533*5113495bSYour Name into the REO2SW2 ring 534*5113495bSYour Name 535*5113495bSYour Name <enum 3 reo_destination_sw3> Reo will push the frame 536*5113495bSYour Name into the REO2SW3 ring 537*5113495bSYour Name 538*5113495bSYour Name <enum 4 reo_destination_sw4> Reo will push the frame 539*5113495bSYour Name into the REO2SW4 ring 540*5113495bSYour Name 541*5113495bSYour Name <enum 5 reo_destination_release> Reo will push the frame 542*5113495bSYour Name into the REO_release ring 543*5113495bSYour Name 544*5113495bSYour Name <enum 6 reo_destination_fw> Reo will push the frame into 545*5113495bSYour Name the REO2FW ring 546*5113495bSYour Name 547*5113495bSYour Name <enum 7 reo_destination_sw5> Reo will push the frame 548*5113495bSYour Name into the REO2SW5 ring (REO remaps this in chips without 549*5113495bSYour Name REO2SW5 ring, e.g. Pine) 550*5113495bSYour Name 551*5113495bSYour Name <enum 8 reo_destination_sw6> Reo will push the frame 552*5113495bSYour Name into the REO2SW6 ring (REO remaps this in chips without 553*5113495bSYour Name REO2SW6 ring, e.g. Pine) 554*5113495bSYour Name 555*5113495bSYour Name <enum 9 reo_destination_9> REO remaps this <enum 10 556*5113495bSYour Name reo_destination_10> REO remaps this 557*5113495bSYour Name 558*5113495bSYour Name <enum 11 reo_destination_11> REO remaps this 559*5113495bSYour Name 560*5113495bSYour Name <enum 12 reo_destination_12> REO remaps this <enum 13 561*5113495bSYour Name reo_destination_13> REO remaps this 562*5113495bSYour Name 563*5113495bSYour Name <enum 14 reo_destination_14> REO remaps this 564*5113495bSYour Name 565*5113495bSYour Name <enum 15 reo_destination_15> REO remaps this 566*5113495bSYour Name 567*5113495bSYour Name <enum 16 reo_destination_16> REO remaps this 568*5113495bSYour Name 569*5113495bSYour Name <enum 17 reo_destination_17> REO remaps this 570*5113495bSYour Name 571*5113495bSYour Name <enum 18 reo_destination_18> REO remaps this 572*5113495bSYour Name 573*5113495bSYour Name <enum 19 reo_destination_19> REO remaps this 574*5113495bSYour Name 575*5113495bSYour Name <enum 20 reo_destination_20> REO remaps this 576*5113495bSYour Name 577*5113495bSYour Name <enum 21 reo_destination_21> REO remaps this 578*5113495bSYour Name 579*5113495bSYour Name <enum 22 reo_destination_22> REO remaps this 580*5113495bSYour Name 581*5113495bSYour Name <enum 23 reo_destination_23> REO remaps this 582*5113495bSYour Name 583*5113495bSYour Name <enum 24 reo_destination_24> REO remaps this 584*5113495bSYour Name 585*5113495bSYour Name <enum 25 reo_destination_25> REO remaps this 586*5113495bSYour Name 587*5113495bSYour Name <enum 26 reo_destination_26> REO remaps this 588*5113495bSYour Name 589*5113495bSYour Name <enum 27 reo_destination_27> REO remaps this 590*5113495bSYour Name 591*5113495bSYour Name <enum 28 reo_destination_28> REO remaps this 592*5113495bSYour Name 593*5113495bSYour Name <enum 29 reo_destination_29> REO remaps this 594*5113495bSYour Name 595*5113495bSYour Name <enum 30 reo_destination_30> REO remaps this 596*5113495bSYour Name 597*5113495bSYour Name <enum 31 reo_destination_31> REO remaps this 598*5113495bSYour Name 599*5113495bSYour Name 600*5113495bSYour Name 601*5113495bSYour Name <legal all> 602*5113495bSYour Name */ 603*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_REO_DESTINATION_INDICATION_OFFSET 0x00000000 604*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_REO_DESTINATION_INDICATION_LSB 17 605*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_REO_DESTINATION_INDICATION_MASK 0x003e0000 606*5113495bSYour Name 607*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_0_MSDU_DROP 608*5113495bSYour Name 609*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 610*5113495bSYour Name over multiple buffers, this field will be valid in the Last 611*5113495bSYour Name buffer used by the MSDU 612*5113495bSYour Name 613*5113495bSYour Name 614*5113495bSYour Name 615*5113495bSYour Name When set, REO shall drop this MSDU and not forward it to 616*5113495bSYour Name any other ring... 617*5113495bSYour Name 618*5113495bSYour Name <legal all> 619*5113495bSYour Name */ 620*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_MSDU_DROP_OFFSET 0x00000000 621*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_MSDU_DROP_LSB 22 622*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_MSDU_DROP_MASK 0x00400000 623*5113495bSYour Name 624*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_0_SA_IS_VALID 625*5113495bSYour Name 626*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 627*5113495bSYour Name over multiple buffers, this field will be valid in the Last 628*5113495bSYour Name buffer used by the MSDU 629*5113495bSYour Name 630*5113495bSYour Name 631*5113495bSYour Name 632*5113495bSYour Name Indicates that OLE found a valid SA entry for this MSDU 633*5113495bSYour Name 634*5113495bSYour Name <legal all> 635*5113495bSYour Name */ 636*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_SA_IS_VALID_OFFSET 0x00000000 637*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_SA_IS_VALID_LSB 23 638*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_SA_IS_VALID_MASK 0x00800000 639*5113495bSYour Name 640*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_0_SA_IDX_TIMEOUT 641*5113495bSYour Name 642*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 643*5113495bSYour Name over multiple buffers, this field will be valid in the Last 644*5113495bSYour Name buffer used by the MSDU 645*5113495bSYour Name 646*5113495bSYour Name 647*5113495bSYour Name 648*5113495bSYour Name Indicates an unsuccessful MAC source address search due 649*5113495bSYour Name to the expiring of the search timer for this MSDU 650*5113495bSYour Name 651*5113495bSYour Name <legal all> 652*5113495bSYour Name */ 653*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_SA_IDX_TIMEOUT_OFFSET 0x00000000 654*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_SA_IDX_TIMEOUT_LSB 24 655*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_SA_IDX_TIMEOUT_MASK 0x01000000 656*5113495bSYour Name 657*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_0_DA_IS_VALID 658*5113495bSYour Name 659*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 660*5113495bSYour Name over multiple buffers, this field will be valid in the Last 661*5113495bSYour Name buffer used by the MSDU 662*5113495bSYour Name 663*5113495bSYour Name 664*5113495bSYour Name 665*5113495bSYour Name Indicates that OLE found a valid DA entry for this MSDU 666*5113495bSYour Name 667*5113495bSYour Name <legal all> 668*5113495bSYour Name */ 669*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_DA_IS_VALID_OFFSET 0x00000000 670*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_DA_IS_VALID_LSB 25 671*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_DA_IS_VALID_MASK 0x02000000 672*5113495bSYour Name 673*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_0_DA_IS_MCBC 674*5113495bSYour Name 675*5113495bSYour Name Field Only valid if da_is_valid is set 676*5113495bSYour Name 677*5113495bSYour Name 678*5113495bSYour Name 679*5113495bSYour Name Indicates the DA address was a Multicast of Broadcast 680*5113495bSYour Name address for this MSDU 681*5113495bSYour Name 682*5113495bSYour Name <legal all> 683*5113495bSYour Name */ 684*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_DA_IS_MCBC_OFFSET 0x00000000 685*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_DA_IS_MCBC_LSB 26 686*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_DA_IS_MCBC_MASK 0x04000000 687*5113495bSYour Name 688*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_0_DA_IDX_TIMEOUT 689*5113495bSYour Name 690*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 691*5113495bSYour Name over multiple buffers, this field will be valid in the Last 692*5113495bSYour Name buffer used by the MSDU 693*5113495bSYour Name 694*5113495bSYour Name 695*5113495bSYour Name 696*5113495bSYour Name Indicates an unsuccessful MAC destination address search 697*5113495bSYour Name due to the expiring of the search timer for this MSDU 698*5113495bSYour Name 699*5113495bSYour Name <legal all> 700*5113495bSYour Name */ 701*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_DA_IDX_TIMEOUT_OFFSET 0x00000000 702*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_DA_IDX_TIMEOUT_LSB 27 703*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_DA_IDX_TIMEOUT_MASK 0x08000000 704*5113495bSYour Name 705*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_0_L3_HEADER_PADDING_MSB 706*5113495bSYour Name 707*5113495bSYour Name Passed on from 'RX_MSDU_END' TLV (only the MSB is 708*5113495bSYour Name reported as the LSB is always zero) 709*5113495bSYour Name 710*5113495bSYour Name Number of bytes padded to make sure that the L3 header 711*5113495bSYour Name will always start of a Dword boundary 712*5113495bSYour Name 713*5113495bSYour Name <legal all> 714*5113495bSYour Name */ 715*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_L3_HEADER_PADDING_MSB_OFFSET 0x00000000 716*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_L3_HEADER_PADDING_MSB_LSB 28 717*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_L3_HEADER_PADDING_MSB_MASK 0x10000000 718*5113495bSYour Name 719*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_0_TCP_UDP_CHKSUM_FAIL 720*5113495bSYour Name 721*5113495bSYour Name Passed on from 'RX_ATTENTION' TLV 722*5113495bSYour Name 723*5113495bSYour Name Indicates that the computed checksum did not match the 724*5113495bSYour Name checksum in the TCP/UDP header. 725*5113495bSYour Name 726*5113495bSYour Name <legal all> 727*5113495bSYour Name */ 728*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_TCP_UDP_CHKSUM_FAIL_OFFSET 0x00000000 729*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_TCP_UDP_CHKSUM_FAIL_LSB 29 730*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_TCP_UDP_CHKSUM_FAIL_MASK 0x20000000 731*5113495bSYour Name 732*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_0_IP_CHKSUM_FAIL 733*5113495bSYour Name 734*5113495bSYour Name Passed on from 'RX_ATTENTION' TLV 735*5113495bSYour Name 736*5113495bSYour Name Indicates that the computed checksum did not match the 737*5113495bSYour Name checksum in the IP header. 738*5113495bSYour Name 739*5113495bSYour Name <legal all> 740*5113495bSYour Name */ 741*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_IP_CHKSUM_FAIL_OFFSET 0x00000000 742*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_IP_CHKSUM_FAIL_LSB 30 743*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_IP_CHKSUM_FAIL_MASK 0x40000000 744*5113495bSYour Name 745*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_0_RAW_MPDU 746*5113495bSYour Name 747*5113495bSYour Name Passed on from 'RX_MPDU_INFO' structure in 748*5113495bSYour Name 'RX_MPDU_START' TLV 749*5113495bSYour Name 750*5113495bSYour Name Set to 1 by RXOLE when it has not performed any 802.11 751*5113495bSYour Name to Ethernet/Natvie WiFi header conversion on this MPDU. 752*5113495bSYour Name 753*5113495bSYour Name <legal all> 754*5113495bSYour Name */ 755*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_RAW_MPDU_OFFSET 0x00000000 756*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_RAW_MPDU_LSB 31 757*5113495bSYour Name #define RX_MSDU_DESC_INFO_0_RAW_MPDU_MASK 0x80000000 758*5113495bSYour Name 759*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_1_SA_IDX_OR_SW_PEER_ID_14_0 760*5113495bSYour Name 761*5113495bSYour Name Passed on from 'RX_MSDU_END' TLV (one MSB is omitted) 762*5113495bSYour Name 763*5113495bSYour Name Based on a register configuration in RXDMA, this field 764*5113495bSYour Name will contain: 765*5113495bSYour Name 766*5113495bSYour Name The offset in the address search table which matches the 767*5113495bSYour Name MAC source address 768*5113495bSYour Name 769*5113495bSYour Name OR 770*5113495bSYour Name 771*5113495bSYour Name 772*5113495bSYour Name 773*5113495bSYour Name 'sw_peer_id' from the address search entry corresponding 774*5113495bSYour Name to the source address of the MSDU 775*5113495bSYour Name 776*5113495bSYour Name <legal all> 777*5113495bSYour Name */ 778*5113495bSYour Name #define RX_MSDU_DESC_INFO_1_SA_IDX_OR_SW_PEER_ID_14_0_OFFSET 0x00000004 779*5113495bSYour Name #define RX_MSDU_DESC_INFO_1_SA_IDX_OR_SW_PEER_ID_14_0_LSB 0 780*5113495bSYour Name #define RX_MSDU_DESC_INFO_1_SA_IDX_OR_SW_PEER_ID_14_0_MASK 0x00007fff 781*5113495bSYour Name 782*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_1_MPDU_AST_IDX_OR_SW_PEER_ID_14_0 783*5113495bSYour Name 784*5113495bSYour Name Passed on from 'RX_MPDU_INFO' structure in 785*5113495bSYour Name 'RX_MPDU_START' TLV (one MSB is omitted) 786*5113495bSYour Name 787*5113495bSYour Name 788*5113495bSYour Name 789*5113495bSYour Name Based on a register configuration in RXDMA, this field 790*5113495bSYour Name will contain: 791*5113495bSYour Name 792*5113495bSYour Name The index of the address search entry corresponding to 793*5113495bSYour Name this MPDU (a value of 0xFFFF indicates an invalid AST index, 794*5113495bSYour Name meaning that no AST entry was found or no AST search was 795*5113495bSYour Name performed) 796*5113495bSYour Name 797*5113495bSYour Name 798*5113495bSYour Name 799*5113495bSYour Name OR: 800*5113495bSYour Name 801*5113495bSYour Name 802*5113495bSYour Name 803*5113495bSYour Name 'sw_peer_id' from the address search entry corresponding 804*5113495bSYour Name to this MPDU (in case of ndp or phy_err or 805*5113495bSYour Name AST_based_lookup_valid == 0, this field will be set to 0) 806*5113495bSYour Name 807*5113495bSYour Name <legal all> 808*5113495bSYour Name */ 809*5113495bSYour Name #define RX_MSDU_DESC_INFO_1_MPDU_AST_IDX_OR_SW_PEER_ID_14_0_OFFSET 0x00000004 810*5113495bSYour Name #define RX_MSDU_DESC_INFO_1_MPDU_AST_IDX_OR_SW_PEER_ID_14_0_LSB 15 811*5113495bSYour Name #define RX_MSDU_DESC_INFO_1_MPDU_AST_IDX_OR_SW_PEER_ID_14_0_MASK 0x3fff8000 812*5113495bSYour Name 813*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_1_FR_DS 814*5113495bSYour Name 815*5113495bSYour Name Passed on from 'RX_MPDU_INFO' structure in 816*5113495bSYour Name 'RX_MPDU_START' TLV 817*5113495bSYour Name 818*5113495bSYour Name Set if the 'from DS' bit is set in the frame control. 819*5113495bSYour Name 820*5113495bSYour Name <legal all> 821*5113495bSYour Name */ 822*5113495bSYour Name #define RX_MSDU_DESC_INFO_1_FR_DS_OFFSET 0x00000004 823*5113495bSYour Name #define RX_MSDU_DESC_INFO_1_FR_DS_LSB 30 824*5113495bSYour Name #define RX_MSDU_DESC_INFO_1_FR_DS_MASK 0x40000000 825*5113495bSYour Name 826*5113495bSYour Name /* Description RX_MSDU_DESC_INFO_1_TO_DS 827*5113495bSYour Name 828*5113495bSYour Name Passed on from 'RX_MPDU_INFO' structure in 829*5113495bSYour Name 'RX_MPDU_START' TLV 830*5113495bSYour Name 831*5113495bSYour Name Set if the 'to DS' bit is set in the frame control. 832*5113495bSYour Name 833*5113495bSYour Name <legal all> 834*5113495bSYour Name */ 835*5113495bSYour Name #define RX_MSDU_DESC_INFO_1_TO_DS_OFFSET 0x00000004 836*5113495bSYour Name #define RX_MSDU_DESC_INFO_1_TO_DS_LSB 31 837*5113495bSYour Name #define RX_MSDU_DESC_INFO_1_TO_DS_MASK 0x80000000 838*5113495bSYour Name 839*5113495bSYour Name 840*5113495bSYour Name #endif // _RX_MSDU_DESC_INFO_H_ 841