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