1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2019, 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 _REO_DESTINATION_RING_H_ 18*5113495bSYour Name #define _REO_DESTINATION_RING_H_ 19*5113495bSYour Name #if !defined(__ASSEMBLER__) 20*5113495bSYour Name #endif 21*5113495bSYour Name 22*5113495bSYour Name #include "buffer_addr_info.h" 23*5113495bSYour Name #include "rx_mpdu_desc_info.h" 24*5113495bSYour Name #include "rx_msdu_desc_info.h" 25*5113495bSYour Name 26*5113495bSYour Name // ################ START SUMMARY ################# 27*5113495bSYour Name // 28*5113495bSYour Name // Dword Fields 29*5113495bSYour Name // 0-1 struct buffer_addr_info buf_or_link_desc_addr_info; 30*5113495bSYour Name // 2-3 struct rx_mpdu_desc_info rx_mpdu_desc_info_details; 31*5113495bSYour Name // 4-5 struct rx_msdu_desc_info rx_msdu_desc_info_details; 32*5113495bSYour Name // 6 rx_reo_queue_desc_addr_31_0[31:0] 33*5113495bSYour Name // 7 rx_reo_queue_desc_addr_39_32[7:0], reo_dest_buffer_type[8], reo_push_reason[10:9], reo_error_code[15:11], receive_queue_number[31:16] 34*5113495bSYour Name // 8 soft_reorder_info_valid[0], reorder_opcode[4:1], reorder_slot_index[12:5], mpdu_fragment_number[16:13], captured_msdu_data_size[20:17], sw_exception[21], reserved_8a[31:22] 35*5113495bSYour Name // 9 reo_destination_struct_signature[31:0] 36*5113495bSYour Name // 10 reserved_10a[31:0] 37*5113495bSYour Name // 11 reserved_11a[31:0] 38*5113495bSYour Name // 12 reserved_12a[31:0] 39*5113495bSYour Name // 13 reserved_13a[31:0] 40*5113495bSYour Name // 14 reserved_14a[31:0] 41*5113495bSYour Name // 15 reserved_15[19:0], ring_id[27:20], looping_count[31:28] 42*5113495bSYour Name // 43*5113495bSYour Name // ################ END SUMMARY ################# 44*5113495bSYour Name 45*5113495bSYour Name #define NUM_OF_DWORDS_REO_DESTINATION_RING 16 46*5113495bSYour Name 47*5113495bSYour Name struct reo_destination_ring { 48*5113495bSYour Name struct buffer_addr_info buf_or_link_desc_addr_info; 49*5113495bSYour Name struct rx_mpdu_desc_info rx_mpdu_desc_info_details; 50*5113495bSYour Name struct rx_msdu_desc_info rx_msdu_desc_info_details; 51*5113495bSYour Name uint32_t rx_reo_queue_desc_addr_31_0 : 32; //[31:0] 52*5113495bSYour Name uint32_t rx_reo_queue_desc_addr_39_32 : 8, //[7:0] 53*5113495bSYour Name reo_dest_buffer_type : 1, //[8] 54*5113495bSYour Name reo_push_reason : 2, //[10:9] 55*5113495bSYour Name reo_error_code : 5, //[15:11] 56*5113495bSYour Name receive_queue_number : 16; //[31:16] 57*5113495bSYour Name uint32_t soft_reorder_info_valid : 1, //[0] 58*5113495bSYour Name reorder_opcode : 4, //[4:1] 59*5113495bSYour Name reorder_slot_index : 8, //[12:5] 60*5113495bSYour Name mpdu_fragment_number : 4, //[16:13] 61*5113495bSYour Name captured_msdu_data_size : 4, //[20:17] 62*5113495bSYour Name sw_exception : 1, //[21] 63*5113495bSYour Name reserved_8a : 10; //[31:22] 64*5113495bSYour Name uint32_t reo_destination_struct_signature: 32; //[31:0] 65*5113495bSYour Name uint32_t reserved_10a : 32; //[31:0] 66*5113495bSYour Name uint32_t reserved_11a : 32; //[31:0] 67*5113495bSYour Name uint32_t reserved_12a : 32; //[31:0] 68*5113495bSYour Name uint32_t reserved_13a : 32; //[31:0] 69*5113495bSYour Name uint32_t reserved_14a : 32; //[31:0] 70*5113495bSYour Name uint32_t reserved_15 : 20, //[19:0] 71*5113495bSYour Name ring_id : 8, //[27:20] 72*5113495bSYour Name looping_count : 4; //[31:28] 73*5113495bSYour Name }; 74*5113495bSYour Name 75*5113495bSYour Name /* 76*5113495bSYour Name 77*5113495bSYour Name struct buffer_addr_info buf_or_link_desc_addr_info 78*5113495bSYour Name 79*5113495bSYour Name Consumer: REO/SW/FW 80*5113495bSYour Name 81*5113495bSYour Name Producer: RXDMA 82*5113495bSYour Name 83*5113495bSYour Name 84*5113495bSYour Name 85*5113495bSYour Name Details of the physical address of the a buffer or MSDU 86*5113495bSYour Name link descriptor 87*5113495bSYour Name 88*5113495bSYour Name struct rx_mpdu_desc_info rx_mpdu_desc_info_details 89*5113495bSYour Name 90*5113495bSYour Name Consumer: REO/SW/FW 91*5113495bSYour Name 92*5113495bSYour Name Producer: RXDMA 93*5113495bSYour Name 94*5113495bSYour Name 95*5113495bSYour Name 96*5113495bSYour Name General information related to the MPDU that is passed 97*5113495bSYour Name on from REO entrance ring to the REO destination ring 98*5113495bSYour Name 99*5113495bSYour Name struct rx_msdu_desc_info rx_msdu_desc_info_details 100*5113495bSYour Name 101*5113495bSYour Name General information related to the MSDU that is passed 102*5113495bSYour Name on from RXDMA all the way to to the REO destination ring. 103*5113495bSYour Name 104*5113495bSYour Name rx_reo_queue_desc_addr_31_0 105*5113495bSYour Name 106*5113495bSYour Name Consumer: REO 107*5113495bSYour Name 108*5113495bSYour Name Producer: RXDMA 109*5113495bSYour Name 110*5113495bSYour Name 111*5113495bSYour Name 112*5113495bSYour Name Address (lower 32 bits) of the REO queue descriptor. 113*5113495bSYour Name 114*5113495bSYour Name <legal all> 115*5113495bSYour Name 116*5113495bSYour Name rx_reo_queue_desc_addr_39_32 117*5113495bSYour Name 118*5113495bSYour Name Consumer: REO 119*5113495bSYour Name 120*5113495bSYour Name Producer: RXDMA 121*5113495bSYour Name 122*5113495bSYour Name 123*5113495bSYour Name 124*5113495bSYour Name Address (upper 8 bits) of the REO queue descriptor. 125*5113495bSYour Name 126*5113495bSYour Name <legal all> 127*5113495bSYour Name 128*5113495bSYour Name reo_dest_buffer_type 129*5113495bSYour Name 130*5113495bSYour Name Indicates the type of address provided in the 131*5113495bSYour Name 'Buf_or_link_desc_addr_info' 132*5113495bSYour Name 133*5113495bSYour Name 134*5113495bSYour Name 135*5113495bSYour Name <enum 0 MSDU_buf_address> The address of an MSDU buffer 136*5113495bSYour Name 137*5113495bSYour Name <enum 1 MSDU_link_desc_address> The address of the MSDU 138*5113495bSYour Name link descriptor. 139*5113495bSYour Name 140*5113495bSYour Name 141*5113495bSYour Name 142*5113495bSYour Name <legal all> 143*5113495bSYour Name 144*5113495bSYour Name reo_push_reason 145*5113495bSYour Name 146*5113495bSYour Name Indicates why REO pushed the frame to this exit ring 147*5113495bSYour Name 148*5113495bSYour Name 149*5113495bSYour Name 150*5113495bSYour Name <enum 0 reo_error_detected> Reo detected an error an 151*5113495bSYour Name pushed this frame to this queue 152*5113495bSYour Name 153*5113495bSYour Name <enum 1 reo_routing_instruction> Reo pushed the frame to 154*5113495bSYour Name this queue per received routing instructions. No error 155*5113495bSYour Name within REO was detected 156*5113495bSYour Name 157*5113495bSYour Name 158*5113495bSYour Name 159*5113495bSYour Name 160*5113495bSYour Name 161*5113495bSYour Name <legal 0 - 1> 162*5113495bSYour Name 163*5113495bSYour Name reo_error_code 164*5113495bSYour Name 165*5113495bSYour Name Field only valid when 'Reo_push_reason' set to 166*5113495bSYour Name 'reo_error_detected'. 167*5113495bSYour Name 168*5113495bSYour Name 169*5113495bSYour Name 170*5113495bSYour Name <enum 0 reo_queue_desc_addr_zero> Reo queue descriptor 171*5113495bSYour Name provided in the REO_ENTRANCE ring is set to 0 172*5113495bSYour Name 173*5113495bSYour Name <enum 1 reo_queue_desc_not_valid> Reo queue descriptor 174*5113495bSYour Name valid bit is NOT set 175*5113495bSYour Name 176*5113495bSYour Name <enum 2 ampdu_in_non_ba> AMPDU frame received without BA 177*5113495bSYour Name session having been setup. 178*5113495bSYour Name 179*5113495bSYour Name <enum 3 non_ba_duplicate> Non-BA session, SN equal to 180*5113495bSYour Name SSN, Retry bit set: duplicate frame 181*5113495bSYour Name 182*5113495bSYour Name <enum 4 ba_duplicate> BA session, duplicate frame 183*5113495bSYour Name 184*5113495bSYour Name <enum 5 regular_frame_2k_jump> A normal (management/data 185*5113495bSYour Name frame) received with 2K jump in SN 186*5113495bSYour Name 187*5113495bSYour Name <enum 6 bar_frame_2k_jump> A bar received with 2K jump 188*5113495bSYour Name in SSN 189*5113495bSYour Name 190*5113495bSYour Name <enum 7 regular_frame_OOR> A normal (management/data 191*5113495bSYour Name frame) received with SN falling within the OOR window 192*5113495bSYour Name 193*5113495bSYour Name <enum 8 bar_frame_OOR> A bar received with SSN falling 194*5113495bSYour Name within the OOR window 195*5113495bSYour Name 196*5113495bSYour Name <enum 9 bar_frame_no_ba_session> A bar received without 197*5113495bSYour Name a BA session 198*5113495bSYour Name 199*5113495bSYour Name <enum 10 bar_frame_sn_equals_ssn> A bar received with 200*5113495bSYour Name SSN equal to SN 201*5113495bSYour Name 202*5113495bSYour Name <enum 11 pn_check_failed> PN Check Failed packet. 203*5113495bSYour Name 204*5113495bSYour Name <enum 12 2k_error_handling_flag_set> Frame is forwarded 205*5113495bSYour Name as a result of the 'Seq_2k_error_detected_flag' been set in 206*5113495bSYour Name the REO Queue descriptor 207*5113495bSYour Name 208*5113495bSYour Name <enum 13 pn_error_handling_flag_set> Frame is forwarded 209*5113495bSYour Name as a result of the 'pn_error_detected_flag' been set in the 210*5113495bSYour Name REO Queue descriptor 211*5113495bSYour Name 212*5113495bSYour Name <enum 14 queue_descriptor_blocked_set> Frame is 213*5113495bSYour Name forwarded as a result of the queue descriptor(address) being 214*5113495bSYour Name blocked as SW/FW seems to be currently in the process of 215*5113495bSYour Name making updates to this descriptor... 216*5113495bSYour Name 217*5113495bSYour Name 218*5113495bSYour Name 219*5113495bSYour Name <legal 0-14> 220*5113495bSYour Name 221*5113495bSYour Name receive_queue_number 222*5113495bSYour Name 223*5113495bSYour Name This field in NOT valid (should be set to 0), when 224*5113495bSYour Name SW_exception is set. 225*5113495bSYour Name 226*5113495bSYour Name This field indicates the REO MPDU reorder queue ID from 227*5113495bSYour Name which this frame originated. This field is populated from a 228*5113495bSYour Name field with the same name in the RX_REO_QUEUE descriptor. 229*5113495bSYour Name 230*5113495bSYour Name <legal all> 231*5113495bSYour Name 232*5113495bSYour Name soft_reorder_info_valid 233*5113495bSYour Name 234*5113495bSYour Name This field in NOT valid (should be set to 0), when 235*5113495bSYour Name SW_exception is set. 236*5113495bSYour Name 237*5113495bSYour Name When set, REO has been instructed to not perform the 238*5113495bSYour Name actual re-ordering of frames for this queue, but just to 239*5113495bSYour Name insert the reorder opcodes 240*5113495bSYour Name 241*5113495bSYour Name <legal all> 242*5113495bSYour Name 243*5113495bSYour Name reorder_opcode 244*5113495bSYour Name 245*5113495bSYour Name Field is valid when 'Soft_reorder_info_valid' is set. 246*5113495bSYour Name This field is always valid for debug purpose as well. 247*5113495bSYour Name 248*5113495bSYour Name Details are in the MLD. 249*5113495bSYour Name 250*5113495bSYour Name 251*5113495bSYour Name 252*5113495bSYour Name <enum 0 invalid> 253*5113495bSYour Name 254*5113495bSYour Name <enum 1 fwdcur_fwdbuf> 255*5113495bSYour Name 256*5113495bSYour Name <enum 2 fwdbuf_fwdcur> 257*5113495bSYour Name 258*5113495bSYour Name <enum 3 qcur> 259*5113495bSYour Name 260*5113495bSYour Name <enum 4 fwdbuf_qcur> 261*5113495bSYour Name 262*5113495bSYour Name <enum 5 fwdbuf_drop> 263*5113495bSYour Name 264*5113495bSYour Name <enum 6 fwdall_drop> 265*5113495bSYour Name 266*5113495bSYour Name <enum 7 fwdall_qcur> 267*5113495bSYour Name 268*5113495bSYour Name <enum 8 reserved_reo_opcode_1> 269*5113495bSYour Name 270*5113495bSYour Name <enum 9 dropcur> the error reason code is in 271*5113495bSYour Name reo_error_code field. 272*5113495bSYour Name 273*5113495bSYour Name <enum 10 reserved_reo_opcode_2> 274*5113495bSYour Name 275*5113495bSYour Name <enum 11 reserved_reo_opcode_3> 276*5113495bSYour Name 277*5113495bSYour Name <enum 12 reserved_reo_opcode_4> 278*5113495bSYour Name 279*5113495bSYour Name <enum 13 reserved_reo_opcode_5> 280*5113495bSYour Name 281*5113495bSYour Name <enum 14 reserved_reo_opcode_6> 282*5113495bSYour Name 283*5113495bSYour Name <enum 15 reserved_reo_opcode_7> 284*5113495bSYour Name 285*5113495bSYour Name 286*5113495bSYour Name 287*5113495bSYour Name <legal all> 288*5113495bSYour Name 289*5113495bSYour Name reorder_slot_index 290*5113495bSYour Name 291*5113495bSYour Name Field only valid when 'Soft_reorder_info_valid' is set. 292*5113495bSYour Name 293*5113495bSYour Name 294*5113495bSYour Name 295*5113495bSYour Name TODO: add description 296*5113495bSYour Name 297*5113495bSYour Name 298*5113495bSYour Name 299*5113495bSYour Name <legal all> 300*5113495bSYour Name 301*5113495bSYour Name mpdu_fragment_number 302*5113495bSYour Name 303*5113495bSYour Name Field only valid when Rx_mpdu_desc_info_details. 304*5113495bSYour Name Fragment_flag is set. 305*5113495bSYour Name 306*5113495bSYour Name 307*5113495bSYour Name 308*5113495bSYour Name The fragment number from the 802.11 header. 309*5113495bSYour Name 310*5113495bSYour Name 311*5113495bSYour Name 312*5113495bSYour Name Note that the sequence number is embedded in the field: 313*5113495bSYour Name Rx_mpdu_desc_info_details. Mpdu_sequence_number 314*5113495bSYour Name 315*5113495bSYour Name 316*5113495bSYour Name 317*5113495bSYour Name <legal all> 318*5113495bSYour Name 319*5113495bSYour Name captured_msdu_data_size 320*5113495bSYour Name 321*5113495bSYour Name The number of following REO_DESTINATION STRUCTs that 322*5113495bSYour Name have been replaced with msdu_data extracted from the 323*5113495bSYour Name msdu_buffer and copied into the ring for easy FW/SW access. 324*5113495bSYour Name 325*5113495bSYour Name Note that it is possible that these STRUCTs wrap around 326*5113495bSYour Name the end of the ring. 327*5113495bSYour Name 328*5113495bSYour Name Feature supported only in HastingsPrime 329*5113495bSYour Name 330*5113495bSYour Name <legal 0-4> 331*5113495bSYour Name 332*5113495bSYour Name sw_exception 333*5113495bSYour Name 334*5113495bSYour Name This field has the same setting as the SW_exception 335*5113495bSYour Name field in the corresponding REO_entrance_ring descriptor. 336*5113495bSYour Name 337*5113495bSYour Name When set, the REO entrance descriptor is generated by 338*5113495bSYour Name FW, and the MPDU was processed in the following way: 339*5113495bSYour Name 340*5113495bSYour Name - NO re-order function is needed. 341*5113495bSYour Name 342*5113495bSYour Name - MPDU delinking is determined by the setting of 343*5113495bSYour Name Entrance ring field: SW_excection_mpdu_delink 344*5113495bSYour Name 345*5113495bSYour Name - Destination ring selection is based on the setting of 346*5113495bSYour Name 347*5113495bSYour Name Feature supported only in HastingsPrime 348*5113495bSYour Name 349*5113495bSYour Name <legal all> 350*5113495bSYour Name 351*5113495bSYour Name reserved_8a 352*5113495bSYour Name 353*5113495bSYour Name <legal 0> 354*5113495bSYour Name 355*5113495bSYour Name reo_destination_struct_signature 356*5113495bSYour Name 357*5113495bSYour Name Set to value 0x8888_88888 when msdu capture mode is 358*5113495bSYour Name enabled for this ring (supported only in HastingsPrime) 359*5113495bSYour Name 360*5113495bSYour Name <legal 0, 2290649224 > 361*5113495bSYour Name 362*5113495bSYour Name reserved_10a 363*5113495bSYour Name 364*5113495bSYour Name <legal 0> 365*5113495bSYour Name 366*5113495bSYour Name reserved_11a 367*5113495bSYour Name 368*5113495bSYour Name <legal 0> 369*5113495bSYour Name 370*5113495bSYour Name reserved_12a 371*5113495bSYour Name 372*5113495bSYour Name <legal 0> 373*5113495bSYour Name 374*5113495bSYour Name reserved_13a 375*5113495bSYour Name 376*5113495bSYour Name <legal 0> 377*5113495bSYour Name 378*5113495bSYour Name reserved_14a 379*5113495bSYour Name 380*5113495bSYour Name <legal 0> 381*5113495bSYour Name 382*5113495bSYour Name reserved_15 383*5113495bSYour Name 384*5113495bSYour Name <legal 0> 385*5113495bSYour Name 386*5113495bSYour Name ring_id 387*5113495bSYour Name 388*5113495bSYour Name The buffer pointer ring ID. 389*5113495bSYour Name 390*5113495bSYour Name 0 refers to the IDLE ring 391*5113495bSYour Name 392*5113495bSYour Name 1 - N refers to other rings 393*5113495bSYour Name 394*5113495bSYour Name 395*5113495bSYour Name 396*5113495bSYour Name Helps with debugging when dumping ring contents. 397*5113495bSYour Name 398*5113495bSYour Name <legal all> 399*5113495bSYour Name 400*5113495bSYour Name looping_count 401*5113495bSYour Name 402*5113495bSYour Name A count value that indicates the number of times the 403*5113495bSYour Name producer of entries into this Ring has looped around the 404*5113495bSYour Name ring. 405*5113495bSYour Name 406*5113495bSYour Name At initialization time, this value is set to 0. On the 407*5113495bSYour Name first loop, this value is set to 1. After the max value is 408*5113495bSYour Name reached allowed by the number of bits for this field, the 409*5113495bSYour Name count value continues with 0 again. 410*5113495bSYour Name 411*5113495bSYour Name In case SW is the consumer of the ring entries, it can 412*5113495bSYour Name use this field to figure out up to where the producer of 413*5113495bSYour Name entries has created new entries. This eliminates the need to 414*5113495bSYour Name check where the head pointer' of the ring is located once 415*5113495bSYour Name the SW starts processing an interrupt indicating that new 416*5113495bSYour Name entries have been put into this ring... 417*5113495bSYour Name 418*5113495bSYour Name 419*5113495bSYour Name 420*5113495bSYour Name Also note that SW if it wants only needs to look at the 421*5113495bSYour Name LSB bit of this count value. 422*5113495bSYour Name 423*5113495bSYour Name <legal all> 424*5113495bSYour Name */ 425*5113495bSYour Name 426*5113495bSYour Name 427*5113495bSYour Name /* EXTERNAL REFERENCE : struct buffer_addr_info buf_or_link_desc_addr_info */ 428*5113495bSYour Name 429*5113495bSYour Name 430*5113495bSYour Name /* Description REO_DESTINATION_RING_0_BUF_OR_LINK_DESC_ADDR_INFO_BUFFER_ADDR_31_0 431*5113495bSYour Name 432*5113495bSYour Name Address (lower 32 bits) of the MSDU buffer OR 433*5113495bSYour Name MSDU_EXTENSION descriptor OR Link Descriptor 434*5113495bSYour Name 435*5113495bSYour Name 436*5113495bSYour Name 437*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 438*5113495bSYour Name 439*5113495bSYour Name <legal all> 440*5113495bSYour Name */ 441*5113495bSYour Name #define REO_DESTINATION_RING_0_BUF_OR_LINK_DESC_ADDR_INFO_BUFFER_ADDR_31_0_OFFSET 0x00000000 442*5113495bSYour Name #define REO_DESTINATION_RING_0_BUF_OR_LINK_DESC_ADDR_INFO_BUFFER_ADDR_31_0_LSB 0 443*5113495bSYour Name #define REO_DESTINATION_RING_0_BUF_OR_LINK_DESC_ADDR_INFO_BUFFER_ADDR_31_0_MASK 0xffffffff 444*5113495bSYour Name 445*5113495bSYour Name /* Description REO_DESTINATION_RING_1_BUF_OR_LINK_DESC_ADDR_INFO_BUFFER_ADDR_39_32 446*5113495bSYour Name 447*5113495bSYour Name Address (upper 8 bits) of the MSDU buffer OR 448*5113495bSYour Name MSDU_EXTENSION descriptor OR Link Descriptor 449*5113495bSYour Name 450*5113495bSYour Name 451*5113495bSYour Name 452*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 453*5113495bSYour Name 454*5113495bSYour Name <legal all> 455*5113495bSYour Name */ 456*5113495bSYour Name #define REO_DESTINATION_RING_1_BUF_OR_LINK_DESC_ADDR_INFO_BUFFER_ADDR_39_32_OFFSET 0x00000004 457*5113495bSYour Name #define REO_DESTINATION_RING_1_BUF_OR_LINK_DESC_ADDR_INFO_BUFFER_ADDR_39_32_LSB 0 458*5113495bSYour Name #define REO_DESTINATION_RING_1_BUF_OR_LINK_DESC_ADDR_INFO_BUFFER_ADDR_39_32_MASK 0x000000ff 459*5113495bSYour Name 460*5113495bSYour Name /* Description REO_DESTINATION_RING_1_BUF_OR_LINK_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER 461*5113495bSYour Name 462*5113495bSYour Name Consumer: WBM 463*5113495bSYour Name 464*5113495bSYour Name Producer: SW/FW 465*5113495bSYour Name 466*5113495bSYour Name 467*5113495bSYour Name 468*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 469*5113495bSYour Name 470*5113495bSYour Name 471*5113495bSYour Name 472*5113495bSYour Name Indicates to which buffer manager the buffer OR 473*5113495bSYour Name MSDU_EXTENSION descriptor OR link descriptor that is being 474*5113495bSYour Name pointed to shall be returned after the frame has been 475*5113495bSYour Name processed. It is used by WBM for routing purposes. 476*5113495bSYour Name 477*5113495bSYour Name 478*5113495bSYour Name 479*5113495bSYour Name <enum 0 WBM_IDLE_BUF_LIST> This buffer shall be returned 480*5113495bSYour Name to the WMB buffer idle list 481*5113495bSYour Name 482*5113495bSYour Name <enum 1 WBM_IDLE_DESC_LIST> This buffer shall be 483*5113495bSYour Name returned to the WMB idle link descriptor idle list 484*5113495bSYour Name 485*5113495bSYour Name <enum 2 FW_BM> This buffer shall be returned to the FW 486*5113495bSYour Name 487*5113495bSYour Name <enum 3 SW0_BM> This buffer shall be returned to the SW, 488*5113495bSYour Name ring 0 489*5113495bSYour Name 490*5113495bSYour Name <enum 4 SW1_BM> This buffer shall be returned to the SW, 491*5113495bSYour Name ring 1 492*5113495bSYour Name 493*5113495bSYour Name <enum 5 SW2_BM> This buffer shall be returned to the SW, 494*5113495bSYour Name ring 2 495*5113495bSYour Name 496*5113495bSYour Name <enum 6 SW3_BM> This buffer shall be returned to the SW, 497*5113495bSYour Name ring 3 498*5113495bSYour Name 499*5113495bSYour Name <enum 7 SW4_BM> This buffer shall be returned to the SW, 500*5113495bSYour Name ring 4 501*5113495bSYour Name 502*5113495bSYour Name 503*5113495bSYour Name 504*5113495bSYour Name <legal all> 505*5113495bSYour Name */ 506*5113495bSYour Name #define REO_DESTINATION_RING_1_BUF_OR_LINK_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER_OFFSET 0x00000004 507*5113495bSYour Name #define REO_DESTINATION_RING_1_BUF_OR_LINK_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER_LSB 8 508*5113495bSYour Name #define REO_DESTINATION_RING_1_BUF_OR_LINK_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER_MASK 0x00000700 509*5113495bSYour Name 510*5113495bSYour Name /* Description REO_DESTINATION_RING_1_BUF_OR_LINK_DESC_ADDR_INFO_SW_BUFFER_COOKIE 511*5113495bSYour Name 512*5113495bSYour Name Cookie field exclusively used by SW. 513*5113495bSYour Name 514*5113495bSYour Name 515*5113495bSYour Name 516*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 517*5113495bSYour Name 518*5113495bSYour Name 519*5113495bSYour Name 520*5113495bSYour Name HW ignores the contents, accept that it passes the 521*5113495bSYour Name programmed value on to other descriptors together with the 522*5113495bSYour Name physical address 523*5113495bSYour Name 524*5113495bSYour Name 525*5113495bSYour Name 526*5113495bSYour Name Field can be used by SW to for example associate the 527*5113495bSYour Name buffers physical address with the virtual address 528*5113495bSYour Name 529*5113495bSYour Name The bit definitions as used by SW are within SW HLD 530*5113495bSYour Name specification 531*5113495bSYour Name 532*5113495bSYour Name 533*5113495bSYour Name 534*5113495bSYour Name NOTE: 535*5113495bSYour Name 536*5113495bSYour Name The three most significant bits can have a special 537*5113495bSYour Name meaning in case this struct is embedded in a TX_MPDU_DETAILS 538*5113495bSYour Name STRUCT, and field transmit_bw_restriction is set 539*5113495bSYour Name 540*5113495bSYour Name 541*5113495bSYour Name 542*5113495bSYour Name In case of NON punctured transmission: 543*5113495bSYour Name 544*5113495bSYour Name Sw_buffer_cookie[20:19] = 2'b00: 20 MHz TX only 545*5113495bSYour Name 546*5113495bSYour Name Sw_buffer_cookie[20:19] = 2'b01: 40 MHz TX only 547*5113495bSYour Name 548*5113495bSYour Name Sw_buffer_cookie[20:19] = 2'b10: 80 MHz TX only 549*5113495bSYour Name 550*5113495bSYour Name Sw_buffer_cookie[20:19] = 2'b11: 160 MHz TX only 551*5113495bSYour Name 552*5113495bSYour Name 553*5113495bSYour Name 554*5113495bSYour Name In case of punctured transmission: 555*5113495bSYour Name 556*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b000: pattern 0 only 557*5113495bSYour Name 558*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b001: pattern 1 only 559*5113495bSYour Name 560*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b010: pattern 2 only 561*5113495bSYour Name 562*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b011: pattern 3 only 563*5113495bSYour Name 564*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b100: pattern 4 only 565*5113495bSYour Name 566*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b101: pattern 5 only 567*5113495bSYour Name 568*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b110: pattern 6 only 569*5113495bSYour Name 570*5113495bSYour Name Sw_buffer_cookie[20:18] = 3'b111: pattern 7 only 571*5113495bSYour Name 572*5113495bSYour Name 573*5113495bSYour Name 574*5113495bSYour Name Note: a punctured transmission is indicated by the 575*5113495bSYour Name presence of TLV TX_PUNCTURE_SETUP embedded in the scheduler 576*5113495bSYour Name TLV 577*5113495bSYour Name 578*5113495bSYour Name 579*5113495bSYour Name 580*5113495bSYour Name <legal all> 581*5113495bSYour Name */ 582*5113495bSYour Name #define REO_DESTINATION_RING_1_BUF_OR_LINK_DESC_ADDR_INFO_SW_BUFFER_COOKIE_OFFSET 0x00000004 583*5113495bSYour Name #define REO_DESTINATION_RING_1_BUF_OR_LINK_DESC_ADDR_INFO_SW_BUFFER_COOKIE_LSB 11 584*5113495bSYour Name #define REO_DESTINATION_RING_1_BUF_OR_LINK_DESC_ADDR_INFO_SW_BUFFER_COOKIE_MASK 0xfffff800 585*5113495bSYour Name 586*5113495bSYour Name /* EXTERNAL REFERENCE : struct rx_mpdu_desc_info rx_mpdu_desc_info_details */ 587*5113495bSYour Name 588*5113495bSYour Name 589*5113495bSYour Name /* Description REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MSDU_COUNT 590*5113495bSYour Name 591*5113495bSYour Name Consumer: REO/SW/FW 592*5113495bSYour Name 593*5113495bSYour Name Producer: RXDMA 594*5113495bSYour Name 595*5113495bSYour Name 596*5113495bSYour Name 597*5113495bSYour Name The number of MSDUs within the MPDU 598*5113495bSYour Name 599*5113495bSYour Name <legal all> 600*5113495bSYour Name */ 601*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MSDU_COUNT_OFFSET 0x00000008 602*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MSDU_COUNT_LSB 0 603*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MSDU_COUNT_MASK 0x000000ff 604*5113495bSYour Name 605*5113495bSYour Name /* Description REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MPDU_SEQUENCE_NUMBER 606*5113495bSYour Name 607*5113495bSYour Name Consumer: REO/SW/FW 608*5113495bSYour Name 609*5113495bSYour Name Producer: RXDMA 610*5113495bSYour Name 611*5113495bSYour Name 612*5113495bSYour Name 613*5113495bSYour Name The field can have two different meanings based on the 614*5113495bSYour Name setting of field 'BAR_frame': 615*5113495bSYour Name 616*5113495bSYour Name 617*5113495bSYour Name 618*5113495bSYour Name 'BAR_frame' is NOT set: 619*5113495bSYour Name 620*5113495bSYour Name The MPDU sequence number of the received frame. 621*5113495bSYour Name 622*5113495bSYour Name 623*5113495bSYour Name 624*5113495bSYour Name 'BAR_frame' is set. 625*5113495bSYour Name 626*5113495bSYour Name The MPDU Start sequence number from the BAR frame 627*5113495bSYour Name 628*5113495bSYour Name <legal all> 629*5113495bSYour Name */ 630*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MPDU_SEQUENCE_NUMBER_OFFSET 0x00000008 631*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MPDU_SEQUENCE_NUMBER_LSB 8 632*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MPDU_SEQUENCE_NUMBER_MASK 0x000fff00 633*5113495bSYour Name 634*5113495bSYour Name /* Description REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_FRAGMENT_FLAG 635*5113495bSYour Name 636*5113495bSYour Name Consumer: REO/SW/FW 637*5113495bSYour Name 638*5113495bSYour Name Producer: RXDMA 639*5113495bSYour Name 640*5113495bSYour Name 641*5113495bSYour Name 642*5113495bSYour Name When set, this MPDU is a fragment and REO should forward 643*5113495bSYour Name this fragment MPDU to the REO destination ring without any 644*5113495bSYour Name reorder checks, pn checks or bitmap update. This implies 645*5113495bSYour Name that REO is forwarding the pointer to the MSDU link 646*5113495bSYour Name descriptor. The destination ring is coming from a 647*5113495bSYour Name programmable register setting in REO 648*5113495bSYour Name 649*5113495bSYour Name 650*5113495bSYour Name 651*5113495bSYour Name <legal all> 652*5113495bSYour Name */ 653*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_FRAGMENT_FLAG_OFFSET 0x00000008 654*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_FRAGMENT_FLAG_LSB 20 655*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_FRAGMENT_FLAG_MASK 0x00100000 656*5113495bSYour Name 657*5113495bSYour Name /* Description REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MPDU_RETRY_BIT 658*5113495bSYour Name 659*5113495bSYour Name Consumer: REO/SW/FW 660*5113495bSYour Name 661*5113495bSYour Name Producer: RXDMA 662*5113495bSYour Name 663*5113495bSYour Name 664*5113495bSYour Name 665*5113495bSYour Name The retry bit setting from the MPDU header of the 666*5113495bSYour Name received frame 667*5113495bSYour Name 668*5113495bSYour Name <legal all> 669*5113495bSYour Name */ 670*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MPDU_RETRY_BIT_OFFSET 0x00000008 671*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MPDU_RETRY_BIT_LSB 21 672*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MPDU_RETRY_BIT_MASK 0x00200000 673*5113495bSYour Name 674*5113495bSYour Name /* Description REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_AMPDU_FLAG 675*5113495bSYour Name 676*5113495bSYour Name Consumer: REO/SW/FW 677*5113495bSYour Name 678*5113495bSYour Name Producer: RXDMA 679*5113495bSYour Name 680*5113495bSYour Name 681*5113495bSYour Name 682*5113495bSYour Name When set, the MPDU was received as part of an A-MPDU. 683*5113495bSYour Name 684*5113495bSYour Name <legal all> 685*5113495bSYour Name */ 686*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_AMPDU_FLAG_OFFSET 0x00000008 687*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_AMPDU_FLAG_LSB 22 688*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_AMPDU_FLAG_MASK 0x00400000 689*5113495bSYour Name 690*5113495bSYour Name /* Description REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_BAR_FRAME 691*5113495bSYour Name 692*5113495bSYour Name Consumer: REO/SW/FW 693*5113495bSYour Name 694*5113495bSYour Name Producer: RXDMA 695*5113495bSYour Name 696*5113495bSYour Name 697*5113495bSYour Name 698*5113495bSYour Name When set, the received frame is a BAR frame. After 699*5113495bSYour Name processing, this frame shall be pushed to SW or deleted. 700*5113495bSYour Name 701*5113495bSYour Name <legal all> 702*5113495bSYour Name */ 703*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_BAR_FRAME_OFFSET 0x00000008 704*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_BAR_FRAME_LSB 23 705*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_BAR_FRAME_MASK 0x00800000 706*5113495bSYour Name 707*5113495bSYour Name /* Description REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_PN_FIELDS_CONTAIN_VALID_INFO 708*5113495bSYour Name 709*5113495bSYour Name Consumer: REO/SW/FW 710*5113495bSYour Name 711*5113495bSYour Name Producer: RXDMA 712*5113495bSYour Name 713*5113495bSYour Name 714*5113495bSYour Name 715*5113495bSYour Name Copied here by RXDMA from RX_MPDU_END 716*5113495bSYour Name 717*5113495bSYour Name When not set, REO will Not perform a PN sequence number 718*5113495bSYour Name check 719*5113495bSYour Name */ 720*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_PN_FIELDS_CONTAIN_VALID_INFO_OFFSET 0x00000008 721*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_PN_FIELDS_CONTAIN_VALID_INFO_LSB 24 722*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_PN_FIELDS_CONTAIN_VALID_INFO_MASK 0x01000000 723*5113495bSYour Name 724*5113495bSYour Name /* Description REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_SA_IS_VALID 725*5113495bSYour Name 726*5113495bSYour Name When set, OLE found a valid SA entry for all MSDUs in 727*5113495bSYour Name this MPDU 728*5113495bSYour Name 729*5113495bSYour Name <legal all> 730*5113495bSYour Name */ 731*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_SA_IS_VALID_OFFSET 0x00000008 732*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_SA_IS_VALID_LSB 25 733*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_SA_IS_VALID_MASK 0x02000000 734*5113495bSYour Name 735*5113495bSYour Name /* Description REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_SA_IDX_TIMEOUT 736*5113495bSYour Name 737*5113495bSYour Name When set, at least 1 MSDU within the MPDU has an 738*5113495bSYour Name unsuccessful MAC source address search due to the expiration 739*5113495bSYour Name of the search timer. 740*5113495bSYour Name 741*5113495bSYour Name <legal all> 742*5113495bSYour Name */ 743*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_SA_IDX_TIMEOUT_OFFSET 0x00000008 744*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_SA_IDX_TIMEOUT_LSB 26 745*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_SA_IDX_TIMEOUT_MASK 0x04000000 746*5113495bSYour Name 747*5113495bSYour Name /* Description REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_DA_IS_VALID 748*5113495bSYour Name 749*5113495bSYour Name When set, OLE found a valid DA entry for all MSDUs in 750*5113495bSYour Name this MPDU 751*5113495bSYour Name 752*5113495bSYour Name <legal all> 753*5113495bSYour Name */ 754*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_DA_IS_VALID_OFFSET 0x00000008 755*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_DA_IS_VALID_LSB 27 756*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_DA_IS_VALID_MASK 0x08000000 757*5113495bSYour Name 758*5113495bSYour Name /* Description REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_DA_IS_MCBC 759*5113495bSYour Name 760*5113495bSYour Name Field Only valid if da_is_valid is set 761*5113495bSYour Name 762*5113495bSYour Name 763*5113495bSYour Name 764*5113495bSYour Name When set, at least one of the DA addresses is a 765*5113495bSYour Name Multicast or Broadcast address. 766*5113495bSYour Name 767*5113495bSYour Name <legal all> 768*5113495bSYour Name */ 769*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_DA_IS_MCBC_OFFSET 0x00000008 770*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_DA_IS_MCBC_LSB 28 771*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_DA_IS_MCBC_MASK 0x10000000 772*5113495bSYour Name 773*5113495bSYour Name /* Description REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_DA_IDX_TIMEOUT 774*5113495bSYour Name 775*5113495bSYour Name When set, at least 1 MSDU within the MPDU has an 776*5113495bSYour Name unsuccessful MAC destination address search due to the 777*5113495bSYour Name expiration of the search timer. 778*5113495bSYour Name 779*5113495bSYour Name <legal all> 780*5113495bSYour Name */ 781*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_DA_IDX_TIMEOUT_OFFSET 0x00000008 782*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_DA_IDX_TIMEOUT_LSB 29 783*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_DA_IDX_TIMEOUT_MASK 0x20000000 784*5113495bSYour Name 785*5113495bSYour Name /* Description REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_RAW_MPDU 786*5113495bSYour Name 787*5113495bSYour Name Field only valid when first_msdu_in_mpdu_flag is set. 788*5113495bSYour Name 789*5113495bSYour Name 790*5113495bSYour Name 791*5113495bSYour Name When set, the contents in the MSDU buffer contains a 792*5113495bSYour Name 'RAW' MPDU. This 'RAW' MPDU might be spread out over 793*5113495bSYour Name multiple MSDU buffers. 794*5113495bSYour Name 795*5113495bSYour Name <legal all> 796*5113495bSYour Name */ 797*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_RAW_MPDU_OFFSET 0x00000008 798*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_RAW_MPDU_LSB 30 799*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_RAW_MPDU_MASK 0x40000000 800*5113495bSYour Name 801*5113495bSYour Name /* Description REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MORE_FRAGMENT_FLAG 802*5113495bSYour Name 803*5113495bSYour Name The More Fragment bit setting from the MPDU header of 804*5113495bSYour Name the received frame 805*5113495bSYour Name 806*5113495bSYour Name 807*5113495bSYour Name 808*5113495bSYour Name <legal all> 809*5113495bSYour Name */ 810*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MORE_FRAGMENT_FLAG_OFFSET 0x00000008 811*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MORE_FRAGMENT_FLAG_LSB 31 812*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_DETAILS_MORE_FRAGMENT_FLAG_MASK 0x80000000 813*5113495bSYour Name 814*5113495bSYour Name /* Description REO_DESTINATION_RING_3_RX_MPDU_DESC_INFO_DETAILS_PEER_META_DATA 815*5113495bSYour Name 816*5113495bSYour Name Meta data that SW has programmed in the Peer table entry 817*5113495bSYour Name of the transmitting STA. 818*5113495bSYour Name 819*5113495bSYour Name <legal all> 820*5113495bSYour Name */ 821*5113495bSYour Name #define REO_DESTINATION_RING_3_RX_MPDU_DESC_INFO_DETAILS_PEER_META_DATA_OFFSET 0x0000000c 822*5113495bSYour Name #define REO_DESTINATION_RING_3_RX_MPDU_DESC_INFO_DETAILS_PEER_META_DATA_LSB 0 823*5113495bSYour Name #define REO_DESTINATION_RING_3_RX_MPDU_DESC_INFO_DETAILS_PEER_META_DATA_MASK 0xffffffff 824*5113495bSYour Name 825*5113495bSYour Name /* EXTERNAL REFERENCE : struct rx_msdu_desc_info rx_msdu_desc_info_details */ 826*5113495bSYour Name 827*5113495bSYour Name 828*5113495bSYour Name /* Description REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_FIRST_MSDU_IN_MPDU_FLAG 829*5113495bSYour Name 830*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 831*5113495bSYour Name over multiple buffers, this field will be valid in the Last 832*5113495bSYour Name buffer used by the MSDU 833*5113495bSYour Name 834*5113495bSYour Name 835*5113495bSYour Name 836*5113495bSYour Name <enum 0 Not_first_msdu> This is not the first MSDU in 837*5113495bSYour Name the MPDU. 838*5113495bSYour Name 839*5113495bSYour Name <enum 1 first_msdu> This MSDU is the first one in the 840*5113495bSYour Name MPDU. 841*5113495bSYour Name 842*5113495bSYour Name 843*5113495bSYour Name 844*5113495bSYour Name <legal all> 845*5113495bSYour Name */ 846*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_FIRST_MSDU_IN_MPDU_FLAG_OFFSET 0x00000010 847*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_FIRST_MSDU_IN_MPDU_FLAG_LSB 0 848*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_FIRST_MSDU_IN_MPDU_FLAG_MASK 0x00000001 849*5113495bSYour Name 850*5113495bSYour Name /* Description REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_LAST_MSDU_IN_MPDU_FLAG 851*5113495bSYour Name 852*5113495bSYour Name Consumer: WBM/REO/SW/FW 853*5113495bSYour Name 854*5113495bSYour Name Producer: RXDMA 855*5113495bSYour Name 856*5113495bSYour Name 857*5113495bSYour Name 858*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 859*5113495bSYour Name over multiple buffers, this field will be valid in the Last 860*5113495bSYour Name buffer used by the MSDU 861*5113495bSYour Name 862*5113495bSYour Name 863*5113495bSYour Name 864*5113495bSYour Name <enum 0 Not_last_msdu> There are more MSDUs linked to 865*5113495bSYour Name this MSDU that belongs to this MPDU 866*5113495bSYour Name 867*5113495bSYour Name <enum 1 Last_msdu> this MSDU is the last one in the 868*5113495bSYour Name MPDU. This setting is only allowed in combination with 869*5113495bSYour Name 'Msdu_continuation' set to 0. This implies that when an msdu 870*5113495bSYour Name is spread out over multiple buffers and thus 871*5113495bSYour Name msdu_continuation is set, only for the very last buffer of 872*5113495bSYour Name the msdu, can the 'last_msdu_in_mpdu_flag' be set. 873*5113495bSYour Name 874*5113495bSYour Name 875*5113495bSYour Name 876*5113495bSYour Name When both first_msdu_in_mpdu_flag and 877*5113495bSYour Name last_msdu_in_mpdu_flag are set, the MPDU that this MSDU 878*5113495bSYour Name belongs to only contains a single MSDU. 879*5113495bSYour Name 880*5113495bSYour Name 881*5113495bSYour Name 882*5113495bSYour Name 883*5113495bSYour Name 884*5113495bSYour Name <legal all> 885*5113495bSYour Name */ 886*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_LAST_MSDU_IN_MPDU_FLAG_OFFSET 0x00000010 887*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_LAST_MSDU_IN_MPDU_FLAG_LSB 1 888*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_LAST_MSDU_IN_MPDU_FLAG_MASK 0x00000002 889*5113495bSYour Name 890*5113495bSYour Name /* Description REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_MSDU_CONTINUATION 891*5113495bSYour Name 892*5113495bSYour Name When set, this MSDU buffer was not able to hold the 893*5113495bSYour Name entire MSDU. The next buffer will therefor contain 894*5113495bSYour Name additional information related to this MSDU. 895*5113495bSYour Name 896*5113495bSYour Name 897*5113495bSYour Name 898*5113495bSYour Name <legal all> 899*5113495bSYour Name */ 900*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_MSDU_CONTINUATION_OFFSET 0x00000010 901*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_MSDU_CONTINUATION_LSB 2 902*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_MSDU_CONTINUATION_MASK 0x00000004 903*5113495bSYour Name 904*5113495bSYour Name /* Description REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_MSDU_LENGTH 905*5113495bSYour Name 906*5113495bSYour Name Parsed from RX_MSDU_START TLV . In the case MSDU spans 907*5113495bSYour Name over multiple buffers, this field will be valid in the First 908*5113495bSYour Name buffer used by MSDU. 909*5113495bSYour Name 910*5113495bSYour Name 911*5113495bSYour Name 912*5113495bSYour Name Full MSDU length in bytes after decapsulation. 913*5113495bSYour Name 914*5113495bSYour Name 915*5113495bSYour Name 916*5113495bSYour Name This field is still valid for MPDU frames without 917*5113495bSYour Name A-MSDU. It still represents MSDU length after decapsulation 918*5113495bSYour Name 919*5113495bSYour Name 920*5113495bSYour Name 921*5113495bSYour Name Or in case of RAW MPDUs, it indicates the length of the 922*5113495bSYour Name entire MPDU (without FCS field) 923*5113495bSYour Name 924*5113495bSYour Name <legal all> 925*5113495bSYour Name */ 926*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_MSDU_LENGTH_OFFSET 0x00000010 927*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_MSDU_LENGTH_LSB 3 928*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_MSDU_LENGTH_MASK 0x0001fff8 929*5113495bSYour Name 930*5113495bSYour Name /* Description REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_REO_DESTINATION_INDICATION 931*5113495bSYour Name 932*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 933*5113495bSYour Name over multiple buffers, this field will be valid in the Last 934*5113495bSYour Name buffer used by the MSDU 935*5113495bSYour Name 936*5113495bSYour Name 937*5113495bSYour Name 938*5113495bSYour Name The ID of the REO exit ring where the MSDU frame shall 939*5113495bSYour Name push after (MPDU level) reordering has finished. 940*5113495bSYour Name 941*5113495bSYour Name 942*5113495bSYour Name 943*5113495bSYour Name <enum 0 reo_destination_tcl> Reo will push the frame 944*5113495bSYour Name into the REO2TCL ring 945*5113495bSYour Name 946*5113495bSYour Name <enum 1 reo_destination_sw1> Reo will push the frame 947*5113495bSYour Name into the REO2SW1 ring 948*5113495bSYour Name 949*5113495bSYour Name <enum 2 reo_destination_sw2> Reo will push the frame 950*5113495bSYour Name into the REO2SW2 ring 951*5113495bSYour Name 952*5113495bSYour Name <enum 3 reo_destination_sw3> Reo will push the frame 953*5113495bSYour Name into the REO2SW3 ring 954*5113495bSYour Name 955*5113495bSYour Name <enum 4 reo_destination_sw4> Reo will push the frame 956*5113495bSYour Name into the REO2SW4 ring 957*5113495bSYour Name 958*5113495bSYour Name <enum 5 reo_destination_release> Reo will push the frame 959*5113495bSYour Name into the REO_release ring 960*5113495bSYour Name 961*5113495bSYour Name <enum 6 reo_destination_fw> Reo will push the frame into 962*5113495bSYour Name the REO2FW ring 963*5113495bSYour Name 964*5113495bSYour Name <enum 7 reo_destination_sw5> Reo will push the frame 965*5113495bSYour Name into the REO2SW5 ring (REO remaps this in chips without 966*5113495bSYour Name REO2SW5 ring, e.g. Pine) 967*5113495bSYour Name 968*5113495bSYour Name <enum 8 reo_destination_sw6> Reo will push the frame 969*5113495bSYour Name into the REO2SW6 ring (REO remaps this in chips without 970*5113495bSYour Name REO2SW6 ring, e.g. Pine) 971*5113495bSYour Name 972*5113495bSYour Name <enum 9 reo_destination_9> REO remaps this <enum 10 973*5113495bSYour Name reo_destination_10> REO remaps this 974*5113495bSYour Name 975*5113495bSYour Name <enum 11 reo_destination_11> REO remaps this 976*5113495bSYour Name 977*5113495bSYour Name <enum 12 reo_destination_12> REO remaps this <enum 13 978*5113495bSYour Name reo_destination_13> REO remaps this 979*5113495bSYour Name 980*5113495bSYour Name <enum 14 reo_destination_14> REO remaps this 981*5113495bSYour Name 982*5113495bSYour Name <enum 15 reo_destination_15> REO remaps this 983*5113495bSYour Name 984*5113495bSYour Name <enum 16 reo_destination_16> REO remaps this 985*5113495bSYour Name 986*5113495bSYour Name <enum 17 reo_destination_17> REO remaps this 987*5113495bSYour Name 988*5113495bSYour Name <enum 18 reo_destination_18> REO remaps this 989*5113495bSYour Name 990*5113495bSYour Name <enum 19 reo_destination_19> REO remaps this 991*5113495bSYour Name 992*5113495bSYour Name <enum 20 reo_destination_20> REO remaps this 993*5113495bSYour Name 994*5113495bSYour Name <enum 21 reo_destination_21> REO remaps this 995*5113495bSYour Name 996*5113495bSYour Name <enum 22 reo_destination_22> REO remaps this 997*5113495bSYour Name 998*5113495bSYour Name <enum 23 reo_destination_23> REO remaps this 999*5113495bSYour Name 1000*5113495bSYour Name <enum 24 reo_destination_24> REO remaps this 1001*5113495bSYour Name 1002*5113495bSYour Name <enum 25 reo_destination_25> REO remaps this 1003*5113495bSYour Name 1004*5113495bSYour Name <enum 26 reo_destination_26> REO remaps this 1005*5113495bSYour Name 1006*5113495bSYour Name <enum 27 reo_destination_27> REO remaps this 1007*5113495bSYour Name 1008*5113495bSYour Name <enum 28 reo_destination_28> REO remaps this 1009*5113495bSYour Name 1010*5113495bSYour Name <enum 29 reo_destination_29> REO remaps this 1011*5113495bSYour Name 1012*5113495bSYour Name <enum 30 reo_destination_30> REO remaps this 1013*5113495bSYour Name 1014*5113495bSYour Name <enum 31 reo_destination_31> REO remaps this 1015*5113495bSYour Name 1016*5113495bSYour Name 1017*5113495bSYour Name 1018*5113495bSYour Name <legal all> 1019*5113495bSYour Name */ 1020*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_REO_DESTINATION_INDICATION_OFFSET 0x00000010 1021*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_REO_DESTINATION_INDICATION_LSB 17 1022*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_REO_DESTINATION_INDICATION_MASK 0x003e0000 1023*5113495bSYour Name 1024*5113495bSYour Name /* Description REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_MSDU_DROP 1025*5113495bSYour Name 1026*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 1027*5113495bSYour Name over multiple buffers, this field will be valid in the Last 1028*5113495bSYour Name buffer used by the MSDU 1029*5113495bSYour Name 1030*5113495bSYour Name 1031*5113495bSYour Name 1032*5113495bSYour Name When set, REO shall drop this MSDU and not forward it to 1033*5113495bSYour Name any other ring... 1034*5113495bSYour Name 1035*5113495bSYour Name <legal all> 1036*5113495bSYour Name */ 1037*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_MSDU_DROP_OFFSET 0x00000010 1038*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_MSDU_DROP_LSB 22 1039*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_MSDU_DROP_MASK 0x00400000 1040*5113495bSYour Name 1041*5113495bSYour Name /* Description REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_SA_IS_VALID 1042*5113495bSYour Name 1043*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 1044*5113495bSYour Name over multiple buffers, this field will be valid in the Last 1045*5113495bSYour Name buffer used by the MSDU 1046*5113495bSYour Name 1047*5113495bSYour Name 1048*5113495bSYour Name 1049*5113495bSYour Name Indicates that OLE found a valid SA entry for this MSDU 1050*5113495bSYour Name 1051*5113495bSYour Name <legal all> 1052*5113495bSYour Name */ 1053*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_SA_IS_VALID_OFFSET 0x00000010 1054*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_SA_IS_VALID_LSB 23 1055*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_SA_IS_VALID_MASK 0x00800000 1056*5113495bSYour Name 1057*5113495bSYour Name /* Description REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_SA_IDX_TIMEOUT 1058*5113495bSYour Name 1059*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 1060*5113495bSYour Name over multiple buffers, this field will be valid in the Last 1061*5113495bSYour Name buffer used by the MSDU 1062*5113495bSYour Name 1063*5113495bSYour Name 1064*5113495bSYour Name 1065*5113495bSYour Name Indicates an unsuccessful MAC source address search due 1066*5113495bSYour Name to the expiring of the search timer for this MSDU 1067*5113495bSYour Name 1068*5113495bSYour Name <legal all> 1069*5113495bSYour Name */ 1070*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_SA_IDX_TIMEOUT_OFFSET 0x00000010 1071*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_SA_IDX_TIMEOUT_LSB 24 1072*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_SA_IDX_TIMEOUT_MASK 0x01000000 1073*5113495bSYour Name 1074*5113495bSYour Name /* Description REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_DA_IS_VALID 1075*5113495bSYour Name 1076*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 1077*5113495bSYour Name over multiple buffers, this field will be valid in the Last 1078*5113495bSYour Name buffer used by the MSDU 1079*5113495bSYour Name 1080*5113495bSYour Name 1081*5113495bSYour Name 1082*5113495bSYour Name Indicates that OLE found a valid DA entry for this MSDU 1083*5113495bSYour Name 1084*5113495bSYour Name <legal all> 1085*5113495bSYour Name */ 1086*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_DA_IS_VALID_OFFSET 0x00000010 1087*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_DA_IS_VALID_LSB 25 1088*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_DA_IS_VALID_MASK 0x02000000 1089*5113495bSYour Name 1090*5113495bSYour Name /* Description REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_DA_IS_MCBC 1091*5113495bSYour Name 1092*5113495bSYour Name Field Only valid if da_is_valid is set 1093*5113495bSYour Name 1094*5113495bSYour Name 1095*5113495bSYour Name 1096*5113495bSYour Name Indicates the DA address was a Multicast of Broadcast 1097*5113495bSYour Name address for this MSDU 1098*5113495bSYour Name 1099*5113495bSYour Name <legal all> 1100*5113495bSYour Name */ 1101*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_DA_IS_MCBC_OFFSET 0x00000010 1102*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_DA_IS_MCBC_LSB 26 1103*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_DA_IS_MCBC_MASK 0x04000000 1104*5113495bSYour Name 1105*5113495bSYour Name /* Description REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_DA_IDX_TIMEOUT 1106*5113495bSYour Name 1107*5113495bSYour Name Parsed from RX_MSDU_END TLV . In the case MSDU spans 1108*5113495bSYour Name over multiple buffers, this field will be valid in the Last 1109*5113495bSYour Name buffer used by the MSDU 1110*5113495bSYour Name 1111*5113495bSYour Name 1112*5113495bSYour Name 1113*5113495bSYour Name Indicates an unsuccessful MAC destination address search 1114*5113495bSYour Name due to the expiring of the search timer for this MSDU 1115*5113495bSYour Name 1116*5113495bSYour Name <legal all> 1117*5113495bSYour Name */ 1118*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_DA_IDX_TIMEOUT_OFFSET 0x00000010 1119*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_DA_IDX_TIMEOUT_LSB 27 1120*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_DA_IDX_TIMEOUT_MASK 0x08000000 1121*5113495bSYour Name 1122*5113495bSYour Name /* Description REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_RESERVED_0A 1123*5113495bSYour Name 1124*5113495bSYour Name <legal 0> 1125*5113495bSYour Name */ 1126*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_RESERVED_0A_OFFSET 0x00000010 1127*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_RESERVED_0A_LSB 28 1128*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_DETAILS_RESERVED_0A_MASK 0xf0000000 1129*5113495bSYour Name 1130*5113495bSYour Name /* Description REO_DESTINATION_RING_5_RX_MSDU_DESC_INFO_DETAILS_RESERVED_1A 1131*5113495bSYour Name 1132*5113495bSYour Name <legal 0> 1133*5113495bSYour Name */ 1134*5113495bSYour Name #define REO_DESTINATION_RING_5_RX_MSDU_DESC_INFO_DETAILS_RESERVED_1A_OFFSET 0x00000014 1135*5113495bSYour Name #define REO_DESTINATION_RING_5_RX_MSDU_DESC_INFO_DETAILS_RESERVED_1A_LSB 0 1136*5113495bSYour Name #define REO_DESTINATION_RING_5_RX_MSDU_DESC_INFO_DETAILS_RESERVED_1A_MASK 0xffffffff 1137*5113495bSYour Name 1138*5113495bSYour Name /* Description REO_DESTINATION_RING_6_RX_REO_QUEUE_DESC_ADDR_31_0 1139*5113495bSYour Name 1140*5113495bSYour Name Consumer: REO 1141*5113495bSYour Name 1142*5113495bSYour Name Producer: RXDMA 1143*5113495bSYour Name 1144*5113495bSYour Name 1145*5113495bSYour Name 1146*5113495bSYour Name Address (lower 32 bits) of the REO queue descriptor. 1147*5113495bSYour Name 1148*5113495bSYour Name <legal all> 1149*5113495bSYour Name */ 1150*5113495bSYour Name #define REO_DESTINATION_RING_6_RX_REO_QUEUE_DESC_ADDR_31_0_OFFSET 0x00000018 1151*5113495bSYour Name #define REO_DESTINATION_RING_6_RX_REO_QUEUE_DESC_ADDR_31_0_LSB 0 1152*5113495bSYour Name #define REO_DESTINATION_RING_6_RX_REO_QUEUE_DESC_ADDR_31_0_MASK 0xffffffff 1153*5113495bSYour Name 1154*5113495bSYour Name /* Description REO_DESTINATION_RING_7_RX_REO_QUEUE_DESC_ADDR_39_32 1155*5113495bSYour Name 1156*5113495bSYour Name Consumer: REO 1157*5113495bSYour Name 1158*5113495bSYour Name Producer: RXDMA 1159*5113495bSYour Name 1160*5113495bSYour Name 1161*5113495bSYour Name 1162*5113495bSYour Name Address (upper 8 bits) of the REO queue descriptor. 1163*5113495bSYour Name 1164*5113495bSYour Name <legal all> 1165*5113495bSYour Name */ 1166*5113495bSYour Name #define REO_DESTINATION_RING_7_RX_REO_QUEUE_DESC_ADDR_39_32_OFFSET 0x0000001c 1167*5113495bSYour Name #define REO_DESTINATION_RING_7_RX_REO_QUEUE_DESC_ADDR_39_32_LSB 0 1168*5113495bSYour Name #define REO_DESTINATION_RING_7_RX_REO_QUEUE_DESC_ADDR_39_32_MASK 0x000000ff 1169*5113495bSYour Name 1170*5113495bSYour Name /* Description REO_DESTINATION_RING_7_REO_DEST_BUFFER_TYPE 1171*5113495bSYour Name 1172*5113495bSYour Name Indicates the type of address provided in the 1173*5113495bSYour Name 'Buf_or_link_desc_addr_info' 1174*5113495bSYour Name 1175*5113495bSYour Name 1176*5113495bSYour Name 1177*5113495bSYour Name <enum 0 MSDU_buf_address> The address of an MSDU buffer 1178*5113495bSYour Name 1179*5113495bSYour Name <enum 1 MSDU_link_desc_address> The address of the MSDU 1180*5113495bSYour Name link descriptor. 1181*5113495bSYour Name 1182*5113495bSYour Name 1183*5113495bSYour Name 1184*5113495bSYour Name <legal all> 1185*5113495bSYour Name */ 1186*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_DEST_BUFFER_TYPE_OFFSET 0x0000001c 1187*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_DEST_BUFFER_TYPE_LSB 8 1188*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_DEST_BUFFER_TYPE_MASK 0x00000100 1189*5113495bSYour Name 1190*5113495bSYour Name /* Description REO_DESTINATION_RING_7_REO_PUSH_REASON 1191*5113495bSYour Name 1192*5113495bSYour Name Indicates why REO pushed the frame to this exit ring 1193*5113495bSYour Name 1194*5113495bSYour Name 1195*5113495bSYour Name 1196*5113495bSYour Name <enum 0 reo_error_detected> Reo detected an error an 1197*5113495bSYour Name pushed this frame to this queue 1198*5113495bSYour Name 1199*5113495bSYour Name <enum 1 reo_routing_instruction> Reo pushed the frame to 1200*5113495bSYour Name this queue per received routing instructions. No error 1201*5113495bSYour Name within REO was detected 1202*5113495bSYour Name 1203*5113495bSYour Name 1204*5113495bSYour Name 1205*5113495bSYour Name 1206*5113495bSYour Name 1207*5113495bSYour Name <legal 0 - 1> 1208*5113495bSYour Name */ 1209*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_PUSH_REASON_OFFSET 0x0000001c 1210*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_PUSH_REASON_LSB 9 1211*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_PUSH_REASON_MASK 0x00000600 1212*5113495bSYour Name 1213*5113495bSYour Name /* Description REO_DESTINATION_RING_7_REO_ERROR_CODE 1214*5113495bSYour Name 1215*5113495bSYour Name Field only valid when 'Reo_push_reason' set to 1216*5113495bSYour Name 'reo_error_detected'. 1217*5113495bSYour Name 1218*5113495bSYour Name 1219*5113495bSYour Name 1220*5113495bSYour Name <enum 0 reo_queue_desc_addr_zero> Reo queue descriptor 1221*5113495bSYour Name provided in the REO_ENTRANCE ring is set to 0 1222*5113495bSYour Name 1223*5113495bSYour Name <enum 1 reo_queue_desc_not_valid> Reo queue descriptor 1224*5113495bSYour Name valid bit is NOT set 1225*5113495bSYour Name 1226*5113495bSYour Name <enum 2 ampdu_in_non_ba> AMPDU frame received without BA 1227*5113495bSYour Name session having been setup. 1228*5113495bSYour Name 1229*5113495bSYour Name <enum 3 non_ba_duplicate> Non-BA session, SN equal to 1230*5113495bSYour Name SSN, Retry bit set: duplicate frame 1231*5113495bSYour Name 1232*5113495bSYour Name <enum 4 ba_duplicate> BA session, duplicate frame 1233*5113495bSYour Name 1234*5113495bSYour Name <enum 5 regular_frame_2k_jump> A normal (management/data 1235*5113495bSYour Name frame) received with 2K jump in SN 1236*5113495bSYour Name 1237*5113495bSYour Name <enum 6 bar_frame_2k_jump> A bar received with 2K jump 1238*5113495bSYour Name in SSN 1239*5113495bSYour Name 1240*5113495bSYour Name <enum 7 regular_frame_OOR> A normal (management/data 1241*5113495bSYour Name frame) received with SN falling within the OOR window 1242*5113495bSYour Name 1243*5113495bSYour Name <enum 8 bar_frame_OOR> A bar received with SSN falling 1244*5113495bSYour Name within the OOR window 1245*5113495bSYour Name 1246*5113495bSYour Name <enum 9 bar_frame_no_ba_session> A bar received without 1247*5113495bSYour Name a BA session 1248*5113495bSYour Name 1249*5113495bSYour Name <enum 10 bar_frame_sn_equals_ssn> A bar received with 1250*5113495bSYour Name SSN equal to SN 1251*5113495bSYour Name 1252*5113495bSYour Name <enum 11 pn_check_failed> PN Check Failed packet. 1253*5113495bSYour Name 1254*5113495bSYour Name <enum 12 2k_error_handling_flag_set> Frame is forwarded 1255*5113495bSYour Name as a result of the 'Seq_2k_error_detected_flag' been set in 1256*5113495bSYour Name the REO Queue descriptor 1257*5113495bSYour Name 1258*5113495bSYour Name <enum 13 pn_error_handling_flag_set> Frame is forwarded 1259*5113495bSYour Name as a result of the 'pn_error_detected_flag' been set in the 1260*5113495bSYour Name REO Queue descriptor 1261*5113495bSYour Name 1262*5113495bSYour Name <enum 14 queue_descriptor_blocked_set> Frame is 1263*5113495bSYour Name forwarded as a result of the queue descriptor(address) being 1264*5113495bSYour Name blocked as SW/FW seems to be currently in the process of 1265*5113495bSYour Name making updates to this descriptor... 1266*5113495bSYour Name 1267*5113495bSYour Name 1268*5113495bSYour Name 1269*5113495bSYour Name <legal 0-14> 1270*5113495bSYour Name */ 1271*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_ERROR_CODE_OFFSET 0x0000001c 1272*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_ERROR_CODE_LSB 11 1273*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_ERROR_CODE_MASK 0x0000f800 1274*5113495bSYour Name 1275*5113495bSYour Name /* Description REO_DESTINATION_RING_7_RECEIVE_QUEUE_NUMBER 1276*5113495bSYour Name 1277*5113495bSYour Name This field in NOT valid (should be set to 0), when 1278*5113495bSYour Name SW_exception is set. 1279*5113495bSYour Name 1280*5113495bSYour Name This field indicates the REO MPDU reorder queue ID from 1281*5113495bSYour Name which this frame originated. This field is populated from a 1282*5113495bSYour Name field with the same name in the RX_REO_QUEUE descriptor. 1283*5113495bSYour Name 1284*5113495bSYour Name <legal all> 1285*5113495bSYour Name */ 1286*5113495bSYour Name #define REO_DESTINATION_RING_7_RECEIVE_QUEUE_NUMBER_OFFSET 0x0000001c 1287*5113495bSYour Name #define REO_DESTINATION_RING_7_RECEIVE_QUEUE_NUMBER_LSB 16 1288*5113495bSYour Name #define REO_DESTINATION_RING_7_RECEIVE_QUEUE_NUMBER_MASK 0xffff0000 1289*5113495bSYour Name 1290*5113495bSYour Name /* Description REO_DESTINATION_RING_8_SOFT_REORDER_INFO_VALID 1291*5113495bSYour Name 1292*5113495bSYour Name This field in NOT valid (should be set to 0), when 1293*5113495bSYour Name SW_exception is set. 1294*5113495bSYour Name 1295*5113495bSYour Name When set, REO has been instructed to not perform the 1296*5113495bSYour Name actual re-ordering of frames for this queue, but just to 1297*5113495bSYour Name insert the reorder opcodes 1298*5113495bSYour Name 1299*5113495bSYour Name <legal all> 1300*5113495bSYour Name */ 1301*5113495bSYour Name #define REO_DESTINATION_RING_8_SOFT_REORDER_INFO_VALID_OFFSET 0x00000020 1302*5113495bSYour Name #define REO_DESTINATION_RING_8_SOFT_REORDER_INFO_VALID_LSB 0 1303*5113495bSYour Name #define REO_DESTINATION_RING_8_SOFT_REORDER_INFO_VALID_MASK 0x00000001 1304*5113495bSYour Name 1305*5113495bSYour Name /* Description REO_DESTINATION_RING_8_REORDER_OPCODE 1306*5113495bSYour Name 1307*5113495bSYour Name Field is valid when 'Soft_reorder_info_valid' is set. 1308*5113495bSYour Name This field is always valid for debug purpose as well. 1309*5113495bSYour Name 1310*5113495bSYour Name Details are in the MLD. 1311*5113495bSYour Name 1312*5113495bSYour Name 1313*5113495bSYour Name 1314*5113495bSYour Name <enum 0 invalid> 1315*5113495bSYour Name 1316*5113495bSYour Name <enum 1 fwdcur_fwdbuf> 1317*5113495bSYour Name 1318*5113495bSYour Name <enum 2 fwdbuf_fwdcur> 1319*5113495bSYour Name 1320*5113495bSYour Name <enum 3 qcur> 1321*5113495bSYour Name 1322*5113495bSYour Name <enum 4 fwdbuf_qcur> 1323*5113495bSYour Name 1324*5113495bSYour Name <enum 5 fwdbuf_drop> 1325*5113495bSYour Name 1326*5113495bSYour Name <enum 6 fwdall_drop> 1327*5113495bSYour Name 1328*5113495bSYour Name <enum 7 fwdall_qcur> 1329*5113495bSYour Name 1330*5113495bSYour Name <enum 8 reserved_reo_opcode_1> 1331*5113495bSYour Name 1332*5113495bSYour Name <enum 9 dropcur> the error reason code is in 1333*5113495bSYour Name reo_error_code field. 1334*5113495bSYour Name 1335*5113495bSYour Name <enum 10 reserved_reo_opcode_2> 1336*5113495bSYour Name 1337*5113495bSYour Name <enum 11 reserved_reo_opcode_3> 1338*5113495bSYour Name 1339*5113495bSYour Name <enum 12 reserved_reo_opcode_4> 1340*5113495bSYour Name 1341*5113495bSYour Name <enum 13 reserved_reo_opcode_5> 1342*5113495bSYour Name 1343*5113495bSYour Name <enum 14 reserved_reo_opcode_6> 1344*5113495bSYour Name 1345*5113495bSYour Name <enum 15 reserved_reo_opcode_7> 1346*5113495bSYour Name 1347*5113495bSYour Name 1348*5113495bSYour Name 1349*5113495bSYour Name <legal all> 1350*5113495bSYour Name */ 1351*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_OPCODE_OFFSET 0x00000020 1352*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_OPCODE_LSB 1 1353*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_OPCODE_MASK 0x0000001e 1354*5113495bSYour Name 1355*5113495bSYour Name /* Description REO_DESTINATION_RING_8_REORDER_SLOT_INDEX 1356*5113495bSYour Name 1357*5113495bSYour Name Field only valid when 'Soft_reorder_info_valid' is set. 1358*5113495bSYour Name 1359*5113495bSYour Name 1360*5113495bSYour Name 1361*5113495bSYour Name TODO: add description 1362*5113495bSYour Name 1363*5113495bSYour Name 1364*5113495bSYour Name 1365*5113495bSYour Name <legal all> 1366*5113495bSYour Name */ 1367*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_SLOT_INDEX_OFFSET 0x00000020 1368*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_SLOT_INDEX_LSB 5 1369*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_SLOT_INDEX_MASK 0x00001fe0 1370*5113495bSYour Name 1371*5113495bSYour Name /* Description REO_DESTINATION_RING_8_MPDU_FRAGMENT_NUMBER 1372*5113495bSYour Name 1373*5113495bSYour Name Field only valid when Rx_mpdu_desc_info_details. 1374*5113495bSYour Name Fragment_flag is set. 1375*5113495bSYour Name 1376*5113495bSYour Name 1377*5113495bSYour Name 1378*5113495bSYour Name The fragment number from the 802.11 header. 1379*5113495bSYour Name 1380*5113495bSYour Name 1381*5113495bSYour Name 1382*5113495bSYour Name Note that the sequence number is embedded in the field: 1383*5113495bSYour Name Rx_mpdu_desc_info_details. Mpdu_sequence_number 1384*5113495bSYour Name 1385*5113495bSYour Name 1386*5113495bSYour Name 1387*5113495bSYour Name <legal all> 1388*5113495bSYour Name */ 1389*5113495bSYour Name #define REO_DESTINATION_RING_8_MPDU_FRAGMENT_NUMBER_OFFSET 0x00000020 1390*5113495bSYour Name #define REO_DESTINATION_RING_8_MPDU_FRAGMENT_NUMBER_LSB 13 1391*5113495bSYour Name #define REO_DESTINATION_RING_8_MPDU_FRAGMENT_NUMBER_MASK 0x0001e000 1392*5113495bSYour Name 1393*5113495bSYour Name /* Description REO_DESTINATION_RING_8_CAPTURED_MSDU_DATA_SIZE 1394*5113495bSYour Name 1395*5113495bSYour Name The number of following REO_DESTINATION STRUCTs that 1396*5113495bSYour Name have been replaced with msdu_data extracted from the 1397*5113495bSYour Name msdu_buffer and copied into the ring for easy FW/SW access. 1398*5113495bSYour Name 1399*5113495bSYour Name Note that it is possible that these STRUCTs wrap around 1400*5113495bSYour Name the end of the ring. 1401*5113495bSYour Name 1402*5113495bSYour Name Feature supported only in HastingsPrime 1403*5113495bSYour Name 1404*5113495bSYour Name <legal 0-4> 1405*5113495bSYour Name */ 1406*5113495bSYour Name #define REO_DESTINATION_RING_8_CAPTURED_MSDU_DATA_SIZE_OFFSET 0x00000020 1407*5113495bSYour Name #define REO_DESTINATION_RING_8_CAPTURED_MSDU_DATA_SIZE_LSB 17 1408*5113495bSYour Name #define REO_DESTINATION_RING_8_CAPTURED_MSDU_DATA_SIZE_MASK 0x001e0000 1409*5113495bSYour Name 1410*5113495bSYour Name /* Description REO_DESTINATION_RING_8_SW_EXCEPTION 1411*5113495bSYour Name 1412*5113495bSYour Name This field has the same setting as the SW_exception 1413*5113495bSYour Name field in the corresponding REO_entrance_ring descriptor. 1414*5113495bSYour Name 1415*5113495bSYour Name When set, the REO entrance descriptor is generated by 1416*5113495bSYour Name FW, and the MPDU was processed in the following way: 1417*5113495bSYour Name 1418*5113495bSYour Name - NO re-order function is needed. 1419*5113495bSYour Name 1420*5113495bSYour Name - MPDU delinking is determined by the setting of 1421*5113495bSYour Name Entrance ring field: SW_excection_mpdu_delink 1422*5113495bSYour Name 1423*5113495bSYour Name - Destination ring selection is based on the setting of 1424*5113495bSYour Name 1425*5113495bSYour Name Feature supported only in HastingsPrime 1426*5113495bSYour Name 1427*5113495bSYour Name <legal all> 1428*5113495bSYour Name */ 1429*5113495bSYour Name #define REO_DESTINATION_RING_8_SW_EXCEPTION_OFFSET 0x00000020 1430*5113495bSYour Name #define REO_DESTINATION_RING_8_SW_EXCEPTION_LSB 21 1431*5113495bSYour Name #define REO_DESTINATION_RING_8_SW_EXCEPTION_MASK 0x00200000 1432*5113495bSYour Name 1433*5113495bSYour Name /* Description REO_DESTINATION_RING_8_RESERVED_8A 1434*5113495bSYour Name 1435*5113495bSYour Name <legal 0> 1436*5113495bSYour Name */ 1437*5113495bSYour Name #define REO_DESTINATION_RING_8_RESERVED_8A_OFFSET 0x00000020 1438*5113495bSYour Name #define REO_DESTINATION_RING_8_RESERVED_8A_LSB 22 1439*5113495bSYour Name #define REO_DESTINATION_RING_8_RESERVED_8A_MASK 0xffc00000 1440*5113495bSYour Name 1441*5113495bSYour Name /* Description REO_DESTINATION_RING_9_REO_DESTINATION_STRUCT_SIGNATURE 1442*5113495bSYour Name 1443*5113495bSYour Name Set to value 0x8888_88888 when msdu capture mode is 1444*5113495bSYour Name enabled for this ring (supported only in HastingsPrime) 1445*5113495bSYour Name 1446*5113495bSYour Name <legal 0, 2290649224 > 1447*5113495bSYour Name */ 1448*5113495bSYour Name #define REO_DESTINATION_RING_9_REO_DESTINATION_STRUCT_SIGNATURE_OFFSET 0x00000024 1449*5113495bSYour Name #define REO_DESTINATION_RING_9_REO_DESTINATION_STRUCT_SIGNATURE_LSB 0 1450*5113495bSYour Name #define REO_DESTINATION_RING_9_REO_DESTINATION_STRUCT_SIGNATURE_MASK 0xffffffff 1451*5113495bSYour Name 1452*5113495bSYour Name /* Description REO_DESTINATION_RING_10_RESERVED_10A 1453*5113495bSYour Name 1454*5113495bSYour Name <legal 0> 1455*5113495bSYour Name */ 1456*5113495bSYour Name #define REO_DESTINATION_RING_10_RESERVED_10A_OFFSET 0x00000028 1457*5113495bSYour Name #define REO_DESTINATION_RING_10_RESERVED_10A_LSB 0 1458*5113495bSYour Name #define REO_DESTINATION_RING_10_RESERVED_10A_MASK 0xffffffff 1459*5113495bSYour Name 1460*5113495bSYour Name /* Description REO_DESTINATION_RING_11_RESERVED_11A 1461*5113495bSYour Name 1462*5113495bSYour Name <legal 0> 1463*5113495bSYour Name */ 1464*5113495bSYour Name #define REO_DESTINATION_RING_11_RESERVED_11A_OFFSET 0x0000002c 1465*5113495bSYour Name #define REO_DESTINATION_RING_11_RESERVED_11A_LSB 0 1466*5113495bSYour Name #define REO_DESTINATION_RING_11_RESERVED_11A_MASK 0xffffffff 1467*5113495bSYour Name 1468*5113495bSYour Name /* Description REO_DESTINATION_RING_12_RESERVED_12A 1469*5113495bSYour Name 1470*5113495bSYour Name <legal 0> 1471*5113495bSYour Name */ 1472*5113495bSYour Name #define REO_DESTINATION_RING_12_RESERVED_12A_OFFSET 0x00000030 1473*5113495bSYour Name #define REO_DESTINATION_RING_12_RESERVED_12A_LSB 0 1474*5113495bSYour Name #define REO_DESTINATION_RING_12_RESERVED_12A_MASK 0xffffffff 1475*5113495bSYour Name 1476*5113495bSYour Name /* Description REO_DESTINATION_RING_13_RESERVED_13A 1477*5113495bSYour Name 1478*5113495bSYour Name <legal 0> 1479*5113495bSYour Name */ 1480*5113495bSYour Name #define REO_DESTINATION_RING_13_RESERVED_13A_OFFSET 0x00000034 1481*5113495bSYour Name #define REO_DESTINATION_RING_13_RESERVED_13A_LSB 0 1482*5113495bSYour Name #define REO_DESTINATION_RING_13_RESERVED_13A_MASK 0xffffffff 1483*5113495bSYour Name 1484*5113495bSYour Name /* Description REO_DESTINATION_RING_14_RESERVED_14A 1485*5113495bSYour Name 1486*5113495bSYour Name <legal 0> 1487*5113495bSYour Name */ 1488*5113495bSYour Name #define REO_DESTINATION_RING_14_RESERVED_14A_OFFSET 0x00000038 1489*5113495bSYour Name #define REO_DESTINATION_RING_14_RESERVED_14A_LSB 0 1490*5113495bSYour Name #define REO_DESTINATION_RING_14_RESERVED_14A_MASK 0xffffffff 1491*5113495bSYour Name 1492*5113495bSYour Name /* Description REO_DESTINATION_RING_15_RESERVED_15 1493*5113495bSYour Name 1494*5113495bSYour Name <legal 0> 1495*5113495bSYour Name */ 1496*5113495bSYour Name #define REO_DESTINATION_RING_15_RESERVED_15_OFFSET 0x0000003c 1497*5113495bSYour Name #define REO_DESTINATION_RING_15_RESERVED_15_LSB 0 1498*5113495bSYour Name #define REO_DESTINATION_RING_15_RESERVED_15_MASK 0x000fffff 1499*5113495bSYour Name 1500*5113495bSYour Name /* Description REO_DESTINATION_RING_15_RING_ID 1501*5113495bSYour Name 1502*5113495bSYour Name The buffer pointer ring ID. 1503*5113495bSYour Name 1504*5113495bSYour Name 0 refers to the IDLE ring 1505*5113495bSYour Name 1506*5113495bSYour Name 1 - N refers to other rings 1507*5113495bSYour Name 1508*5113495bSYour Name 1509*5113495bSYour Name 1510*5113495bSYour Name Helps with debugging when dumping ring contents. 1511*5113495bSYour Name 1512*5113495bSYour Name <legal all> 1513*5113495bSYour Name */ 1514*5113495bSYour Name #define REO_DESTINATION_RING_15_RING_ID_OFFSET 0x0000003c 1515*5113495bSYour Name #define REO_DESTINATION_RING_15_RING_ID_LSB 20 1516*5113495bSYour Name #define REO_DESTINATION_RING_15_RING_ID_MASK 0x0ff00000 1517*5113495bSYour Name 1518*5113495bSYour Name /* Description REO_DESTINATION_RING_15_LOOPING_COUNT 1519*5113495bSYour Name 1520*5113495bSYour Name A count value that indicates the number of times the 1521*5113495bSYour Name producer of entries into this Ring has looped around the 1522*5113495bSYour Name ring. 1523*5113495bSYour Name 1524*5113495bSYour Name At initialization time, this value is set to 0. On the 1525*5113495bSYour Name first loop, this value is set to 1. After the max value is 1526*5113495bSYour Name reached allowed by the number of bits for this field, the 1527*5113495bSYour Name count value continues with 0 again. 1528*5113495bSYour Name 1529*5113495bSYour Name In case SW is the consumer of the ring entries, it can 1530*5113495bSYour Name use this field to figure out up to where the producer of 1531*5113495bSYour Name entries has created new entries. This eliminates the need to 1532*5113495bSYour Name check where the head pointer' of the ring is located once 1533*5113495bSYour Name the SW starts processing an interrupt indicating that new 1534*5113495bSYour Name entries have been put into this ring... 1535*5113495bSYour Name 1536*5113495bSYour Name 1537*5113495bSYour Name 1538*5113495bSYour Name Also note that SW if it wants only needs to look at the 1539*5113495bSYour Name LSB bit of this count value. 1540*5113495bSYour Name 1541*5113495bSYour Name <legal all> 1542*5113495bSYour Name */ 1543*5113495bSYour Name #define REO_DESTINATION_RING_15_LOOPING_COUNT_OFFSET 0x0000003c 1544*5113495bSYour Name #define REO_DESTINATION_RING_15_LOOPING_COUNT_LSB 28 1545*5113495bSYour Name #define REO_DESTINATION_RING_15_LOOPING_COUNT_MASK 0xf0000000 1546*5113495bSYour Name 1547*5113495bSYour Name 1548*5113495bSYour Name #endif // _REO_DESTINATION_RING_H_ 1549