rx_msdu_desc_info.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  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. //
  19. // DO NOT EDIT! This file is automatically generated
  20. // These definitions are tied to a particular hardware layout
  21. #ifndef _RX_MSDU_DESC_INFO_H_
  22. #define _RX_MSDU_DESC_INFO_H_
  23. #if !defined(__ASSEMBLER__)
  24. #endif
  25. // ################ START SUMMARY #################
  26. //
  27. // Dword Fields
  28. // 0 first_msdu_in_mpdu_flag[0], last_msdu_in_mpdu_flag[1], msdu_continuation[2], msdu_length[16:3], reo_destination_indication[21:17], msdu_drop[22], sa_is_valid[23], sa_idx_timeout[24], da_is_valid[25], da_is_mcbc[26], da_idx_timeout[27], reserved_0a[31:28]
  29. // 1 reserved_1a[31:0]
  30. //
  31. // ################ END SUMMARY #################
  32. #define NUM_OF_DWORDS_RX_MSDU_DESC_INFO 2
  33. struct rx_msdu_desc_info {
  34. uint32_t first_msdu_in_mpdu_flag : 1, //[0]
  35. last_msdu_in_mpdu_flag : 1, //[1]
  36. msdu_continuation : 1, //[2]
  37. msdu_length : 14, //[16:3]
  38. reo_destination_indication : 5, //[21:17]
  39. msdu_drop : 1, //[22]
  40. sa_is_valid : 1, //[23]
  41. sa_idx_timeout : 1, //[24]
  42. da_is_valid : 1, //[25]
  43. da_is_mcbc : 1, //[26]
  44. da_idx_timeout : 1, //[27]
  45. reserved_0a : 4; //[31:28]
  46. uint32_t reserved_1a : 32; //[31:0]
  47. };
  48. /*
  49. first_msdu_in_mpdu_flag
  50. <enum 0 Not_first_msdu> This is not the first MSDU in
  51. the MPDU.
  52. <enum 1 first_msdu> This MSDU is the first one in the
  53. MPDU. <legal all>
  54. last_msdu_in_mpdu_flag
  55. Consumer: WBM/REO/SW/FW
  56. Producer: RXDMA
  57. <enum 0 Not_last_msdu> There are more MSDUs linked to
  58. this MSDU that belongs to this MPDU
  59. <enum 1 Last_msdu> this MSDU is the last one in the
  60. MPDU. This setting is only allowed in combination with
  61. 'Msdu_continuation' set to 0. This implies that when an msdu
  62. is spread out over multiple buffers and thus
  63. msdu_continuation is set, only for the very last buffer of
  64. the msdu, can the 'last_msdu_in_mpdu_flag' be set.
  65. When both first_msdu_in_mpdu_flag and
  66. last_msdu_in_mpdu_flag are set, the MPDU that this MSDU
  67. belongs to only contains a single MSDU.
  68. <legal all>
  69. msdu_continuation
  70. When set, this MSDU buffer was not able to hold the
  71. entire MSDU. The next buffer will therefor contain
  72. additional information related to this MSDU.
  73. <legal all>
  74. msdu_length
  75. Field is only valid in combination with the
  76. 'first_msdu_in_mpdu_flag ' being set. When the
  77. 'first_msdu_in_mpdu_flag ' is not set, this field shall be
  78. 0.
  79. Full MSDU length in bytes after decapsulation.
  80. This field is still valid for MPDU frames without
  81. A-MSDU. It still represents MSDU length after decapsulation
  82. Or in case of RAW MPDUs, it indicates the length of the
  83. entire MPDU (without FCS field)
  84. <legal all>
  85. reo_destination_indication
  86. The ID of the REO exit ring where the MSDU frame shall
  87. push after (MPDU level) reordering has finished.
  88. <enum 0 reo_destination_tcl> Reo will push the frame
  89. into the REO2TCL ring
  90. <enum 1 reo_destination_sw1> Reo will push the frame
  91. into the REO2SW1 ring
  92. <enum 2 reo_destination_sw2> Reo will push the frame
  93. into the REO2SW1 ring
  94. <enum 3 reo_destination_sw3> Reo will push the frame
  95. into the REO2SW1 ring
  96. <enum 4 reo_destination_sw4> Reo will push the frame
  97. into the REO2SW1 ring
  98. <enum 5 reo_destination_release> Reo will push the frame
  99. into the REO_release ring
  100. <enum 6 reo_destination_fw> Reo will push the frame into
  101. the REO2FW ring
  102. <enum 7 reo_destination_7> REO remaps this
  103. <enum 8 reo_destination_8> REO remaps this <enum 9
  104. reo_destination_9> REO remaps this <enum 10
  105. reo_destination_10> REO remaps this
  106. <enum 11 reo_destination_11> REO remaps this
  107. <enum 12 reo_destination_12> REO remaps this <enum 13
  108. reo_destination_13> REO remaps this
  109. <enum 14 reo_destination_14> REO remaps this
  110. <enum 15 reo_destination_15> REO remaps this
  111. <enum 16 reo_destination_16> REO remaps this
  112. <enum 17 reo_destination_17> REO remaps this
  113. <enum 18 reo_destination_18> REO remaps this
  114. <enum 19 reo_destination_19> REO remaps this
  115. <enum 20 reo_destination_20> REO remaps this
  116. <enum 21 reo_destination_21> REO remaps this
  117. <enum 22 reo_destination_22> REO remaps this
  118. <enum 23 reo_destination_23> REO remaps this
  119. <enum 24 reo_destination_24> REO remaps this
  120. <enum 25 reo_destination_25> REO remaps this
  121. <enum 26 reo_destination_26> REO remaps this
  122. <enum 27 reo_destination_27> REO remaps this
  123. <enum 28 reo_destination_28> REO remaps this
  124. <enum 29 reo_destination_29> REO remaps this
  125. <enum 30 reo_destination_30> REO remaps this
  126. <enum 31 reo_destination_31> REO remaps this
  127. <legal all>
  128. msdu_drop
  129. When set, REO shall drop this MSDU and not forward it to
  130. any other ring...
  131. <legal all>
  132. sa_is_valid
  133. Indicates that OLE found a valid SA entry for this MSDU
  134. <legal all>
  135. sa_idx_timeout
  136. Indicates an unsuccessful MAC source address search due
  137. to the expiring of the search timer for this MSDU
  138. <legal all>
  139. da_is_valid
  140. Indicates that OLE found a valid DA entry for this MSDU
  141. <legal all>
  142. da_is_mcbc
  143. Field Only valid if da_is_valid is set
  144. Indicates the DA address was a Multicast of Broadcast
  145. address for this MSDU
  146. <legal all>
  147. da_idx_timeout
  148. Indicates an unsuccessful MAC destination address search
  149. due to the expiring of the search timer for this MSDU
  150. <legal all>
  151. reserved_0a
  152. <legal 0>
  153. reserved_1a
  154. <legal 0>
  155. */
  156. /* Description RX_MSDU_DESC_INFO_0_FIRST_MSDU_IN_MPDU_FLAG
  157. <enum 0 Not_first_msdu> This is not the first MSDU in
  158. the MPDU.
  159. <enum 1 first_msdu> This MSDU is the first one in the
  160. MPDU. <legal all>
  161. */
  162. #define RX_MSDU_DESC_INFO_0_FIRST_MSDU_IN_MPDU_FLAG_OFFSET 0x00000000
  163. #define RX_MSDU_DESC_INFO_0_FIRST_MSDU_IN_MPDU_FLAG_LSB 0
  164. #define RX_MSDU_DESC_INFO_0_FIRST_MSDU_IN_MPDU_FLAG_MASK 0x00000001
  165. /* Description RX_MSDU_DESC_INFO_0_LAST_MSDU_IN_MPDU_FLAG
  166. Consumer: WBM/REO/SW/FW
  167. Producer: RXDMA
  168. <enum 0 Not_last_msdu> There are more MSDUs linked to
  169. this MSDU that belongs to this MPDU
  170. <enum 1 Last_msdu> this MSDU is the last one in the
  171. MPDU. This setting is only allowed in combination with
  172. 'Msdu_continuation' set to 0. This implies that when an msdu
  173. is spread out over multiple buffers and thus
  174. msdu_continuation is set, only for the very last buffer of
  175. the msdu, can the 'last_msdu_in_mpdu_flag' be set.
  176. When both first_msdu_in_mpdu_flag and
  177. last_msdu_in_mpdu_flag are set, the MPDU that this MSDU
  178. belongs to only contains a single MSDU.
  179. <legal all>
  180. */
  181. #define RX_MSDU_DESC_INFO_0_LAST_MSDU_IN_MPDU_FLAG_OFFSET 0x00000000
  182. #define RX_MSDU_DESC_INFO_0_LAST_MSDU_IN_MPDU_FLAG_LSB 1
  183. #define RX_MSDU_DESC_INFO_0_LAST_MSDU_IN_MPDU_FLAG_MASK 0x00000002
  184. /* Description RX_MSDU_DESC_INFO_0_MSDU_CONTINUATION
  185. When set, this MSDU buffer was not able to hold the
  186. entire MSDU. The next buffer will therefor contain
  187. additional information related to this MSDU.
  188. <legal all>
  189. */
  190. #define RX_MSDU_DESC_INFO_0_MSDU_CONTINUATION_OFFSET 0x00000000
  191. #define RX_MSDU_DESC_INFO_0_MSDU_CONTINUATION_LSB 2
  192. #define RX_MSDU_DESC_INFO_0_MSDU_CONTINUATION_MASK 0x00000004
  193. /* Description RX_MSDU_DESC_INFO_0_MSDU_LENGTH
  194. Field is only valid in combination with the
  195. 'first_msdu_in_mpdu_flag ' being set. When the
  196. 'first_msdu_in_mpdu_flag ' is not set, this field shall be
  197. 0.
  198. Full MSDU length in bytes after decapsulation.
  199. This field is still valid for MPDU frames without
  200. A-MSDU. It still represents MSDU length after decapsulation
  201. Or in case of RAW MPDUs, it indicates the length of the
  202. entire MPDU (without FCS field)
  203. <legal all>
  204. */
  205. #define RX_MSDU_DESC_INFO_0_MSDU_LENGTH_OFFSET 0x00000000
  206. #define RX_MSDU_DESC_INFO_0_MSDU_LENGTH_LSB 3
  207. #define RX_MSDU_DESC_INFO_0_MSDU_LENGTH_MASK 0x0001fff8
  208. /* Description RX_MSDU_DESC_INFO_0_REO_DESTINATION_INDICATION
  209. The ID of the REO exit ring where the MSDU frame shall
  210. push after (MPDU level) reordering has finished.
  211. <enum 0 reo_destination_tcl> Reo will push the frame
  212. into the REO2TCL ring
  213. <enum 1 reo_destination_sw1> Reo will push the frame
  214. into the REO2SW1 ring
  215. <enum 2 reo_destination_sw2> Reo will push the frame
  216. into the REO2SW1 ring
  217. <enum 3 reo_destination_sw3> Reo will push the frame
  218. into the REO2SW1 ring
  219. <enum 4 reo_destination_sw4> Reo will push the frame
  220. into the REO2SW1 ring
  221. <enum 5 reo_destination_release> Reo will push the frame
  222. into the REO_release ring
  223. <enum 6 reo_destination_fw> Reo will push the frame into
  224. the REO2FW ring
  225. <enum 7 reo_destination_7> REO remaps this
  226. <enum 8 reo_destination_8> REO remaps this <enum 9
  227. reo_destination_9> REO remaps this <enum 10
  228. reo_destination_10> REO remaps this
  229. <enum 11 reo_destination_11> REO remaps this
  230. <enum 12 reo_destination_12> REO remaps this <enum 13
  231. reo_destination_13> REO remaps this
  232. <enum 14 reo_destination_14> REO remaps this
  233. <enum 15 reo_destination_15> REO remaps this
  234. <enum 16 reo_destination_16> REO remaps this
  235. <enum 17 reo_destination_17> REO remaps this
  236. <enum 18 reo_destination_18> REO remaps this
  237. <enum 19 reo_destination_19> REO remaps this
  238. <enum 20 reo_destination_20> REO remaps this
  239. <enum 21 reo_destination_21> REO remaps this
  240. <enum 22 reo_destination_22> REO remaps this
  241. <enum 23 reo_destination_23> REO remaps this
  242. <enum 24 reo_destination_24> REO remaps this
  243. <enum 25 reo_destination_25> REO remaps this
  244. <enum 26 reo_destination_26> REO remaps this
  245. <enum 27 reo_destination_27> REO remaps this
  246. <enum 28 reo_destination_28> REO remaps this
  247. <enum 29 reo_destination_29> REO remaps this
  248. <enum 30 reo_destination_30> REO remaps this
  249. <enum 31 reo_destination_31> REO remaps this
  250. <legal all>
  251. */
  252. #define RX_MSDU_DESC_INFO_0_REO_DESTINATION_INDICATION_OFFSET 0x00000000
  253. #define RX_MSDU_DESC_INFO_0_REO_DESTINATION_INDICATION_LSB 17
  254. #define RX_MSDU_DESC_INFO_0_REO_DESTINATION_INDICATION_MASK 0x003e0000
  255. /* Description RX_MSDU_DESC_INFO_0_MSDU_DROP
  256. When set, REO shall drop this MSDU and not forward it to
  257. any other ring...
  258. <legal all>
  259. */
  260. #define RX_MSDU_DESC_INFO_0_MSDU_DROP_OFFSET 0x00000000
  261. #define RX_MSDU_DESC_INFO_0_MSDU_DROP_LSB 22
  262. #define RX_MSDU_DESC_INFO_0_MSDU_DROP_MASK 0x00400000
  263. /* Description RX_MSDU_DESC_INFO_0_SA_IS_VALID
  264. Indicates that OLE found a valid SA entry for this MSDU
  265. <legal all>
  266. */
  267. #define RX_MSDU_DESC_INFO_0_SA_IS_VALID_OFFSET 0x00000000
  268. #define RX_MSDU_DESC_INFO_0_SA_IS_VALID_LSB 23
  269. #define RX_MSDU_DESC_INFO_0_SA_IS_VALID_MASK 0x00800000
  270. /* Description RX_MSDU_DESC_INFO_0_SA_IDX_TIMEOUT
  271. Indicates an unsuccessful MAC source address search due
  272. to the expiring of the search timer for this MSDU
  273. <legal all>
  274. */
  275. #define RX_MSDU_DESC_INFO_0_SA_IDX_TIMEOUT_OFFSET 0x00000000
  276. #define RX_MSDU_DESC_INFO_0_SA_IDX_TIMEOUT_LSB 24
  277. #define RX_MSDU_DESC_INFO_0_SA_IDX_TIMEOUT_MASK 0x01000000
  278. /* Description RX_MSDU_DESC_INFO_0_DA_IS_VALID
  279. Indicates that OLE found a valid DA entry for this MSDU
  280. <legal all>
  281. */
  282. #define RX_MSDU_DESC_INFO_0_DA_IS_VALID_OFFSET 0x00000000
  283. #define RX_MSDU_DESC_INFO_0_DA_IS_VALID_LSB 25
  284. #define RX_MSDU_DESC_INFO_0_DA_IS_VALID_MASK 0x02000000
  285. /* Description RX_MSDU_DESC_INFO_0_DA_IS_MCBC
  286. Field Only valid if da_is_valid is set
  287. Indicates the DA address was a Multicast of Broadcast
  288. address for this MSDU
  289. <legal all>
  290. */
  291. #define RX_MSDU_DESC_INFO_0_DA_IS_MCBC_OFFSET 0x00000000
  292. #define RX_MSDU_DESC_INFO_0_DA_IS_MCBC_LSB 26
  293. #define RX_MSDU_DESC_INFO_0_DA_IS_MCBC_MASK 0x04000000
  294. /* Description RX_MSDU_DESC_INFO_0_DA_IDX_TIMEOUT
  295. Indicates an unsuccessful MAC destination address search
  296. due to the expiring of the search timer for this MSDU
  297. <legal all>
  298. */
  299. #define RX_MSDU_DESC_INFO_0_DA_IDX_TIMEOUT_OFFSET 0x00000000
  300. #define RX_MSDU_DESC_INFO_0_DA_IDX_TIMEOUT_LSB 27
  301. #define RX_MSDU_DESC_INFO_0_DA_IDX_TIMEOUT_MASK 0x08000000
  302. /* Description RX_MSDU_DESC_INFO_0_RESERVED_0A
  303. <legal 0>
  304. */
  305. #define RX_MSDU_DESC_INFO_0_RESERVED_0A_OFFSET 0x00000000
  306. #define RX_MSDU_DESC_INFO_0_RESERVED_0A_LSB 28
  307. #define RX_MSDU_DESC_INFO_0_RESERVED_0A_MASK 0xf0000000
  308. /* Description RX_MSDU_DESC_INFO_1_RESERVED_1A
  309. <legal 0>
  310. */
  311. #define RX_MSDU_DESC_INFO_1_RESERVED_1A_OFFSET 0x00000004
  312. #define RX_MSDU_DESC_INFO_1_RESERVED_1A_LSB 0
  313. #define RX_MSDU_DESC_INFO_1_RESERVED_1A_MASK 0xffffffff
  314. #endif // _RX_MSDU_DESC_INFO_H_