rx_msdu_link.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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_LINK_H_
  22. #define _RX_MSDU_LINK_H_
  23. #if !defined(__ASSEMBLER__)
  24. #endif
  25. #include "uniform_descriptor_header.h"
  26. #include "buffer_addr_info.h"
  27. #include "rx_msdu_details.h"
  28. // ################ START SUMMARY #################
  29. //
  30. // Dword Fields
  31. // 0 struct uniform_descriptor_header descriptor_header;
  32. // 1-2 struct buffer_addr_info next_msdu_link_desc_addr_info;
  33. // 3 receive_queue_number[15:0], first_rx_msdu_link_struct[16], reserved_3a[31:17]
  34. // 4 pn_31_0[31:0]
  35. // 5 pn_63_32[31:0]
  36. // 6 pn_95_64[31:0]
  37. // 7 pn_127_96[31:0]
  38. // 8-11 struct rx_msdu_details msdu_0;
  39. // 12-15 struct rx_msdu_details msdu_1;
  40. // 16-19 struct rx_msdu_details msdu_2;
  41. // 20-23 struct rx_msdu_details msdu_3;
  42. // 24-27 struct rx_msdu_details msdu_4;
  43. // 28-31 struct rx_msdu_details msdu_5;
  44. //
  45. // ################ END SUMMARY #################
  46. #define NUM_OF_DWORDS_RX_MSDU_LINK 32
  47. struct rx_msdu_link {
  48. struct uniform_descriptor_header descriptor_header;
  49. struct buffer_addr_info next_msdu_link_desc_addr_info;
  50. uint32_t receive_queue_number : 16, //[15:0]
  51. first_rx_msdu_link_struct : 1, //[16]
  52. reserved_3a : 15; //[31:17]
  53. uint32_t pn_31_0 : 32; //[31:0]
  54. uint32_t pn_63_32 : 32; //[31:0]
  55. uint32_t pn_95_64 : 32; //[31:0]
  56. uint32_t pn_127_96 : 32; //[31:0]
  57. struct rx_msdu_details msdu_0;
  58. struct rx_msdu_details msdu_1;
  59. struct rx_msdu_details msdu_2;
  60. struct rx_msdu_details msdu_3;
  61. struct rx_msdu_details msdu_4;
  62. struct rx_msdu_details msdu_5;
  63. };
  64. /*
  65. struct uniform_descriptor_header descriptor_header
  66. Details about which module owns this struct.
  67. Note that sub field Buffer_type shall be set to
  68. Receive_MSDU_Link_descriptor
  69. struct buffer_addr_info next_msdu_link_desc_addr_info
  70. Details of the physical address of the next MSDU link
  71. descriptor that contains info about additional MSDUs that
  72. are part of this MPDU.
  73. receive_queue_number
  74. Indicates the Receive queue to which this MPDU
  75. descriptor belongs
  76. Used for tracking, finding bugs and debugging.
  77. <legal all>
  78. first_rx_msdu_link_struct
  79. When set, this RX_MSDU_link descriptor is the first one
  80. in the MSDU link list. Field MSDU_0 points to the very first
  81. MSDU buffer descriptor in the MPDU
  82. <legal all>
  83. reserved_3a
  84. <legal 0>
  85. pn_31_0
  86. 31-0 bits of the 256-bit packet number bitmap.
  87. <legal all>
  88. pn_63_32
  89. 63-32 bits of the 256-bit packet number bitmap.
  90. <legal all>
  91. pn_95_64
  92. 95-64 bits of the 256-bit packet number bitmap.
  93. <legal all>
  94. pn_127_96
  95. 127-96 bits of the 256-bit packet number bitmap.
  96. <legal all>
  97. struct rx_msdu_details msdu_0
  98. When First_RX_MSDU_link_struct is set, this MSDU is the
  99. first in the MPDU
  100. When First_RX_MSDU_link_struct is NOT set, this MSDU
  101. follows the last MSDU in the previous RX_MSDU_link data
  102. structure
  103. struct rx_msdu_details msdu_1
  104. Details of next MSDU in this (MSDU flow) linked list
  105. struct rx_msdu_details msdu_2
  106. Details of next MSDU in this (MSDU flow) linked list
  107. struct rx_msdu_details msdu_3
  108. Details of next MSDU in this (MSDU flow) linked list
  109. struct rx_msdu_details msdu_4
  110. Details of next MSDU in this (MSDU flow) linked list
  111. struct rx_msdu_details msdu_5
  112. Details of next MSDU in this (MSDU flow) linked list
  113. */
  114. #define RX_MSDU_LINK_0_UNIFORM_DESCRIPTOR_HEADER_DESCRIPTOR_HEADER_OFFSET 0x00000000
  115. #define RX_MSDU_LINK_0_UNIFORM_DESCRIPTOR_HEADER_DESCRIPTOR_HEADER_LSB 0
  116. #define RX_MSDU_LINK_0_UNIFORM_DESCRIPTOR_HEADER_DESCRIPTOR_HEADER_MASK 0xffffffff
  117. #define RX_MSDU_LINK_1_BUFFER_ADDR_INFO_NEXT_MSDU_LINK_DESC_ADDR_INFO_OFFSET 0x00000004
  118. #define RX_MSDU_LINK_1_BUFFER_ADDR_INFO_NEXT_MSDU_LINK_DESC_ADDR_INFO_LSB 0
  119. #define RX_MSDU_LINK_1_BUFFER_ADDR_INFO_NEXT_MSDU_LINK_DESC_ADDR_INFO_MASK 0xffffffff
  120. #define RX_MSDU_LINK_2_BUFFER_ADDR_INFO_NEXT_MSDU_LINK_DESC_ADDR_INFO_OFFSET 0x00000008
  121. #define RX_MSDU_LINK_2_BUFFER_ADDR_INFO_NEXT_MSDU_LINK_DESC_ADDR_INFO_LSB 0
  122. #define RX_MSDU_LINK_2_BUFFER_ADDR_INFO_NEXT_MSDU_LINK_DESC_ADDR_INFO_MASK 0xffffffff
  123. /* Description RX_MSDU_LINK_3_RECEIVE_QUEUE_NUMBER
  124. Indicates the Receive queue to which this MPDU
  125. descriptor belongs
  126. Used for tracking, finding bugs and debugging.
  127. <legal all>
  128. */
  129. #define RX_MSDU_LINK_3_RECEIVE_QUEUE_NUMBER_OFFSET 0x0000000c
  130. #define RX_MSDU_LINK_3_RECEIVE_QUEUE_NUMBER_LSB 0
  131. #define RX_MSDU_LINK_3_RECEIVE_QUEUE_NUMBER_MASK 0x0000ffff
  132. /* Description RX_MSDU_LINK_3_FIRST_RX_MSDU_LINK_STRUCT
  133. When set, this RX_MSDU_link descriptor is the first one
  134. in the MSDU link list. Field MSDU_0 points to the very first
  135. MSDU buffer descriptor in the MPDU
  136. <legal all>
  137. */
  138. #define RX_MSDU_LINK_3_FIRST_RX_MSDU_LINK_STRUCT_OFFSET 0x0000000c
  139. #define RX_MSDU_LINK_3_FIRST_RX_MSDU_LINK_STRUCT_LSB 16
  140. #define RX_MSDU_LINK_3_FIRST_RX_MSDU_LINK_STRUCT_MASK 0x00010000
  141. /* Description RX_MSDU_LINK_3_RESERVED_3A
  142. <legal 0>
  143. */
  144. #define RX_MSDU_LINK_3_RESERVED_3A_OFFSET 0x0000000c
  145. #define RX_MSDU_LINK_3_RESERVED_3A_LSB 17
  146. #define RX_MSDU_LINK_3_RESERVED_3A_MASK 0xfffe0000
  147. /* Description RX_MSDU_LINK_4_PN_31_0
  148. 31-0 bits of the 256-bit packet number bitmap.
  149. <legal all>
  150. */
  151. #define RX_MSDU_LINK_4_PN_31_0_OFFSET 0x00000010
  152. #define RX_MSDU_LINK_4_PN_31_0_LSB 0
  153. #define RX_MSDU_LINK_4_PN_31_0_MASK 0xffffffff
  154. /* Description RX_MSDU_LINK_5_PN_63_32
  155. 63-32 bits of the 256-bit packet number bitmap.
  156. <legal all>
  157. */
  158. #define RX_MSDU_LINK_5_PN_63_32_OFFSET 0x00000014
  159. #define RX_MSDU_LINK_5_PN_63_32_LSB 0
  160. #define RX_MSDU_LINK_5_PN_63_32_MASK 0xffffffff
  161. /* Description RX_MSDU_LINK_6_PN_95_64
  162. 95-64 bits of the 256-bit packet number bitmap.
  163. <legal all>
  164. */
  165. #define RX_MSDU_LINK_6_PN_95_64_OFFSET 0x00000018
  166. #define RX_MSDU_LINK_6_PN_95_64_LSB 0
  167. #define RX_MSDU_LINK_6_PN_95_64_MASK 0xffffffff
  168. /* Description RX_MSDU_LINK_7_PN_127_96
  169. 127-96 bits of the 256-bit packet number bitmap.
  170. <legal all>
  171. */
  172. #define RX_MSDU_LINK_7_PN_127_96_OFFSET 0x0000001c
  173. #define RX_MSDU_LINK_7_PN_127_96_LSB 0
  174. #define RX_MSDU_LINK_7_PN_127_96_MASK 0xffffffff
  175. #define RX_MSDU_LINK_8_RX_MSDU_DETAILS_MSDU_0_OFFSET 0x00000020
  176. #define RX_MSDU_LINK_8_RX_MSDU_DETAILS_MSDU_0_LSB 0
  177. #define RX_MSDU_LINK_8_RX_MSDU_DETAILS_MSDU_0_MASK 0xffffffff
  178. #define RX_MSDU_LINK_9_RX_MSDU_DETAILS_MSDU_0_OFFSET 0x00000024
  179. #define RX_MSDU_LINK_9_RX_MSDU_DETAILS_MSDU_0_LSB 0
  180. #define RX_MSDU_LINK_9_RX_MSDU_DETAILS_MSDU_0_MASK 0xffffffff
  181. #define RX_MSDU_LINK_10_RX_MSDU_DETAILS_MSDU_0_OFFSET 0x00000028
  182. #define RX_MSDU_LINK_10_RX_MSDU_DETAILS_MSDU_0_LSB 0
  183. #define RX_MSDU_LINK_10_RX_MSDU_DETAILS_MSDU_0_MASK 0xffffffff
  184. #define RX_MSDU_LINK_11_RX_MSDU_DETAILS_MSDU_0_OFFSET 0x0000002c
  185. #define RX_MSDU_LINK_11_RX_MSDU_DETAILS_MSDU_0_LSB 0
  186. #define RX_MSDU_LINK_11_RX_MSDU_DETAILS_MSDU_0_MASK 0xffffffff
  187. #define RX_MSDU_LINK_12_RX_MSDU_DETAILS_MSDU_1_OFFSET 0x00000030
  188. #define RX_MSDU_LINK_12_RX_MSDU_DETAILS_MSDU_1_LSB 0
  189. #define RX_MSDU_LINK_12_RX_MSDU_DETAILS_MSDU_1_MASK 0xffffffff
  190. #define RX_MSDU_LINK_13_RX_MSDU_DETAILS_MSDU_1_OFFSET 0x00000034
  191. #define RX_MSDU_LINK_13_RX_MSDU_DETAILS_MSDU_1_LSB 0
  192. #define RX_MSDU_LINK_13_RX_MSDU_DETAILS_MSDU_1_MASK 0xffffffff
  193. #define RX_MSDU_LINK_14_RX_MSDU_DETAILS_MSDU_1_OFFSET 0x00000038
  194. #define RX_MSDU_LINK_14_RX_MSDU_DETAILS_MSDU_1_LSB 0
  195. #define RX_MSDU_LINK_14_RX_MSDU_DETAILS_MSDU_1_MASK 0xffffffff
  196. #define RX_MSDU_LINK_15_RX_MSDU_DETAILS_MSDU_1_OFFSET 0x0000003c
  197. #define RX_MSDU_LINK_15_RX_MSDU_DETAILS_MSDU_1_LSB 0
  198. #define RX_MSDU_LINK_15_RX_MSDU_DETAILS_MSDU_1_MASK 0xffffffff
  199. #define RX_MSDU_LINK_16_RX_MSDU_DETAILS_MSDU_2_OFFSET 0x00000040
  200. #define RX_MSDU_LINK_16_RX_MSDU_DETAILS_MSDU_2_LSB 0
  201. #define RX_MSDU_LINK_16_RX_MSDU_DETAILS_MSDU_2_MASK 0xffffffff
  202. #define RX_MSDU_LINK_17_RX_MSDU_DETAILS_MSDU_2_OFFSET 0x00000044
  203. #define RX_MSDU_LINK_17_RX_MSDU_DETAILS_MSDU_2_LSB 0
  204. #define RX_MSDU_LINK_17_RX_MSDU_DETAILS_MSDU_2_MASK 0xffffffff
  205. #define RX_MSDU_LINK_18_RX_MSDU_DETAILS_MSDU_2_OFFSET 0x00000048
  206. #define RX_MSDU_LINK_18_RX_MSDU_DETAILS_MSDU_2_LSB 0
  207. #define RX_MSDU_LINK_18_RX_MSDU_DETAILS_MSDU_2_MASK 0xffffffff
  208. #define RX_MSDU_LINK_19_RX_MSDU_DETAILS_MSDU_2_OFFSET 0x0000004c
  209. #define RX_MSDU_LINK_19_RX_MSDU_DETAILS_MSDU_2_LSB 0
  210. #define RX_MSDU_LINK_19_RX_MSDU_DETAILS_MSDU_2_MASK 0xffffffff
  211. #define RX_MSDU_LINK_20_RX_MSDU_DETAILS_MSDU_3_OFFSET 0x00000050
  212. #define RX_MSDU_LINK_20_RX_MSDU_DETAILS_MSDU_3_LSB 0
  213. #define RX_MSDU_LINK_20_RX_MSDU_DETAILS_MSDU_3_MASK 0xffffffff
  214. #define RX_MSDU_LINK_21_RX_MSDU_DETAILS_MSDU_3_OFFSET 0x00000054
  215. #define RX_MSDU_LINK_21_RX_MSDU_DETAILS_MSDU_3_LSB 0
  216. #define RX_MSDU_LINK_21_RX_MSDU_DETAILS_MSDU_3_MASK 0xffffffff
  217. #define RX_MSDU_LINK_22_RX_MSDU_DETAILS_MSDU_3_OFFSET 0x00000058
  218. #define RX_MSDU_LINK_22_RX_MSDU_DETAILS_MSDU_3_LSB 0
  219. #define RX_MSDU_LINK_22_RX_MSDU_DETAILS_MSDU_3_MASK 0xffffffff
  220. #define RX_MSDU_LINK_23_RX_MSDU_DETAILS_MSDU_3_OFFSET 0x0000005c
  221. #define RX_MSDU_LINK_23_RX_MSDU_DETAILS_MSDU_3_LSB 0
  222. #define RX_MSDU_LINK_23_RX_MSDU_DETAILS_MSDU_3_MASK 0xffffffff
  223. #define RX_MSDU_LINK_24_RX_MSDU_DETAILS_MSDU_4_OFFSET 0x00000060
  224. #define RX_MSDU_LINK_24_RX_MSDU_DETAILS_MSDU_4_LSB 0
  225. #define RX_MSDU_LINK_24_RX_MSDU_DETAILS_MSDU_4_MASK 0xffffffff
  226. #define RX_MSDU_LINK_25_RX_MSDU_DETAILS_MSDU_4_OFFSET 0x00000064
  227. #define RX_MSDU_LINK_25_RX_MSDU_DETAILS_MSDU_4_LSB 0
  228. #define RX_MSDU_LINK_25_RX_MSDU_DETAILS_MSDU_4_MASK 0xffffffff
  229. #define RX_MSDU_LINK_26_RX_MSDU_DETAILS_MSDU_4_OFFSET 0x00000068
  230. #define RX_MSDU_LINK_26_RX_MSDU_DETAILS_MSDU_4_LSB 0
  231. #define RX_MSDU_LINK_26_RX_MSDU_DETAILS_MSDU_4_MASK 0xffffffff
  232. #define RX_MSDU_LINK_27_RX_MSDU_DETAILS_MSDU_4_OFFSET 0x0000006c
  233. #define RX_MSDU_LINK_27_RX_MSDU_DETAILS_MSDU_4_LSB 0
  234. #define RX_MSDU_LINK_27_RX_MSDU_DETAILS_MSDU_4_MASK 0xffffffff
  235. #define RX_MSDU_LINK_28_RX_MSDU_DETAILS_MSDU_5_OFFSET 0x00000070
  236. #define RX_MSDU_LINK_28_RX_MSDU_DETAILS_MSDU_5_LSB 0
  237. #define RX_MSDU_LINK_28_RX_MSDU_DETAILS_MSDU_5_MASK 0xffffffff
  238. #define RX_MSDU_LINK_29_RX_MSDU_DETAILS_MSDU_5_OFFSET 0x00000074
  239. #define RX_MSDU_LINK_29_RX_MSDU_DETAILS_MSDU_5_LSB 0
  240. #define RX_MSDU_LINK_29_RX_MSDU_DETAILS_MSDU_5_MASK 0xffffffff
  241. #define RX_MSDU_LINK_30_RX_MSDU_DETAILS_MSDU_5_OFFSET 0x00000078
  242. #define RX_MSDU_LINK_30_RX_MSDU_DETAILS_MSDU_5_LSB 0
  243. #define RX_MSDU_LINK_30_RX_MSDU_DETAILS_MSDU_5_MASK 0xffffffff
  244. #define RX_MSDU_LINK_31_RX_MSDU_DETAILS_MSDU_5_OFFSET 0x0000007c
  245. #define RX_MSDU_LINK_31_RX_MSDU_DETAILS_MSDU_5_LSB 0
  246. #define RX_MSDU_LINK_31_RX_MSDU_DETAILS_MSDU_5_MASK 0xffffffff
  247. #endif // _RX_MSDU_LINK_H_