rxpt_classify_info.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. /*
  2. * Copyright (c) 2021 The Linux Foundation. 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. // $ATH_LICENSE_HW_HDR_C$
  17. //
  18. // DO NOT EDIT! This file is automatically generated
  19. // These definitions are tied to a particular hardware layout
  20. #ifndef _RXPT_CLASSIFY_INFO_H_
  21. #define _RXPT_CLASSIFY_INFO_H_
  22. #if !defined(__ASSEMBLER__)
  23. #endif
  24. // ################ START SUMMARY #################
  25. //
  26. // Dword Fields
  27. // 0 reo_destination_indication[4:0], reserved_0a[6:5], use_flow_id_toeplitz_clfy[7], pkt_selection_fp_ucast_data[8], pkt_selection_fp_mcast_data[9], pkt_selection_fp_1000[10], rxdma0_source_ring_selection[12:11], rxdma0_destination_ring_selection[14:13], reserved_0b[31:15]
  28. //
  29. // ################ END SUMMARY #################
  30. #define NUM_OF_DWORDS_RXPT_CLASSIFY_INFO 1
  31. struct rxpt_classify_info {
  32. uint32_t reo_destination_indication : 5, //[4:0]
  33. reserved_0a : 2, //[6:5]
  34. use_flow_id_toeplitz_clfy : 1, //[7]
  35. pkt_selection_fp_ucast_data : 1, //[8]
  36. pkt_selection_fp_mcast_data : 1, //[9]
  37. pkt_selection_fp_1000 : 1, //[10]
  38. rxdma0_source_ring_selection : 2, //[12:11]
  39. rxdma0_destination_ring_selection: 2, //[14:13]
  40. reserved_0b : 17; //[31:15]
  41. };
  42. /*
  43. reo_destination_indication
  44. The ID of the REO exit ring where the MSDU frame shall
  45. push after (MPDU level) reordering has finished.
  46. <enum 0 reo_destination_tcl> Reo will push the frame
  47. into the REO2TCL ring
  48. <enum 1 reo_destination_sw1> Reo will push the frame
  49. into the REO2SW1 ring
  50. <enum 2 reo_destination_sw2> Reo will push the frame
  51. into the REO2SW1 ring
  52. <enum 3 reo_destination_sw3> Reo will push the frame
  53. into the REO2SW1 ring
  54. <enum 4 reo_destination_sw4> Reo will push the frame
  55. into the REO2SW1 ring
  56. <enum 5 reo_destination_release> Reo will push the frame
  57. into the REO_release ring
  58. <enum 6 reo_destination_fw> Reo will push the frame into
  59. the REO2FW ring
  60. <enum 7 reo_destination_7> REO remaps this
  61. <enum 8 reo_destination_8> REO remaps this <enum 9
  62. reo_destination_9> REO remaps this <enum 10
  63. reo_destination_10> REO remaps this
  64. <enum 11 reo_destination_11> REO remaps this
  65. <enum 12 reo_destination_12> REO remaps this <enum 13
  66. reo_destination_13> REO remaps this
  67. <enum 14 reo_destination_14> REO remaps this
  68. <enum 15 reo_destination_15> REO remaps this
  69. <enum 16 reo_destination_16> REO remaps this
  70. <enum 17 reo_destination_17> REO remaps this
  71. <enum 18 reo_destination_18> REO remaps this
  72. <enum 19 reo_destination_19> REO remaps this
  73. <enum 20 reo_destination_20> REO remaps this
  74. <enum 21 reo_destination_21> REO remaps this
  75. <enum 22 reo_destination_22> REO remaps this
  76. <enum 23 reo_destination_23> REO remaps this
  77. <enum 24 reo_destination_24> REO remaps this
  78. <enum 25 reo_destination_25> REO remaps this
  79. <enum 26 reo_destination_26> REO remaps this
  80. <enum 27 reo_destination_27> REO remaps this
  81. <enum 28 reo_destination_28> REO remaps this
  82. <enum 29 reo_destination_29> REO remaps this
  83. <enum 30 reo_destination_30> REO remaps this
  84. <enum 31 reo_destination_31> REO remaps this
  85. <legal all>
  86. reserved_0a
  87. <legal 0>
  88. use_flow_id_toeplitz_clfy
  89. Field is used to enable classification based on the
  90. chosen Toeplitz hash from Common Parser (without reference
  91. to each hash type).
  92. <legal all>
  93. pkt_selection_fp_ucast_data
  94. Filter pass ucast data frame routing selection.
  95. 1'b0: source and destination rings are selected from the
  96. RxOLE register settings for the packet type
  97. 1'b1: source ring and destination ring is selected from
  98. the rxdma0_source_ring_selection and
  99. rxdma0_destination_ring_selection fields in this STRUCT
  100. <legal all>
  101. pkt_selection_fp_mcast_data
  102. Filter pass multicase data frame routing selection.
  103. 1'b0: source and destination rings are selected from the
  104. RxOLE register settings for the packet type
  105. 1'b1: source ring and destination ring is selected from
  106. the rxdma0_source_ring_selection and
  107. rxdma0_destination_ring_selection fields in this STRUCT
  108. <legal all>
  109. pkt_selection_fp_1000
  110. Filter pass control bar frame routing selection.
  111. 1'b0: source and destination rings are selected from the
  112. RxOLE register settings for the packet type
  113. 1'b1: source ring and destination ring is selected from
  114. the rxdma0_source_ring_selection and
  115. rxdma0_destination_ring_selection fields in this STRUCT
  116. <legal all>
  117. rxdma0_source_ring_selection
  118. Field only valid when for the received frame type the
  119. corresponding pkt_selection_fp_... bit is set
  120. <enum 0 wbm2rxdma_buf_source_ring> The data buffer for
  121. this frame shall be sourced by wbm2rxdma buffer source ring
  122. <enum 1 fw2rxdma_buf_source_ring> The data buffer for
  123. this frame shall be sourced by fw2rxdma buffer source ring
  124. <enum 2 sw2rxdma_buf_source_ring> The data buffer for
  125. this frame shall be sourced by sw2rxdma buffer source ring
  126. <enum 3 no_buffer_ring> The frame shall not be written
  127. to any data buffer
  128. <legal all>
  129. rxdma0_destination_ring_selection
  130. Field only valid when for the received frame type the
  131. corresponding pkt_selection_fp_... bit is set
  132. <enum 0 rxdma_release_ring > RXDMA0 shall push the
  133. frame to the Release ring. Effectively this means the frame
  134. needs to be dropped.
  135. <enum 1 rxdma2fw_ring > RXDMA0 shall push the frame to
  136. the FW ring
  137. <enum 2 rxdma2sw_ring > RXDMA0 shall push the frame to
  138. the SW ring
  139. <enum 3 rxdma2reo_ring > RXDMA0 shall push the frame
  140. to the REO entrance ring
  141. <legal all>
  142. reserved_0b
  143. <legal 0>
  144. */
  145. /* Description RXPT_CLASSIFY_INFO_0_REO_DESTINATION_INDICATION
  146. The ID of the REO exit ring where the MSDU frame shall
  147. push after (MPDU level) reordering has finished.
  148. <enum 0 reo_destination_tcl> Reo will push the frame
  149. into the REO2TCL ring
  150. <enum 1 reo_destination_sw1> Reo will push the frame
  151. into the REO2SW1 ring
  152. <enum 2 reo_destination_sw2> Reo will push the frame
  153. into the REO2SW1 ring
  154. <enum 3 reo_destination_sw3> Reo will push the frame
  155. into the REO2SW1 ring
  156. <enum 4 reo_destination_sw4> Reo will push the frame
  157. into the REO2SW1 ring
  158. <enum 5 reo_destination_release> Reo will push the frame
  159. into the REO_release ring
  160. <enum 6 reo_destination_fw> Reo will push the frame into
  161. the REO2FW ring
  162. <enum 7 reo_destination_7> REO remaps this
  163. <enum 8 reo_destination_8> REO remaps this <enum 9
  164. reo_destination_9> REO remaps this <enum 10
  165. reo_destination_10> REO remaps this
  166. <enum 11 reo_destination_11> REO remaps this
  167. <enum 12 reo_destination_12> REO remaps this <enum 13
  168. reo_destination_13> REO remaps this
  169. <enum 14 reo_destination_14> REO remaps this
  170. <enum 15 reo_destination_15> REO remaps this
  171. <enum 16 reo_destination_16> REO remaps this
  172. <enum 17 reo_destination_17> REO remaps this
  173. <enum 18 reo_destination_18> REO remaps this
  174. <enum 19 reo_destination_19> REO remaps this
  175. <enum 20 reo_destination_20> REO remaps this
  176. <enum 21 reo_destination_21> REO remaps this
  177. <enum 22 reo_destination_22> REO remaps this
  178. <enum 23 reo_destination_23> REO remaps this
  179. <enum 24 reo_destination_24> REO remaps this
  180. <enum 25 reo_destination_25> REO remaps this
  181. <enum 26 reo_destination_26> REO remaps this
  182. <enum 27 reo_destination_27> REO remaps this
  183. <enum 28 reo_destination_28> REO remaps this
  184. <enum 29 reo_destination_29> REO remaps this
  185. <enum 30 reo_destination_30> REO remaps this
  186. <enum 31 reo_destination_31> REO remaps this
  187. <legal all>
  188. */
  189. #define RXPT_CLASSIFY_INFO_0_REO_DESTINATION_INDICATION_OFFSET 0x00000000
  190. #define RXPT_CLASSIFY_INFO_0_REO_DESTINATION_INDICATION_LSB 0
  191. #define RXPT_CLASSIFY_INFO_0_REO_DESTINATION_INDICATION_MASK 0x0000001f
  192. /* Description RXPT_CLASSIFY_INFO_0_RESERVED_0A
  193. <legal 0>
  194. */
  195. #define RXPT_CLASSIFY_INFO_0_RESERVED_0A_OFFSET 0x00000000
  196. #define RXPT_CLASSIFY_INFO_0_RESERVED_0A_LSB 5
  197. #define RXPT_CLASSIFY_INFO_0_RESERVED_0A_MASK 0x00000060
  198. /* Description RXPT_CLASSIFY_INFO_0_USE_FLOW_ID_TOEPLITZ_CLFY
  199. Field is used to enable classification based on the
  200. chosen Toeplitz hash from Common Parser (without reference
  201. to each hash type).
  202. <legal all>
  203. */
  204. #define RXPT_CLASSIFY_INFO_0_USE_FLOW_ID_TOEPLITZ_CLFY_OFFSET 0x00000000
  205. #define RXPT_CLASSIFY_INFO_0_USE_FLOW_ID_TOEPLITZ_CLFY_LSB 7
  206. #define RXPT_CLASSIFY_INFO_0_USE_FLOW_ID_TOEPLITZ_CLFY_MASK 0x00000080
  207. /* Description RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_UCAST_DATA
  208. Filter pass ucast data frame routing selection.
  209. 1'b0: source and destination rings are selected from the
  210. RxOLE register settings for the packet type
  211. 1'b1: source ring and destination ring is selected from
  212. the rxdma0_source_ring_selection and
  213. rxdma0_destination_ring_selection fields in this STRUCT
  214. <legal all>
  215. */
  216. #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_UCAST_DATA_OFFSET 0x00000000
  217. #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_UCAST_DATA_LSB 8
  218. #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_UCAST_DATA_MASK 0x00000100
  219. /* Description RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_MCAST_DATA
  220. Filter pass multicase data frame routing selection.
  221. 1'b0: source and destination rings are selected from the
  222. RxOLE register settings for the packet type
  223. 1'b1: source ring and destination ring is selected from
  224. the rxdma0_source_ring_selection and
  225. rxdma0_destination_ring_selection fields in this STRUCT
  226. <legal all>
  227. */
  228. #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_MCAST_DATA_OFFSET 0x00000000
  229. #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_MCAST_DATA_LSB 9
  230. #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_MCAST_DATA_MASK 0x00000200
  231. /* Description RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_1000
  232. Filter pass control bar frame routing selection.
  233. 1'b0: source and destination rings are selected from the
  234. RxOLE register settings for the packet type
  235. 1'b1: source ring and destination ring is selected from
  236. the rxdma0_source_ring_selection and
  237. rxdma0_destination_ring_selection fields in this STRUCT
  238. <legal all>
  239. */
  240. #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_1000_OFFSET 0x00000000
  241. #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_1000_LSB 10
  242. #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_1000_MASK 0x00000400
  243. /* Description RXPT_CLASSIFY_INFO_0_RXDMA0_SOURCE_RING_SELECTION
  244. Field only valid when for the received frame type the
  245. corresponding pkt_selection_fp_... bit is set
  246. <enum 0 wbm2rxdma_buf_source_ring> The data buffer for
  247. this frame shall be sourced by wbm2rxdma buffer source ring
  248. <enum 1 fw2rxdma_buf_source_ring> The data buffer for
  249. this frame shall be sourced by fw2rxdma buffer source ring
  250. <enum 2 sw2rxdma_buf_source_ring> The data buffer for
  251. this frame shall be sourced by sw2rxdma buffer source ring
  252. <enum 3 no_buffer_ring> The frame shall not be written
  253. to any data buffer
  254. <legal all>
  255. */
  256. #define RXPT_CLASSIFY_INFO_0_RXDMA0_SOURCE_RING_SELECTION_OFFSET 0x00000000
  257. #define RXPT_CLASSIFY_INFO_0_RXDMA0_SOURCE_RING_SELECTION_LSB 11
  258. #define RXPT_CLASSIFY_INFO_0_RXDMA0_SOURCE_RING_SELECTION_MASK 0x00001800
  259. /* Description RXPT_CLASSIFY_INFO_0_RXDMA0_DESTINATION_RING_SELECTION
  260. Field only valid when for the received frame type the
  261. corresponding pkt_selection_fp_... bit is set
  262. <enum 0 rxdma_release_ring > RXDMA0 shall push the
  263. frame to the Release ring. Effectively this means the frame
  264. needs to be dropped.
  265. <enum 1 rxdma2fw_ring > RXDMA0 shall push the frame to
  266. the FW ring
  267. <enum 2 rxdma2sw_ring > RXDMA0 shall push the frame to
  268. the SW ring
  269. <enum 3 rxdma2reo_ring > RXDMA0 shall push the frame
  270. to the REO entrance ring
  271. <legal all>
  272. */
  273. #define RXPT_CLASSIFY_INFO_0_RXDMA0_DESTINATION_RING_SELECTION_OFFSET 0x00000000
  274. #define RXPT_CLASSIFY_INFO_0_RXDMA0_DESTINATION_RING_SELECTION_LSB 13
  275. #define RXPT_CLASSIFY_INFO_0_RXDMA0_DESTINATION_RING_SELECTION_MASK 0x00006000
  276. /* Description RXPT_CLASSIFY_INFO_0_RESERVED_0B
  277. <legal 0>
  278. */
  279. #define RXPT_CLASSIFY_INFO_0_RESERVED_0B_OFFSET 0x00000000
  280. #define RXPT_CLASSIFY_INFO_0_RESERVED_0B_LSB 15
  281. #define RXPT_CLASSIFY_INFO_0_RESERVED_0B_MASK 0xffff8000
  282. #endif // _RXPT_CLASSIFY_INFO_H_