12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568 |
- /*
- * Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
- *
- * Permission to use, copy, modify, and/or distribute this software for
- * any purpose with or without fee is hereby granted, provided that the
- * above copyright notice and this permission notice appear in all
- * copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
- * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
- #ifndef _WBM_RELEASE_RING_H_
- #define _WBM_RELEASE_RING_H_
- #if !defined(__ASSEMBLER__)
- #endif
- #include "buffer_addr_info.h"
- #include "tx_rate_stats_info.h"
- // ################ START SUMMARY #################
- //
- // Dword Fields
- // 0-1 struct buffer_addr_info released_buff_or_desc_addr_info;
- // 2 release_source_module[2:0], bm_action[5:3], buffer_or_desc_type[8:6], first_msdu_index[12:9], tqm_release_reason[15:13], rxdma_push_reason[17:16], rxdma_error_code[22:18], reo_push_reason[24:23], reo_error_code[29:25], wbm_internal_error[30], reserved_2[31]
- // 3 tqm_status_number[23:0], transmit_count[30:24], reserved_3a[31]
- // 4 ack_frame_rssi[7:0], sw_release_details_valid[8], first_msdu[9], last_msdu[10], msdu_part_of_amsdu[11], fw_tx_notify_frame[12], buffer_timestamp[31:13]
- // 5-6 struct tx_rate_stats_info tx_rate_stats;
- // 7 sw_peer_id[15:0], tid[19:16], ring_id[27:20], looping_count[31:28]
- //
- // ################ END SUMMARY #################
- #define NUM_OF_DWORDS_WBM_RELEASE_RING 8
- struct wbm_release_ring {
- struct buffer_addr_info released_buff_or_desc_addr_info;
- uint32_t release_source_module : 3, //[2:0]
- bm_action : 3, //[5:3]
- buffer_or_desc_type : 3, //[8:6]
- first_msdu_index : 4, //[12:9]
- tqm_release_reason : 3, //[15:13]
- rxdma_push_reason : 2, //[17:16]
- rxdma_error_code : 5, //[22:18]
- reo_push_reason : 2, //[24:23]
- reo_error_code : 5, //[29:25]
- wbm_internal_error : 1, //[30]
- reserved_2 : 1; //[31]
- uint32_t tqm_status_number : 24, //[23:0]
- transmit_count : 7, //[30:24]
- reserved_3a : 1; //[31]
- uint32_t ack_frame_rssi : 8, //[7:0]
- sw_release_details_valid : 1, //[8]
- first_msdu : 1, //[9]
- last_msdu : 1, //[10]
- msdu_part_of_amsdu : 1, //[11]
- fw_tx_notify_frame : 1, //[12]
- buffer_timestamp : 19; //[31:13]
- struct tx_rate_stats_info tx_rate_stats;
- uint32_t sw_peer_id : 16, //[15:0]
- tid : 4, //[19:16]
- ring_id : 8, //[27:20]
- looping_count : 4; //[31:28]
- };
- /*
- struct buffer_addr_info released_buff_or_desc_addr_info
-
- Consumer: WBM/SW/FW
-
- Producer: SW/TQM/RXDMA/REO/SWITCH
-
-
-
- Details of the physical address of the buffer or link
- descriptor that is being released. Note that within this
- descriptor, WBM will look at the 'owner' of the released
- buffer/descriptor and forward it to SW/FW is WBM is not the
- owner.
- release_source_module
-
- Indicates which module initiated the release of this
- buffer or descriptor
-
-
-
- <enum 0 release_source_TQM> TQM released this buffer or
- descriptor
-
- <enum 1 release_source_RXDMA> RXDMA released this buffer
- or descriptor
-
- <enum 2 release_source_REO> REO released this buffer or
- descriptor
-
- <enum 3 release_source_FW> FW released this buffer or
- descriptor
-
- <enum 4 release_source_SW> SW released this buffer or
- descriptor
-
- <legal 0-4>
- bm_action
-
- Consumer: WBM/SW/FW
-
- Producer: SW/TQM/RXDMA/REO/SWITCH
-
-
-
- Field only valid when the field return_buffer_manager in
- the Released_buff_or_desc_addr_info indicates:
-
- WBM_IDLE_BUF_LIST or
-
- WBM_IDLE_DESC_LIST
-
-
-
- An MSDU extension descriptor shall never be marked as
-
-
-
- <enum 0 Put_in_idle_list> Put the buffer or descriptor
- back in the idle list. In case of MSDU or MDPU link
- descriptor, BM does not need to check to release any
- individual MSDU buffers
-
-
-
- <enum 1 release_msdu_list > This BM action can only be
- used in combination with buffer_or_desc_type being
- msdu_link_descriptor. Field first_msdu_index points out
- which MSDU pointer in the MSDU link descriptor is the first
- of an MPDU that is released.
-
- BM shall release all the MSDU buffers linked to this
- first MSDU buffer pointer. All related MSDU buffer pointer
- entries shall be set to value 0, which represents the 'NULL
- pointer. When all MSDU buffer pointers in the MSDU link
- descriptor are 'NULL', the MSDU link descriptor itself shall
- also be released.
-
-
-
- <enum 2 Put_in_idle_list_expanded> CURRENTLY NOT
- IMPLEMENTED....
-
- Put the buffer or descriptor back in the idle list. Only
- valid in combination with buffer_or_desc_type indicating
- MDPU_link_descriptor.
-
- BM shall release the MPDU link descriptor as well as all
- MSDUs that are linked to the MPDUs in this descriptor.
-
-
-
- <legal 0-2>
- buffer_or_desc_type
-
- Consumer: WBM/SW/FW
-
- Producer: SW/TQM/RXDMA/REO/SWITCH
-
-
-
- Field only valid when WBM is marked as the
- return_buffer_manager in the Released_Buffer_address_info
-
-
-
- Indicates that type of buffer or descriptor is being
- released
-
-
-
- <enum 0 MSDU_rel_buffer> The address points to an MSDU
- buffer
-
- <enum 1 msdu_link_descriptor> The address points to an
- TX MSDU link descriptor
-
- <enum 2 mpdu_link_descriptor> The address points to an
- MPDU link descriptor
-
- <enum 3 msdu_ext_descriptor > The address points to an
- MSDU extension descriptor.
-
- In case BM finds this one in a release ring, it passes
- it on to FW...
-
- <enum 4 queue_ext_descriptor> The address points to an
- TQM queue extension descriptor. WBM should treat this is the
- same way as a link descriptor. That is, put the 128 byte
- buffer back in the link buffer idle list.
-
-
-
- <legal 0-4>
- first_msdu_index
-
- Consumer: WBM/SW/FW
-
- Producer: SW/TQM/RXDMA/REO/SWITCH
-
-
-
- Field only valid for the bm_action release_msdu_list.
-
-
-
- The index of the first MSDU in an MSDU link descriptor
- all belonging to the same MPDU.
-
-
-
- <legal 0-6>
- tqm_release_reason
-
- Consumer: WBM/SW/FW
-
- Producer: TQM
-
-
-
- Field only valid when Release_source_module is set to
- release_source_TQM
-
-
-
- (rr = Release Reason)
-
- <enum 0 tqm_rr_frame_acked> frame is removed because an
- ACK of BA for it was received
-
- <enum 1 tqm_rr_rem_cmd_rem> frame is removed because a
- remove command of type Remove_mpdus initiated by SW
-
- <enum 2 tqm_rr_rem_cmd_tx> frame is removed because a
- remove command of type Remove_transmitted_mpdus initiated by
- SW
-
- <enum 3 tqm_rr_rem_cmd_notx> frame is removed because a
- remove command of type Remove_untransmitted_mpdus initiated
- by SW
-
- <enum 4 tqm_rr_rem_cmd_aged> frame is removed because a
- remove command of type Remove_aged_mpdus or
- Remove_aged_msdus initiated by SW
-
- <enum 5 tqm_fw_reason1> frame is removed because a
- remove command where fw indicated that remove reason is
- fw_reason1
-
- <enum 6 tqm_fw_reason2> frame is removed because a
- remove command where fw indicated that remove reason is
- fw_reason1
-
- <enum 7 tqm_fw_reason3> frame is removed because a
- remove command where fw indicated that remove reason is
- fw_reason1
-
-
-
- <legal 0-7>
- rxdma_push_reason
-
- Field only valid when Release_source_module is set to
- release_source_RXDMA
-
-
-
- Indicates why rxdma pushed the frame to this ring
-
-
-
- <enum 0 rxdma_error_detected> RXDMA detected an error an
- pushed this frame to this queue
-
- <enum 1 rxdma_routing_instruction> RXDMA pushed the
- frame to this queue per received routing instructions. No
- error within RXDMA was detected
-
- <enum 2 rxdma_rx_flush> RXDMA received an RX_FLUSH. As a
- result the MSDU link descriptor might not have the
- last_msdu_in_mpdu_flag set, but instead WBM might just see a
- NULL pointer in the MSDU link descriptor. This is to be
- considered a normal condition for this scenario.
-
-
-
- <legal 0 - 2>
- rxdma_error_code
-
- Field only valid when 'rxdma_push_reason' set to
- 'rxdma_error_detected'.
-
-
-
- <enum 0 rxdma_overflow_err>MPDU frame is not complete
- due to a FIFO overflow error in RXPCU.
-
- <enum 1 rxdma_mpdu_length_err>MPDU frame is not complete
- due to receiving incomplete MPDU from the PHY
-
-
- <enum 3 rxdma_decrypt_err>CRYPTO reported a decryption
- error or CRYPTO received an encrypted frame, but did not get
- a valid corresponding key id in the peer entry.
-
- <enum 4 rxdma_tkip_mic_err>CRYPTO reported a TKIP MIC
- error
-
- <enum 5 rxdma_unecrypted_err>CRYPTO reported an
- unencrypted frame error when encrypted was expected
-
- <enum 6 rxdma_msdu_len_err>RX OLE reported an MSDU
- length error
-
- <enum 7 rxdma_msdu_limit_err>RX OLE reported that max
- number of MSDUs allowed in an MPDU got exceeded
-
- <enum 8 rxdma_wifi_parse_err>RX OLE reported a parsing
- error
-
- <enum 9 rxdma_amsdu_parse_err>RX OLE reported an A-MSDU
- parsing error
-
- <enum 10 rxdma_sa_timeout_err>RX OLE reported a timeout
- during SA search
-
- <enum 11 rxdma_da_timeout_err>RX OLE reported a timeout
- during DA search
-
- <enum 12 rxdma_flow_timeout_err>RX OLE reported a
- timeout during flow search
-
- <enum 13 Rxdma_flush_request>RXDMA received a flush
- request
- reo_push_reason
-
- Field only valid when Release_source_module is set to
- release_source_REO
-
-
-
- Indicates why REO pushed the frame to this release ring
-
-
-
- <enum 0 reo_error_detected> Reo detected an error an
- pushed this frame to this queue
-
- <enum 1 reo_routing_instruction> Reo pushed the frame to
- this queue per received routing instructions. No error
- within REO was detected
-
-
-
- <legal 0 - 1>
- reo_error_code
-
- Field only valid when 'Reo_push_reason' set to
- 'reo_error_detected'.
-
-
-
- <enum 0 reo_queue_desc_addr_zero> Reo queue descriptor
- provided in the REO_ENTRANCE ring is set to 0
-
- <enum 1 reo_queue_desc_not_valid> Reo queue descriptor
- valid bit is NOT set
-
- <enum 2 ampdu_in_non_ba> AMPDU frame received without BA
- session having been setup.
-
- <enum 3 non_ba_duplicate> Non-BA session, SN equal to
- SSN, Retry bit set: duplicate frame
-
- <enum 4 ba_duplicate> BA session, duplicate frame
-
- <enum 5 regular_frame_2k_jump> A normal (management/data
- frame) received with 2K jump in SN
-
- <enum 6 bar_frame_2k_jump> A bar received with 2K jump
- in SSN
-
- <enum 7 regular_frame_OOR> A normal (management/data
- frame) received with SN falling within the OOR window
-
- <enum 8 bar_frame_OOR> A bar received with SSN falling
- within the OOR window
-
- <enum 9 bar_frame_no_ba_session> A bar received without
- a BA session
-
- <enum 10 bar_frame_sn_equals_ssn> A bar received with
- SSN equal to SN
-
- <enum 11 pn_check_failed> PN Check Failed packet.
-
- <enum 12 2k_error_handling_flag_set> Frame is forwarded
- as a result of the 'Seq_2k_error_detected_flag' been set in
- the REO Queue descriptor
-
- <enum 13 pn_error_handling_flag_set> Frame is forwarded
- as a result of the 'pn_error_detected_flag' been set in the
- REO Queue descriptor
-
- <enum 14 queue_descriptor_blocked_set> Frame is
- forwarded as a result of the queue descriptor(address) being
- blocked as SW/FW seems to be currently in the process of
- making updates to this descriptor...
-
-
-
- <legal 0-14>
- wbm_internal_error
-
- Can only be set by WBM.
-
-
-
- Is set when WBM got a buffer pointer but the action was
- to push it to the idle link descriptor ring or do link
- related activity
-
- OR
-
- Is set when WBM got a link buffer pointer but the action
- was to push it to the buffer descriptor ring
-
-
-
- <legal all>
- reserved_2
-
- <legal 0>
- tqm_status_number
-
- Field only valid when Release_source_module is set to
- release_source_TQM
-
-
-
- The value in this field is equal to value of the
- 'TQM_CMD_Number' field the TQM command or the
- 'TQM_add_cmd_Number' field from the TQM entrance ring
- descriptor
-
-
-
- This field helps to correlate the statuses with the TQM
- commands.
-
-
-
- NOTE that SW could program this number to be equal to
- the PPDU_ID number in case direct correlation with the PPDU
- ID is desired
-
-
-
- <legal all>
- transmit_count
-
- Field only valid when Release_source_module is set to
- release_source_TQM
-
-
-
- The number of times this frame has been transmitted
- reserved_3a
-
- <legal 0>
- ack_frame_rssi
-
- This field is only valid when the source is TQM.
-
-
-
- If this frame is removed as the result of the reception
- of an ACK or BA, this field indicates the RSSI of the
- received ACK or BA frame.
-
-
-
- When the frame is removed as result of a direct remove
- command from the SW, this field is set to 0x0 (which is
- never a valid value when real RSSI is available)
-
-
-
- <legal all>
- sw_release_details_valid
-
- Consumer: SW
-
- Producer: WBM
-
-
-
- When set, some WBM specific release info for SW is
- valid.
-
- This is set when WMB got a 'release_msdu_list' command
- from TQM and the return buffer manager is not WMB. WBM will
- then de-aggregate all the MSDUs and pass them one at a time
- on to the 'buffer owner'
-
-
-
- <legal all>
- first_msdu
-
- Field only valid when SW_release_details_valid is set.
-
-
-
- Consumer: SW
-
- Producer: WBM
-
-
-
- When set, this MSDU is the first MSDU pointed to in the
- 'release_msdu_list' command.
-
-
-
- <legal all>
- last_msdu
-
- Field only valid when SW_release_details_valid is set.
-
-
-
- Consumer: SW
-
- Producer: WBM
-
-
-
- When set, this MSDU is the last MSDU pointed to in the
- 'release_msdu_list' command.
-
-
-
- <legal all>
- msdu_part_of_amsdu
-
- Field only valid when SW_release_details_valid is set.
-
-
-
- Consumer: SW
-
- Producer: WBM
-
-
-
- When set, this MSDU was part of an A-MSDU in MPDU
-
- <legal all>
- fw_tx_notify_frame
-
- Field only valid when SW_release_details_valid is set.
-
-
-
- Consumer: SW
-
- Producer: WBM
-
-
-
- This is the FW_tx_notify_frame field from the
-
- <legal all>
- buffer_timestamp
-
- Field only valid when SW_release_details_valid is set.
-
-
-
- Consumer: SW
-
- Producer: WBM
-
-
-
- This is the Buffer_timestamp field from the
-
- <legal all>
- struct tx_rate_stats_info tx_rate_stats
-
- Consumer: TQM
-
- Producer: SW/SCH(from TXPCU, PDG)
-
-
-
- Details for command execution tracking purposes.
- sw_peer_id
-
- Field only valid when Release_source_module is set to
- release_source_TQM
-
-
-
- 1) Release of msdu buffer due to drop_frame = 1. Flow is
- not fetched and hence sw_peer_id and tid = 0
-
- buffer_or_desc_type = e_num 0
- MSDU_rel_buffertqm_release_reason = e_num 1
- tqm_rr_rem_cmd_rem
-
-
-
-
-
- 2) Release of msdu buffer due to Flow is not fetched and
- hence sw_peer_id and tid = 0
-
- buffer_or_desc_type = e_num 0
- MSDU_rel_buffertqm_release_reason = e_num 1
- tqm_rr_rem_cmd_rem
-
-
-
-
-
- 3) Release of msdu link due to remove_mpdu or acked_mpdu
- command.
-
- buffer_or_desc_type = e_num1
- msdu_link_descriptortqm_release_reason can be:e_num 1
- tqm_rr_rem_cmd_reme_num 2 tqm_rr_rem_cmd_tx
-
- e_num 3 tqm_rr_rem_cmd_notxe_num 4 tqm_rr_rem_cmd_aged
-
-
-
- Sw_peer_id from the TX_MSDU_FLOW descriptor or
- TX_MPDU_QUEUE descriptor
-
- <legal all>
- tid
-
- Field only valid when Release_source_module is set to
- release_source_TQM
-
-
-
- 1) Release of msdu buffer due to drop_frame = 1. Flow is
- not fetched and hence sw_peer_id and tid = 0
-
- buffer_or_desc_type = e_num 0
- MSDU_rel_buffertqm_release_reason = e_num 1
- tqm_rr_rem_cmd_rem
-
-
-
-
-
- 2) Release of msdu buffer due to Flow is not fetched and
- hence sw_peer_id and tid = 0
-
- buffer_or_desc_type = e_num 0
- MSDU_rel_buffertqm_release_reason = e_num 1
- tqm_rr_rem_cmd_rem
-
-
-
-
-
- 3) Release of msdu link due to remove_mpdu or acked_mpdu
- command.
-
- buffer_or_desc_type = e_num1
- msdu_link_descriptortqm_release_reason can be:e_num 1
- tqm_rr_rem_cmd_reme_num 2 tqm_rr_rem_cmd_tx
-
- e_num 3 tqm_rr_rem_cmd_notxe_num 4 tqm_rr_rem_cmd_aged
-
-
-
-
-
- This field represents the TID from the TX_MSDU_FLOW
- descriptor or TX_MPDU_QUEUE descriptor
-
-
-
- <legal all>
- ring_id
-
- Consumer: TQM/REO/RXDMA/SW
-
- Producer: SRNG (of RXDMA)
-
-
-
- For debugging.
-
- This field is filled in by the SRNG module.
-
- It help to identify the ring that is being looked <legal
- all>
- looping_count
-
- Consumer: WBM/SW/FW
-
- Producer: SW/TQM/RXDMA/REO/SWITCH
-
-
-
- A count value that indicates the number of times the
- producer of entries into the Buffer Manager Ring has looped
- around the ring.
-
- At initialization time, this value is set to 0. On the
- first loop, this value is set to 1. After the max value is
- reached allowed by the number of bits for this field, the
- count value continues with 0 again.
-
-
-
- In case SW is the consumer of the ring entries, it can
- use this field to figure out up to where the producer of
- entries has created new entries. This eliminates the need to
- check where the head pointer' of the ring is located once
- the SW starts processing an interrupt indicating that new
- entries have been put into this ring...
-
-
-
- Also note that SW if it wants only needs to look at the
- LSB bit of this count value.
-
- <legal all>
- */
- #define WBM_RELEASE_RING_0_BUFFER_ADDR_INFO_RELEASED_BUFF_OR_DESC_ADDR_INFO_OFFSET 0x00000000
- #define WBM_RELEASE_RING_0_BUFFER_ADDR_INFO_RELEASED_BUFF_OR_DESC_ADDR_INFO_LSB 28
- #define WBM_RELEASE_RING_0_BUFFER_ADDR_INFO_RELEASED_BUFF_OR_DESC_ADDR_INFO_MASK 0xffffffff
- #define WBM_RELEASE_RING_1_BUFFER_ADDR_INFO_RELEASED_BUFF_OR_DESC_ADDR_INFO_OFFSET 0x00000004
- #define WBM_RELEASE_RING_1_BUFFER_ADDR_INFO_RELEASED_BUFF_OR_DESC_ADDR_INFO_LSB 28
- #define WBM_RELEASE_RING_1_BUFFER_ADDR_INFO_RELEASED_BUFF_OR_DESC_ADDR_INFO_MASK 0xffffffff
- /* Description WBM_RELEASE_RING_2_RELEASE_SOURCE_MODULE
-
- Indicates which module initiated the release of this
- buffer or descriptor
-
-
-
- <enum 0 release_source_TQM> TQM released this buffer or
- descriptor
-
- <enum 1 release_source_RXDMA> RXDMA released this buffer
- or descriptor
-
- <enum 2 release_source_REO> REO released this buffer or
- descriptor
-
- <enum 3 release_source_FW> FW released this buffer or
- descriptor
-
- <enum 4 release_source_SW> SW released this buffer or
- descriptor
-
- <legal 0-4>
- */
- #define WBM_RELEASE_RING_2_RELEASE_SOURCE_MODULE_OFFSET 0x00000008
- #define WBM_RELEASE_RING_2_RELEASE_SOURCE_MODULE_LSB 0
- #define WBM_RELEASE_RING_2_RELEASE_SOURCE_MODULE_MASK 0x00000007
- /* Description WBM_RELEASE_RING_2_BM_ACTION
-
- Consumer: WBM/SW/FW
-
- Producer: SW/TQM/RXDMA/REO/SWITCH
-
-
-
- Field only valid when the field return_buffer_manager in
- the Released_buff_or_desc_addr_info indicates:
-
- WBM_IDLE_BUF_LIST or
-
- WBM_IDLE_DESC_LIST
-
-
-
- An MSDU extension descriptor shall never be marked as
-
-
-
- <enum 0 Put_in_idle_list> Put the buffer or descriptor
- back in the idle list. In case of MSDU or MDPU link
- descriptor, BM does not need to check to release any
- individual MSDU buffers
-
-
-
- <enum 1 release_msdu_list > This BM action can only be
- used in combination with buffer_or_desc_type being
- msdu_link_descriptor. Field first_msdu_index points out
- which MSDU pointer in the MSDU link descriptor is the first
- of an MPDU that is released.
-
- BM shall release all the MSDU buffers linked to this
- first MSDU buffer pointer. All related MSDU buffer pointer
- entries shall be set to value 0, which represents the 'NULL
- pointer. When all MSDU buffer pointers in the MSDU link
- descriptor are 'NULL', the MSDU link descriptor itself shall
- also be released.
-
-
-
- <enum 2 Put_in_idle_list_expanded> CURRENTLY NOT
- IMPLEMENTED....
-
- Put the buffer or descriptor back in the idle list. Only
- valid in combination with buffer_or_desc_type indicating
- MDPU_link_descriptor.
-
- BM shall release the MPDU link descriptor as well as all
- MSDUs that are linked to the MPDUs in this descriptor.
-
-
-
- <legal 0-2>
- */
- #define WBM_RELEASE_RING_2_BM_ACTION_OFFSET 0x00000008
- #define WBM_RELEASE_RING_2_BM_ACTION_LSB 3
- #define WBM_RELEASE_RING_2_BM_ACTION_MASK 0x00000038
- /* Description WBM_RELEASE_RING_2_BUFFER_OR_DESC_TYPE
-
- Consumer: WBM/SW/FW
-
- Producer: SW/TQM/RXDMA/REO/SWITCH
-
-
-
- Field only valid when WBM is marked as the
- return_buffer_manager in the Released_Buffer_address_info
-
-
-
- Indicates that type of buffer or descriptor is being
- released
-
-
-
- <enum 0 MSDU_rel_buffer> The address points to an MSDU
- buffer
-
- <enum 1 msdu_link_descriptor> The address points to an
- TX MSDU link descriptor
-
- <enum 2 mpdu_link_descriptor> The address points to an
- MPDU link descriptor
-
- <enum 3 msdu_ext_descriptor > The address points to an
- MSDU extension descriptor.
-
- In case BM finds this one in a release ring, it passes
- it on to FW...
-
- <enum 4 queue_ext_descriptor> The address points to an
- TQM queue extension descriptor. WBM should treat this is the
- same way as a link descriptor. That is, put the 128 byte
- buffer back in the link buffer idle list.
-
-
-
- <legal 0-4>
- */
- #define WBM_RELEASE_RING_2_BUFFER_OR_DESC_TYPE_OFFSET 0x00000008
- #define WBM_RELEASE_RING_2_BUFFER_OR_DESC_TYPE_LSB 6
- #define WBM_RELEASE_RING_2_BUFFER_OR_DESC_TYPE_MASK 0x000001c0
- /* Description WBM_RELEASE_RING_2_FIRST_MSDU_INDEX
-
- Consumer: WBM/SW/FW
-
- Producer: SW/TQM/RXDMA/REO/SWITCH
-
-
-
- Field only valid for the bm_action release_msdu_list.
-
-
-
- The index of the first MSDU in an MSDU link descriptor
- all belonging to the same MPDU.
-
-
-
- <legal 0-6>
- */
- #define WBM_RELEASE_RING_2_FIRST_MSDU_INDEX_OFFSET 0x00000008
- #define WBM_RELEASE_RING_2_FIRST_MSDU_INDEX_LSB 9
- #define WBM_RELEASE_RING_2_FIRST_MSDU_INDEX_MASK 0x00001e00
- /* Description WBM_RELEASE_RING_2_TQM_RELEASE_REASON
-
- Consumer: WBM/SW/FW
-
- Producer: TQM
-
-
-
- Field only valid when Release_source_module is set to
- release_source_TQM
-
-
-
- (rr = Release Reason)
-
- <enum 0 tqm_rr_frame_acked> frame is removed because an
- ACK of BA for it was received
-
- <enum 1 tqm_rr_rem_cmd_rem> frame is removed because a
- remove command of type Remove_mpdus initiated by SW
-
- <enum 2 tqm_rr_rem_cmd_tx> frame is removed because a
- remove command of type Remove_transmitted_mpdus initiated by
- SW
-
- <enum 3 tqm_rr_rem_cmd_notx> frame is removed because a
- remove command of type Remove_untransmitted_mpdus initiated
- by SW
-
- <enum 4 tqm_rr_rem_cmd_aged> frame is removed because a
- remove command of type Remove_aged_mpdus or
- Remove_aged_msdus initiated by SW
-
- <enum 5 tqm_fw_reason1> frame is removed because a
- remove command where fw indicated that remove reason is
- fw_reason1
-
- <enum 6 tqm_fw_reason2> frame is removed because a
- remove command where fw indicated that remove reason is
- fw_reason1
-
- <enum 7 tqm_fw_reason3> frame is removed because a
- remove command where fw indicated that remove reason is
- fw_reason1
-
-
-
- <legal 0-7>
- */
- #define WBM_RELEASE_RING_2_TQM_RELEASE_REASON_OFFSET 0x00000008
- #define WBM_RELEASE_RING_2_TQM_RELEASE_REASON_LSB 13
- #define WBM_RELEASE_RING_2_TQM_RELEASE_REASON_MASK 0x0000e000
- /* Description WBM_RELEASE_RING_2_RXDMA_PUSH_REASON
-
- Field only valid when Release_source_module is set to
- release_source_RXDMA
-
-
-
- Indicates why rxdma pushed the frame to this ring
-
-
-
- <enum 0 rxdma_error_detected> RXDMA detected an error an
- pushed this frame to this queue
-
- <enum 1 rxdma_routing_instruction> RXDMA pushed the
- frame to this queue per received routing instructions. No
- error within RXDMA was detected
-
- <enum 2 rxdma_rx_flush> RXDMA received an RX_FLUSH. As a
- result the MSDU link descriptor might not have the
- last_msdu_in_mpdu_flag set, but instead WBM might just see a
- NULL pointer in the MSDU link descriptor. This is to be
- considered a normal condition for this scenario.
-
-
-
- <legal 0 - 2>
- */
- #define WBM_RELEASE_RING_2_RXDMA_PUSH_REASON_OFFSET 0x00000008
- #define WBM_RELEASE_RING_2_RXDMA_PUSH_REASON_LSB 16
- #define WBM_RELEASE_RING_2_RXDMA_PUSH_REASON_MASK 0x00030000
- /* Description WBM_RELEASE_RING_2_RXDMA_ERROR_CODE
-
- Field only valid when 'rxdma_push_reason' set to
- 'rxdma_error_detected'.
-
-
-
- <enum 0 rxdma_overflow_err>MPDU frame is not complete
- due to a FIFO overflow error in RXPCU.
-
- <enum 1 rxdma_mpdu_length_err>MPDU frame is not complete
- due to receiving incomplete MPDU from the PHY
-
-
- <enum 3 rxdma_decrypt_err>CRYPTO reported a decryption
- error or CRYPTO received an encrypted frame, but did not get
- a valid corresponding key id in the peer entry.
-
- <enum 4 rxdma_tkip_mic_err>CRYPTO reported a TKIP MIC
- error
-
- <enum 5 rxdma_unecrypted_err>CRYPTO reported an
- unencrypted frame error when encrypted was expected
-
- <enum 6 rxdma_msdu_len_err>RX OLE reported an MSDU
- length error
-
- <enum 7 rxdma_msdu_limit_err>RX OLE reported that max
- number of MSDUs allowed in an MPDU got exceeded
-
- <enum 8 rxdma_wifi_parse_err>RX OLE reported a parsing
- error
-
- <enum 9 rxdma_amsdu_parse_err>RX OLE reported an A-MSDU
- parsing error
-
- <enum 10 rxdma_sa_timeout_err>RX OLE reported a timeout
- during SA search
-
- <enum 11 rxdma_da_timeout_err>RX OLE reported a timeout
- during DA search
-
- <enum 12 rxdma_flow_timeout_err>RX OLE reported a
- timeout during flow search
-
- <enum 13 Rxdma_flush_request>RXDMA received a flush
- request
- */
- #define WBM_RELEASE_RING_2_RXDMA_ERROR_CODE_OFFSET 0x00000008
- #define WBM_RELEASE_RING_2_RXDMA_ERROR_CODE_LSB 18
- #define WBM_RELEASE_RING_2_RXDMA_ERROR_CODE_MASK 0x007c0000
- /* Description WBM_RELEASE_RING_2_REO_PUSH_REASON
-
- Field only valid when Release_source_module is set to
- release_source_REO
-
-
-
- Indicates why REO pushed the frame to this release ring
-
-
-
- <enum 0 reo_error_detected> Reo detected an error an
- pushed this frame to this queue
-
- <enum 1 reo_routing_instruction> Reo pushed the frame to
- this queue per received routing instructions. No error
- within REO was detected
-
-
-
- <legal 0 - 1>
- */
- #define WBM_RELEASE_RING_2_REO_PUSH_REASON_OFFSET 0x00000008
- #define WBM_RELEASE_RING_2_REO_PUSH_REASON_LSB 23
- #define WBM_RELEASE_RING_2_REO_PUSH_REASON_MASK 0x01800000
- /* Description WBM_RELEASE_RING_2_REO_ERROR_CODE
-
- Field only valid when 'Reo_push_reason' set to
- 'reo_error_detected'.
-
-
-
- <enum 0 reo_queue_desc_addr_zero> Reo queue descriptor
- provided in the REO_ENTRANCE ring is set to 0
-
- <enum 1 reo_queue_desc_not_valid> Reo queue descriptor
- valid bit is NOT set
-
- <enum 2 ampdu_in_non_ba> AMPDU frame received without BA
- session having been setup.
-
- <enum 3 non_ba_duplicate> Non-BA session, SN equal to
- SSN, Retry bit set: duplicate frame
-
- <enum 4 ba_duplicate> BA session, duplicate frame
-
- <enum 5 regular_frame_2k_jump> A normal (management/data
- frame) received with 2K jump in SN
-
- <enum 6 bar_frame_2k_jump> A bar received with 2K jump
- in SSN
-
- <enum 7 regular_frame_OOR> A normal (management/data
- frame) received with SN falling within the OOR window
-
- <enum 8 bar_frame_OOR> A bar received with SSN falling
- within the OOR window
-
- <enum 9 bar_frame_no_ba_session> A bar received without
- a BA session
-
- <enum 10 bar_frame_sn_equals_ssn> A bar received with
- SSN equal to SN
-
- <enum 11 pn_check_failed> PN Check Failed packet.
-
- <enum 12 2k_error_handling_flag_set> Frame is forwarded
- as a result of the 'Seq_2k_error_detected_flag' been set in
- the REO Queue descriptor
-
- <enum 13 pn_error_handling_flag_set> Frame is forwarded
- as a result of the 'pn_error_detected_flag' been set in the
- REO Queue descriptor
-
- <enum 14 queue_descriptor_blocked_set> Frame is
- forwarded as a result of the queue descriptor(address) being
- blocked as SW/FW seems to be currently in the process of
- making updates to this descriptor...
-
-
-
- <legal 0-14>
- */
- #define WBM_RELEASE_RING_2_REO_ERROR_CODE_OFFSET 0x00000008
- #define WBM_RELEASE_RING_2_REO_ERROR_CODE_LSB 25
- #define WBM_RELEASE_RING_2_REO_ERROR_CODE_MASK 0x3e000000
- /* Description WBM_RELEASE_RING_2_WBM_INTERNAL_ERROR
-
- Can only be set by WBM.
-
-
-
- Is set when WBM got a buffer pointer but the action was
- to push it to the idle link descriptor ring or do link
- related activity
-
- OR
-
- Is set when WBM got a link buffer pointer but the action
- was to push it to the buffer descriptor ring
-
-
-
- <legal all>
- */
- #define WBM_RELEASE_RING_2_WBM_INTERNAL_ERROR_OFFSET 0x00000008
- #define WBM_RELEASE_RING_2_WBM_INTERNAL_ERROR_LSB 30
- #define WBM_RELEASE_RING_2_WBM_INTERNAL_ERROR_MASK 0x40000000
- /* Description WBM_RELEASE_RING_2_RESERVED_2
-
- <legal 0>
- */
- #define WBM_RELEASE_RING_2_RESERVED_2_OFFSET 0x00000008
- #define WBM_RELEASE_RING_2_RESERVED_2_LSB 31
- #define WBM_RELEASE_RING_2_RESERVED_2_MASK 0x80000000
- /* Description WBM_RELEASE_RING_3_TQM_STATUS_NUMBER
-
- Field only valid when Release_source_module is set to
- release_source_TQM
-
-
-
- The value in this field is equal to value of the
- 'TQM_CMD_Number' field the TQM command or the
- 'TQM_add_cmd_Number' field from the TQM entrance ring
- descriptor
-
-
-
- This field helps to correlate the statuses with the TQM
- commands.
-
-
-
- NOTE that SW could program this number to be equal to
- the PPDU_ID number in case direct correlation with the PPDU
- ID is desired
-
-
-
- <legal all>
- */
- #define WBM_RELEASE_RING_3_TQM_STATUS_NUMBER_OFFSET 0x0000000c
- #define WBM_RELEASE_RING_3_TQM_STATUS_NUMBER_LSB 0
- #define WBM_RELEASE_RING_3_TQM_STATUS_NUMBER_MASK 0x00ffffff
- /* Description WBM_RELEASE_RING_3_TRANSMIT_COUNT
-
- Field only valid when Release_source_module is set to
- release_source_TQM
-
-
-
- The number of times this frame has been transmitted
- */
- #define WBM_RELEASE_RING_3_TRANSMIT_COUNT_OFFSET 0x0000000c
- #define WBM_RELEASE_RING_3_TRANSMIT_COUNT_LSB 24
- #define WBM_RELEASE_RING_3_TRANSMIT_COUNT_MASK 0x7f000000
- /* Description WBM_RELEASE_RING_3_RESERVED_3A
-
- <legal 0>
- */
- #define WBM_RELEASE_RING_3_RESERVED_3A_OFFSET 0x0000000c
- #define WBM_RELEASE_RING_3_RESERVED_3A_LSB 31
- #define WBM_RELEASE_RING_3_RESERVED_3A_MASK 0x80000000
- /* Description WBM_RELEASE_RING_4_ACK_FRAME_RSSI
-
- This field is only valid when the source is TQM.
-
-
-
- If this frame is removed as the result of the reception
- of an ACK or BA, this field indicates the RSSI of the
- received ACK or BA frame.
-
-
-
- When the frame is removed as result of a direct remove
- command from the SW, this field is set to 0x0 (which is
- never a valid value when real RSSI is available)
-
-
-
- <legal all>
- */
- #define WBM_RELEASE_RING_4_ACK_FRAME_RSSI_OFFSET 0x00000010
- #define WBM_RELEASE_RING_4_ACK_FRAME_RSSI_LSB 0
- #define WBM_RELEASE_RING_4_ACK_FRAME_RSSI_MASK 0x000000ff
- /* Description WBM_RELEASE_RING_4_SW_RELEASE_DETAILS_VALID
-
- Consumer: SW
-
- Producer: WBM
-
-
-
- When set, some WBM specific release info for SW is
- valid.
-
- This is set when WMB got a 'release_msdu_list' command
- from TQM and the return buffer manager is not WMB. WBM will
- then de-aggregate all the MSDUs and pass them one at a time
- on to the 'buffer owner'
-
-
-
- <legal all>
- */
- #define WBM_RELEASE_RING_4_SW_RELEASE_DETAILS_VALID_OFFSET 0x00000010
- #define WBM_RELEASE_RING_4_SW_RELEASE_DETAILS_VALID_LSB 8
- #define WBM_RELEASE_RING_4_SW_RELEASE_DETAILS_VALID_MASK 0x00000100
- /* Description WBM_RELEASE_RING_4_FIRST_MSDU
-
- Field only valid when SW_release_details_valid is set.
-
-
-
- Consumer: SW
-
- Producer: WBM
-
-
-
- When set, this MSDU is the first MSDU pointed to in the
- 'release_msdu_list' command.
-
-
-
- <legal all>
- */
- #define WBM_RELEASE_RING_4_FIRST_MSDU_OFFSET 0x00000010
- #define WBM_RELEASE_RING_4_FIRST_MSDU_LSB 9
- #define WBM_RELEASE_RING_4_FIRST_MSDU_MASK 0x00000200
- /* Description WBM_RELEASE_RING_4_LAST_MSDU
-
- Field only valid when SW_release_details_valid is set.
-
-
-
- Consumer: SW
-
- Producer: WBM
-
-
-
- When set, this MSDU is the last MSDU pointed to in the
- 'release_msdu_list' command.
-
-
-
- <legal all>
- */
- #define WBM_RELEASE_RING_4_LAST_MSDU_OFFSET 0x00000010
- #define WBM_RELEASE_RING_4_LAST_MSDU_LSB 10
- #define WBM_RELEASE_RING_4_LAST_MSDU_MASK 0x00000400
- /* Description WBM_RELEASE_RING_4_MSDU_PART_OF_AMSDU
-
- Field only valid when SW_release_details_valid is set.
-
-
-
- Consumer: SW
-
- Producer: WBM
-
-
-
- When set, this MSDU was part of an A-MSDU in MPDU
-
- <legal all>
- */
- #define WBM_RELEASE_RING_4_MSDU_PART_OF_AMSDU_OFFSET 0x00000010
- #define WBM_RELEASE_RING_4_MSDU_PART_OF_AMSDU_LSB 11
- #define WBM_RELEASE_RING_4_MSDU_PART_OF_AMSDU_MASK 0x00000800
- /* Description WBM_RELEASE_RING_4_FW_TX_NOTIFY_FRAME
-
- Field only valid when SW_release_details_valid is set.
-
-
-
- Consumer: SW
-
- Producer: WBM
-
-
-
- This is the FW_tx_notify_frame field from the
-
- <legal all>
- */
- #define WBM_RELEASE_RING_4_FW_TX_NOTIFY_FRAME_OFFSET 0x00000010
- #define WBM_RELEASE_RING_4_FW_TX_NOTIFY_FRAME_LSB 12
- #define WBM_RELEASE_RING_4_FW_TX_NOTIFY_FRAME_MASK 0x00001000
- /* Description WBM_RELEASE_RING_4_BUFFER_TIMESTAMP
-
- Field only valid when SW_release_details_valid is set.
-
-
-
- Consumer: SW
-
- Producer: WBM
-
-
-
- This is the Buffer_timestamp field from the
-
- <legal all>
- */
- #define WBM_RELEASE_RING_4_BUFFER_TIMESTAMP_OFFSET 0x00000010
- #define WBM_RELEASE_RING_4_BUFFER_TIMESTAMP_LSB 13
- #define WBM_RELEASE_RING_4_BUFFER_TIMESTAMP_MASK 0xffffe000
- #define WBM_RELEASE_RING_5_TX_RATE_STATS_INFO_TX_RATE_STATS_OFFSET 0x00000014
- #define WBM_RELEASE_RING_5_TX_RATE_STATS_INFO_TX_RATE_STATS_LSB 13
- #define WBM_RELEASE_RING_5_TX_RATE_STATS_INFO_TX_RATE_STATS_MASK 0xffffffff
- #define WBM_RELEASE_RING_6_TX_RATE_STATS_INFO_TX_RATE_STATS_OFFSET 0x00000018
- #define WBM_RELEASE_RING_6_TX_RATE_STATS_INFO_TX_RATE_STATS_LSB 13
- #define WBM_RELEASE_RING_6_TX_RATE_STATS_INFO_TX_RATE_STATS_MASK 0xffffffff
- /* Description WBM_RELEASE_RING_7_SW_PEER_ID
-
- Field only valid when Release_source_module is set to
- release_source_TQM
-
-
-
- 1) Release of msdu buffer due to drop_frame = 1. Flow is
- not fetched and hence sw_peer_id and tid = 0
-
- buffer_or_desc_type = e_num 0
- MSDU_rel_buffertqm_release_reason = e_num 1
- tqm_rr_rem_cmd_rem
-
-
-
-
-
- 2) Release of msdu buffer due to Flow is not fetched and
- hence sw_peer_id and tid = 0
-
- buffer_or_desc_type = e_num 0
- MSDU_rel_buffertqm_release_reason = e_num 1
- tqm_rr_rem_cmd_rem
-
-
-
-
-
- 3) Release of msdu link due to remove_mpdu or acked_mpdu
- command.
-
- buffer_or_desc_type = e_num1
- msdu_link_descriptortqm_release_reason can be:e_num 1
- tqm_rr_rem_cmd_reme_num 2 tqm_rr_rem_cmd_tx
-
- e_num 3 tqm_rr_rem_cmd_notxe_num 4 tqm_rr_rem_cmd_aged
-
-
-
- Sw_peer_id from the TX_MSDU_FLOW descriptor or
- TX_MPDU_QUEUE descriptor
-
- <legal all>
- */
- #define WBM_RELEASE_RING_7_SW_PEER_ID_OFFSET 0x0000001c
- #define WBM_RELEASE_RING_7_SW_PEER_ID_LSB 0
- #define WBM_RELEASE_RING_7_SW_PEER_ID_MASK 0x0000ffff
- /* Description WBM_RELEASE_RING_7_TID
-
- Field only valid when Release_source_module is set to
- release_source_TQM
-
-
-
- 1) Release of msdu buffer due to drop_frame = 1. Flow is
- not fetched and hence sw_peer_id and tid = 0
-
- buffer_or_desc_type = e_num 0
- MSDU_rel_buffertqm_release_reason = e_num 1
- tqm_rr_rem_cmd_rem
-
-
-
-
-
- 2) Release of msdu buffer due to Flow is not fetched and
- hence sw_peer_id and tid = 0
-
- buffer_or_desc_type = e_num 0
- MSDU_rel_buffertqm_release_reason = e_num 1
- tqm_rr_rem_cmd_rem
-
-
-
-
-
- 3) Release of msdu link due to remove_mpdu or acked_mpdu
- command.
-
- buffer_or_desc_type = e_num1
- msdu_link_descriptortqm_release_reason can be:e_num 1
- tqm_rr_rem_cmd_reme_num 2 tqm_rr_rem_cmd_tx
-
- e_num 3 tqm_rr_rem_cmd_notxe_num 4 tqm_rr_rem_cmd_aged
-
-
-
-
-
- This field represents the TID from the TX_MSDU_FLOW
- descriptor or TX_MPDU_QUEUE descriptor
-
-
-
- <legal all>
- */
- #define WBM_RELEASE_RING_7_TID_OFFSET 0x0000001c
- #define WBM_RELEASE_RING_7_TID_LSB 16
- #define WBM_RELEASE_RING_7_TID_MASK 0x000f0000
- /* Description WBM_RELEASE_RING_7_RING_ID
-
- Consumer: TQM/REO/RXDMA/SW
-
- Producer: SRNG (of RXDMA)
-
-
-
- For debugging.
-
- This field is filled in by the SRNG module.
-
- It help to identify the ring that is being looked <legal
- all>
- */
- #define WBM_RELEASE_RING_7_RING_ID_OFFSET 0x0000001c
- #define WBM_RELEASE_RING_7_RING_ID_LSB 20
- #define WBM_RELEASE_RING_7_RING_ID_MASK 0x0ff00000
- /* Description WBM_RELEASE_RING_7_LOOPING_COUNT
-
- Consumer: WBM/SW/FW
-
- Producer: SW/TQM/RXDMA/REO/SWITCH
-
-
-
- A count value that indicates the number of times the
- producer of entries into the Buffer Manager Ring has looped
- around the ring.
-
- At initialization time, this value is set to 0. On the
- first loop, this value is set to 1. After the max value is
- reached allowed by the number of bits for this field, the
- count value continues with 0 again.
-
-
-
- In case SW is the consumer of the ring entries, it can
- use this field to figure out up to where the producer of
- entries has created new entries. This eliminates the need to
- check where the head pointer' of the ring is located once
- the SW starts processing an interrupt indicating that new
- entries have been put into this ring...
-
-
-
- Also note that SW if it wants only needs to look at the
- LSB bit of this count value.
-
- <legal all>
- */
- #define WBM_RELEASE_RING_7_LOOPING_COUNT_OFFSET 0x0000001c
- #define WBM_RELEASE_RING_7_LOOPING_COUNT_LSB 28
- #define WBM_RELEASE_RING_7_LOOPING_COUNT_MASK 0xf0000000
- #endif // _WBM_RELEASE_RING_H_
|