reo_entrance_ring.h 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933
  1. /*
  2. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #ifndef _REO_ENTRANCE_RING_H_
  17. #define _REO_ENTRANCE_RING_H_
  18. #if !defined(__ASSEMBLER__)
  19. #endif
  20. #include "rx_mpdu_details.h"
  21. #define NUM_OF_DWORDS_REO_ENTRANCE_RING 8
  22. struct reo_entrance_ring {
  23. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  24. struct rx_mpdu_details reo_level_mpdu_frame_info;
  25. uint32_t rx_reo_queue_desc_addr_31_0 : 32; // [31:0]
  26. uint32_t rx_reo_queue_desc_addr_39_32 : 8, // [7:0]
  27. rounded_mpdu_byte_count : 14, // [21:8]
  28. reo_destination_indication : 5, // [26:22]
  29. frameless_bar : 1, // [27:27]
  30. reserved_5a : 4; // [31:28]
  31. uint32_t rxdma_push_reason : 2, // [1:0]
  32. rxdma_error_code : 5, // [6:2]
  33. mpdu_fragment_number : 4, // [10:7]
  34. sw_exception : 1, // [11:11]
  35. sw_exception_mpdu_delink : 1, // [12:12]
  36. sw_exception_destination_ring_valid : 1, // [13:13]
  37. sw_exception_destination_ring : 5, // [18:14]
  38. mpdu_sequence_number : 12, // [30:19]
  39. reserved_6a : 1; // [31:31]
  40. uint32_t phy_ppdu_id : 16, // [15:0]
  41. src_link_id : 3, // [18:16]
  42. reserved_7a : 1, // [19:19]
  43. ring_id : 8, // [27:20]
  44. looping_count : 4; // [31:28]
  45. #else
  46. struct rx_mpdu_details reo_level_mpdu_frame_info;
  47. uint32_t rx_reo_queue_desc_addr_31_0 : 32; // [31:0]
  48. uint32_t reserved_5a : 4, // [31:28]
  49. frameless_bar : 1, // [27:27]
  50. reo_destination_indication : 5, // [26:22]
  51. rounded_mpdu_byte_count : 14, // [21:8]
  52. rx_reo_queue_desc_addr_39_32 : 8; // [7:0]
  53. uint32_t reserved_6a : 1, // [31:31]
  54. mpdu_sequence_number : 12, // [30:19]
  55. sw_exception_destination_ring : 5, // [18:14]
  56. sw_exception_destination_ring_valid : 1, // [13:13]
  57. sw_exception_mpdu_delink : 1, // [12:12]
  58. sw_exception : 1, // [11:11]
  59. mpdu_fragment_number : 4, // [10:7]
  60. rxdma_error_code : 5, // [6:2]
  61. rxdma_push_reason : 2; // [1:0]
  62. uint32_t looping_count : 4, // [31:28]
  63. ring_id : 8, // [27:20]
  64. reserved_7a : 1, // [19:19]
  65. src_link_id : 3, // [18:16]
  66. phy_ppdu_id : 16; // [15:0]
  67. #endif
  68. };
  69. /* Description REO_LEVEL_MPDU_FRAME_INFO
  70. Consumer: REO
  71. Producer: RXDMA
  72. Details related to the MPDU being pushed into the REO
  73. */
  74. /* Description MSDU_LINK_DESC_ADDR_INFO
  75. Consumer: REO/SW/FW
  76. Producer: RXDMA
  77. Details of the physical address of the MSDU link descriptor
  78. that contains pointers to MSDUs related to this MPDU
  79. */
  80. /* Description BUFFER_ADDR_31_0
  81. Address (lower 32 bits) of the MSDU buffer OR MSDU_EXTENSION
  82. descriptor OR Link Descriptor
  83. In case of 'NULL' pointer, this field is set to 0
  84. <legal all>
  85. */
  86. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_31_0_OFFSET 0x00000000
  87. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_31_0_LSB 0
  88. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_31_0_MSB 31
  89. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_31_0_MASK 0xffffffff
  90. /* Description BUFFER_ADDR_39_32
  91. Address (upper 8 bits) of the MSDU buffer OR MSDU_EXTENSION
  92. descriptor OR Link Descriptor
  93. In case of 'NULL' pointer, this field is set to 0
  94. <legal all>
  95. */
  96. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_39_32_OFFSET 0x00000004
  97. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_39_32_LSB 0
  98. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_39_32_MSB 7
  99. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_39_32_MASK 0x000000ff
  100. /* Description RETURN_BUFFER_MANAGER
  101. Consumer: WBM
  102. Producer: SW/FW
  103. In case of 'NULL' pointer, this field is set to 0
  104. Indicates to which buffer manager the buffer OR MSDU_EXTENSION
  105. descriptor OR link descriptor that is being pointed to
  106. shall be returned after the frame has been processed. It
  107. is used by WBM for routing purposes.
  108. <enum 0 WBM_IDLE_BUF_LIST> This buffer shall be returned
  109. to the WMB buffer idle list
  110. <enum 1 WBM_CHIP0_IDLE_DESC_LIST> This buffer shall be returned
  111. to the WBM idle link descriptor idle list, where the chip
  112. 0 WBM is chosen in case of a multi-chip config
  113. <enum 2 WBM_CHIP1_IDLE_DESC_LIST> This buffer shall be returned
  114. to the chip 1 WBM idle link descriptor idle list
  115. <enum 3 WBM_CHIP2_IDLE_DESC_LIST> This buffer shall be returned
  116. to the chip 2 WBM idle link descriptor idle list
  117. <enum 12 WBM_CHIP3_IDLE_DESC_LIST> This buffer shall be
  118. returned to chip 3 WBM idle link descriptor idle list
  119. <enum 4 FW_BM> This buffer shall be returned to the FW
  120. <enum 5 SW0_BM> This buffer shall be returned to the SW,
  121. ring 0
  122. <enum 6 SW1_BM> This buffer shall be returned to the SW,
  123. ring 1
  124. <enum 7 SW2_BM> This buffer shall be returned to the SW,
  125. ring 2
  126. <enum 8 SW3_BM> This buffer shall be returned to the SW,
  127. ring 3
  128. <enum 9 SW4_BM> This buffer shall be returned to the SW,
  129. ring 4
  130. <enum 10 SW5_BM> This buffer shall be returned to the SW,
  131. ring 5
  132. <enum 11 SW6_BM> This buffer shall be returned to the SW,
  133. ring 6
  134. <legal 0-12>
  135. */
  136. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER_OFFSET 0x00000004
  137. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER_LSB 8
  138. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER_MSB 11
  139. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER_MASK 0x00000f00
  140. /* Description SW_BUFFER_COOKIE
  141. Cookie field exclusively used by SW.
  142. In case of 'NULL' pointer, this field is set to 0
  143. HW ignores the contents, accept that it passes the programmed
  144. value on to other descriptors together with the physical
  145. address
  146. Field can be used by SW to for example associate the buffers
  147. physical address with the virtual address
  148. The bit definitions as used by SW are within SW HLD specification
  149. NOTE1:
  150. The three most significant bits can have a special meaning
  151. in case this struct is embedded in a TX_MPDU_DETAILS STRUCT,
  152. and field transmit_bw_restriction is set
  153. In case of NON punctured transmission:
  154. Sw_buffer_cookie[19:17] = 3'b000: 20 MHz TX only
  155. Sw_buffer_cookie[19:17] = 3'b001: 40 MHz TX only
  156. Sw_buffer_cookie[19:17] = 3'b010: 80 MHz TX only
  157. Sw_buffer_cookie[19:17] = 3'b011: 160 MHz TX only
  158. Sw_buffer_cookie[19:17] = 3'b101: 240 MHz TX only
  159. Sw_buffer_cookie[19:17] = 3'b100: 320 MHz TX only
  160. Sw_buffer_cookie[19:18] = 2'b11: reserved
  161. In case of punctured transmission:
  162. Sw_buffer_cookie[19:16] = 4'b0000: pattern 0 only
  163. Sw_buffer_cookie[19:16] = 4'b0001: pattern 1 only
  164. Sw_buffer_cookie[19:16] = 4'b0010: pattern 2 only
  165. Sw_buffer_cookie[19:16] = 4'b0011: pattern 3 only
  166. Sw_buffer_cookie[19:16] = 4'b0100: pattern 4 only
  167. Sw_buffer_cookie[19:16] = 4'b0101: pattern 5 only
  168. Sw_buffer_cookie[19:16] = 4'b0110: pattern 6 only
  169. Sw_buffer_cookie[19:16] = 4'b0111: pattern 7 only
  170. Sw_buffer_cookie[19:16] = 4'b1000: pattern 8 only
  171. Sw_buffer_cookie[19:16] = 4'b1001: pattern 9 only
  172. Sw_buffer_cookie[19:16] = 4'b1010: pattern 10 only
  173. Sw_buffer_cookie[19:16] = 4'b1011: pattern 11 only
  174. Sw_buffer_cookie[19:18] = 2'b11: reserved
  175. Note: a punctured transmission is indicated by the presence
  176. of TLV TX_PUNCTURE_SETUP embedded in the scheduler TLV
  177. <legal all>
  178. */
  179. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_SW_BUFFER_COOKIE_OFFSET 0x00000004
  180. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_SW_BUFFER_COOKIE_LSB 12
  181. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_SW_BUFFER_COOKIE_MSB 31
  182. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_SW_BUFFER_COOKIE_MASK 0xfffff000
  183. /* Description RX_MPDU_DESC_INFO_DETAILS
  184. Consumer: REO/SW/FW
  185. Producer: RXDMA
  186. General information related to the MPDU that should be passed
  187. on from REO entrance ring to the REO destination ring
  188. */
  189. /* Description MSDU_COUNT
  190. Consumer: REO/SW/FW
  191. Producer: RXDMA
  192. The number of MSDUs within the MPDU
  193. <legal all>
  194. */
  195. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MSDU_COUNT_OFFSET 0x00000008
  196. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MSDU_COUNT_LSB 0
  197. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MSDU_COUNT_MSB 7
  198. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MSDU_COUNT_MASK 0x000000ff
  199. /* Description FRAGMENT_FLAG
  200. Consumer: REO/SW/FW
  201. Producer: RXDMA
  202. When set, this MPDU is a fragment and REO should forward
  203. this fragment MPDU to the REO destination ring without
  204. any reorder checks, pn checks or bitmap update. This implies
  205. that REO is forwarding the pointer to the MSDU link descriptor.
  206. The destination ring is coming from a programmable register
  207. setting in REO
  208. <legal all>
  209. */
  210. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_FRAGMENT_FLAG_OFFSET 0x00000008
  211. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_FRAGMENT_FLAG_LSB 8
  212. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_FRAGMENT_FLAG_MSB 8
  213. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_FRAGMENT_FLAG_MASK 0x00000100
  214. /* Description MPDU_RETRY_BIT
  215. Consumer: REO/SW/FW
  216. Producer: RXDMA
  217. The retry bit setting from the MPDU header of the received
  218. frame
  219. <legal all>
  220. */
  221. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_RETRY_BIT_OFFSET 0x00000008
  222. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_RETRY_BIT_LSB 9
  223. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_RETRY_BIT_MSB 9
  224. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_RETRY_BIT_MASK 0x00000200
  225. /* Description AMPDU_FLAG
  226. Consumer: REO/SW/FW
  227. Producer: RXDMA
  228. When set, the MPDU was received as part of an A-MPDU.
  229. <legal all>
  230. */
  231. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_AMPDU_FLAG_OFFSET 0x00000008
  232. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_AMPDU_FLAG_LSB 10
  233. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_AMPDU_FLAG_MSB 10
  234. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_AMPDU_FLAG_MASK 0x00000400
  235. /* Description BAR_FRAME
  236. Consumer: REO/SW/FW
  237. Producer: RXDMA
  238. When set, the received frame is a BAR frame. After processing,
  239. this frame shall be pushed to SW or deleted.
  240. <legal all>
  241. */
  242. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_BAR_FRAME_OFFSET 0x00000008
  243. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_BAR_FRAME_LSB 11
  244. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_BAR_FRAME_MSB 11
  245. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_BAR_FRAME_MASK 0x00000800
  246. /* Description PN_FIELDS_CONTAIN_VALID_INFO
  247. Consumer: REO/SW/FW
  248. Producer: RXDMA
  249. Copied here by RXDMA from RX_MPDU_END
  250. When not set, REO will Not perform a PN sequence number
  251. check
  252. */
  253. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PN_FIELDS_CONTAIN_VALID_INFO_OFFSET 0x00000008
  254. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PN_FIELDS_CONTAIN_VALID_INFO_LSB 12
  255. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PN_FIELDS_CONTAIN_VALID_INFO_MSB 12
  256. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PN_FIELDS_CONTAIN_VALID_INFO_MASK 0x00001000
  257. /* Description RAW_MPDU
  258. Field only valid when first_msdu_in_mpdu_flag is set.
  259. When set, the contents in the MSDU buffer contains a 'RAW'
  260. MPDU. This 'RAW' MPDU might be spread out over multiple
  261. MSDU buffers.
  262. <legal all>
  263. */
  264. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_RAW_MPDU_OFFSET 0x00000008
  265. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_RAW_MPDU_LSB 13
  266. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_RAW_MPDU_MSB 13
  267. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_RAW_MPDU_MASK 0x00002000
  268. /* Description MORE_FRAGMENT_FLAG
  269. The More Fragment bit setting from the MPDU header of the
  270. received frame
  271. <legal all>
  272. */
  273. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MORE_FRAGMENT_FLAG_OFFSET 0x00000008
  274. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MORE_FRAGMENT_FLAG_LSB 14
  275. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MORE_FRAGMENT_FLAG_MSB 14
  276. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MORE_FRAGMENT_FLAG_MASK 0x00004000
  277. /* Description SRC_INFO
  278. Source (virtual) device/interface info. associated with
  279. this peer
  280. This field gets passed on by REO to PPE in the EDMA descriptor
  281. ('REO_TO_PPE_RING').
  282. <legal all>
  283. */
  284. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_SRC_INFO_OFFSET 0x00000008
  285. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_SRC_INFO_LSB 15
  286. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_SRC_INFO_MSB 26
  287. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_SRC_INFO_MASK 0x07ff8000
  288. /* Description MPDU_QOS_CONTROL_VALID
  289. When set, the MPDU has a QoS control field.
  290. In case of ndp or phy_err, this field will never be set.
  291. <legal all>
  292. */
  293. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_QOS_CONTROL_VALID_OFFSET 0x00000008
  294. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_QOS_CONTROL_VALID_LSB 27
  295. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_QOS_CONTROL_VALID_MSB 27
  296. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_QOS_CONTROL_VALID_MASK 0x08000000
  297. /* Description TID
  298. Field only valid when mpdu_qos_control_valid is set
  299. The TID field in the QoS control field
  300. <legal all>
  301. */
  302. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_TID_OFFSET 0x00000008
  303. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_TID_LSB 28
  304. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_TID_MSB 31
  305. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_TID_MASK 0xf0000000
  306. /* Description PEER_META_DATA
  307. Meta data that SW has programmed in the Peer table entry
  308. of the transmitting STA.
  309. <legal all>
  310. */
  311. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PEER_META_DATA_OFFSET 0x0000000c
  312. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PEER_META_DATA_LSB 0
  313. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PEER_META_DATA_MSB 31
  314. #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PEER_META_DATA_MASK 0xffffffff
  315. /* Description RX_REO_QUEUE_DESC_ADDR_31_0
  316. Consumer: REO
  317. Producer: RXDMA
  318. Address (lower 32 bits) of the REO queue descriptor
  319. Alternatively, REO internally looks up the
  320. queue descriptor address from 'Sw_peer_id' and 'Tid.' In
  321. this mode, RXDMA fills 'Sw_peer_id' from 'RX_MPDU_START'
  322. in the LSB 16 bits. 'Tid' is available in 'RX_MPDU_DETAILS.'
  323. <legal all>
  324. */
  325. #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_31_0_OFFSET 0x00000010
  326. #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_31_0_LSB 0
  327. #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_31_0_MSB 31
  328. #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_31_0_MASK 0xffffffff
  329. /* Description RX_REO_QUEUE_DESC_ADDR_39_32
  330. Consumer: REO
  331. Producer: RXDMA
  332. Address (upper 8 bits) of the REO queue descriptor
  333. Alternatively, REO internally looks up the
  334. queue descriptor address from 'Sw_peer_id' and 'Tid.' In
  335. this mode, this field is unused.
  336. <legal all>
  337. */
  338. #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_39_32_OFFSET 0x00000014
  339. #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_39_32_LSB 0
  340. #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_39_32_MSB 7
  341. #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_39_32_MASK 0x000000ff
  342. /* Description ROUNDED_MPDU_BYTE_COUNT
  343. An approximation of the number of bytes received in this
  344. MPDU.
  345. Used to keeps stats on the amount of data flowing through
  346. a queue.
  347. <legal all>
  348. */
  349. #define REO_ENTRANCE_RING_ROUNDED_MPDU_BYTE_COUNT_OFFSET 0x00000014
  350. #define REO_ENTRANCE_RING_ROUNDED_MPDU_BYTE_COUNT_LSB 8
  351. #define REO_ENTRANCE_RING_ROUNDED_MPDU_BYTE_COUNT_MSB 21
  352. #define REO_ENTRANCE_RING_ROUNDED_MPDU_BYTE_COUNT_MASK 0x003fff00
  353. /* Description REO_DESTINATION_INDICATION
  354. RXDMA copy the MPDU's first MSDU's destination indication
  355. field here. This is used for REO to be able to re-route
  356. the packet to a different SW destination ring if the packet
  357. is detected as error in REO.
  358. The ID of the REO exit ring where the MSDU frame shall push
  359. after (MPDU level) reordering has finished.
  360. <enum 0 reo_destination_sw0> Reo will push the frame into
  361. the REO2SW0 ring
  362. <enum 1 reo_destination_sw1> Reo will push the frame into
  363. the REO2SW1 ring
  364. <enum 2 reo_destination_sw2> Reo will push the frame into
  365. the REO2SW2 ring
  366. <enum 3 reo_destination_sw3> Reo will push the frame into
  367. the REO2SW3 ring
  368. <enum 4 reo_destination_sw4> Reo will push the frame into
  369. the REO2SW4 ring
  370. <enum 5 reo_destination_release> Reo will push the frame
  371. into the REO_release ring
  372. <enum 6 reo_destination_fw> Reo will push the frame into
  373. the REO2FW ring
  374. <enum 7 reo_destination_sw5> Reo will push the frame into
  375. the REO2SW5 ring (REO remaps this in chips without REO2SW5
  376. ring)
  377. <enum 8 reo_destination_sw6> Reo will push the frame into
  378. the REO2SW6 ring (REO remaps this in chips without REO2SW6
  379. ring)
  380. <enum 9 reo_destination_sw7> Reo will push the frame into
  381. the REO2SW7 ring (REO remaps this in chips without REO2SW7
  382. ring)
  383. <enum 10 reo_destination_sw8> Reo will push the frame into
  384. the REO2SW8 ring (REO remaps this in chips without REO2SW8
  385. ring)
  386. <enum 11 reo_destination_11> REO remaps this
  387. <enum 12 reo_destination_12> REO remaps this <enum 13 reo_destination_13>
  388. REO remaps this
  389. <enum 14 reo_destination_14> REO remaps this
  390. <enum 15 reo_destination_15> REO remaps this
  391. <enum 16 reo_destination_16> REO remaps this
  392. <enum 17 reo_destination_17> REO remaps this
  393. <enum 18 reo_destination_18> REO remaps this
  394. <enum 19 reo_destination_19> REO remaps this
  395. <enum 20 reo_destination_20> REO remaps this
  396. <enum 21 reo_destination_21> REO remaps this
  397. <enum 22 reo_destination_22> REO remaps this
  398. <enum 23 reo_destination_23> REO remaps this
  399. <enum 24 reo_destination_24> REO remaps this
  400. <enum 25 reo_destination_25> REO remaps this
  401. <enum 26 reo_destination_26> REO remaps this
  402. <enum 27 reo_destination_27> REO remaps this
  403. <enum 28 reo_destination_28> REO remaps this
  404. <enum 29 reo_destination_29> REO remaps this
  405. <enum 30 reo_destination_30> REO remaps this
  406. <enum 31 reo_destination_31> REO remaps this
  407. <legal all>
  408. */
  409. #define REO_ENTRANCE_RING_REO_DESTINATION_INDICATION_OFFSET 0x00000014
  410. #define REO_ENTRANCE_RING_REO_DESTINATION_INDICATION_LSB 22
  411. #define REO_ENTRANCE_RING_REO_DESTINATION_INDICATION_MSB 26
  412. #define REO_ENTRANCE_RING_REO_DESTINATION_INDICATION_MASK 0x07c00000
  413. /* Description FRAMELESS_BAR
  414. When set, this REO entrance ring struct contains BAR info
  415. from a multi TID BAR frame. The original multi TID BAR
  416. frame itself contained all the REO info for the first TID,
  417. but all the subsequent TID info and their linkage to the
  418. REO descriptors is passed down as 'frameless' BAR info.
  419. The only fields valid in this descriptor when this bit is
  420. set are:
  421. Rx_reo_queue_desc_addr_31_0
  422. RX_reo_queue_desc_addr_39_32
  423. And within the
  424. Reo_level_mpdu_frame_info:
  425. Within Rx_mpdu_desc_info_details:
  426. Mpdu_Sequence_number
  427. BAR_frame
  428. Peer_meta_data
  429. All other fields shall be set to 0
  430. <legal all>
  431. */
  432. #define REO_ENTRANCE_RING_FRAMELESS_BAR_OFFSET 0x00000014
  433. #define REO_ENTRANCE_RING_FRAMELESS_BAR_LSB 27
  434. #define REO_ENTRANCE_RING_FRAMELESS_BAR_MSB 27
  435. #define REO_ENTRANCE_RING_FRAMELESS_BAR_MASK 0x08000000
  436. /* Description RESERVED_5A
  437. <legal 0>
  438. */
  439. #define REO_ENTRANCE_RING_RESERVED_5A_OFFSET 0x00000014
  440. #define REO_ENTRANCE_RING_RESERVED_5A_LSB 28
  441. #define REO_ENTRANCE_RING_RESERVED_5A_MSB 31
  442. #define REO_ENTRANCE_RING_RESERVED_5A_MASK 0xf0000000
  443. /* Description RXDMA_PUSH_REASON
  444. Indicates why rxdma pushed the frame to this ring
  445. This field is ignored by REO.
  446. <enum 0 rxdma_error_detected> RXDMA detected an error an
  447. pushed this frame to this queue
  448. <enum 1 rxdma_routing_instruction> RXDMA pushed the frame
  449. to this queue per received routing instructions. No error
  450. within RXDMA was detected
  451. <enum 2 rxdma_rx_flush> RXDMA received an RX_FLUSH. As a
  452. result the MSDU link descriptor might not have the "last_msdu_in_mpdu_flag"
  453. set, but instead WBM might just see a NULL pointer in the
  454. MSDU link descriptor. This is to be considered a normal
  455. condition for this scenario.
  456. <legal 0 - 2>
  457. */
  458. #define REO_ENTRANCE_RING_RXDMA_PUSH_REASON_OFFSET 0x00000018
  459. #define REO_ENTRANCE_RING_RXDMA_PUSH_REASON_LSB 0
  460. #define REO_ENTRANCE_RING_RXDMA_PUSH_REASON_MSB 1
  461. #define REO_ENTRANCE_RING_RXDMA_PUSH_REASON_MASK 0x00000003
  462. /* Description RXDMA_ERROR_CODE
  463. Field only valid when 'rxdma_push_reason' set to 'rxdma_error_detected'.
  464. This field is ignored by REO.
  465. <enum 0 rxdma_overflow_err>MPDU frame is not complete due
  466. to a FIFO overflow error in RXPCU.
  467. <enum 1 rxdma_mpdu_length_err>MPDU frame is not complete
  468. due to receiving incomplete MPDU from the PHY
  469. <enum 2 rxdma_fcs_err>FCS check on the MPDU frame failed
  470. <enum 3 rxdma_decrypt_err>CRYPTO reported a decryption error
  471. or CRYPTO received an encrypted frame, but did not get
  472. a valid corresponding key id in the peer entry.
  473. <enum 4 rxdma_tkip_mic_err>CRYPTO reported a TKIP MIC error
  474. <enum 5 rxdma_unecrypted_err>CRYPTO reported an unencrypted
  475. frame error when encrypted was expected
  476. <enum 6 rxdma_msdu_len_err>RX OLE reported an MSDU length
  477. error
  478. <enum 7 rxdma_msdu_limit_err>RX OLE reported that max number
  479. of MSDUs allowed in an MPDU got exceeded
  480. <enum 8 rxdma_wifi_parse_err>RX OLE reported a parsing error
  481. <enum 9 rxdma_amsdu_parse_err>RX OLE reported an A-MSDU
  482. parsing error
  483. <enum 10 rxdma_sa_timeout_err>RX OLE reported a timeout
  484. during SA search
  485. <enum 11 rxdma_da_timeout_err>RX OLE reported a timeout
  486. during DA search
  487. <enum 12 rxdma_flow_timeout_err>RX OLE reported a timeout
  488. during flow search
  489. <enum 13 rxdma_flush_request>RXDMA received a flush request
  490. <enum 15 rxdma_multicast_echo_err>RX OLE reported a multicast
  491. echo
  492. <enum 16 rxdma_amsdu_addr_mismatch_err>RX OLE reported an
  493. A-MSDU with either 'from DS = 0' with an SA mismatching
  494. TA or 'to DS = 0' with a DA mismatching RA.
  495. <enum 17 rxdma_unauthorized_wds_err>RX PCU reported that
  496. Rx peer entry did not indicate 'authorized_to_send_WDS'
  497. and also indicated 'from DS = to DS = 1.'
  498. <enum 18 rxdma_groupcast_amsdu_or_wds_err>RX PCU reported
  499. a broadcast or multicast RA as well as either A-MSDU present
  500. or 'from DS = to DS = 1.'
  501. */
  502. #define REO_ENTRANCE_RING_RXDMA_ERROR_CODE_OFFSET 0x00000018
  503. #define REO_ENTRANCE_RING_RXDMA_ERROR_CODE_LSB 2
  504. #define REO_ENTRANCE_RING_RXDMA_ERROR_CODE_MSB 6
  505. #define REO_ENTRANCE_RING_RXDMA_ERROR_CODE_MASK 0x0000007c
  506. /* Description MPDU_FRAGMENT_NUMBER
  507. Field only valid when Reo_level_mpdu_frame_info. Rx_mpdu_desc_info_details.Fragment_flag
  508. is set.
  509. The fragment number from the 802.11 header.
  510. Note that the sequence number is embedded in the field:
  511. Reo_level_mpdu_frame_info. Rx_mpdu_desc_info_details. Mpdu_sequence_number
  512. <legal all>
  513. */
  514. #define REO_ENTRANCE_RING_MPDU_FRAGMENT_NUMBER_OFFSET 0x00000018
  515. #define REO_ENTRANCE_RING_MPDU_FRAGMENT_NUMBER_LSB 7
  516. #define REO_ENTRANCE_RING_MPDU_FRAGMENT_NUMBER_MSB 10
  517. #define REO_ENTRANCE_RING_MPDU_FRAGMENT_NUMBER_MASK 0x00000780
  518. /* Description SW_EXCEPTION
  519. When not set, REO is performing all its default MPDU processing
  520. operations,
  521. When set, this REO entrance descriptor is generated by FW,
  522. and should be processed as an exception. This implies:
  523. NO re-order function is needed.
  524. MPDU delinking is determined by the setting of field SW_excection_mpdu_delink
  525. Destination ring selection is based on the setting of the
  526. field SW_exception_destination_ring_valid
  527. In the destination ring descriptor set bit: SW_exception_entry
  528. <legal all>
  529. */
  530. #define REO_ENTRANCE_RING_SW_EXCEPTION_OFFSET 0x00000018
  531. #define REO_ENTRANCE_RING_SW_EXCEPTION_LSB 11
  532. #define REO_ENTRANCE_RING_SW_EXCEPTION_MSB 11
  533. #define REO_ENTRANCE_RING_SW_EXCEPTION_MASK 0x00000800
  534. /* Description SW_EXCEPTION_MPDU_DELINK
  535. Field only valid when SW_exception is set.
  536. 1'b0: REO should NOT delink the MPDU, and thus pass this
  537. MPDU on to the destination ring as is. This implies that
  538. in the REO_DESTINATION_RING struct field Buf_or_link_desc_addr_info
  539. should point to an MSDU link descriptor
  540. 1'b1: REO should perform the normal MPDU delink into MSDU
  541. operations.
  542. <legal all>
  543. */
  544. #define REO_ENTRANCE_RING_SW_EXCEPTION_MPDU_DELINK_OFFSET 0x00000018
  545. #define REO_ENTRANCE_RING_SW_EXCEPTION_MPDU_DELINK_LSB 12
  546. #define REO_ENTRANCE_RING_SW_EXCEPTION_MPDU_DELINK_MSB 12
  547. #define REO_ENTRANCE_RING_SW_EXCEPTION_MPDU_DELINK_MASK 0x00001000
  548. /* Description SW_EXCEPTION_DESTINATION_RING_VALID
  549. Field only valid when SW_exception is set.
  550. 1'b0: REO shall push the MPDU (or delinked MPDU based on
  551. the setting of SW_exception_mpdu_delink) to the destination
  552. ring according to field reo_destination_indication.
  553. 1'b1: REO shall push the MPDU (or delinked MPDU based on
  554. the setting of SW_exception_mpdu_delink) to the destination
  555. ring according to field SW_exception_destination_ring.
  556. <legal all>
  557. */
  558. #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_VALID_OFFSET 0x00000018
  559. #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_VALID_LSB 13
  560. #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_VALID_MSB 13
  561. #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_VALID_MASK 0x00002000
  562. /* Description SW_EXCEPTION_DESTINATION_RING
  563. Field only valid when fields SW_exception and SW_exception_destination_ring_valid
  564. are set.
  565. The ID of the ring where REO shall push this frame.
  566. <enum 0 reo_destination_sw0> Reo will push the frame into
  567. the REO2SW0 ring
  568. <enum 1 reo_destination_sw1> Reo will push the frame into
  569. the REO2SW1 ring
  570. <enum 2 reo_destination_sw2> Reo will push the frame into
  571. the REO2SW1 ring
  572. <enum 3 reo_destination_sw3> Reo will push the frame into
  573. the REO2SW1 ring
  574. <enum 4 reo_destination_sw4> Reo will push the frame into
  575. the REO2SW1 ring
  576. <enum 5 reo_destination_release> Reo will push the frame
  577. into the REO_release ring
  578. <enum 6 reo_destination_fw> Reo will push the frame into
  579. the REO2FW ring
  580. <enum 7 reo_destination_sw5> REO remaps this
  581. <enum 8 reo_destination_sw6> REO remaps this
  582. <enum 9 reo_destination_sw7> REO remaps this
  583. <enum 10 reo_destination_sw8> REO remaps this
  584. <enum 11 reo_destination_11> REO remaps this
  585. <enum 12 reo_destination_12> REO remaps this <enum 13 reo_destination_13>
  586. REO remaps this
  587. <enum 14 reo_destination_14> REO remaps this
  588. <enum 15 reo_destination_15> REO remaps this
  589. <enum 16 reo_destination_16> REO remaps this
  590. <enum 17 reo_destination_17> REO remaps this
  591. <enum 18 reo_destination_18> REO remaps this
  592. <enum 19 reo_destination_19> REO remaps this
  593. <enum 20 reo_destination_20> REO remaps this
  594. <enum 21 reo_destination_21> REO remaps this
  595. <enum 22 reo_destination_22> REO remaps this
  596. <enum 23 reo_destination_23> REO remaps this
  597. <enum 24 reo_destination_24> REO remaps this
  598. <enum 25 reo_destination_25> REO remaps this
  599. <enum 26 reo_destination_26> REO remaps this
  600. <enum 27 reo_destination_27> REO remaps this
  601. <enum 28 reo_destination_28> REO remaps this
  602. <enum 29 reo_destination_29> REO remaps this
  603. <enum 30 reo_destination_30> REO remaps this
  604. <enum 31 reo_destination_31> REO remaps this
  605. <legal all>
  606. */
  607. #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_OFFSET 0x00000018
  608. #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_LSB 14
  609. #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_MSB 18
  610. #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_MASK 0x0007c000
  611. /* Description MPDU_SEQUENCE_NUMBER
  612. Consumer: REO/SW/FW
  613. Producer: RXDMA
  614. The field can have two different meanings based on the setting
  615. of sub-field Reo_level_mpdu_frame_info. Rx_mpdu_desc_info_details.BAR_frame:
  616. 'BAR_frame' is NOT set:
  617. The MPDU sequence number of the received frame.
  618. 'BAR_frame' is set.
  619. The MPDU Start sequence number from the BAR frame
  620. <legal all>
  621. */
  622. #define REO_ENTRANCE_RING_MPDU_SEQUENCE_NUMBER_OFFSET 0x00000018
  623. #define REO_ENTRANCE_RING_MPDU_SEQUENCE_NUMBER_LSB 19
  624. #define REO_ENTRANCE_RING_MPDU_SEQUENCE_NUMBER_MSB 30
  625. #define REO_ENTRANCE_RING_MPDU_SEQUENCE_NUMBER_MASK 0x7ff80000
  626. /* Description RESERVED_6A
  627. Field only valid when Reo_level_mpdu_frame_info. Rx_mpdu_desc_info_details.
  628. Mpdu_qos_control_valid is set
  629. This indicates whether the 'Ack policy' field within the
  630. QoS control field of the MPDU indicates 'no-Ack.'
  631. <legal all>
  632. */
  633. #define REO_ENTRANCE_RING_RESERVED_6A_OFFSET 0x00000018
  634. #define REO_ENTRANCE_RING_RESERVED_6A_LSB 31
  635. #define REO_ENTRANCE_RING_RESERVED_6A_MSB 31
  636. #define REO_ENTRANCE_RING_RESERVED_6A_MASK 0x80000000
  637. /* Description PHY_PPDU_ID
  638. A PPDU counter value that PHY increments for every PPDU
  639. received
  640. The counter value wraps around. RXDMA can be configured
  641. to copy this from the RX_PPDU_START TLV for every output
  642. descriptor.
  643. This field is ignored by REO.
  644. <legal all>
  645. */
  646. #define REO_ENTRANCE_RING_PHY_PPDU_ID_OFFSET 0x0000001c
  647. #define REO_ENTRANCE_RING_PHY_PPDU_ID_LSB 0
  648. #define REO_ENTRANCE_RING_PHY_PPDU_ID_MSB 15
  649. #define REO_ENTRANCE_RING_PHY_PPDU_ID_MASK 0x0000ffff
  650. /* Description SRC_LINK_ID
  651. Consumer: SW
  652. Producer: RXDMA
  653. Set to the link ID of the PMAC that received the frame
  654. <legal all>
  655. */
  656. #define REO_ENTRANCE_RING_SRC_LINK_ID_OFFSET 0x0000001c
  657. #define REO_ENTRANCE_RING_SRC_LINK_ID_LSB 16
  658. #define REO_ENTRANCE_RING_SRC_LINK_ID_MSB 18
  659. #define REO_ENTRANCE_RING_SRC_LINK_ID_MASK 0x00070000
  660. #define REO_ENTRANCE_RING_RESERVED_7A_OFFSET 0x0000001c
  661. #define REO_ENTRANCE_RING_RESERVED_7A_LSB 19
  662. #define REO_ENTRANCE_RING_RESERVED_7A_MSB 19
  663. #define REO_ENTRANCE_RING_RESERVED_7A_MASK 0x00080000
  664. /* Description RING_ID
  665. Consumer: SW/REO/DEBUG
  666. Producer: SRNG (of RXDMA)
  667. For debugging.
  668. This field is filled in by the SRNG module.
  669. It help to identify the ring that is being looked <legal
  670. all>
  671. */
  672. #define REO_ENTRANCE_RING_RING_ID_OFFSET 0x0000001c
  673. #define REO_ENTRANCE_RING_RING_ID_LSB 20
  674. #define REO_ENTRANCE_RING_RING_ID_MSB 27
  675. #define REO_ENTRANCE_RING_RING_ID_MASK 0x0ff00000
  676. /* Description LOOPING_COUNT
  677. Consumer: SW/REO/DEBUG
  678. Producer: SRNG (of RXDMA)
  679. For debugging.
  680. This field is filled in by the SRNG module.
  681. A count value that indicates the number of times the producer
  682. of entries into this Ring has looped around the ring.
  683. At initialization time, this value is set to 0. On the first
  684. loop, this value is set to 1. After the max value is reached
  685. allowed by the number of bits for this field, the count
  686. value continues with 0 again.
  687. In case SW is the consumer of the ring entries, it can use
  688. this field to figure out up to where the producer of entries
  689. has created new entries. This eliminates the need to check
  690. where the "head pointer' of the ring is located once the
  691. SW starts processing an interrupt indicating that new entries
  692. have been put into this ring...
  693. Also note that SW if it wants only needs to look at the
  694. LSB bit of this count value.
  695. <legal all>
  696. */
  697. #define REO_ENTRANCE_RING_LOOPING_COUNT_OFFSET 0x0000001c
  698. #define REO_ENTRANCE_RING_LOOPING_COUNT_LSB 28
  699. #define REO_ENTRANCE_RING_LOOPING_COUNT_MSB 31
  700. #define REO_ENTRANCE_RING_LOOPING_COUNT_MASK 0xf0000000
  701. #endif // REO_ENTRANCE_RING