rx_mpdu_end.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755
  1. /*
  2. * Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. // $ATH_LICENSE_HW_HDR_C$
  19. //
  20. // DO NOT EDIT! This file is automatically generated
  21. // These definitions are tied to a particular hardware layout
  22. #ifndef _RX_MPDU_END_H_
  23. #define _RX_MPDU_END_H_
  24. #if !defined(__ASSEMBLER__)
  25. #endif
  26. // ################ START SUMMARY #################
  27. //
  28. // Dword Fields
  29. // 0 rxpcu_mpdu_filter_in_category[1:0], sw_frame_group_id[8:2], reserved_0[15:9], phy_ppdu_id[31:16]
  30. // 1 reserved_1a[10:0], unsup_ktype_short_frame[11], rx_in_tx_decrypt_byp[12], overflow_err[13], mpdu_length_err[14], tkip_mic_err[15], decrypt_err[16], unencrypted_frame_err[17], pn_fields_contain_valid_info[18], fcs_err[19], msdu_length_err[20], rxdma0_destination_ring[22:21], rxdma1_destination_ring[24:23], decrypt_status_code[27:25], rx_bitmap_not_updated[28], reserved_1b[31:29]
  31. //
  32. // ################ END SUMMARY #################
  33. #define NUM_OF_DWORDS_RX_MPDU_END 2
  34. struct rx_mpdu_end {
  35. uint32_t rxpcu_mpdu_filter_in_category : 2, //[1:0]
  36. sw_frame_group_id : 7, //[8:2]
  37. reserved_0 : 7, //[15:9]
  38. phy_ppdu_id : 16; //[31:16]
  39. uint32_t reserved_1a : 11, //[10:0]
  40. unsup_ktype_short_frame : 1, //[11]
  41. rx_in_tx_decrypt_byp : 1, //[12]
  42. overflow_err : 1, //[13]
  43. mpdu_length_err : 1, //[14]
  44. tkip_mic_err : 1, //[15]
  45. decrypt_err : 1, //[16]
  46. unencrypted_frame_err : 1, //[17]
  47. pn_fields_contain_valid_info : 1, //[18]
  48. fcs_err : 1, //[19]
  49. msdu_length_err : 1, //[20]
  50. rxdma0_destination_ring : 2, //[22:21]
  51. rxdma1_destination_ring : 2, //[24:23]
  52. decrypt_status_code : 3, //[27:25]
  53. rx_bitmap_not_updated : 1, //[28]
  54. reserved_1b : 3; //[31:29]
  55. };
  56. /*
  57. rxpcu_mpdu_filter_in_category
  58. Field indicates what the reason was that this MPDU frame
  59. was allowed to come into the receive path by RXPCU
  60. <enum 0 rxpcu_filter_pass> This MPDU passed the normal
  61. frame filter programming of rxpcu
  62. <enum 1 rxpcu_monitor_client> This MPDU did NOT pass the
  63. regular frame filter and would have been dropped, were it
  64. not for the frame fitting into the 'monitor_client'
  65. category.
  66. <enum 2 rxpcu_monitor_other> This MPDU did NOT pass the
  67. regular frame filter and also did not pass the
  68. rxpcu_monitor_client filter. It would have been dropped
  69. accept that it did pass the 'monitor_other' category.
  70. <legal 0-2>
  71. sw_frame_group_id
  72. SW processes frames based on certain classifications.
  73. This field indicates to what sw classification this MPDU is
  74. mapped.
  75. The classification is given in priority order
  76. <enum 0 sw_frame_group_NDP_frame>
  77. <enum 1 sw_frame_group_Multicast_data>
  78. <enum 2 sw_frame_group_Unicast_data>
  79. <enum 3 sw_frame_group_Null_data > This includes mpdus
  80. of type Data Null as well as QoS Data Null
  81. <enum 4 sw_frame_group_mgmt_0000 >
  82. <enum 5 sw_frame_group_mgmt_0001 >
  83. <enum 6 sw_frame_group_mgmt_0010 >
  84. <enum 7 sw_frame_group_mgmt_0011 >
  85. <enum 8 sw_frame_group_mgmt_0100 >
  86. <enum 9 sw_frame_group_mgmt_0101 >
  87. <enum 10 sw_frame_group_mgmt_0110 >
  88. <enum 11 sw_frame_group_mgmt_0111 >
  89. <enum 12 sw_frame_group_mgmt_1000 >
  90. <enum 13 sw_frame_group_mgmt_1001 >
  91. <enum 14 sw_frame_group_mgmt_1010 >
  92. <enum 15 sw_frame_group_mgmt_1011 >
  93. <enum 16 sw_frame_group_mgmt_1100 >
  94. <enum 17 sw_frame_group_mgmt_1101 >
  95. <enum 18 sw_frame_group_mgmt_1110 >
  96. <enum 19 sw_frame_group_mgmt_1111 >
  97. <enum 20 sw_frame_group_ctrl_0000 >
  98. <enum 21 sw_frame_group_ctrl_0001 >
  99. <enum 22 sw_frame_group_ctrl_0010 >
  100. <enum 23 sw_frame_group_ctrl_0011 >
  101. <enum 24 sw_frame_group_ctrl_0100 >
  102. <enum 25 sw_frame_group_ctrl_0101 >
  103. <enum 26 sw_frame_group_ctrl_0110 >
  104. <enum 27 sw_frame_group_ctrl_0111 >
  105. <enum 28 sw_frame_group_ctrl_1000 >
  106. <enum 29 sw_frame_group_ctrl_1001 >
  107. <enum 30 sw_frame_group_ctrl_1010 >
  108. <enum 31 sw_frame_group_ctrl_1011 >
  109. <enum 32 sw_frame_group_ctrl_1100 >
  110. <enum 33 sw_frame_group_ctrl_1101 >
  111. <enum 34 sw_frame_group_ctrl_1110 >
  112. <enum 35 sw_frame_group_ctrl_1111 >
  113. <enum 36 sw_frame_group_unsupported> This covers type 3
  114. and protocol version != 0
  115. <legal 0-37>
  116. reserved_0
  117. <legal 0>
  118. phy_ppdu_id
  119. A ppdu counter value that PHY increments for every PPDU
  120. received. The counter value wraps around
  121. <legal all>
  122. reserved_1a
  123. <legal 0>
  124. unsup_ktype_short_frame
  125. This bit will be '1' when WEP or TKIP or WAPI key type
  126. is received for 11ah short frame. Crypto will bypass the
  127. received packet without decryption to RxOLE after setting
  128. this bit.
  129. rx_in_tx_decrypt_byp
  130. Indicates that RX packet is not decrypted as Crypto is
  131. busy with TX packet processing.
  132. overflow_err
  133. RXPCU Receive FIFO ran out of space to receive the full
  134. MPDU. Therefor this MPDU is terminated early and is thus
  135. corrupted.
  136. This MPDU will not be ACKed.
  137. RXPCU might still be able to correctly receive the
  138. following MPDUs in the PPDU if enough fifo space became
  139. available in time
  140. mpdu_length_err
  141. Set by RXPCU if the expected MPDU length does not
  142. correspond with the actually received number of bytes in the
  143. MPDU.
  144. tkip_mic_err
  145. Set by RX CRYPTO when CRYPTO detected a TKIP MIC error
  146. for this MPDU
  147. decrypt_err
  148. Set by RX CRYPTO when CRYPTO detected a decrypt error
  149. for this MPDU or CRYPTO received an encrypted frame, but did
  150. not get a valid corresponding key id in the peer entry.
  151. unencrypted_frame_err
  152. Set by RX CRYPTO when CRYPTO detected an unencrypted
  153. frame while in the peer entry field
  154. 'All_frames_shall_be_encrypted' is set.
  155. pn_fields_contain_valid_info
  156. Set by RX CRYPTO to indicate that there is a valid PN
  157. field present in this MPDU
  158. fcs_err
  159. Set by RXPCU when there is an FCS error detected for
  160. this MPDU
  161. msdu_length_err
  162. Set by RXOLE when there is an msdu length error detected
  163. in at least 1 of the MSDUs embedded within the MPDU
  164. rxdma0_destination_ring
  165. The ring to which RXDMA0 shall push the frame, assuming
  166. no MPDU level errors are detected. In case of MPDU level
  167. errors, RXDMA0 might change the RXDMA0 destination
  168. <enum 0 rxdma_release_ring > RXDMA0 shall push the
  169. frame to the Release ring. Effectively this means the frame
  170. needs to be dropped.
  171. <enum 1 rxdma2fw_ring > RXDMA0 shall push the frame to
  172. the FW ring
  173. <enum 2 rxdma2sw_ring > RXDMA0 shall push the frame to
  174. the SW ring
  175. <enum 3 rxdma2reo_ring > RXDMA0 shall push the frame
  176. to the REO entrance ring
  177. <legal all>
  178. rxdma1_destination_ring
  179. The ring to which RXDMA1 shall push the frame, assuming
  180. no MPDU level errors are detected. In case of MPDU level
  181. errors, RXDMA1 might change the RXDMA destination
  182. <enum 0 rxdma_release_ring > RXDMA1 shall push the
  183. frame to the Release ring. Effectively this means the frame
  184. needs to be dropped.
  185. <enum 1 rxdma2fw_ring > RXDMA1 shall push the frame to
  186. the FW ring
  187. <enum 2 rxdma2sw_ring > RXDMA1 shall push the frame to
  188. the SW ring
  189. <enum 3 rxdma2reo_ring > RXDMA1 shall push the frame
  190. to the REO entrance ring
  191. <legal all>
  192. decrypt_status_code
  193. Field provides insight into the decryption performed
  194. <enum 0 decrypt_ok> Frame had protection enabled and
  195. decrypted properly
  196. <enum 1 decrypt_unprotected_frame > Frame is unprotected
  197. and hence bypassed
  198. <enum 2 decrypt_data_err > Frame has protection enabled
  199. and could not be properly decrypted due to MIC/ICV mismatch
  200. etc.
  201. <enum 3 decrypt_key_invalid > Frame has protection
  202. enabled but the key that was required to decrypt this frame
  203. was not valid
  204. <enum 4 decrypt_peer_entry_invalid > Frame has
  205. protection enabled but the key that was required to decrypt
  206. this frame was not valid
  207. <enum 5 decrypt_other > Reserved for other indications
  208. <legal 0 - 5>
  209. rx_bitmap_not_updated
  210. Frame is received, but RXPCU could not update the
  211. receive bitmap due to (temporary) fifo contraints.
  212. <legal all>
  213. reserved_1b
  214. <legal 0>
  215. */
  216. /* Description RX_MPDU_END_0_RXPCU_MPDU_FILTER_IN_CATEGORY
  217. Field indicates what the reason was that this MPDU frame
  218. was allowed to come into the receive path by RXPCU
  219. <enum 0 rxpcu_filter_pass> This MPDU passed the normal
  220. frame filter programming of rxpcu
  221. <enum 1 rxpcu_monitor_client> This MPDU did NOT pass the
  222. regular frame filter and would have been dropped, were it
  223. not for the frame fitting into the 'monitor_client'
  224. category.
  225. <enum 2 rxpcu_monitor_other> This MPDU did NOT pass the
  226. regular frame filter and also did not pass the
  227. rxpcu_monitor_client filter. It would have been dropped
  228. accept that it did pass the 'monitor_other' category.
  229. <legal 0-2>
  230. */
  231. #define RX_MPDU_END_0_RXPCU_MPDU_FILTER_IN_CATEGORY_OFFSET 0x00000000
  232. #define RX_MPDU_END_0_RXPCU_MPDU_FILTER_IN_CATEGORY_LSB 0
  233. #define RX_MPDU_END_0_RXPCU_MPDU_FILTER_IN_CATEGORY_MASK 0x00000003
  234. /* Description RX_MPDU_END_0_SW_FRAME_GROUP_ID
  235. SW processes frames based on certain classifications.
  236. This field indicates to what sw classification this MPDU is
  237. mapped.
  238. The classification is given in priority order
  239. <enum 0 sw_frame_group_NDP_frame>
  240. <enum 1 sw_frame_group_Multicast_data>
  241. <enum 2 sw_frame_group_Unicast_data>
  242. <enum 3 sw_frame_group_Null_data > This includes mpdus
  243. of type Data Null as well as QoS Data Null
  244. <enum 4 sw_frame_group_mgmt_0000 >
  245. <enum 5 sw_frame_group_mgmt_0001 >
  246. <enum 6 sw_frame_group_mgmt_0010 >
  247. <enum 7 sw_frame_group_mgmt_0011 >
  248. <enum 8 sw_frame_group_mgmt_0100 >
  249. <enum 9 sw_frame_group_mgmt_0101 >
  250. <enum 10 sw_frame_group_mgmt_0110 >
  251. <enum 11 sw_frame_group_mgmt_0111 >
  252. <enum 12 sw_frame_group_mgmt_1000 >
  253. <enum 13 sw_frame_group_mgmt_1001 >
  254. <enum 14 sw_frame_group_mgmt_1010 >
  255. <enum 15 sw_frame_group_mgmt_1011 >
  256. <enum 16 sw_frame_group_mgmt_1100 >
  257. <enum 17 sw_frame_group_mgmt_1101 >
  258. <enum 18 sw_frame_group_mgmt_1110 >
  259. <enum 19 sw_frame_group_mgmt_1111 >
  260. <enum 20 sw_frame_group_ctrl_0000 >
  261. <enum 21 sw_frame_group_ctrl_0001 >
  262. <enum 22 sw_frame_group_ctrl_0010 >
  263. <enum 23 sw_frame_group_ctrl_0011 >
  264. <enum 24 sw_frame_group_ctrl_0100 >
  265. <enum 25 sw_frame_group_ctrl_0101 >
  266. <enum 26 sw_frame_group_ctrl_0110 >
  267. <enum 27 sw_frame_group_ctrl_0111 >
  268. <enum 28 sw_frame_group_ctrl_1000 >
  269. <enum 29 sw_frame_group_ctrl_1001 >
  270. <enum 30 sw_frame_group_ctrl_1010 >
  271. <enum 31 sw_frame_group_ctrl_1011 >
  272. <enum 32 sw_frame_group_ctrl_1100 >
  273. <enum 33 sw_frame_group_ctrl_1101 >
  274. <enum 34 sw_frame_group_ctrl_1110 >
  275. <enum 35 sw_frame_group_ctrl_1111 >
  276. <enum 36 sw_frame_group_unsupported> This covers type 3
  277. and protocol version != 0
  278. <legal 0-37>
  279. */
  280. #define RX_MPDU_END_0_SW_FRAME_GROUP_ID_OFFSET 0x00000000
  281. #define RX_MPDU_END_0_SW_FRAME_GROUP_ID_LSB 2
  282. #define RX_MPDU_END_0_SW_FRAME_GROUP_ID_MASK 0x000001fc
  283. /* Description RX_MPDU_END_0_RESERVED_0
  284. <legal 0>
  285. */
  286. #define RX_MPDU_END_0_RESERVED_0_OFFSET 0x00000000
  287. #define RX_MPDU_END_0_RESERVED_0_LSB 9
  288. #define RX_MPDU_END_0_RESERVED_0_MASK 0x0000fe00
  289. /* Description RX_MPDU_END_0_PHY_PPDU_ID
  290. A ppdu counter value that PHY increments for every PPDU
  291. received. The counter value wraps around
  292. <legal all>
  293. */
  294. #define RX_MPDU_END_0_PHY_PPDU_ID_OFFSET 0x00000000
  295. #define RX_MPDU_END_0_PHY_PPDU_ID_LSB 16
  296. #define RX_MPDU_END_0_PHY_PPDU_ID_MASK 0xffff0000
  297. /* Description RX_MPDU_END_1_RESERVED_1A
  298. <legal 0>
  299. */
  300. #define RX_MPDU_END_1_RESERVED_1A_OFFSET 0x00000004
  301. #define RX_MPDU_END_1_RESERVED_1A_LSB 0
  302. #define RX_MPDU_END_1_RESERVED_1A_MASK 0x000007ff
  303. /* Description RX_MPDU_END_1_UNSUP_KTYPE_SHORT_FRAME
  304. This bit will be '1' when WEP or TKIP or WAPI key type
  305. is received for 11ah short frame. Crypto will bypass the
  306. received packet without decryption to RxOLE after setting
  307. this bit.
  308. */
  309. #define RX_MPDU_END_1_UNSUP_KTYPE_SHORT_FRAME_OFFSET 0x00000004
  310. #define RX_MPDU_END_1_UNSUP_KTYPE_SHORT_FRAME_LSB 11
  311. #define RX_MPDU_END_1_UNSUP_KTYPE_SHORT_FRAME_MASK 0x00000800
  312. /* Description RX_MPDU_END_1_RX_IN_TX_DECRYPT_BYP
  313. Indicates that RX packet is not decrypted as Crypto is
  314. busy with TX packet processing.
  315. */
  316. #define RX_MPDU_END_1_RX_IN_TX_DECRYPT_BYP_OFFSET 0x00000004
  317. #define RX_MPDU_END_1_RX_IN_TX_DECRYPT_BYP_LSB 12
  318. #define RX_MPDU_END_1_RX_IN_TX_DECRYPT_BYP_MASK 0x00001000
  319. /* Description RX_MPDU_END_1_OVERFLOW_ERR
  320. RXPCU Receive FIFO ran out of space to receive the full
  321. MPDU. Therefor this MPDU is terminated early and is thus
  322. corrupted.
  323. This MPDU will not be ACKed.
  324. RXPCU might still be able to correctly receive the
  325. following MPDUs in the PPDU if enough fifo space became
  326. available in time
  327. */
  328. #define RX_MPDU_END_1_OVERFLOW_ERR_OFFSET 0x00000004
  329. #define RX_MPDU_END_1_OVERFLOW_ERR_LSB 13
  330. #define RX_MPDU_END_1_OVERFLOW_ERR_MASK 0x00002000
  331. /* Description RX_MPDU_END_1_MPDU_LENGTH_ERR
  332. Set by RXPCU if the expected MPDU length does not
  333. correspond with the actually received number of bytes in the
  334. MPDU.
  335. */
  336. #define RX_MPDU_END_1_MPDU_LENGTH_ERR_OFFSET 0x00000004
  337. #define RX_MPDU_END_1_MPDU_LENGTH_ERR_LSB 14
  338. #define RX_MPDU_END_1_MPDU_LENGTH_ERR_MASK 0x00004000
  339. /* Description RX_MPDU_END_1_TKIP_MIC_ERR
  340. Set by RX CRYPTO when CRYPTO detected a TKIP MIC error
  341. for this MPDU
  342. */
  343. #define RX_MPDU_END_1_TKIP_MIC_ERR_OFFSET 0x00000004
  344. #define RX_MPDU_END_1_TKIP_MIC_ERR_LSB 15
  345. #define RX_MPDU_END_1_TKIP_MIC_ERR_MASK 0x00008000
  346. /* Description RX_MPDU_END_1_DECRYPT_ERR
  347. Set by RX CRYPTO when CRYPTO detected a decrypt error
  348. for this MPDU or CRYPTO received an encrypted frame, but did
  349. not get a valid corresponding key id in the peer entry.
  350. */
  351. #define RX_MPDU_END_1_DECRYPT_ERR_OFFSET 0x00000004
  352. #define RX_MPDU_END_1_DECRYPT_ERR_LSB 16
  353. #define RX_MPDU_END_1_DECRYPT_ERR_MASK 0x00010000
  354. /* Description RX_MPDU_END_1_UNENCRYPTED_FRAME_ERR
  355. Set by RX CRYPTO when CRYPTO detected an unencrypted
  356. frame while in the peer entry field
  357. 'All_frames_shall_be_encrypted' is set.
  358. */
  359. #define RX_MPDU_END_1_UNENCRYPTED_FRAME_ERR_OFFSET 0x00000004
  360. #define RX_MPDU_END_1_UNENCRYPTED_FRAME_ERR_LSB 17
  361. #define RX_MPDU_END_1_UNENCRYPTED_FRAME_ERR_MASK 0x00020000
  362. /* Description RX_MPDU_END_1_PN_FIELDS_CONTAIN_VALID_INFO
  363. Set by RX CRYPTO to indicate that there is a valid PN
  364. field present in this MPDU
  365. */
  366. #define RX_MPDU_END_1_PN_FIELDS_CONTAIN_VALID_INFO_OFFSET 0x00000004
  367. #define RX_MPDU_END_1_PN_FIELDS_CONTAIN_VALID_INFO_LSB 18
  368. #define RX_MPDU_END_1_PN_FIELDS_CONTAIN_VALID_INFO_MASK 0x00040000
  369. /* Description RX_MPDU_END_1_FCS_ERR
  370. Set by RXPCU when there is an FCS error detected for
  371. this MPDU
  372. */
  373. #define RX_MPDU_END_1_FCS_ERR_OFFSET 0x00000004
  374. #define RX_MPDU_END_1_FCS_ERR_LSB 19
  375. #define RX_MPDU_END_1_FCS_ERR_MASK 0x00080000
  376. /* Description RX_MPDU_END_1_MSDU_LENGTH_ERR
  377. Set by RXOLE when there is an msdu length error detected
  378. in at least 1 of the MSDUs embedded within the MPDU
  379. */
  380. #define RX_MPDU_END_1_MSDU_LENGTH_ERR_OFFSET 0x00000004
  381. #define RX_MPDU_END_1_MSDU_LENGTH_ERR_LSB 20
  382. #define RX_MPDU_END_1_MSDU_LENGTH_ERR_MASK 0x00100000
  383. /* Description RX_MPDU_END_1_RXDMA0_DESTINATION_RING
  384. The ring to which RXDMA0 shall push the frame, assuming
  385. no MPDU level errors are detected. In case of MPDU level
  386. errors, RXDMA0 might change the RXDMA0 destination
  387. <enum 0 rxdma_release_ring > RXDMA0 shall push the
  388. frame to the Release ring. Effectively this means the frame
  389. needs to be dropped.
  390. <enum 1 rxdma2fw_ring > RXDMA0 shall push the frame to
  391. the FW ring
  392. <enum 2 rxdma2sw_ring > RXDMA0 shall push the frame to
  393. the SW ring
  394. <enum 3 rxdma2reo_ring > RXDMA0 shall push the frame
  395. to the REO entrance ring
  396. <legal all>
  397. */
  398. #define RX_MPDU_END_1_RXDMA0_DESTINATION_RING_OFFSET 0x00000004
  399. #define RX_MPDU_END_1_RXDMA0_DESTINATION_RING_LSB 21
  400. #define RX_MPDU_END_1_RXDMA0_DESTINATION_RING_MASK 0x00600000
  401. /* Description RX_MPDU_END_1_RXDMA1_DESTINATION_RING
  402. The ring to which RXDMA1 shall push the frame, assuming
  403. no MPDU level errors are detected. In case of MPDU level
  404. errors, RXDMA1 might change the RXDMA destination
  405. <enum 0 rxdma_release_ring > RXDMA1 shall push the
  406. frame to the Release ring. Effectively this means the frame
  407. needs to be dropped.
  408. <enum 1 rxdma2fw_ring > RXDMA1 shall push the frame to
  409. the FW ring
  410. <enum 2 rxdma2sw_ring > RXDMA1 shall push the frame to
  411. the SW ring
  412. <enum 3 rxdma2reo_ring > RXDMA1 shall push the frame
  413. to the REO entrance ring
  414. <legal all>
  415. */
  416. #define RX_MPDU_END_1_RXDMA1_DESTINATION_RING_OFFSET 0x00000004
  417. #define RX_MPDU_END_1_RXDMA1_DESTINATION_RING_LSB 23
  418. #define RX_MPDU_END_1_RXDMA1_DESTINATION_RING_MASK 0x01800000
  419. /* Description RX_MPDU_END_1_DECRYPT_STATUS_CODE
  420. Field provides insight into the decryption performed
  421. <enum 0 decrypt_ok> Frame had protection enabled and
  422. decrypted properly
  423. <enum 1 decrypt_unprotected_frame > Frame is unprotected
  424. and hence bypassed
  425. <enum 2 decrypt_data_err > Frame has protection enabled
  426. and could not be properly decrypted due to MIC/ICV mismatch
  427. etc.
  428. <enum 3 decrypt_key_invalid > Frame has protection
  429. enabled but the key that was required to decrypt this frame
  430. was not valid
  431. <enum 4 decrypt_peer_entry_invalid > Frame has
  432. protection enabled but the key that was required to decrypt
  433. this frame was not valid
  434. <enum 5 decrypt_other > Reserved for other indications
  435. <legal 0 - 5>
  436. */
  437. #define RX_MPDU_END_1_DECRYPT_STATUS_CODE_OFFSET 0x00000004
  438. #define RX_MPDU_END_1_DECRYPT_STATUS_CODE_LSB 25
  439. #define RX_MPDU_END_1_DECRYPT_STATUS_CODE_MASK 0x0e000000
  440. /* Description RX_MPDU_END_1_RX_BITMAP_NOT_UPDATED
  441. Frame is received, but RXPCU could not update the
  442. receive bitmap due to (temporary) fifo contraints.
  443. <legal all>
  444. */
  445. #define RX_MPDU_END_1_RX_BITMAP_NOT_UPDATED_OFFSET 0x00000004
  446. #define RX_MPDU_END_1_RX_BITMAP_NOT_UPDATED_LSB 28
  447. #define RX_MPDU_END_1_RX_BITMAP_NOT_UPDATED_MASK 0x10000000
  448. /* Description RX_MPDU_END_1_RESERVED_1B
  449. <legal 0>
  450. */
  451. #define RX_MPDU_END_1_RESERVED_1B_OFFSET 0x00000004
  452. #define RX_MPDU_END_1_RESERVED_1B_LSB 29
  453. #define RX_MPDU_END_1_RESERVED_1B_MASK 0xe0000000
  454. #endif // _RX_MPDU_END_H_