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 _WBM_RELEASE_RING_H_ 27*5113495bSYour Name #define _WBM_RELEASE_RING_H_ 28*5113495bSYour Name #if !defined(__ASSEMBLER__) 29*5113495bSYour Name #endif 30*5113495bSYour Name 31*5113495bSYour Name #include "buffer_addr_info.h" 32*5113495bSYour Name #define NUM_OF_DWORDS_WBM_RELEASE_RING 8 33*5113495bSYour Name 34*5113495bSYour Name 35*5113495bSYour Name struct wbm_release_ring { 36*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 37*5113495bSYour Name struct buffer_addr_info released_buff_or_desc_addr_info; 38*5113495bSYour Name uint32_t release_source_module : 3, // [2:0] 39*5113495bSYour Name reserved_2a : 3, // [5:3] 40*5113495bSYour Name buffer_or_desc_type : 3, // [8:6] 41*5113495bSYour Name reserved_2b : 22, // [30:9] 42*5113495bSYour Name wbm_internal_error : 1; // [31:31] 43*5113495bSYour Name uint32_t reserved_3a : 32; // [31:0] 44*5113495bSYour Name uint32_t reserved_4a : 32; // [31:0] 45*5113495bSYour Name uint32_t reserved_5a : 32; // [31:0] 46*5113495bSYour Name uint32_t reserved_6a : 32; // [31:0] 47*5113495bSYour Name uint32_t reserved_7a : 28, // [27:0] 48*5113495bSYour Name looping_count : 4; // [31:28] 49*5113495bSYour Name #else 50*5113495bSYour Name struct buffer_addr_info released_buff_or_desc_addr_info; 51*5113495bSYour Name uint32_t wbm_internal_error : 1, // [31:31] 52*5113495bSYour Name reserved_2b : 22, // [30:9] 53*5113495bSYour Name buffer_or_desc_type : 3, // [8:6] 54*5113495bSYour Name reserved_2a : 3, // [5:3] 55*5113495bSYour Name release_source_module : 3; // [2:0] 56*5113495bSYour Name uint32_t reserved_3a : 32; // [31:0] 57*5113495bSYour Name uint32_t reserved_4a : 32; // [31:0] 58*5113495bSYour Name uint32_t reserved_5a : 32; // [31:0] 59*5113495bSYour Name uint32_t reserved_6a : 32; // [31:0] 60*5113495bSYour Name uint32_t looping_count : 4, // [31:28] 61*5113495bSYour Name reserved_7a : 28; // [27:0] 62*5113495bSYour Name #endif 63*5113495bSYour Name }; 64*5113495bSYour Name 65*5113495bSYour Name 66*5113495bSYour Name /* Description RELEASED_BUFF_OR_DESC_ADDR_INFO 67*5113495bSYour Name 68*5113495bSYour Name DO NOT USE. This may be a 'BUFFER_ADDR_INFO' structure or 69*5113495bSYour Name a 64-bit virtual address. 70*5113495bSYour Name */ 71*5113495bSYour Name 72*5113495bSYour Name 73*5113495bSYour Name /* Description BUFFER_ADDR_31_0 74*5113495bSYour Name 75*5113495bSYour Name Address (lower 32 bits) of the MSDU buffer OR MSDU_EXTENSION 76*5113495bSYour Name descriptor OR Link Descriptor 77*5113495bSYour Name 78*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 79*5113495bSYour Name <legal all> 80*5113495bSYour Name */ 81*5113495bSYour Name 82*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_BUFFER_ADDR_31_0_OFFSET 0x00000000 83*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_BUFFER_ADDR_31_0_LSB 0 84*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_BUFFER_ADDR_31_0_MSB 31 85*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_BUFFER_ADDR_31_0_MASK 0xffffffff 86*5113495bSYour Name 87*5113495bSYour Name 88*5113495bSYour Name /* Description BUFFER_ADDR_39_32 89*5113495bSYour Name 90*5113495bSYour Name Address (upper 8 bits) of the MSDU buffer OR MSDU_EXTENSION 91*5113495bSYour Name descriptor OR Link Descriptor 92*5113495bSYour Name 93*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 94*5113495bSYour Name <legal all> 95*5113495bSYour Name */ 96*5113495bSYour Name 97*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_BUFFER_ADDR_39_32_OFFSET 0x00000004 98*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_BUFFER_ADDR_39_32_LSB 0 99*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_BUFFER_ADDR_39_32_MSB 7 100*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_BUFFER_ADDR_39_32_MASK 0x000000ff 101*5113495bSYour Name 102*5113495bSYour Name 103*5113495bSYour Name /* Description RETURN_BUFFER_MANAGER 104*5113495bSYour Name 105*5113495bSYour Name Consumer: WBM 106*5113495bSYour Name Producer: SW/FW 107*5113495bSYour Name 108*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 109*5113495bSYour Name 110*5113495bSYour Name Indicates to which buffer manager the buffer OR MSDU_EXTENSION 111*5113495bSYour Name descriptor OR link descriptor that is being pointed to 112*5113495bSYour Name shall be returned after the frame has been processed. It 113*5113495bSYour Name is used by WBM for routing purposes. 114*5113495bSYour Name 115*5113495bSYour Name <enum 0 WBM_IDLE_BUF_LIST> This buffer shall be returned 116*5113495bSYour Name to the WMB buffer idle list 117*5113495bSYour Name <enum 1 WBM_CHIP0_IDLE_DESC_LIST> This buffer shall be returned 118*5113495bSYour Name to the WBM idle link descriptor idle list, where the chip 119*5113495bSYour Name 0 WBM is chosen in case of a multi-chip config 120*5113495bSYour Name <enum 2 WBM_CHIP1_IDLE_DESC_LIST> This buffer shall be returned 121*5113495bSYour Name to the chip 1 WBM idle link descriptor idle list 122*5113495bSYour Name <enum 3 WBM_CHIP2_IDLE_DESC_LIST> This buffer shall be returned 123*5113495bSYour Name to the chip 2 WBM idle link descriptor idle list 124*5113495bSYour Name <enum 12 WBM_CHIP3_IDLE_DESC_LIST> This buffer shall be 125*5113495bSYour Name returned to chip 3 WBM idle link descriptor idle list 126*5113495bSYour Name <enum 4 FW_BM> This buffer shall be returned to the FW 127*5113495bSYour Name <enum 5 SW0_BM> This buffer shall be returned to the SW, 128*5113495bSYour Name ring 0 129*5113495bSYour Name <enum 6 SW1_BM> This buffer shall be returned to the SW, 130*5113495bSYour Name ring 1 131*5113495bSYour Name <enum 7 SW2_BM> This buffer shall be returned to the SW, 132*5113495bSYour Name ring 2 133*5113495bSYour Name <enum 8 SW3_BM> This buffer shall be returned to the SW, 134*5113495bSYour Name ring 3 135*5113495bSYour Name <enum 9 SW4_BM> This buffer shall be returned to the SW, 136*5113495bSYour Name ring 4 137*5113495bSYour Name <enum 10 SW5_BM> This buffer shall be returned to the SW, 138*5113495bSYour Name ring 5 139*5113495bSYour Name <enum 11 SW6_BM> This buffer shall be returned to the SW, 140*5113495bSYour Name ring 6 141*5113495bSYour Name 142*5113495bSYour Name <legal 0-12> 143*5113495bSYour Name */ 144*5113495bSYour Name 145*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER_OFFSET 0x00000004 146*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER_LSB 8 147*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER_MSB 11 148*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER_MASK 0x00000f00 149*5113495bSYour Name 150*5113495bSYour Name 151*5113495bSYour Name /* Description SW_BUFFER_COOKIE 152*5113495bSYour Name 153*5113495bSYour Name Cookie field exclusively used by SW. 154*5113495bSYour Name 155*5113495bSYour Name In case of 'NULL' pointer, this field is set to 0 156*5113495bSYour Name 157*5113495bSYour Name HW ignores the contents, accept that it passes the programmed 158*5113495bSYour Name value on to other descriptors together with the physical 159*5113495bSYour Name address 160*5113495bSYour Name 161*5113495bSYour Name Field can be used by SW to for example associate the buffers 162*5113495bSYour Name physical address with the virtual address 163*5113495bSYour Name The bit definitions as used by SW are within SW HLD specification 164*5113495bSYour Name 165*5113495bSYour Name 166*5113495bSYour Name NOTE1: 167*5113495bSYour Name The three most significant bits can have a special meaning 168*5113495bSYour Name in case this struct is embedded in a TX_MPDU_DETAILS STRUCT, 169*5113495bSYour Name and field transmit_bw_restriction is set 170*5113495bSYour Name 171*5113495bSYour Name In case of NON punctured transmission: 172*5113495bSYour Name Sw_buffer_cookie[19:17] = 3'b000: 20 MHz TX only 173*5113495bSYour Name Sw_buffer_cookie[19:17] = 3'b001: 40 MHz TX only 174*5113495bSYour Name Sw_buffer_cookie[19:17] = 3'b010: 80 MHz TX only 175*5113495bSYour Name Sw_buffer_cookie[19:17] = 3'b011: 160 MHz TX only 176*5113495bSYour Name Sw_buffer_cookie[19:17] = 3'b101: 240 MHz TX only 177*5113495bSYour Name Sw_buffer_cookie[19:17] = 3'b100: 320 MHz TX only 178*5113495bSYour Name Sw_buffer_cookie[19:18] = 2'b11: reserved 179*5113495bSYour Name 180*5113495bSYour Name In case of punctured transmission: 181*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0000: pattern 0 only 182*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0001: pattern 1 only 183*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0010: pattern 2 only 184*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0011: pattern 3 only 185*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0100: pattern 4 only 186*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0101: pattern 5 only 187*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0110: pattern 6 only 188*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b0111: pattern 7 only 189*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b1000: pattern 8 only 190*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b1001: pattern 9 only 191*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b1010: pattern 10 only 192*5113495bSYour Name Sw_buffer_cookie[19:16] = 4'b1011: pattern 11 only 193*5113495bSYour Name Sw_buffer_cookie[19:18] = 2'b11: reserved 194*5113495bSYour Name 195*5113495bSYour Name Note: a punctured transmission is indicated by the presence 196*5113495bSYour Name of TLV TX_PUNCTURE_SETUP embedded in the scheduler TLV 197*5113495bSYour Name 198*5113495bSYour Name <legal all> 199*5113495bSYour Name */ 200*5113495bSYour Name 201*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_SW_BUFFER_COOKIE_OFFSET 0x00000004 202*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_SW_BUFFER_COOKIE_LSB 12 203*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_SW_BUFFER_COOKIE_MSB 31 204*5113495bSYour Name #define WBM_RELEASE_RING_RELEASED_BUFF_OR_DESC_ADDR_INFO_SW_BUFFER_COOKIE_MASK 0xfffff000 205*5113495bSYour Name 206*5113495bSYour Name 207*5113495bSYour Name /* Description RELEASE_SOURCE_MODULE 208*5113495bSYour Name 209*5113495bSYour Name Indicates which module initiated the release of this buffer 210*5113495bSYour Name or descriptor 211*5113495bSYour Name 212*5113495bSYour Name <enum 1 release_source_RXDMA> RXDMA released this buffer 213*5113495bSYour Name or descriptor 214*5113495bSYour Name <enum 2 release_source_REO> REO released this buffer or 215*5113495bSYour Name descriptor 216*5113495bSYour Name <enum 5 release_source_FW_RX> FW released this buffer or 217*5113495bSYour Name descriptor 218*5113495bSYour Name <enum 4 release_source_SW_RX> SW released this buffer or 219*5113495bSYour Name descriptor 220*5113495bSYour Name <enum 0 release_source_TQM> DO NOT USE 221*5113495bSYour Name <enum 3 release_source_FW_TX> DO NOT USE 222*5113495bSYour Name <enum 6 release_source_SW_TX> DO NOT USE 223*5113495bSYour Name <legal 0-6> 224*5113495bSYour Name */ 225*5113495bSYour Name 226*5113495bSYour Name #define WBM_RELEASE_RING_RELEASE_SOURCE_MODULE_OFFSET 0x00000008 227*5113495bSYour Name #define WBM_RELEASE_RING_RELEASE_SOURCE_MODULE_LSB 0 228*5113495bSYour Name #define WBM_RELEASE_RING_RELEASE_SOURCE_MODULE_MSB 2 229*5113495bSYour Name #define WBM_RELEASE_RING_RELEASE_SOURCE_MODULE_MASK 0x00000007 230*5113495bSYour Name 231*5113495bSYour Name 232*5113495bSYour Name /* Description RESERVED_2A 233*5113495bSYour Name 234*5113495bSYour Name This could be different fields depending on the structure. 235*5113495bSYour Name 236*5113495bSYour Name <legal all> 237*5113495bSYour Name */ 238*5113495bSYour Name 239*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_2A_OFFSET 0x00000008 240*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_2A_LSB 3 241*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_2A_MSB 5 242*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_2A_MASK 0x00000038 243*5113495bSYour Name 244*5113495bSYour Name 245*5113495bSYour Name /* Description BUFFER_OR_DESC_TYPE 246*5113495bSYour Name 247*5113495bSYour Name Consumer: WBM/SW/FW 248*5113495bSYour Name Producer: SW/TQM/RXDMA/REO/SWITCH 249*5113495bSYour Name 250*5113495bSYour Name Field only valid when WBM is marked as the return_buffer_manager 251*5113495bSYour Name in the Released_Buffer_address_info 252*5113495bSYour Name 253*5113495bSYour Name Indicates that type of buffer or descriptor is being released 254*5113495bSYour Name 255*5113495bSYour Name 256*5113495bSYour Name <enum 0 MSDU_rel_buffer> The address points to an MSDU buffer 257*5113495bSYour Name 258*5113495bSYour Name <enum 1 msdu_link_descriptor> The address points to an TX 259*5113495bSYour Name MSDU link descriptor 260*5113495bSYour Name <enum 2 mpdu_link_descriptor> The address points to an MPDU 261*5113495bSYour Name link descriptor 262*5113495bSYour Name <enum 3 msdu_ext_descriptor > The address points to an MSDU 263*5113495bSYour Name extension descriptor. 264*5113495bSYour Name In case BM finds this one in a release ring, it passes it 265*5113495bSYour Name on to FW... 266*5113495bSYour Name <enum 4 queue_ext_descriptor> The address points to an TQM 267*5113495bSYour Name queue extension descriptor. WBM should treat this is the 268*5113495bSYour Name same way as a link descriptor. That is, put the 128 byte 269*5113495bSYour Name buffer back in the link buffer idle list. 270*5113495bSYour Name 271*5113495bSYour Name TODO: Any restrictions? 272*5113495bSYour Name <legal 0-4> 273*5113495bSYour Name */ 274*5113495bSYour Name 275*5113495bSYour Name #define WBM_RELEASE_RING_BUFFER_OR_DESC_TYPE_OFFSET 0x00000008 276*5113495bSYour Name #define WBM_RELEASE_RING_BUFFER_OR_DESC_TYPE_LSB 6 277*5113495bSYour Name #define WBM_RELEASE_RING_BUFFER_OR_DESC_TYPE_MSB 8 278*5113495bSYour Name #define WBM_RELEASE_RING_BUFFER_OR_DESC_TYPE_MASK 0x000001c0 279*5113495bSYour Name 280*5113495bSYour Name 281*5113495bSYour Name /* Description RESERVED_2B 282*5113495bSYour Name 283*5113495bSYour Name This could be different fields depending on the structure. 284*5113495bSYour Name 285*5113495bSYour Name <legal all> 286*5113495bSYour Name */ 287*5113495bSYour Name 288*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_2B_OFFSET 0x00000008 289*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_2B_LSB 9 290*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_2B_MSB 30 291*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_2B_MASK 0x7ffffe00 292*5113495bSYour Name 293*5113495bSYour Name 294*5113495bSYour Name /* Description WBM_INTERNAL_ERROR 295*5113495bSYour Name 296*5113495bSYour Name Can only be set by WBM. 297*5113495bSYour Name 298*5113495bSYour Name Is set when WBM got a buffer pointer but the action was 299*5113495bSYour Name to push it to the idle link descriptor ring or do link related 300*5113495bSYour Name activity 301*5113495bSYour Name OR 302*5113495bSYour Name Is set when WBM got a link buffer pointer but the action 303*5113495bSYour Name was to push it to the buffer descriptor ring 304*5113495bSYour Name 305*5113495bSYour Name <legal all> 306*5113495bSYour Name */ 307*5113495bSYour Name 308*5113495bSYour Name #define WBM_RELEASE_RING_WBM_INTERNAL_ERROR_OFFSET 0x00000008 309*5113495bSYour Name #define WBM_RELEASE_RING_WBM_INTERNAL_ERROR_LSB 31 310*5113495bSYour Name #define WBM_RELEASE_RING_WBM_INTERNAL_ERROR_MSB 31 311*5113495bSYour Name #define WBM_RELEASE_RING_WBM_INTERNAL_ERROR_MASK 0x80000000 312*5113495bSYour Name 313*5113495bSYour Name 314*5113495bSYour Name /* Description RESERVED_3A 315*5113495bSYour Name 316*5113495bSYour Name This could be different fields depending on the structure. 317*5113495bSYour Name 318*5113495bSYour Name <legal all> 319*5113495bSYour Name */ 320*5113495bSYour Name 321*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_3A_OFFSET 0x0000000c 322*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_3A_LSB 0 323*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_3A_MSB 31 324*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_3A_MASK 0xffffffff 325*5113495bSYour Name 326*5113495bSYour Name 327*5113495bSYour Name /* Description RESERVED_4A 328*5113495bSYour Name 329*5113495bSYour Name This could be different fields depending on the structure. 330*5113495bSYour Name 331*5113495bSYour Name <legal all> 332*5113495bSYour Name */ 333*5113495bSYour Name 334*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_4A_OFFSET 0x00000010 335*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_4A_LSB 0 336*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_4A_MSB 31 337*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_4A_MASK 0xffffffff 338*5113495bSYour Name 339*5113495bSYour Name 340*5113495bSYour Name /* Description RESERVED_5A 341*5113495bSYour Name 342*5113495bSYour Name This could be different fields depending on the structure. 343*5113495bSYour Name 344*5113495bSYour Name <legal all> 345*5113495bSYour Name */ 346*5113495bSYour Name 347*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_5A_OFFSET 0x00000014 348*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_5A_LSB 0 349*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_5A_MSB 31 350*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_5A_MASK 0xffffffff 351*5113495bSYour Name 352*5113495bSYour Name 353*5113495bSYour Name /* Description RESERVED_6A 354*5113495bSYour Name 355*5113495bSYour Name This could be different fields depending on the structure. 356*5113495bSYour Name 357*5113495bSYour Name <legal all> 358*5113495bSYour Name */ 359*5113495bSYour Name 360*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_6A_OFFSET 0x00000018 361*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_6A_LSB 0 362*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_6A_MSB 31 363*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_6A_MASK 0xffffffff 364*5113495bSYour Name 365*5113495bSYour Name 366*5113495bSYour Name /* Description RESERVED_7A 367*5113495bSYour Name 368*5113495bSYour Name This could be different fields depending on the structure. 369*5113495bSYour Name 370*5113495bSYour Name <legal all> 371*5113495bSYour Name */ 372*5113495bSYour Name 373*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_7A_OFFSET 0x0000001c 374*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_7A_LSB 0 375*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_7A_MSB 27 376*5113495bSYour Name #define WBM_RELEASE_RING_RESERVED_7A_MASK 0x0fffffff 377*5113495bSYour Name 378*5113495bSYour Name 379*5113495bSYour Name /* Description LOOPING_COUNT 380*5113495bSYour Name 381*5113495bSYour Name Consumer: WBM/SW/FW 382*5113495bSYour Name Producer: SW/TQM/RXDMA/REO/SWITCH 383*5113495bSYour Name 384*5113495bSYour Name If WBM_internal_error is set, this descriptor is sent to 385*5113495bSYour Name the dedicated 'WBM_ERROR_RELEASE' ring and Looping_count 386*5113495bSYour Name is used to indicate an error code. 387*5113495bSYour Name 388*5113495bSYour Name The values reported are documented further in the WBM MLD 389*5113495bSYour Name doc. 390*5113495bSYour Name 391*5113495bSYour Name If WBM_internal_error is not set, the following holds. 392*5113495bSYour Name 393*5113495bSYour Name A count value that indicates the number of times the producer 394*5113495bSYour Name of entries into the Buffer Manager Ring has looped around 395*5113495bSYour Name the ring. 396*5113495bSYour Name At initialization time, this value is set to 0. On the first 397*5113495bSYour Name loop, this value is set to 1. After the max value is reached 398*5113495bSYour Name allowed by the number of bits for this field, the count 399*5113495bSYour Name value continues with 0 again. 400*5113495bSYour Name 401*5113495bSYour Name In case SW is the consumer of the ring entries, it can use 402*5113495bSYour Name this field to figure out up to where the producer of entries 403*5113495bSYour Name has created new entries. This eliminates the need to check 404*5113495bSYour Name where the "head pointer' of the ring is located once the 405*5113495bSYour Name SW starts processing an interrupt indicating that new entries 406*5113495bSYour Name have been put into this ring... 407*5113495bSYour Name 408*5113495bSYour Name Also note that SW if it wants only needs to look at the 409*5113495bSYour Name LSB bit of this count value. 410*5113495bSYour Name <legal all> 411*5113495bSYour Name */ 412*5113495bSYour Name 413*5113495bSYour Name #define WBM_RELEASE_RING_LOOPING_COUNT_OFFSET 0x0000001c 414*5113495bSYour Name #define WBM_RELEASE_RING_LOOPING_COUNT_LSB 28 415*5113495bSYour Name #define WBM_RELEASE_RING_LOOPING_COUNT_MSB 31 416*5113495bSYour Name #define WBM_RELEASE_RING_LOOPING_COUNT_MASK 0xf0000000 417*5113495bSYour Name 418*5113495bSYour Name 419*5113495bSYour Name 420*5113495bSYour Name #endif // WBM_RELEASE_RING 421