reo_get_queue_stats.h 8.4 KB

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