1*5113495bSYour Name 2*5113495bSYour Name /* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. 3*5113495bSYour Name * 4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for any 5*5113495bSYour Name * purpose with or without fee is hereby granted, provided that the above 6*5113495bSYour Name * copyright notice and this permission notice appear in all copies. 7*5113495bSYour Name * 8*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9*5113495bSYour Name * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10*5113495bSYour Name * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11*5113495bSYour Name * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12*5113495bSYour Name * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13*5113495bSYour Name * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14*5113495bSYour Name * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15*5113495bSYour Name */ 16*5113495bSYour Name 17*5113495bSYour Name 18*5113495bSYour Name 19*5113495bSYour Name 20*5113495bSYour Name 21*5113495bSYour Name 22*5113495bSYour Name 23*5113495bSYour Name 24*5113495bSYour Name 25*5113495bSYour Name 26*5113495bSYour Name #ifndef _WBM2SW_COMPLETION_RING_TX_H_ 27*5113495bSYour Name #define _WBM2SW_COMPLETION_RING_TX_H_ 28*5113495bSYour Name #if !defined(__ASSEMBLER__) 29*5113495bSYour Name #endif 30*5113495bSYour Name 31*5113495bSYour Name #include "tx_rate_stats_info.h" 32*5113495bSYour Name #define NUM_OF_DWORDS_WBM2SW_COMPLETION_RING_TX 8 33*5113495bSYour Name 34*5113495bSYour Name 35*5113495bSYour Name struct wbm2sw_completion_ring_tx { 36*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 37*5113495bSYour Name uint32_t buffer_virt_addr_31_0 : 32; // [31:0] 38*5113495bSYour Name uint32_t buffer_virt_addr_63_32 : 32; // [31:0] 39*5113495bSYour Name uint32_t release_source_module : 3, // [2:0] 40*5113495bSYour Name cache_id : 1, // [3:3] 41*5113495bSYour Name reserved_2a : 2, // [5:4] 42*5113495bSYour Name buffer_or_desc_type : 3, // [8:6] 43*5113495bSYour Name return_buffer_manager : 4, // [12:9] 44*5113495bSYour Name tqm_release_reason : 4, // [16:13] 45*5113495bSYour Name rbm_override_valid : 1, // [17:17] 46*5113495bSYour Name sw_buffer_cookie_11_0 : 12, // [29:18] 47*5113495bSYour Name cookie_conversion_status : 1, // [30:30] 48*5113495bSYour Name wbm_internal_error : 1; // [31:31] 49*5113495bSYour Name uint32_t tqm_status_number : 24, // [23:0] 50*5113495bSYour Name transmit_count : 7, // [30:24] 51*5113495bSYour Name sw_release_details_valid : 1; // [31:31] 52*5113495bSYour Name uint32_t ack_frame_rssi : 8, // [7:0] 53*5113495bSYour Name first_msdu : 1, // [8:8] 54*5113495bSYour Name last_msdu : 1, // [9:9] 55*5113495bSYour Name fw_tx_notify_frame : 3, // [12:10] 56*5113495bSYour Name buffer_timestamp : 19; // [31:13] 57*5113495bSYour Name struct tx_rate_stats_info tx_rate_stats; 58*5113495bSYour Name uint32_t sw_peer_id : 16, // [15:0] 59*5113495bSYour Name tid : 4, // [19:16] 60*5113495bSYour Name sw_buffer_cookie_19_12 : 8, // [27:20] 61*5113495bSYour Name looping_count : 4; // [31:28] 62*5113495bSYour Name #else 63*5113495bSYour Name uint32_t buffer_virt_addr_31_0 : 32; // [31:0] 64*5113495bSYour Name uint32_t buffer_virt_addr_63_32 : 32; // [31:0] 65*5113495bSYour Name uint32_t wbm_internal_error : 1, // [31:31] 66*5113495bSYour Name cookie_conversion_status : 1, // [30:30] 67*5113495bSYour Name sw_buffer_cookie_11_0 : 12, // [29:18] 68*5113495bSYour Name rbm_override_valid : 1, // [17:17] 69*5113495bSYour Name tqm_release_reason : 4, // [16:13] 70*5113495bSYour Name return_buffer_manager : 4, // [12:9] 71*5113495bSYour Name buffer_or_desc_type : 3, // [8:6] 72*5113495bSYour Name reserved_2a : 2, // [5:4] 73*5113495bSYour Name cache_id : 1, // [3:3] 74*5113495bSYour Name release_source_module : 3; // [2:0] 75*5113495bSYour Name uint32_t sw_release_details_valid : 1, // [31:31] 76*5113495bSYour Name transmit_count : 7, // [30:24] 77*5113495bSYour Name tqm_status_number : 24; // [23:0] 78*5113495bSYour Name uint32_t buffer_timestamp : 19, // [31:13] 79*5113495bSYour Name fw_tx_notify_frame : 3, // [12:10] 80*5113495bSYour Name last_msdu : 1, // [9:9] 81*5113495bSYour Name first_msdu : 1, // [8:8] 82*5113495bSYour Name ack_frame_rssi : 8; // [7:0] 83*5113495bSYour Name struct tx_rate_stats_info tx_rate_stats; 84*5113495bSYour Name uint32_t looping_count : 4, // [31:28] 85*5113495bSYour Name sw_buffer_cookie_19_12 : 8, // [27:20] 86*5113495bSYour Name tid : 4, // [19:16] 87*5113495bSYour Name sw_peer_id : 16; // [15:0] 88*5113495bSYour Name #endif 89*5113495bSYour Name }; 90*5113495bSYour Name 91*5113495bSYour Name 92*5113495bSYour Name /* Description BUFFER_VIRT_ADDR_31_0 93*5113495bSYour Name 94*5113495bSYour Name Lower 32 bits of the 64-bit virtual address corresponding 95*5113495bSYour Name to the MSDU being released 96*5113495bSYour Name <legal all> 97*5113495bSYour Name */ 98*5113495bSYour Name 99*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_VIRT_ADDR_31_0_OFFSET 0x00000000 100*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_VIRT_ADDR_31_0_LSB 0 101*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_VIRT_ADDR_31_0_MSB 31 102*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_VIRT_ADDR_31_0_MASK 0xffffffff 103*5113495bSYour Name 104*5113495bSYour Name 105*5113495bSYour Name /* Description BUFFER_VIRT_ADDR_63_32 106*5113495bSYour Name 107*5113495bSYour Name Upper 32 bits of the 64-bit virtual address corresponding 108*5113495bSYour Name to the MSDU being released 109*5113495bSYour Name <legal all> 110*5113495bSYour Name */ 111*5113495bSYour Name 112*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_VIRT_ADDR_63_32_OFFSET 0x00000004 113*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_VIRT_ADDR_63_32_LSB 0 114*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_VIRT_ADDR_63_32_MSB 31 115*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_VIRT_ADDR_63_32_MASK 0xffffffff 116*5113495bSYour Name 117*5113495bSYour Name 118*5113495bSYour Name /* Description RELEASE_SOURCE_MODULE 119*5113495bSYour Name 120*5113495bSYour Name Indicates which module initiated the release of this buffer 121*5113495bSYour Name or descriptor 122*5113495bSYour Name 123*5113495bSYour Name <enum 1 release_source_RXDMA> DO NOT USE 124*5113495bSYour Name <enum 2 release_source_REO> DO NOT USE 125*5113495bSYour Name <enum 5 release_source_FW_RX> DO NOT USE 126*5113495bSYour Name <enum 4 release_source_SW_RX> DO NOT USE 127*5113495bSYour Name <enum 0 release_source_TQM> TQM released this buffer or 128*5113495bSYour Name descriptor 129*5113495bSYour Name <enum 3 release_source_FW_TX> FW released this buffer or 130*5113495bSYour Name descriptor 131*5113495bSYour Name <enum 6 release_source_SW_TX> SW released this buffer or 132*5113495bSYour Name descriptor 133*5113495bSYour Name <legal 0-6> 134*5113495bSYour Name */ 135*5113495bSYour Name 136*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RELEASE_SOURCE_MODULE_OFFSET 0x00000008 137*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RELEASE_SOURCE_MODULE_LSB 0 138*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RELEASE_SOURCE_MODULE_MSB 2 139*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RELEASE_SOURCE_MODULE_MASK 0x00000007 140*5113495bSYour Name 141*5113495bSYour Name 142*5113495bSYour Name /* Description CACHE_ID 143*5113495bSYour Name 144*5113495bSYour Name To improve WBM performance, out-of-order completions may 145*5113495bSYour Name be allowed to process multiple MPDUs in parallel. 146*5113495bSYour Name 147*5113495bSYour Name The MSDUs released from each cache would be in order so 'First_msdu' 148*5113495bSYour Name and this field together can be used by SW to reorder the 149*5113495bSYour Name completions back to the original order by keeping all MSDUs 150*5113495bSYour Name of an MPDU from one cache together before switching to 151*5113495bSYour Name the next MPDU (from either cache). 152*5113495bSYour Name <legal all> 153*5113495bSYour Name */ 154*5113495bSYour Name 155*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_CACHE_ID_OFFSET 0x00000008 156*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_CACHE_ID_LSB 3 157*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_CACHE_ID_MSB 3 158*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_CACHE_ID_MASK 0x00000008 159*5113495bSYour Name 160*5113495bSYour Name 161*5113495bSYour Name /* Description RESERVED_2A 162*5113495bSYour Name 163*5113495bSYour Name <legal 0> 164*5113495bSYour Name */ 165*5113495bSYour Name 166*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RESERVED_2A_OFFSET 0x00000008 167*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RESERVED_2A_LSB 4 168*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RESERVED_2A_MSB 5 169*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RESERVED_2A_MASK 0x00000030 170*5113495bSYour Name 171*5113495bSYour Name 172*5113495bSYour Name /* Description BUFFER_OR_DESC_TYPE 173*5113495bSYour Name 174*5113495bSYour Name Consumer: WBM/SW/FW 175*5113495bSYour Name Producer: SW/TQM/RXDMA/REO/SWITCH 176*5113495bSYour Name 177*5113495bSYour Name Field only valid when WBM is marked as the return_buffer_manager 178*5113495bSYour Name in the Released_Buffer_address_info 179*5113495bSYour Name 180*5113495bSYour Name Indicates that type of buffer or descriptor is being released 181*5113495bSYour Name 182*5113495bSYour Name 183*5113495bSYour Name <enum 0 MSDU_rel_buffer> The address points to an MSDU buffer 184*5113495bSYour Name 185*5113495bSYour Name <enum 1 msdu_link_descriptor> The address points to an TX 186*5113495bSYour Name MSDU link descriptor 187*5113495bSYour Name <enum 2 mpdu_link_descriptor> The address points to an MPDU 188*5113495bSYour Name link descriptor 189*5113495bSYour Name <enum 3 msdu_ext_descriptor > The address points to an MSDU 190*5113495bSYour Name extension descriptor. 191*5113495bSYour Name In case BM finds this one in a release ring, it passes it 192*5113495bSYour Name on to FW... 193*5113495bSYour Name <enum 4 queue_ext_descriptor> The address points to an TQM 194*5113495bSYour Name queue extension descriptor. WBM should treat this is the 195*5113495bSYour Name same way as a link descriptor. That is, put the 128 byte 196*5113495bSYour Name buffer back in the link buffer idle list. 197*5113495bSYour Name 198*5113495bSYour Name <legal 0-4> 199*5113495bSYour Name */ 200*5113495bSYour Name 201*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_OR_DESC_TYPE_OFFSET 0x00000008 202*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_OR_DESC_TYPE_LSB 6 203*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_OR_DESC_TYPE_MSB 8 204*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_OR_DESC_TYPE_MASK 0x000001c0 205*5113495bSYour Name 206*5113495bSYour Name 207*5113495bSYour Name /* Description RETURN_BUFFER_MANAGER 208*5113495bSYour Name 209*5113495bSYour Name 'Return_buffer_manager' field of the MSDU's buffer address 210*5113495bSYour Name info, for debug 211*5113495bSYour Name */ 212*5113495bSYour Name 213*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RETURN_BUFFER_MANAGER_OFFSET 0x00000008 214*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RETURN_BUFFER_MANAGER_LSB 9 215*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RETURN_BUFFER_MANAGER_MSB 12 216*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RETURN_BUFFER_MANAGER_MASK 0x00001e00 217*5113495bSYour Name 218*5113495bSYour Name 219*5113495bSYour Name /* Description TQM_RELEASE_REASON 220*5113495bSYour Name 221*5113495bSYour Name Consumer: WBM/SW/FW 222*5113495bSYour Name Producer: TQM 223*5113495bSYour Name 224*5113495bSYour Name Field only valid when Release_source_module is set to release_source_TQM 225*5113495bSYour Name 226*5113495bSYour Name 227*5113495bSYour Name (rr = Release Reason) 228*5113495bSYour Name <enum 0 tqm_rr_frame_acked> frame is removed because an 229*5113495bSYour Name ACK of BA for it was received 230*5113495bSYour Name <enum 1 tqm_rr_rem_cmd_rem> frame is removed because a remove 231*5113495bSYour Name command of type "Remove_mpdus" initiated by SW 232*5113495bSYour Name <enum 2 tqm_rr_rem_cmd_tx> frame is removed because a remove 233*5113495bSYour Name command of type "Remove_transmitted_mpdus" initiated by 234*5113495bSYour Name SW 235*5113495bSYour Name <enum 3 tqm_rr_rem_cmd_notx> frame is removed because a 236*5113495bSYour Name remove command of type "Remove_untransmitted_mpdus" initiated 237*5113495bSYour Name by SW 238*5113495bSYour Name <enum 4 tqm_rr_rem_cmd_aged> frame is removed because a 239*5113495bSYour Name remove command of type "Remove_aged_mpdus" or "Remove_aged_msdus" 240*5113495bSYour Name initiated by SW 241*5113495bSYour Name <enum 5 tqm_fw_reason1> frame is removed because a remove 242*5113495bSYour Name command where fw indicated that remove reason is fw_reason1 243*5113495bSYour Name 244*5113495bSYour Name <enum 6 tqm_fw_reason2> frame is removed because a remove 245*5113495bSYour Name command where fw indicated that remove reason is fw_reason1 246*5113495bSYour Name 247*5113495bSYour Name <enum 7 tqm_fw_reason3> frame is removed because a remove 248*5113495bSYour Name command where fw indicated that remove reason is fw_reason1 249*5113495bSYour Name 250*5113495bSYour Name <enum 8 tqm_rr_rem_cmd_disable_queue> frame is removed because 251*5113495bSYour Name a remove command of type "remove_mpdus_and_disable_queue" 252*5113495bSYour Name or "remove_msdus_and_disable_flow" initiated by SW 253*5113495bSYour Name <enum 9 tqm_rr_rem_cmd_till_nonmatching> frame is removed 254*5113495bSYour Name because remove command of type "remove_till_nonmatching_mpdu" 255*5113495bSYour Name initiated by SW 256*5113495bSYour Name <enum 10 tqm_rr_drop_threshold> frame is dropped at TQM 257*5113495bSYour Name entrance due to one of slow/medium/hard drop threshold criteria 258*5113495bSYour Name 259*5113495bSYour Name <enum 11 tqm_rr_link_desc_unavailable> frame is dropped 260*5113495bSYour Name at TQM entrance due to the WBM2TQM_LINK_RING having fewer 261*5113495bSYour Name descriptors than a threshold programmed in TQM 262*5113495bSYour Name <enum 12 tqm_rr_drop_or_invalid_msdu> frame is dropped at 263*5113495bSYour Name TQM entrance due to 'TQM_Drop_frame' being set or "null" 264*5113495bSYour Name MSDU flow pointer or MSDU flow pointer 'Flow_valid' being 265*5113495bSYour Name zero or MSDU_length being zero 266*5113495bSYour Name <enum 13 tqm_rr_multicast_drop> frame is dropped at TQM 267*5113495bSYour Name entrance due to 'TQM_Drop_frame' being set with 'TCL_drop_reason' 268*5113495bSYour Name set to TCL_multicast_drop_for_vdev. 269*5113495bSYour Name <enum 14 tqm_rr_vdev_mismatch_drop> frame is dropped at 270*5113495bSYour Name TQM entrance due to 'TQM_Drop_frame' being set with 'TCL_drop_reason' 271*5113495bSYour Name set to TCL_vdev_id_mismatch_drop. 272*5113495bSYour Name Waikiki v1 and Hamilton v2 used value 12 for this. 273*5113495bSYour Name 274*5113495bSYour Name <legal 0-14> 275*5113495bSYour Name */ 276*5113495bSYour Name 277*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TQM_RELEASE_REASON_OFFSET 0x00000008 278*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TQM_RELEASE_REASON_LSB 13 279*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TQM_RELEASE_REASON_MSB 16 280*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TQM_RELEASE_REASON_MASK 0x0001e000 281*5113495bSYour Name 282*5113495bSYour Name 283*5113495bSYour Name /* Description RBM_OVERRIDE_VALID 284*5113495bSYour Name 285*5113495bSYour Name This is set to 0 for Tx cases not involving reinjection, 286*5113495bSYour Name and set to 1 for TQM release cases requiring FW reinjection 287*5113495bSYour Name (HastingsPrime FR54309). 288*5113495bSYour Name 289*5113495bSYour Name When set to 1, WBM releases the MSDU buffers to FW and overrides 290*5113495bSYour Name the tx_rate_stats field with words 2 and 3 of the 'TX_MSDU_DETAILS' 291*5113495bSYour Name structure, for FW reinjection of these MSDUs (HastingsPrime 292*5113495bSYour Name FR54309). 293*5113495bSYour Name 294*5113495bSYour Name When releasing to host SW, this will be 0 if there is no 295*5113495bSYour Name misprogramming. 296*5113495bSYour Name <legal 0> 297*5113495bSYour Name */ 298*5113495bSYour Name 299*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RBM_OVERRIDE_VALID_OFFSET 0x00000008 300*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RBM_OVERRIDE_VALID_LSB 17 301*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RBM_OVERRIDE_VALID_MSB 17 302*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_RBM_OVERRIDE_VALID_MASK 0x00020000 303*5113495bSYour Name 304*5113495bSYour Name 305*5113495bSYour Name /* Description SW_BUFFER_COOKIE_11_0 306*5113495bSYour Name 307*5113495bSYour Name LSB 12 bits of the 'Sw_buffer_cookie' field of the MSDU's 308*5113495bSYour Name buffer address info used to fill 'Buffer_virt_addr_*,' 309*5113495bSYour Name for debug 310*5113495bSYour Name */ 311*5113495bSYour Name 312*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_BUFFER_COOKIE_11_0_OFFSET 0x00000008 313*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_BUFFER_COOKIE_11_0_LSB 18 314*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_BUFFER_COOKIE_11_0_MSB 29 315*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_BUFFER_COOKIE_11_0_MASK 0x3ffc0000 316*5113495bSYour Name 317*5113495bSYour Name 318*5113495bSYour Name /* Description COOKIE_CONVERSION_STATUS 319*5113495bSYour Name 320*5113495bSYour Name 0: 'Sw_buffer_cookie' not converted to 'Buffer_virt_addr' 321*5113495bSYour Name 322*5113495bSYour Name 1: 'Sw_buffer_cookie' coverted to 'Buffer_virt_addr' 323*5113495bSYour Name <legal 1> 324*5113495bSYour Name */ 325*5113495bSYour Name 326*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_COOKIE_CONVERSION_STATUS_OFFSET 0x00000008 327*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_COOKIE_CONVERSION_STATUS_LSB 30 328*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_COOKIE_CONVERSION_STATUS_MSB 30 329*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_COOKIE_CONVERSION_STATUS_MASK 0x40000000 330*5113495bSYour Name 331*5113495bSYour Name 332*5113495bSYour Name /* Description WBM_INTERNAL_ERROR 333*5113495bSYour Name 334*5113495bSYour Name Can only be set by WBM. 335*5113495bSYour Name 336*5113495bSYour Name Is set when WBM got a buffer pointer but the action was 337*5113495bSYour Name to push it to the idle link descriptor ring or do link related 338*5113495bSYour Name activity 339*5113495bSYour Name OR 340*5113495bSYour Name Is set when WBM got a link buffer pointer but the action 341*5113495bSYour Name was to push it to the buffer descriptor ring 342*5113495bSYour Name 343*5113495bSYour Name <legal all> 344*5113495bSYour Name */ 345*5113495bSYour Name 346*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_WBM_INTERNAL_ERROR_OFFSET 0x00000008 347*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_WBM_INTERNAL_ERROR_LSB 31 348*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_WBM_INTERNAL_ERROR_MSB 31 349*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_WBM_INTERNAL_ERROR_MASK 0x80000000 350*5113495bSYour Name 351*5113495bSYour Name 352*5113495bSYour Name /* Description TQM_STATUS_NUMBER 353*5113495bSYour Name 354*5113495bSYour Name Field only valid when Release_source_module is set to release_source_TQM 355*5113495bSYour Name 356*5113495bSYour Name 357*5113495bSYour Name The value in this field is equal to value of the 'TQM_CMD_Number' 358*5113495bSYour Name field from the TQM command or the 'TQM_add_cmd_Number' field 359*5113495bSYour Name from the TQM entrance ring descriptor LSB 24-bits. 360*5113495bSYour Name 361*5113495bSYour Name This field helps to correlate the statuses with the TQM 362*5113495bSYour Name commands. 363*5113495bSYour Name 364*5113495bSYour Name NOTE that SW could program this number to be equal to the 365*5113495bSYour Name PPDU_ID number in case direct correlation with the PPDU 366*5113495bSYour Name ID is desired 367*5113495bSYour Name 368*5113495bSYour Name <legal all> 369*5113495bSYour Name */ 370*5113495bSYour Name 371*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TQM_STATUS_NUMBER_OFFSET 0x0000000c 372*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TQM_STATUS_NUMBER_LSB 0 373*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TQM_STATUS_NUMBER_MSB 23 374*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TQM_STATUS_NUMBER_MASK 0x00ffffff 375*5113495bSYour Name 376*5113495bSYour Name 377*5113495bSYour Name /* Description TRANSMIT_COUNT 378*5113495bSYour Name 379*5113495bSYour Name Field only valid when Release_source_module is set to release_source_TQM 380*5113495bSYour Name 381*5113495bSYour Name 382*5113495bSYour Name The number of times this frame has been transmitted 383*5113495bSYour Name */ 384*5113495bSYour Name 385*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TRANSMIT_COUNT_OFFSET 0x0000000c 386*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TRANSMIT_COUNT_LSB 24 387*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TRANSMIT_COUNT_MSB 30 388*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TRANSMIT_COUNT_MASK 0x7f000000 389*5113495bSYour Name 390*5113495bSYour Name 391*5113495bSYour Name /* Description SW_RELEASE_DETAILS_VALID 392*5113495bSYour Name 393*5113495bSYour Name Consumer: SW 394*5113495bSYour Name Producer: WBM 395*5113495bSYour Name 396*5113495bSYour Name When set, some WBM specific release info for SW is valid. 397*5113495bSYour Name 398*5113495bSYour Name This is set when WMB got a 'release_msdu_list' command from 399*5113495bSYour Name TQM and the return buffer manager is not WMB. WBM will 400*5113495bSYour Name then de-aggregate all the MSDUs and pass them one at a time 401*5113495bSYour Name on to the 'buffer owner' 402*5113495bSYour Name 403*5113495bSYour Name <legal all> 404*5113495bSYour Name */ 405*5113495bSYour Name 406*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_RELEASE_DETAILS_VALID_OFFSET 0x0000000c 407*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_RELEASE_DETAILS_VALID_LSB 31 408*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_RELEASE_DETAILS_VALID_MSB 31 409*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_RELEASE_DETAILS_VALID_MASK 0x80000000 410*5113495bSYour Name 411*5113495bSYour Name 412*5113495bSYour Name /* Description ACK_FRAME_RSSI 413*5113495bSYour Name 414*5113495bSYour Name This field is only valid when the source is TQM. 415*5113495bSYour Name 416*5113495bSYour Name If this frame is removed as the result of the reception 417*5113495bSYour Name of an ACK or BA, this field indicates the RSSI of the received 418*5113495bSYour Name ACK or BA frame. 419*5113495bSYour Name 420*5113495bSYour Name When the frame is removed as result of a direct remove command 421*5113495bSYour Name from the SW, this field is set to 0x0 (which is never 422*5113495bSYour Name a valid value when real RSSI is available) 423*5113495bSYour Name 424*5113495bSYour Name <legal all> 425*5113495bSYour Name */ 426*5113495bSYour Name 427*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_ACK_FRAME_RSSI_OFFSET 0x00000010 428*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_ACK_FRAME_RSSI_LSB 0 429*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_ACK_FRAME_RSSI_MSB 7 430*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_ACK_FRAME_RSSI_MASK 0x000000ff 431*5113495bSYour Name 432*5113495bSYour Name 433*5113495bSYour Name /* Description FIRST_MSDU 434*5113495bSYour Name 435*5113495bSYour Name Field only valid when SW_release_details_valid is set. 436*5113495bSYour Name 437*5113495bSYour Name Consumer: SW 438*5113495bSYour Name Producer: WBM 439*5113495bSYour Name 440*5113495bSYour Name When set, this MSDU is the first MSDU pointed to in the 'release_msdu_list' 441*5113495bSYour Name command. 442*5113495bSYour Name <legal all> 443*5113495bSYour Name */ 444*5113495bSYour Name 445*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_FIRST_MSDU_OFFSET 0x00000010 446*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_FIRST_MSDU_LSB 8 447*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_FIRST_MSDU_MSB 8 448*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_FIRST_MSDU_MASK 0x00000100 449*5113495bSYour Name 450*5113495bSYour Name 451*5113495bSYour Name /* Description LAST_MSDU 452*5113495bSYour Name 453*5113495bSYour Name Field only valid when SW_release_details_valid is set. 454*5113495bSYour Name 455*5113495bSYour Name Consumer: SW 456*5113495bSYour Name Producer: WBM 457*5113495bSYour Name 458*5113495bSYour Name When set, this MSDU is the last MSDU pointed to in the 'release_msdu_list' 459*5113495bSYour Name command. 460*5113495bSYour Name <legal all> 461*5113495bSYour Name */ 462*5113495bSYour Name 463*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_LAST_MSDU_OFFSET 0x00000010 464*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_LAST_MSDU_LSB 9 465*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_LAST_MSDU_MSB 9 466*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_LAST_MSDU_MASK 0x00000200 467*5113495bSYour Name 468*5113495bSYour Name 469*5113495bSYour Name /* Description FW_TX_NOTIFY_FRAME 470*5113495bSYour Name 471*5113495bSYour Name Field only valid when SW_release_details_valid is set. 472*5113495bSYour Name 473*5113495bSYour Name Consumer: SW 474*5113495bSYour Name Producer: WBM 475*5113495bSYour Name 476*5113495bSYour Name This is the FW_tx_notify_frame field from the TX_MSDU_DETAILS 477*5113495bSYour Name for this frame from the MSDU link descriptor 478*5113495bSYour Name <legal all> 479*5113495bSYour Name */ 480*5113495bSYour Name 481*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_FW_TX_NOTIFY_FRAME_OFFSET 0x00000010 482*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_FW_TX_NOTIFY_FRAME_LSB 10 483*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_FW_TX_NOTIFY_FRAME_MSB 12 484*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_FW_TX_NOTIFY_FRAME_MASK 0x00001c00 485*5113495bSYour Name 486*5113495bSYour Name 487*5113495bSYour Name /* Description BUFFER_TIMESTAMP 488*5113495bSYour Name 489*5113495bSYour Name Field only valid when SW_release_details_valid is set. 490*5113495bSYour Name 491*5113495bSYour Name Consumer: SW 492*5113495bSYour Name Producer: WBM 493*5113495bSYour Name 494*5113495bSYour Name This is the Buffer_timestamp field from the TX_MSDU_DETAILS 495*5113495bSYour Name for this frame from the MSDU link descriptor. 496*5113495bSYour Name 497*5113495bSYour Name Timestamp in units determined by the UMCMN 'TX_TIMESTAMP_RESOLUTION_SELECT' 498*5113495bSYour Name register 499*5113495bSYour Name 500*5113495bSYour Name Waikiki v1 and Hamilton used units of 1024 µs. 501*5113495bSYour Name <legal all> 502*5113495bSYour Name */ 503*5113495bSYour Name 504*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_TIMESTAMP_OFFSET 0x00000010 505*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_TIMESTAMP_LSB 13 506*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_TIMESTAMP_MSB 31 507*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_BUFFER_TIMESTAMP_MASK 0xffffe000 508*5113495bSYour Name 509*5113495bSYour Name 510*5113495bSYour Name /* Description TX_RATE_STATS 511*5113495bSYour Name 512*5113495bSYour Name Consumer: TQM/SW 513*5113495bSYour Name Producer: SW/SCH(from TXPCU, PDG) /WBM (from RXDMA) 514*5113495bSYour Name 515*5113495bSYour Name Details for command execution tracking purposes. 516*5113495bSYour Name */ 517*5113495bSYour Name 518*5113495bSYour Name 519*5113495bSYour Name /* Description TX_RATE_STATS_INFO_VALID 520*5113495bSYour Name 521*5113495bSYour Name When set all other fields in this STRUCT contain valid info. 522*5113495bSYour Name 523*5113495bSYour Name 524*5113495bSYour Name When clear, none of the other fields contain valid info. 525*5113495bSYour Name 526*5113495bSYour Name <legal all> 527*5113495bSYour Name */ 528*5113495bSYour Name 529*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TX_RATE_STATS_INFO_VALID_OFFSET 0x00000014 530*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TX_RATE_STATS_INFO_VALID_LSB 0 531*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TX_RATE_STATS_INFO_VALID_MSB 0 532*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TX_RATE_STATS_INFO_VALID_MASK 0x00000001 533*5113495bSYour Name 534*5113495bSYour Name 535*5113495bSYour Name /* Description TRANSMIT_BW 536*5113495bSYour Name 537*5113495bSYour Name Field only valid when Tx_rate_stats_info_valid is set 538*5113495bSYour Name 539*5113495bSYour Name Indicates the BW of the upcoming transmission that shall 540*5113495bSYour Name likely start in about 3 -4 us on the medium 541*5113495bSYour Name 542*5113495bSYour Name <enum_type BW_ENUM> 543*5113495bSYour Name */ 544*5113495bSYour Name 545*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_BW_OFFSET 0x00000014 546*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_BW_LSB 1 547*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_BW_MSB 3 548*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_BW_MASK 0x0000000e 549*5113495bSYour Name 550*5113495bSYour Name 551*5113495bSYour Name /* Description TRANSMIT_PKT_TYPE 552*5113495bSYour Name 553*5113495bSYour Name Field only valid when Tx_rate_stats_info_valid is set 554*5113495bSYour Name 555*5113495bSYour Name Field filled in by PDG. 556*5113495bSYour Name Not valid when in SW transmit mode 557*5113495bSYour Name 558*5113495bSYour Name The packet type 559*5113495bSYour Name <enum_type PKT_TYPE_ENUM> 560*5113495bSYour Name */ 561*5113495bSYour Name 562*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_PKT_TYPE_OFFSET 0x00000014 563*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_PKT_TYPE_LSB 4 564*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_PKT_TYPE_MSB 7 565*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_PKT_TYPE_MASK 0x000000f0 566*5113495bSYour Name 567*5113495bSYour Name 568*5113495bSYour Name /* Description TRANSMIT_STBC 569*5113495bSYour Name 570*5113495bSYour Name Field only valid when Tx_rate_stats_info_valid is set 571*5113495bSYour Name 572*5113495bSYour Name Field filled in by PDG. 573*5113495bSYour Name Not valid when in SW transmit mode 574*5113495bSYour Name 575*5113495bSYour Name When set, STBC transmission rate was used. 576*5113495bSYour Name */ 577*5113495bSYour Name 578*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_STBC_OFFSET 0x00000014 579*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_STBC_LSB 8 580*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_STBC_MSB 8 581*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_STBC_MASK 0x00000100 582*5113495bSYour Name 583*5113495bSYour Name 584*5113495bSYour Name /* Description TRANSMIT_LDPC 585*5113495bSYour Name 586*5113495bSYour Name Field only valid when Tx_rate_stats_info_valid is set 587*5113495bSYour Name 588*5113495bSYour Name Field filled in by PDG. 589*5113495bSYour Name Not valid when in SW transmit mode 590*5113495bSYour Name 591*5113495bSYour Name When set, use LDPC transmission rates 592*5113495bSYour Name */ 593*5113495bSYour Name 594*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_LDPC_OFFSET 0x00000014 595*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_LDPC_LSB 9 596*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_LDPC_MSB 9 597*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_LDPC_MASK 0x00000200 598*5113495bSYour Name 599*5113495bSYour Name 600*5113495bSYour Name /* Description TRANSMIT_SGI 601*5113495bSYour Name 602*5113495bSYour Name Field only valid when Tx_rate_stats_info_valid is set 603*5113495bSYour Name 604*5113495bSYour Name Field filled in by PDG. 605*5113495bSYour Name Not valid when in SW transmit mode 606*5113495bSYour Name 607*5113495bSYour Name Specify the right GI for HE-Ranging NDPs (11az)/Short NDP. 608*5113495bSYour Name 609*5113495bSYour Name 610*5113495bSYour Name <enum 0 0_8_us_sgi > Legacy normal GI. Can also be used 611*5113495bSYour Name for HE 612*5113495bSYour Name <enum 1 0_4_us_sgi > Legacy short GI. Can also be used 613*5113495bSYour Name for HE 614*5113495bSYour Name <enum 2 1_6_us_sgi > HE related GI 615*5113495bSYour Name <enum 3 3_2_us_sgi > HE related GI 616*5113495bSYour Name <legal 0 - 3> 617*5113495bSYour Name */ 618*5113495bSYour Name 619*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_SGI_OFFSET 0x00000014 620*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_SGI_LSB 10 621*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_SGI_MSB 11 622*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_SGI_MASK 0x00000c00 623*5113495bSYour Name 624*5113495bSYour Name 625*5113495bSYour Name /* Description TRANSMIT_MCS 626*5113495bSYour Name 627*5113495bSYour Name Field only valid when Tx_rate_stats_info_valid is set 628*5113495bSYour Name 629*5113495bSYour Name Field filled in by PDG. 630*5113495bSYour Name Not valid when in SW transmit mode 631*5113495bSYour Name 632*5113495bSYour Name For details, refer to MCS_TYPE description 633*5113495bSYour Name <legal all> 634*5113495bSYour Name */ 635*5113495bSYour Name 636*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_MCS_OFFSET 0x00000014 637*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_MCS_LSB 12 638*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_MCS_MSB 15 639*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TRANSMIT_MCS_MASK 0x0000f000 640*5113495bSYour Name 641*5113495bSYour Name 642*5113495bSYour Name /* Description OFDMA_TRANSMISSION 643*5113495bSYour Name 644*5113495bSYour Name Field only valid when Tx_rate_stats_info_valid is set 645*5113495bSYour Name 646*5113495bSYour Name Field filled in by PDG. 647*5113495bSYour Name 648*5113495bSYour Name Set when the transmission was an OFDMA transmission (DL 649*5113495bSYour Name or UL). 650*5113495bSYour Name <legal all> 651*5113495bSYour Name */ 652*5113495bSYour Name 653*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_OFDMA_TRANSMISSION_OFFSET 0x00000014 654*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_OFDMA_TRANSMISSION_LSB 16 655*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_OFDMA_TRANSMISSION_MSB 16 656*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_OFDMA_TRANSMISSION_MASK 0x00010000 657*5113495bSYour Name 658*5113495bSYour Name 659*5113495bSYour Name /* Description TONES_IN_RU 660*5113495bSYour Name 661*5113495bSYour Name Field only valid when Tx_rate_stats_info_valid is set 662*5113495bSYour Name 663*5113495bSYour Name Field filled in by PDG. 664*5113495bSYour Name Not valid when in SW transmit mode 665*5113495bSYour Name 666*5113495bSYour Name The number of tones in the RU used. 667*5113495bSYour Name <legal all> 668*5113495bSYour Name */ 669*5113495bSYour Name 670*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TONES_IN_RU_OFFSET 0x00000014 671*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TONES_IN_RU_LSB 17 672*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TONES_IN_RU_MSB 28 673*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_TONES_IN_RU_MASK 0x1ffe0000 674*5113495bSYour Name 675*5113495bSYour Name 676*5113495bSYour Name /* Description RESERVED_0A 677*5113495bSYour Name 678*5113495bSYour Name <legal 0> 679*5113495bSYour Name */ 680*5113495bSYour Name 681*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_RESERVED_0A_OFFSET 0x00000014 682*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_RESERVED_0A_LSB 29 683*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_RESERVED_0A_MSB 31 684*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_RESERVED_0A_MASK 0xe0000000 685*5113495bSYour Name 686*5113495bSYour Name 687*5113495bSYour Name /* Description PPDU_TRANSMISSION_TSF 688*5113495bSYour Name 689*5113495bSYour Name Field only valid when Tx_rate_stats_info_valid is set 690*5113495bSYour Name 691*5113495bSYour Name Based on a HWSCH configuration register setting, this field 692*5113495bSYour Name either contains: 693*5113495bSYour Name 694*5113495bSYour Name Lower 32 bits of the TSF, snapshot of this value when transmission 695*5113495bSYour Name of the PPDU containing the frame finished. 696*5113495bSYour Name OR 697*5113495bSYour Name Lower 32 bits of the TSF, snapshot of this value when transmission 698*5113495bSYour Name of the PPDU containing the frame started 699*5113495bSYour Name 700*5113495bSYour Name <legal all> 701*5113495bSYour Name */ 702*5113495bSYour Name 703*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_PPDU_TRANSMISSION_TSF_OFFSET 0x00000018 704*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_PPDU_TRANSMISSION_TSF_LSB 0 705*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_PPDU_TRANSMISSION_TSF_MSB 31 706*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TX_RATE_STATS_PPDU_TRANSMISSION_TSF_MASK 0xffffffff 707*5113495bSYour Name 708*5113495bSYour Name 709*5113495bSYour Name /* Description SW_PEER_ID 710*5113495bSYour Name 711*5113495bSYour Name Field only valid when Release_source_module is set to release_source_TQM 712*5113495bSYour Name 713*5113495bSYour Name 714*5113495bSYour Name 1) Release of msdu buffer due to drop_frame = 1. Flow is 715*5113495bSYour Name not fetched and hence sw_peer_id and tid = 0 716*5113495bSYour Name buffer_or_desc_type = e_num 0 MSDU_rel_buffertqm_release_reason 717*5113495bSYour Name = e_num 1 tqm_rr_rem_cmd_rem 718*5113495bSYour Name 719*5113495bSYour Name 720*5113495bSYour Name 2) Release of msdu buffer due to Flow is not fetched and 721*5113495bSYour Name hence sw_peer_id and tid = 0 722*5113495bSYour Name buffer_or_desc_type = e_num 0 MSDU_rel_buffertqm_release_reason 723*5113495bSYour Name = e_num 1 tqm_rr_rem_cmd_rem 724*5113495bSYour Name 725*5113495bSYour Name 726*5113495bSYour Name 3) Release of msdu link due to remove_mpdu or acked_mpdu 727*5113495bSYour Name command. 728*5113495bSYour Name buffer_or_desc_type = e_num1 msdu_link_descriptortqm_release_reason 729*5113495bSYour Name can be:e_num 1 tqm_rr_rem_cmd_reme_num 2 tqm_rr_rem_cmd_tx 730*5113495bSYour Name 731*5113495bSYour Name e_num 3 tqm_rr_rem_cmd_notxe_num 4 tqm_rr_rem_cmd_aged (this 732*5113495bSYour Name e_num is used for REMOVE_MPDU as well as REMOVE_MSDU). 733*5113495bSYour Name 734*5113495bSYour Name Sw_peer_id from the TX_MSDU_FLOW descriptor or TX_MPDU_QUEUE 735*5113495bSYour Name descriptor 736*5113495bSYour Name <legal all> 737*5113495bSYour Name */ 738*5113495bSYour Name 739*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_PEER_ID_OFFSET 0x0000001c 740*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_PEER_ID_LSB 0 741*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_PEER_ID_MSB 15 742*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_PEER_ID_MASK 0x0000ffff 743*5113495bSYour Name 744*5113495bSYour Name 745*5113495bSYour Name /* Description TID 746*5113495bSYour Name 747*5113495bSYour Name Field only valid when Release_source_module is set to release_source_TQM 748*5113495bSYour Name 749*5113495bSYour Name 750*5113495bSYour Name 1) Release of msdu buffer due to drop_frame = 1. Flow is 751*5113495bSYour Name not fetched and hence sw_peer_id and tid = 0 752*5113495bSYour Name buffer_or_desc_type = e_num 0 MSDU_rel_buffertqm_release_reason 753*5113495bSYour Name = e_num 1 tqm_rr_rem_cmd_rem 754*5113495bSYour Name 755*5113495bSYour Name 756*5113495bSYour Name 2) Release of msdu buffer due to Flow is not fetched and 757*5113495bSYour Name hence sw_peer_id and tid = 0 758*5113495bSYour Name buffer_or_desc_type = e_num 0 MSDU_rel_buffertqm_release_reason 759*5113495bSYour Name = e_num 1 tqm_rr_rem_cmd_rem 760*5113495bSYour Name 761*5113495bSYour Name 762*5113495bSYour Name 3) Release of msdu link due to remove_mpdu or acked_mpdu 763*5113495bSYour Name command. 764*5113495bSYour Name buffer_or_desc_type = e_num1 msdu_link_descriptortqm_release_reason 765*5113495bSYour Name can be:e_num 1 tqm_rr_rem_cmd_reme_num 2 tqm_rr_rem_cmd_tx 766*5113495bSYour Name 767*5113495bSYour Name e_num 3 tqm_rr_rem_cmd_notxe_num 4 tqm_rr_rem_cmd_aged (this 768*5113495bSYour Name e_num is used for REMOVE_MPDU as well as REMOVE_MSDU). 769*5113495bSYour Name 770*5113495bSYour Name 771*5113495bSYour Name This field represents the TID from the TX_MSDU_FLOW descriptor 772*5113495bSYour Name or TX_MPDU_QUEUE descriptor 773*5113495bSYour Name 774*5113495bSYour Name <legal all> 775*5113495bSYour Name */ 776*5113495bSYour Name 777*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TID_OFFSET 0x0000001c 778*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TID_LSB 16 779*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TID_MSB 19 780*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_TID_MASK 0x000f0000 781*5113495bSYour Name 782*5113495bSYour Name 783*5113495bSYour Name /* Description SW_BUFFER_COOKIE_19_12 784*5113495bSYour Name 785*5113495bSYour Name MSB 8 bits of the 'Sw_buffer_cookie' field of the MSDU's 786*5113495bSYour Name buffer address info used to fill 'Buffer_virt_addr_*,' 787*5113495bSYour Name for debug. 788*5113495bSYour Name WBM shall have configuration to copy 'TQM_Status_Number_31_24' 789*5113495bSYour Name from the WBM input descriptor here instead. 790*5113495bSYour Name */ 791*5113495bSYour Name 792*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_BUFFER_COOKIE_19_12_OFFSET 0x0000001c 793*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_BUFFER_COOKIE_19_12_LSB 20 794*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_BUFFER_COOKIE_19_12_MSB 27 795*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_SW_BUFFER_COOKIE_19_12_MASK 0x0ff00000 796*5113495bSYour Name 797*5113495bSYour Name 798*5113495bSYour Name /* Description LOOPING_COUNT 799*5113495bSYour Name 800*5113495bSYour Name Consumer: WBM/SW/FW 801*5113495bSYour Name Producer: SW/TQM/RXDMA/REO/SWITCH 802*5113495bSYour Name 803*5113495bSYour Name If WBM_internal_error is set, this descriptor is sent to 804*5113495bSYour Name the dedicated 'WBM_ERROR_RELEASE' ring and Looping_count 805*5113495bSYour Name is used to indicate an error code. 806*5113495bSYour Name 807*5113495bSYour Name The values reported are documented further in the WBM MLD 808*5113495bSYour Name doc. 809*5113495bSYour Name 810*5113495bSYour Name If WBM_internal_error is not set, the following holds. 811*5113495bSYour Name 812*5113495bSYour Name A count value that indicates the number of times the producer 813*5113495bSYour Name of entries into the Buffer Manager Ring has looped around 814*5113495bSYour Name the ring. 815*5113495bSYour Name At initialization time, this value is set to 0. On the first 816*5113495bSYour Name loop, this value is set to 1. After the max value is reached 817*5113495bSYour Name allowed by the number of bits for this field, the count 818*5113495bSYour Name value continues with 0 again. 819*5113495bSYour Name 820*5113495bSYour Name In case SW is the consumer of the ring entries, it can use 821*5113495bSYour Name this field to figure out up to where the producer of entries 822*5113495bSYour Name has created new entries. This eliminates the need to check 823*5113495bSYour Name where the "head pointer' of the ring is located once the 824*5113495bSYour Name SW starts processing an interrupt indicating that new entries 825*5113495bSYour Name have been put into this ring... 826*5113495bSYour Name 827*5113495bSYour Name Also note that SW if it wants only needs to look at the 828*5113495bSYour Name LSB bit of this count value. 829*5113495bSYour Name <legal all> 830*5113495bSYour Name */ 831*5113495bSYour Name 832*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_LOOPING_COUNT_OFFSET 0x0000001c 833*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_LOOPING_COUNT_LSB 28 834*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_LOOPING_COUNT_MSB 31 835*5113495bSYour Name #define WBM2SW_COMPLETION_RING_TX_LOOPING_COUNT_MASK 0xf0000000 836*5113495bSYour Name 837*5113495bSYour Name 838*5113495bSYour Name 839*5113495bSYour Name #endif // WBM2SW_COMPLETION_RING_TX 840