1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2016-2017 The Linux Foundation. All rights reserved. 3*5113495bSYour Name * 4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for 5*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the 6*5113495bSYour Name * above copyright notice and this permission notice appear in all 7*5113495bSYour Name * copies. 8*5113495bSYour Name * 9*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 10*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 11*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 12*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 13*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 14*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 15*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE. 17*5113495bSYour Name */ 18*5113495bSYour Name 19*5113495bSYour Name // $ATH_LICENSE_HW_HDR_C$ 20*5113495bSYour Name // 21*5113495bSYour Name // DO NOT EDIT! This file is automatically generated 22*5113495bSYour Name // These definitions are tied to a particular hardware layout 23*5113495bSYour Name 24*5113495bSYour Name 25*5113495bSYour Name #ifndef _REO_DESTINATION_RING_H_ 26*5113495bSYour Name #define _REO_DESTINATION_RING_H_ 27*5113495bSYour Name #if !defined(__ASSEMBLER__) 28*5113495bSYour Name #endif 29*5113495bSYour Name 30*5113495bSYour Name #include "buffer_addr_info.h" 31*5113495bSYour Name #include "rx_mpdu_desc_info.h" 32*5113495bSYour Name #include "rx_msdu_desc_info.h" 33*5113495bSYour Name 34*5113495bSYour Name // ################ START SUMMARY ################# 35*5113495bSYour Name // 36*5113495bSYour Name // Dword Fields 37*5113495bSYour Name // 0-1 struct buffer_addr_info buf_or_link_desc_addr_info; 38*5113495bSYour Name // 2-3 struct rx_mpdu_desc_info rx_mpdu_desc_info_details; 39*5113495bSYour Name // 4-5 struct rx_msdu_desc_info rx_msdu_desc_info_details; 40*5113495bSYour Name // 6 rx_reo_queue_desc_addr_31_0[31:0] 41*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] 42*5113495bSYour Name // 8 soft_reorder_info_valid[0], reorder_opcode[4:1], reorder_slot_index[12:5], reserved_8a[31:13] 43*5113495bSYour Name // 9 reserved_9a[31:0] 44*5113495bSYour Name // 10 reserved_10a[31:0] 45*5113495bSYour Name // 11 reserved_11a[31:0] 46*5113495bSYour Name // 12 reserved_12a[31:0] 47*5113495bSYour Name // 13 reserved_13a[31:0] 48*5113495bSYour Name // 14 reserved_14a[31:0] 49*5113495bSYour Name // 15 reserved_15[19:0], ring_id[27:20], looping_count[31:28] 50*5113495bSYour Name // 51*5113495bSYour Name // ################ END SUMMARY ################# 52*5113495bSYour Name 53*5113495bSYour Name #define NUM_OF_DWORDS_REO_DESTINATION_RING 16 54*5113495bSYour Name 55*5113495bSYour Name struct reo_destination_ring { 56*5113495bSYour Name struct buffer_addr_info buf_or_link_desc_addr_info; 57*5113495bSYour Name struct rx_mpdu_desc_info rx_mpdu_desc_info_details; 58*5113495bSYour Name struct rx_msdu_desc_info rx_msdu_desc_info_details; 59*5113495bSYour Name uint32_t rx_reo_queue_desc_addr_31_0 : 32; //[31:0] 60*5113495bSYour Name uint32_t rx_reo_queue_desc_addr_39_32 : 8, //[7:0] 61*5113495bSYour Name reo_dest_buffer_type : 1, //[8] 62*5113495bSYour Name reo_push_reason : 2, //[10:9] 63*5113495bSYour Name reo_error_code : 5, //[15:11] 64*5113495bSYour Name receive_queue_number : 16; //[31:16] 65*5113495bSYour Name uint32_t soft_reorder_info_valid : 1, //[0] 66*5113495bSYour Name reorder_opcode : 4, //[4:1] 67*5113495bSYour Name reorder_slot_index : 8, //[12:5] 68*5113495bSYour Name reserved_8a : 19; //[31:13] 69*5113495bSYour Name uint32_t reserved_9a : 32; //[31:0] 70*5113495bSYour Name uint32_t reserved_10a : 32; //[31:0] 71*5113495bSYour Name uint32_t reserved_11a : 32; //[31:0] 72*5113495bSYour Name uint32_t reserved_12a : 32; //[31:0] 73*5113495bSYour Name uint32_t reserved_13a : 32; //[31:0] 74*5113495bSYour Name uint32_t reserved_14a : 32; //[31:0] 75*5113495bSYour Name uint32_t reserved_15 : 20, //[19:0] 76*5113495bSYour Name ring_id : 8, //[27:20] 77*5113495bSYour Name looping_count : 4; //[31:28] 78*5113495bSYour Name }; 79*5113495bSYour Name 80*5113495bSYour Name /* 81*5113495bSYour Name 82*5113495bSYour Name struct buffer_addr_info buf_or_link_desc_addr_info 83*5113495bSYour Name 84*5113495bSYour Name Consumer: REO/SW/FW 85*5113495bSYour Name 86*5113495bSYour Name Producer: RXDMA 87*5113495bSYour Name 88*5113495bSYour Name 89*5113495bSYour Name 90*5113495bSYour Name Details of the physical address of the a buffer or MSDU 91*5113495bSYour Name link descriptor 92*5113495bSYour Name 93*5113495bSYour Name struct rx_mpdu_desc_info rx_mpdu_desc_info_details 94*5113495bSYour Name 95*5113495bSYour Name Consumer: REO/SW/FW 96*5113495bSYour Name 97*5113495bSYour Name Producer: RXDMA 98*5113495bSYour Name 99*5113495bSYour Name 100*5113495bSYour Name 101*5113495bSYour Name General information related to the MPDU that is passed 102*5113495bSYour Name on from REO entrance ring to the REO destination ring 103*5113495bSYour Name 104*5113495bSYour Name struct rx_msdu_desc_info rx_msdu_desc_info_details 105*5113495bSYour Name 106*5113495bSYour Name General information related to the MSDU that is passed 107*5113495bSYour Name on from RXDMA all the way to to the REO destination ring. 108*5113495bSYour Name 109*5113495bSYour Name rx_reo_queue_desc_addr_31_0 110*5113495bSYour Name 111*5113495bSYour Name Consumer: REO 112*5113495bSYour Name 113*5113495bSYour Name Producer: RXDMA 114*5113495bSYour Name 115*5113495bSYour Name 116*5113495bSYour Name 117*5113495bSYour Name Address (lower 32 bits) of the REO queue descriptor. 118*5113495bSYour Name 119*5113495bSYour Name <legal all> 120*5113495bSYour Name 121*5113495bSYour Name rx_reo_queue_desc_addr_39_32 122*5113495bSYour Name 123*5113495bSYour Name Consumer: REO 124*5113495bSYour Name 125*5113495bSYour Name Producer: RXDMA 126*5113495bSYour Name 127*5113495bSYour Name 128*5113495bSYour Name 129*5113495bSYour Name Address (upper 8 bits) of the REO queue descriptor. 130*5113495bSYour Name 131*5113495bSYour Name <legal all> 132*5113495bSYour Name 133*5113495bSYour Name reo_dest_buffer_type 134*5113495bSYour Name 135*5113495bSYour Name Indicates the type of address provided in the 136*5113495bSYour Name 'Buf_or_link_desc_addr_info' 137*5113495bSYour Name 138*5113495bSYour Name 139*5113495bSYour Name 140*5113495bSYour Name <enum 0 MSDU_buf_address> The address of an MSDU buffer 141*5113495bSYour Name 142*5113495bSYour Name <enum 1 MSDU_link_desc_address> The address of the MSDU 143*5113495bSYour Name link descriptor. 144*5113495bSYour Name 145*5113495bSYour Name 146*5113495bSYour Name 147*5113495bSYour Name <legal all> 148*5113495bSYour Name 149*5113495bSYour Name reo_push_reason 150*5113495bSYour Name 151*5113495bSYour Name Indicates why REO pushed the frame to this exit ring 152*5113495bSYour Name 153*5113495bSYour Name 154*5113495bSYour Name 155*5113495bSYour Name <enum 0 reo_error_detected> Reo detected an error an 156*5113495bSYour Name pushed this frame to this queue 157*5113495bSYour Name 158*5113495bSYour Name <enum 1 reo_routing_instruction> Reo pushed the frame to 159*5113495bSYour Name this queue per received routing instructions. No error 160*5113495bSYour Name within REO was detected 161*5113495bSYour Name 162*5113495bSYour Name 163*5113495bSYour Name 164*5113495bSYour Name 165*5113495bSYour Name 166*5113495bSYour Name <legal 0 - 1> 167*5113495bSYour Name 168*5113495bSYour Name reo_error_code 169*5113495bSYour Name 170*5113495bSYour Name Field only valid when 'Reo_push_reason' set to 171*5113495bSYour Name 'reo_error_detected'. 172*5113495bSYour Name 173*5113495bSYour Name 174*5113495bSYour Name 175*5113495bSYour Name <enum 0 reo_queue_desc_addr_zero> Reo queue descriptor 176*5113495bSYour Name provided in the REO_ENTRANCE ring is set to 0 177*5113495bSYour Name 178*5113495bSYour Name <enum 1 reo_queue_desc_not_valid> Reo queue descriptor 179*5113495bSYour Name valid bit is NOT set 180*5113495bSYour Name 181*5113495bSYour Name <enum 2 ampdu_in_non_ba> AMPDU frame received without BA 182*5113495bSYour Name session having been setup. 183*5113495bSYour Name 184*5113495bSYour Name <enum 3 non_ba_duplicate> Non-BA session, SN equal to 185*5113495bSYour Name SSN, Retry bit set: duplicate frame 186*5113495bSYour Name 187*5113495bSYour Name <enum 4 ba_duplicate> BA session, duplicate frame 188*5113495bSYour Name 189*5113495bSYour Name <enum 5 regular_frame_2k_jump> A normal (management/data 190*5113495bSYour Name frame) received with 2K jump in SN 191*5113495bSYour Name 192*5113495bSYour Name <enum 6 bar_frame_2k_jump> A bar received with 2K jump 193*5113495bSYour Name in SSN 194*5113495bSYour Name 195*5113495bSYour Name <enum 7 regular_frame_OOR> A normal (management/data 196*5113495bSYour Name frame) received with SN falling within the OOR window 197*5113495bSYour Name 198*5113495bSYour Name <enum 8 bar_frame_OOR> A bar received with SSN falling 199*5113495bSYour Name within the OOR window 200*5113495bSYour Name 201*5113495bSYour Name <enum 9 bar_frame_no_ba_session> A bar received without 202*5113495bSYour Name a BA session 203*5113495bSYour Name 204*5113495bSYour Name <enum 10 bar_frame_sn_equals_ssn> A bar received with 205*5113495bSYour Name SSN equal to SN 206*5113495bSYour Name 207*5113495bSYour Name <enum 11 pn_check_failed> PN Check Failed packet. 208*5113495bSYour Name 209*5113495bSYour Name <enum 12 2k_error_handling_flag_set> Frame is forwarded 210*5113495bSYour Name as a result of the 'Seq_2k_error_detected_flag' been set in 211*5113495bSYour Name the REO Queue descriptor 212*5113495bSYour Name 213*5113495bSYour Name <enum 13 pn_error_handling_flag_set> Frame is forwarded 214*5113495bSYour Name as a result of the 'pn_error_detected_flag' been set in the 215*5113495bSYour Name REO Queue descriptor 216*5113495bSYour Name 217*5113495bSYour Name <enum 14 queue_descriptor_blocked_set> Frame is 218*5113495bSYour Name forwarded as a result of the queue descriptor(address) being 219*5113495bSYour Name blocked as SW/FW seems to be currently in the process of 220*5113495bSYour Name making updates to this descriptor... 221*5113495bSYour Name 222*5113495bSYour Name 223*5113495bSYour Name 224*5113495bSYour Name <legal 0-14> 225*5113495bSYour Name 226*5113495bSYour Name receive_queue_number 227*5113495bSYour Name 228*5113495bSYour Name This field indicates the REO MPDU reorder queue ID from 229*5113495bSYour Name which this frame originated. This field is populated from a 230*5113495bSYour Name field with the same name in the RX_REO_QUEUE descriptor. 231*5113495bSYour Name 232*5113495bSYour Name <legal all> 233*5113495bSYour Name 234*5113495bSYour Name soft_reorder_info_valid 235*5113495bSYour Name 236*5113495bSYour Name When set, REO has been instructed to not perform the 237*5113495bSYour Name actual re-ordering of frames for this queue, but just to 238*5113495bSYour Name insert the reorder opcodes 239*5113495bSYour Name 240*5113495bSYour Name <legal all> 241*5113495bSYour Name 242*5113495bSYour Name reorder_opcode 243*5113495bSYour Name 244*5113495bSYour Name Field is valid when 'Soft_reorder_info_valid' is set. 245*5113495bSYour Name This field is always valid for debug purpose as well. 246*5113495bSYour Name 247*5113495bSYour Name Details are in the MLD. 248*5113495bSYour Name 249*5113495bSYour Name 250*5113495bSYour Name 251*5113495bSYour Name <enum 0 invalid> 252*5113495bSYour Name 253*5113495bSYour Name <enum 1 fwdcur_fwdbuf> 254*5113495bSYour Name 255*5113495bSYour Name <enum 2 fwdbuf_fwdcur> 256*5113495bSYour Name 257*5113495bSYour Name <enum 3 qcur> 258*5113495bSYour Name 259*5113495bSYour Name <enum 4 fwdbuf_qcur> 260*5113495bSYour Name 261*5113495bSYour Name <enum 5 fwdbuf_drop> 262*5113495bSYour Name 263*5113495bSYour Name <enum 6 fwdall_drop> 264*5113495bSYour Name 265*5113495bSYour Name <enum 7 fwdall_qcur> 266*5113495bSYour Name 267*5113495bSYour Name <enum 8 reserved_reo_opcode_1> 268*5113495bSYour Name 269*5113495bSYour Name <enum 9 dropcur> the error reason code is in 270*5113495bSYour Name reo_error_code field. 271*5113495bSYour Name 272*5113495bSYour Name <enum 10 reserved_reo_opcode_2> 273*5113495bSYour Name 274*5113495bSYour Name <enum 11 reserved_reo_opcode_3> 275*5113495bSYour Name 276*5113495bSYour Name <enum 12 reserved_reo_opcode_4> 277*5113495bSYour Name 278*5113495bSYour Name <enum 13 reserved_reo_opcode_5> 279*5113495bSYour Name 280*5113495bSYour Name <enum 14 reserved_reo_opcode_6> 281*5113495bSYour Name 282*5113495bSYour Name <enum 15 reserved_reo_opcode_7> 283*5113495bSYour Name 284*5113495bSYour Name 285*5113495bSYour Name 286*5113495bSYour Name <legal all> 287*5113495bSYour Name 288*5113495bSYour Name reorder_slot_index 289*5113495bSYour Name 290*5113495bSYour Name Field only valid when 'Soft_reorder_info_valid' is set. 291*5113495bSYour Name 292*5113495bSYour Name 293*5113495bSYour Name 294*5113495bSYour Name TODO: add description 295*5113495bSYour Name 296*5113495bSYour Name 297*5113495bSYour Name 298*5113495bSYour Name <legal all> 299*5113495bSYour Name 300*5113495bSYour Name reserved_8a 301*5113495bSYour Name 302*5113495bSYour Name <legal 0> 303*5113495bSYour Name 304*5113495bSYour Name reserved_9a 305*5113495bSYour Name 306*5113495bSYour Name <legal 0> 307*5113495bSYour Name 308*5113495bSYour Name reserved_10a 309*5113495bSYour Name 310*5113495bSYour Name <legal 0> 311*5113495bSYour Name 312*5113495bSYour Name reserved_11a 313*5113495bSYour Name 314*5113495bSYour Name <legal 0> 315*5113495bSYour Name 316*5113495bSYour Name reserved_12a 317*5113495bSYour Name 318*5113495bSYour Name <legal 0> 319*5113495bSYour Name 320*5113495bSYour Name reserved_13a 321*5113495bSYour Name 322*5113495bSYour Name <legal 0> 323*5113495bSYour Name 324*5113495bSYour Name reserved_14a 325*5113495bSYour Name 326*5113495bSYour Name <legal 0> 327*5113495bSYour Name 328*5113495bSYour Name reserved_15 329*5113495bSYour Name 330*5113495bSYour Name <legal 0> 331*5113495bSYour Name 332*5113495bSYour Name ring_id 333*5113495bSYour Name 334*5113495bSYour Name The buffer pointer ring ID. 335*5113495bSYour Name 336*5113495bSYour Name 0 refers to the IDLE ring 337*5113495bSYour Name 338*5113495bSYour Name 1 - N refers to other rings 339*5113495bSYour Name 340*5113495bSYour Name 341*5113495bSYour Name 342*5113495bSYour Name Helps with debugging when dumping ring contents. 343*5113495bSYour Name 344*5113495bSYour Name <legal all> 345*5113495bSYour Name 346*5113495bSYour Name looping_count 347*5113495bSYour Name 348*5113495bSYour Name A count value that indicates the number of times the 349*5113495bSYour Name producer of entries into this Ring has looped around the 350*5113495bSYour Name ring. 351*5113495bSYour Name 352*5113495bSYour Name At initialization time, this value is set to 0. On the 353*5113495bSYour Name first loop, this value is set to 1. After the max value is 354*5113495bSYour Name reached allowed by the number of bits for this field, the 355*5113495bSYour Name count value continues with 0 again. 356*5113495bSYour Name 357*5113495bSYour Name In case SW is the consumer of the ring entries, it can 358*5113495bSYour Name use this field to figure out up to where the producer of 359*5113495bSYour Name entries has created new entries. This eliminates the need to 360*5113495bSYour Name check where the head pointer' of the ring is located once 361*5113495bSYour Name the SW starts processing an interrupt indicating that new 362*5113495bSYour Name entries have been put into this ring... 363*5113495bSYour Name 364*5113495bSYour Name 365*5113495bSYour Name 366*5113495bSYour Name Also note that SW if it wants only needs to look at the 367*5113495bSYour Name LSB bit of this count value. 368*5113495bSYour Name 369*5113495bSYour Name <legal all> 370*5113495bSYour Name */ 371*5113495bSYour Name 372*5113495bSYour Name #define REO_DESTINATION_RING_0_BUFFER_ADDR_INFO_BUF_OR_LINK_DESC_ADDR_INFO_OFFSET 0x00000000 373*5113495bSYour Name #define REO_DESTINATION_RING_0_BUFFER_ADDR_INFO_BUF_OR_LINK_DESC_ADDR_INFO_LSB 28 374*5113495bSYour Name #define REO_DESTINATION_RING_0_BUFFER_ADDR_INFO_BUF_OR_LINK_DESC_ADDR_INFO_MASK 0xffffffff 375*5113495bSYour Name #define REO_DESTINATION_RING_1_BUFFER_ADDR_INFO_BUF_OR_LINK_DESC_ADDR_INFO_OFFSET 0x00000004 376*5113495bSYour Name #define REO_DESTINATION_RING_1_BUFFER_ADDR_INFO_BUF_OR_LINK_DESC_ADDR_INFO_LSB 28 377*5113495bSYour Name #define REO_DESTINATION_RING_1_BUFFER_ADDR_INFO_BUF_OR_LINK_DESC_ADDR_INFO_MASK 0xffffffff 378*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_RX_MPDU_DESC_INFO_DETAILS_OFFSET 0x00000008 379*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_RX_MPDU_DESC_INFO_DETAILS_LSB 28 380*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_RX_MPDU_DESC_INFO_DETAILS_MASK 0xffffffff 381*5113495bSYour Name #define REO_DESTINATION_RING_3_RX_MPDU_DESC_INFO_RX_MPDU_DESC_INFO_DETAILS_OFFSET 0x0000000c 382*5113495bSYour Name #define REO_DESTINATION_RING_3_RX_MPDU_DESC_INFO_RX_MPDU_DESC_INFO_DETAILS_LSB 28 383*5113495bSYour Name #define REO_DESTINATION_RING_3_RX_MPDU_DESC_INFO_RX_MPDU_DESC_INFO_DETAILS_MASK 0xffffffff 384*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_OFFSET 0x00000010 385*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_LSB 28 386*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_MASK 0xffffffff 387*5113495bSYour Name #define REO_DESTINATION_RING_5_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_OFFSET 0x00000014 388*5113495bSYour Name #define REO_DESTINATION_RING_5_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_LSB 28 389*5113495bSYour Name #define REO_DESTINATION_RING_5_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_MASK 0xffffffff 390*5113495bSYour Name 391*5113495bSYour Name /* Description REO_DESTINATION_RING_6_RX_REO_QUEUE_DESC_ADDR_31_0 392*5113495bSYour Name 393*5113495bSYour Name Consumer: REO 394*5113495bSYour Name 395*5113495bSYour Name Producer: RXDMA 396*5113495bSYour Name 397*5113495bSYour Name 398*5113495bSYour Name 399*5113495bSYour Name Address (lower 32 bits) of the REO queue descriptor. 400*5113495bSYour Name 401*5113495bSYour Name <legal all> 402*5113495bSYour Name */ 403*5113495bSYour Name #define REO_DESTINATION_RING_6_RX_REO_QUEUE_DESC_ADDR_31_0_OFFSET 0x00000018 404*5113495bSYour Name #define REO_DESTINATION_RING_6_RX_REO_QUEUE_DESC_ADDR_31_0_LSB 0 405*5113495bSYour Name #define REO_DESTINATION_RING_6_RX_REO_QUEUE_DESC_ADDR_31_0_MASK 0xffffffff 406*5113495bSYour Name 407*5113495bSYour Name /* Description REO_DESTINATION_RING_7_RX_REO_QUEUE_DESC_ADDR_39_32 408*5113495bSYour Name 409*5113495bSYour Name Consumer: REO 410*5113495bSYour Name 411*5113495bSYour Name Producer: RXDMA 412*5113495bSYour Name 413*5113495bSYour Name 414*5113495bSYour Name 415*5113495bSYour Name Address (upper 8 bits) of the REO queue descriptor. 416*5113495bSYour Name 417*5113495bSYour Name <legal all> 418*5113495bSYour Name */ 419*5113495bSYour Name #define REO_DESTINATION_RING_7_RX_REO_QUEUE_DESC_ADDR_39_32_OFFSET 0x0000001c 420*5113495bSYour Name #define REO_DESTINATION_RING_7_RX_REO_QUEUE_DESC_ADDR_39_32_LSB 0 421*5113495bSYour Name #define REO_DESTINATION_RING_7_RX_REO_QUEUE_DESC_ADDR_39_32_MASK 0x000000ff 422*5113495bSYour Name 423*5113495bSYour Name /* Description REO_DESTINATION_RING_7_REO_DEST_BUFFER_TYPE 424*5113495bSYour Name 425*5113495bSYour Name Indicates the type of address provided in the 426*5113495bSYour Name 'Buf_or_link_desc_addr_info' 427*5113495bSYour Name 428*5113495bSYour Name 429*5113495bSYour Name 430*5113495bSYour Name <enum 0 MSDU_buf_address> The address of an MSDU buffer 431*5113495bSYour Name 432*5113495bSYour Name <enum 1 MSDU_link_desc_address> The address of the MSDU 433*5113495bSYour Name link descriptor. 434*5113495bSYour Name 435*5113495bSYour Name 436*5113495bSYour Name 437*5113495bSYour Name <legal all> 438*5113495bSYour Name */ 439*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_DEST_BUFFER_TYPE_OFFSET 0x0000001c 440*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_DEST_BUFFER_TYPE_LSB 8 441*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_DEST_BUFFER_TYPE_MASK 0x00000100 442*5113495bSYour Name 443*5113495bSYour Name /* Description REO_DESTINATION_RING_7_REO_PUSH_REASON 444*5113495bSYour Name 445*5113495bSYour Name Indicates why REO pushed the frame to this exit ring 446*5113495bSYour Name 447*5113495bSYour Name 448*5113495bSYour Name 449*5113495bSYour Name <enum 0 reo_error_detected> Reo detected an error an 450*5113495bSYour Name pushed this frame to this queue 451*5113495bSYour Name 452*5113495bSYour Name <enum 1 reo_routing_instruction> Reo pushed the frame to 453*5113495bSYour Name this queue per received routing instructions. No error 454*5113495bSYour Name within REO was detected 455*5113495bSYour Name 456*5113495bSYour Name 457*5113495bSYour Name 458*5113495bSYour Name 459*5113495bSYour Name 460*5113495bSYour Name <legal 0 - 1> 461*5113495bSYour Name */ 462*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_PUSH_REASON_OFFSET 0x0000001c 463*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_PUSH_REASON_LSB 9 464*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_PUSH_REASON_MASK 0x00000600 465*5113495bSYour Name 466*5113495bSYour Name /* Description REO_DESTINATION_RING_7_REO_ERROR_CODE 467*5113495bSYour Name 468*5113495bSYour Name Field only valid when 'Reo_push_reason' set to 469*5113495bSYour Name 'reo_error_detected'. 470*5113495bSYour Name 471*5113495bSYour Name 472*5113495bSYour Name 473*5113495bSYour Name <enum 0 reo_queue_desc_addr_zero> Reo queue descriptor 474*5113495bSYour Name provided in the REO_ENTRANCE ring is set to 0 475*5113495bSYour Name 476*5113495bSYour Name <enum 1 reo_queue_desc_not_valid> Reo queue descriptor 477*5113495bSYour Name valid bit is NOT set 478*5113495bSYour Name 479*5113495bSYour Name <enum 2 ampdu_in_non_ba> AMPDU frame received without BA 480*5113495bSYour Name session having been setup. 481*5113495bSYour Name 482*5113495bSYour Name <enum 3 non_ba_duplicate> Non-BA session, SN equal to 483*5113495bSYour Name SSN, Retry bit set: duplicate frame 484*5113495bSYour Name 485*5113495bSYour Name <enum 4 ba_duplicate> BA session, duplicate frame 486*5113495bSYour Name 487*5113495bSYour Name <enum 5 regular_frame_2k_jump> A normal (management/data 488*5113495bSYour Name frame) received with 2K jump in SN 489*5113495bSYour Name 490*5113495bSYour Name <enum 6 bar_frame_2k_jump> A bar received with 2K jump 491*5113495bSYour Name in SSN 492*5113495bSYour Name 493*5113495bSYour Name <enum 7 regular_frame_OOR> A normal (management/data 494*5113495bSYour Name frame) received with SN falling within the OOR window 495*5113495bSYour Name 496*5113495bSYour Name <enum 8 bar_frame_OOR> A bar received with SSN falling 497*5113495bSYour Name within the OOR window 498*5113495bSYour Name 499*5113495bSYour Name <enum 9 bar_frame_no_ba_session> A bar received without 500*5113495bSYour Name a BA session 501*5113495bSYour Name 502*5113495bSYour Name <enum 10 bar_frame_sn_equals_ssn> A bar received with 503*5113495bSYour Name SSN equal to SN 504*5113495bSYour Name 505*5113495bSYour Name <enum 11 pn_check_failed> PN Check Failed packet. 506*5113495bSYour Name 507*5113495bSYour Name <enum 12 2k_error_handling_flag_set> Frame is forwarded 508*5113495bSYour Name as a result of the 'Seq_2k_error_detected_flag' been set in 509*5113495bSYour Name the REO Queue descriptor 510*5113495bSYour Name 511*5113495bSYour Name <enum 13 pn_error_handling_flag_set> Frame is forwarded 512*5113495bSYour Name as a result of the 'pn_error_detected_flag' been set in the 513*5113495bSYour Name REO Queue descriptor 514*5113495bSYour Name 515*5113495bSYour Name <enum 14 queue_descriptor_blocked_set> Frame is 516*5113495bSYour Name forwarded as a result of the queue descriptor(address) being 517*5113495bSYour Name blocked as SW/FW seems to be currently in the process of 518*5113495bSYour Name making updates to this descriptor... 519*5113495bSYour Name 520*5113495bSYour Name 521*5113495bSYour Name 522*5113495bSYour Name <legal 0-14> 523*5113495bSYour Name */ 524*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_ERROR_CODE_OFFSET 0x0000001c 525*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_ERROR_CODE_LSB 11 526*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_ERROR_CODE_MASK 0x0000f800 527*5113495bSYour Name 528*5113495bSYour Name /* Description REO_DESTINATION_RING_7_RECEIVE_QUEUE_NUMBER 529*5113495bSYour Name 530*5113495bSYour Name This field indicates the REO MPDU reorder queue ID from 531*5113495bSYour Name which this frame originated. This field is populated from a 532*5113495bSYour Name field with the same name in the RX_REO_QUEUE descriptor. 533*5113495bSYour Name 534*5113495bSYour Name <legal all> 535*5113495bSYour Name */ 536*5113495bSYour Name #define REO_DESTINATION_RING_7_RECEIVE_QUEUE_NUMBER_OFFSET 0x0000001c 537*5113495bSYour Name #define REO_DESTINATION_RING_7_RECEIVE_QUEUE_NUMBER_LSB 16 538*5113495bSYour Name #define REO_DESTINATION_RING_7_RECEIVE_QUEUE_NUMBER_MASK 0xffff0000 539*5113495bSYour Name 540*5113495bSYour Name /* Description REO_DESTINATION_RING_8_SOFT_REORDER_INFO_VALID 541*5113495bSYour Name 542*5113495bSYour Name When set, REO has been instructed to not perform the 543*5113495bSYour Name actual re-ordering of frames for this queue, but just to 544*5113495bSYour Name insert the reorder opcodes 545*5113495bSYour Name 546*5113495bSYour Name <legal all> 547*5113495bSYour Name */ 548*5113495bSYour Name #define REO_DESTINATION_RING_8_SOFT_REORDER_INFO_VALID_OFFSET 0x00000020 549*5113495bSYour Name #define REO_DESTINATION_RING_8_SOFT_REORDER_INFO_VALID_LSB 0 550*5113495bSYour Name #define REO_DESTINATION_RING_8_SOFT_REORDER_INFO_VALID_MASK 0x00000001 551*5113495bSYour Name 552*5113495bSYour Name /* Description REO_DESTINATION_RING_8_REORDER_OPCODE 553*5113495bSYour Name 554*5113495bSYour Name Field is valid when 'Soft_reorder_info_valid' is set. 555*5113495bSYour Name This field is always valid for debug purpose as well. 556*5113495bSYour Name 557*5113495bSYour Name Details are in the MLD. 558*5113495bSYour Name 559*5113495bSYour Name 560*5113495bSYour Name 561*5113495bSYour Name <enum 0 invalid> 562*5113495bSYour Name 563*5113495bSYour Name <enum 1 fwdcur_fwdbuf> 564*5113495bSYour Name 565*5113495bSYour Name <enum 2 fwdbuf_fwdcur> 566*5113495bSYour Name 567*5113495bSYour Name <enum 3 qcur> 568*5113495bSYour Name 569*5113495bSYour Name <enum 4 fwdbuf_qcur> 570*5113495bSYour Name 571*5113495bSYour Name <enum 5 fwdbuf_drop> 572*5113495bSYour Name 573*5113495bSYour Name <enum 6 fwdall_drop> 574*5113495bSYour Name 575*5113495bSYour Name <enum 7 fwdall_qcur> 576*5113495bSYour Name 577*5113495bSYour Name <enum 8 reserved_reo_opcode_1> 578*5113495bSYour Name 579*5113495bSYour Name <enum 9 dropcur> the error reason code is in 580*5113495bSYour Name reo_error_code field. 581*5113495bSYour Name 582*5113495bSYour Name <enum 10 reserved_reo_opcode_2> 583*5113495bSYour Name 584*5113495bSYour Name <enum 11 reserved_reo_opcode_3> 585*5113495bSYour Name 586*5113495bSYour Name <enum 12 reserved_reo_opcode_4> 587*5113495bSYour Name 588*5113495bSYour Name <enum 13 reserved_reo_opcode_5> 589*5113495bSYour Name 590*5113495bSYour Name <enum 14 reserved_reo_opcode_6> 591*5113495bSYour Name 592*5113495bSYour Name <enum 15 reserved_reo_opcode_7> 593*5113495bSYour Name 594*5113495bSYour Name 595*5113495bSYour Name 596*5113495bSYour Name <legal all> 597*5113495bSYour Name */ 598*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_OPCODE_OFFSET 0x00000020 599*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_OPCODE_LSB 1 600*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_OPCODE_MASK 0x0000001e 601*5113495bSYour Name 602*5113495bSYour Name /* Description REO_DESTINATION_RING_8_REORDER_SLOT_INDEX 603*5113495bSYour Name 604*5113495bSYour Name Field only valid when 'Soft_reorder_info_valid' is set. 605*5113495bSYour Name 606*5113495bSYour Name 607*5113495bSYour Name 608*5113495bSYour Name TODO: add description 609*5113495bSYour Name 610*5113495bSYour Name 611*5113495bSYour Name 612*5113495bSYour Name <legal all> 613*5113495bSYour Name */ 614*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_SLOT_INDEX_OFFSET 0x00000020 615*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_SLOT_INDEX_LSB 5 616*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_SLOT_INDEX_MASK 0x00001fe0 617*5113495bSYour Name 618*5113495bSYour Name /* Description REO_DESTINATION_RING_8_RESERVED_8A 619*5113495bSYour Name 620*5113495bSYour Name <legal 0> 621*5113495bSYour Name */ 622*5113495bSYour Name #define REO_DESTINATION_RING_8_RESERVED_8A_OFFSET 0x00000020 623*5113495bSYour Name #define REO_DESTINATION_RING_8_RESERVED_8A_LSB 13 624*5113495bSYour Name #define REO_DESTINATION_RING_8_RESERVED_8A_MASK 0xffffe000 625*5113495bSYour Name 626*5113495bSYour Name /* Description REO_DESTINATION_RING_9_RESERVED_9A 627*5113495bSYour Name 628*5113495bSYour Name <legal 0> 629*5113495bSYour Name */ 630*5113495bSYour Name #define REO_DESTINATION_RING_9_RESERVED_9A_OFFSET 0x00000024 631*5113495bSYour Name #define REO_DESTINATION_RING_9_RESERVED_9A_LSB 0 632*5113495bSYour Name #define REO_DESTINATION_RING_9_RESERVED_9A_MASK 0xffffffff 633*5113495bSYour Name 634*5113495bSYour Name /* Description REO_DESTINATION_RING_10_RESERVED_10A 635*5113495bSYour Name 636*5113495bSYour Name <legal 0> 637*5113495bSYour Name */ 638*5113495bSYour Name #define REO_DESTINATION_RING_10_RESERVED_10A_OFFSET 0x00000028 639*5113495bSYour Name #define REO_DESTINATION_RING_10_RESERVED_10A_LSB 0 640*5113495bSYour Name #define REO_DESTINATION_RING_10_RESERVED_10A_MASK 0xffffffff 641*5113495bSYour Name 642*5113495bSYour Name /* Description REO_DESTINATION_RING_11_RESERVED_11A 643*5113495bSYour Name 644*5113495bSYour Name <legal 0> 645*5113495bSYour Name */ 646*5113495bSYour Name #define REO_DESTINATION_RING_11_RESERVED_11A_OFFSET 0x0000002c 647*5113495bSYour Name #define REO_DESTINATION_RING_11_RESERVED_11A_LSB 0 648*5113495bSYour Name #define REO_DESTINATION_RING_11_RESERVED_11A_MASK 0xffffffff 649*5113495bSYour Name 650*5113495bSYour Name /* Description REO_DESTINATION_RING_12_RESERVED_12A 651*5113495bSYour Name 652*5113495bSYour Name <legal 0> 653*5113495bSYour Name */ 654*5113495bSYour Name #define REO_DESTINATION_RING_12_RESERVED_12A_OFFSET 0x00000030 655*5113495bSYour Name #define REO_DESTINATION_RING_12_RESERVED_12A_LSB 0 656*5113495bSYour Name #define REO_DESTINATION_RING_12_RESERVED_12A_MASK 0xffffffff 657*5113495bSYour Name 658*5113495bSYour Name /* Description REO_DESTINATION_RING_13_RESERVED_13A 659*5113495bSYour Name 660*5113495bSYour Name <legal 0> 661*5113495bSYour Name */ 662*5113495bSYour Name #define REO_DESTINATION_RING_13_RESERVED_13A_OFFSET 0x00000034 663*5113495bSYour Name #define REO_DESTINATION_RING_13_RESERVED_13A_LSB 0 664*5113495bSYour Name #define REO_DESTINATION_RING_13_RESERVED_13A_MASK 0xffffffff 665*5113495bSYour Name 666*5113495bSYour Name /* Description REO_DESTINATION_RING_14_RESERVED_14A 667*5113495bSYour Name 668*5113495bSYour Name <legal 0> 669*5113495bSYour Name */ 670*5113495bSYour Name #define REO_DESTINATION_RING_14_RESERVED_14A_OFFSET 0x00000038 671*5113495bSYour Name #define REO_DESTINATION_RING_14_RESERVED_14A_LSB 0 672*5113495bSYour Name #define REO_DESTINATION_RING_14_RESERVED_14A_MASK 0xffffffff 673*5113495bSYour Name 674*5113495bSYour Name /* Description REO_DESTINATION_RING_15_RESERVED_15 675*5113495bSYour Name 676*5113495bSYour Name <legal 0> 677*5113495bSYour Name */ 678*5113495bSYour Name #define REO_DESTINATION_RING_15_RESERVED_15_OFFSET 0x0000003c 679*5113495bSYour Name #define REO_DESTINATION_RING_15_RESERVED_15_LSB 0 680*5113495bSYour Name #define REO_DESTINATION_RING_15_RESERVED_15_MASK 0x000fffff 681*5113495bSYour Name 682*5113495bSYour Name /* Description REO_DESTINATION_RING_15_RING_ID 683*5113495bSYour Name 684*5113495bSYour Name The buffer pointer ring ID. 685*5113495bSYour Name 686*5113495bSYour Name 0 refers to the IDLE ring 687*5113495bSYour Name 688*5113495bSYour Name 1 - N refers to other rings 689*5113495bSYour Name 690*5113495bSYour Name 691*5113495bSYour Name 692*5113495bSYour Name Helps with debugging when dumping ring contents. 693*5113495bSYour Name 694*5113495bSYour Name <legal all> 695*5113495bSYour Name */ 696*5113495bSYour Name #define REO_DESTINATION_RING_15_RING_ID_OFFSET 0x0000003c 697*5113495bSYour Name #define REO_DESTINATION_RING_15_RING_ID_LSB 20 698*5113495bSYour Name #define REO_DESTINATION_RING_15_RING_ID_MASK 0x0ff00000 699*5113495bSYour Name 700*5113495bSYour Name /* Description REO_DESTINATION_RING_15_LOOPING_COUNT 701*5113495bSYour Name 702*5113495bSYour Name A count value that indicates the number of times the 703*5113495bSYour Name producer of entries into this Ring has looped around the 704*5113495bSYour Name ring. 705*5113495bSYour Name 706*5113495bSYour Name At initialization time, this value is set to 0. On the 707*5113495bSYour Name first loop, this value is set to 1. After the max value is 708*5113495bSYour Name reached allowed by the number of bits for this field, the 709*5113495bSYour Name count value continues with 0 again. 710*5113495bSYour Name 711*5113495bSYour Name In case SW is the consumer of the ring entries, it can 712*5113495bSYour Name use this field to figure out up to where the producer of 713*5113495bSYour Name entries has created new entries. This eliminates the need to 714*5113495bSYour Name check where the head pointer' of the ring is located once 715*5113495bSYour Name the SW starts processing an interrupt indicating that new 716*5113495bSYour Name entries have been put into this ring... 717*5113495bSYour Name 718*5113495bSYour Name 719*5113495bSYour Name 720*5113495bSYour Name Also note that SW if it wants only needs to look at the 721*5113495bSYour Name LSB bit of this count value. 722*5113495bSYour Name 723*5113495bSYour Name <legal all> 724*5113495bSYour Name */ 725*5113495bSYour Name #define REO_DESTINATION_RING_15_LOOPING_COUNT_OFFSET 0x0000003c 726*5113495bSYour Name #define REO_DESTINATION_RING_15_LOOPING_COUNT_LSB 28 727*5113495bSYour Name #define REO_DESTINATION_RING_15_LOOPING_COUNT_MASK 0xf0000000 728*5113495bSYour Name 729*5113495bSYour Name 730*5113495bSYour Name #endif // _REO_DESTINATION_RING_H_ 731