reo_get_queue_stats.h 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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 _REO_GET_QUEUE_STATS_H_
  21. #define _REO_GET_QUEUE_STATS_H_
  22. #if !defined(__ASSEMBLER__)
  23. #endif
  24. #include "uniform_reo_cmd_header.h"
  25. // ################ START SUMMARY #################
  26. //
  27. // Dword Fields
  28. // 0 struct uniform_reo_cmd_header cmd_header;
  29. // 1 rx_reo_queue_desc_addr_31_0[31:0]
  30. // 2 rx_reo_queue_desc_addr_39_32[7:0], clear_stats[8], reserved_2a[31:9]
  31. // 3 reserved_3a[31:0]
  32. // 4 reserved_4a[31:0]
  33. // 5 reserved_5a[31:0]
  34. // 6 reserved_6a[31:0]
  35. // 7 reserved_7a[31:0]
  36. // 8 reserved_8a[31:0]
  37. //
  38. // ################ END SUMMARY #################
  39. #define NUM_OF_DWORDS_REO_GET_QUEUE_STATS 9
  40. struct reo_get_queue_stats {
  41. struct uniform_reo_cmd_header cmd_header;
  42. uint32_t rx_reo_queue_desc_addr_31_0 : 32; //[31:0]
  43. uint32_t rx_reo_queue_desc_addr_39_32 : 8, //[7:0]
  44. clear_stats : 1, //[8]
  45. reserved_2a : 23; //[31:9]
  46. uint32_t reserved_3a : 32; //[31:0]
  47. uint32_t reserved_4a : 32; //[31:0]
  48. uint32_t reserved_5a : 32; //[31:0]
  49. uint32_t reserved_6a : 32; //[31:0]
  50. uint32_t reserved_7a : 32; //[31:0]
  51. uint32_t reserved_8a : 32; //[31:0]
  52. };
  53. /*
  54. struct uniform_reo_cmd_header cmd_header
  55. Consumer: REO
  56. Producer: SW
  57. Details for command execution tracking purposes.
  58. rx_reo_queue_desc_addr_31_0
  59. Consumer: REO
  60. Producer: SW
  61. Address (lower 32 bits) of the REO queue descriptor
  62. <legal all>
  63. rx_reo_queue_desc_addr_39_32
  64. Consumer: REO
  65. Producer: SW
  66. Address (upper 8 bits) of the REO queue descriptor
  67. <legal all>
  68. clear_stats
  69. Clear stat settings....
  70. <enum 0 no_clear> Do NOT clear the stats after
  71. generating the status
  72. <enum 1 clear_the_stats> Clear the stats after
  73. generating the status.
  74. The stats actually cleared are:
  75. Timeout_count
  76. Forward_due_to_bar_count
  77. Duplicate_count
  78. Frames_in_order_count
  79. BAR_received_count
  80. MPDU_Frames_processed_count
  81. MSDU_Frames_processed_count
  82. Total_processed_byte_count
  83. Late_receive_MPDU_count
  84. window_jump_2k
  85. Hole_count
  86. <legal 0-1>
  87. reserved_2a
  88. <legal 0>
  89. reserved_3a
  90. <legal 0>
  91. reserved_4a
  92. <legal 0>
  93. reserved_5a
  94. <legal 0>
  95. reserved_6a
  96. <legal 0>
  97. reserved_7a
  98. <legal 0>
  99. reserved_8a
  100. <legal 0>
  101. */
  102. /* EXTERNAL REFERENCE : struct uniform_reo_cmd_header cmd_header */
  103. /* Description REO_GET_QUEUE_STATS_0_CMD_HEADER_REO_CMD_NUMBER
  104. Consumer: REO/SW/DEBUG
  105. Producer: SW
  106. This number can be used by SW to track, identify and
  107. link the created commands with the command statusses
  108. <legal all>
  109. */
  110. #define REO_GET_QUEUE_STATS_0_CMD_HEADER_REO_CMD_NUMBER_OFFSET 0x00000000
  111. #define REO_GET_QUEUE_STATS_0_CMD_HEADER_REO_CMD_NUMBER_LSB 0
  112. #define REO_GET_QUEUE_STATS_0_CMD_HEADER_REO_CMD_NUMBER_MASK 0x0000ffff
  113. /* Description REO_GET_QUEUE_STATS_0_CMD_HEADER_REO_STATUS_REQUIRED
  114. Consumer: REO
  115. Producer: SW
  116. <enum 0 NoStatus> REO does not need to generate a status
  117. TLV for the execution of this command
  118. <enum 1 StatusRequired> REO shall generate a status TLV
  119. for the execution of this command
  120. <legal all>
  121. */
  122. #define REO_GET_QUEUE_STATS_0_CMD_HEADER_REO_STATUS_REQUIRED_OFFSET 0x00000000
  123. #define REO_GET_QUEUE_STATS_0_CMD_HEADER_REO_STATUS_REQUIRED_LSB 16
  124. #define REO_GET_QUEUE_STATS_0_CMD_HEADER_REO_STATUS_REQUIRED_MASK 0x00010000
  125. /* Description REO_GET_QUEUE_STATS_0_CMD_HEADER_RESERVED_0A
  126. <legal 0>
  127. */
  128. #define REO_GET_QUEUE_STATS_0_CMD_HEADER_RESERVED_0A_OFFSET 0x00000000
  129. #define REO_GET_QUEUE_STATS_0_CMD_HEADER_RESERVED_0A_LSB 17
  130. #define REO_GET_QUEUE_STATS_0_CMD_HEADER_RESERVED_0A_MASK 0xfffe0000
  131. /* Description REO_GET_QUEUE_STATS_1_RX_REO_QUEUE_DESC_ADDR_31_0
  132. Consumer: REO
  133. Producer: SW
  134. Address (lower 32 bits) of the REO queue descriptor
  135. <legal all>
  136. */
  137. #define REO_GET_QUEUE_STATS_1_RX_REO_QUEUE_DESC_ADDR_31_0_OFFSET 0x00000004
  138. #define REO_GET_QUEUE_STATS_1_RX_REO_QUEUE_DESC_ADDR_31_0_LSB 0
  139. #define REO_GET_QUEUE_STATS_1_RX_REO_QUEUE_DESC_ADDR_31_0_MASK 0xffffffff
  140. /* Description REO_GET_QUEUE_STATS_2_RX_REO_QUEUE_DESC_ADDR_39_32
  141. Consumer: REO
  142. Producer: SW
  143. Address (upper 8 bits) of the REO queue descriptor
  144. <legal all>
  145. */
  146. #define REO_GET_QUEUE_STATS_2_RX_REO_QUEUE_DESC_ADDR_39_32_OFFSET 0x00000008
  147. #define REO_GET_QUEUE_STATS_2_RX_REO_QUEUE_DESC_ADDR_39_32_LSB 0
  148. #define REO_GET_QUEUE_STATS_2_RX_REO_QUEUE_DESC_ADDR_39_32_MASK 0x000000ff
  149. /* Description REO_GET_QUEUE_STATS_2_CLEAR_STATS
  150. Clear stat settings....
  151. <enum 0 no_clear> Do NOT clear the stats after
  152. generating the status
  153. <enum 1 clear_the_stats> Clear the stats after
  154. generating the status.
  155. The stats actually cleared are:
  156. Timeout_count
  157. Forward_due_to_bar_count
  158. Duplicate_count
  159. Frames_in_order_count
  160. BAR_received_count
  161. MPDU_Frames_processed_count
  162. MSDU_Frames_processed_count
  163. Total_processed_byte_count
  164. Late_receive_MPDU_count
  165. window_jump_2k
  166. Hole_count
  167. <legal 0-1>
  168. */
  169. #define REO_GET_QUEUE_STATS_2_CLEAR_STATS_OFFSET 0x00000008
  170. #define REO_GET_QUEUE_STATS_2_CLEAR_STATS_LSB 8
  171. #define REO_GET_QUEUE_STATS_2_CLEAR_STATS_MASK 0x00000100
  172. /* Description REO_GET_QUEUE_STATS_2_RESERVED_2A
  173. <legal 0>
  174. */
  175. #define REO_GET_QUEUE_STATS_2_RESERVED_2A_OFFSET 0x00000008
  176. #define REO_GET_QUEUE_STATS_2_RESERVED_2A_LSB 9
  177. #define REO_GET_QUEUE_STATS_2_RESERVED_2A_MASK 0xfffffe00
  178. /* Description REO_GET_QUEUE_STATS_3_RESERVED_3A
  179. <legal 0>
  180. */
  181. #define REO_GET_QUEUE_STATS_3_RESERVED_3A_OFFSET 0x0000000c
  182. #define REO_GET_QUEUE_STATS_3_RESERVED_3A_LSB 0
  183. #define REO_GET_QUEUE_STATS_3_RESERVED_3A_MASK 0xffffffff
  184. /* Description REO_GET_QUEUE_STATS_4_RESERVED_4A
  185. <legal 0>
  186. */
  187. #define REO_GET_QUEUE_STATS_4_RESERVED_4A_OFFSET 0x00000010
  188. #define REO_GET_QUEUE_STATS_4_RESERVED_4A_LSB 0
  189. #define REO_GET_QUEUE_STATS_4_RESERVED_4A_MASK 0xffffffff
  190. /* Description REO_GET_QUEUE_STATS_5_RESERVED_5A
  191. <legal 0>
  192. */
  193. #define REO_GET_QUEUE_STATS_5_RESERVED_5A_OFFSET 0x00000014
  194. #define REO_GET_QUEUE_STATS_5_RESERVED_5A_LSB 0
  195. #define REO_GET_QUEUE_STATS_5_RESERVED_5A_MASK 0xffffffff
  196. /* Description REO_GET_QUEUE_STATS_6_RESERVED_6A
  197. <legal 0>
  198. */
  199. #define REO_GET_QUEUE_STATS_6_RESERVED_6A_OFFSET 0x00000018
  200. #define REO_GET_QUEUE_STATS_6_RESERVED_6A_LSB 0
  201. #define REO_GET_QUEUE_STATS_6_RESERVED_6A_MASK 0xffffffff
  202. /* Description REO_GET_QUEUE_STATS_7_RESERVED_7A
  203. <legal 0>
  204. */
  205. #define REO_GET_QUEUE_STATS_7_RESERVED_7A_OFFSET 0x0000001c
  206. #define REO_GET_QUEUE_STATS_7_RESERVED_7A_LSB 0
  207. #define REO_GET_QUEUE_STATS_7_RESERVED_7A_MASK 0xffffffff
  208. /* Description REO_GET_QUEUE_STATS_8_RESERVED_8A
  209. <legal 0>
  210. */
  211. #define REO_GET_QUEUE_STATS_8_RESERVED_8A_OFFSET 0x00000020
  212. #define REO_GET_QUEUE_STATS_8_RESERVED_8A_LSB 0
  213. #define REO_GET_QUEUE_STATS_8_RESERVED_8A_MASK 0xffffffff
  214. #endif // _REO_GET_QUEUE_STATS_H_