reo_get_queue_stats.h 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. /*
  2. * Copyright (c) 2016 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. // $ATH_LICENSE_HW_HDR_C$
  19. //
  20. // DO NOT EDIT! This file is automatically generated
  21. // These definitions are tied to a particular hardware layout
  22. #ifndef _REO_GET_QUEUE_STATS_H_
  23. #define _REO_GET_QUEUE_STATS_H_
  24. #if !defined(__ASSEMBLER__)
  25. #endif
  26. #include "uniform_reo_cmd_header.h"
  27. // ################ START SUMMARY #################
  28. //
  29. // Dword Fields
  30. // 0 struct uniform_reo_cmd_header cmd_header;
  31. // 1 rx_reo_queue_desc_addr_31_0[31:0]
  32. // 2 rx_reo_queue_desc_addr_39_32[7:0], clear_stats[8], reserved_2a[31:9]
  33. // 3 reserved_3a[31:0]
  34. // 4 reserved_4a[31:0]
  35. // 5 reserved_5a[31:0]
  36. // 6 reserved_6a[31:0]
  37. // 7 reserved_7a[31:0]
  38. // 8 reserved_8a[31:0]
  39. //
  40. // ################ END SUMMARY #################
  41. #define NUM_OF_DWORDS_REO_GET_QUEUE_STATS 9
  42. struct reo_get_queue_stats {
  43. struct uniform_reo_cmd_header cmd_header;
  44. uint32_t rx_reo_queue_desc_addr_31_0 : 32; //[31:0]
  45. uint32_t rx_reo_queue_desc_addr_39_32 : 8, //[7:0]
  46. clear_stats : 1, //[8]
  47. reserved_2a : 23; //[31:9]
  48. uint32_t reserved_3a : 32; //[31:0]
  49. uint32_t reserved_4a : 32; //[31:0]
  50. uint32_t reserved_5a : 32; //[31:0]
  51. uint32_t reserved_6a : 32; //[31:0]
  52. uint32_t reserved_7a : 32; //[31:0]
  53. uint32_t reserved_8a : 32; //[31:0]
  54. };
  55. /*
  56. struct uniform_reo_cmd_header cmd_header
  57. Consumer: REO
  58. Producer: SW
  59. Details for command execution tracking purposes.
  60. rx_reo_queue_desc_addr_31_0
  61. Consumer: REO
  62. Producer: SW
  63. Address (lower 32 bits) of the REO queue descriptor
  64. <legal all>
  65. rx_reo_queue_desc_addr_39_32
  66. Consumer: REO
  67. Producer: SW
  68. Address (upper 8 bits) of the REO queue descriptor
  69. <legal all>
  70. clear_stats
  71. Clear stat settings....
  72. <enum 0 no_clear> Do NOT clear the stats after
  73. generating the status
  74. <enum 1 clear_the_stats> Clear the stats after
  75. generating the status.
  76. The stats actually cleared are:
  77. Timeout_count
  78. Forward_due_to_bar_count
  79. Duplicate_count
  80. Frames_in_order_count
  81. BAR_received_count
  82. MPDU_Frames_processed_count
  83. MSDU_Frames_processed_count
  84. Total_processed_byte_count
  85. Late_receive_MPDU_count
  86. window_jump_2k
  87. Hole_count
  88. <legal 0-1>
  89. reserved_2a
  90. <legal 0>
  91. reserved_3a
  92. <legal 0>
  93. reserved_4a
  94. <legal 0>
  95. reserved_5a
  96. <legal 0>
  97. reserved_6a
  98. <legal 0>
  99. reserved_7a
  100. <legal 0>
  101. reserved_8a
  102. <legal 0>
  103. */
  104. #define REO_GET_QUEUE_STATS_0_UNIFORM_REO_CMD_HEADER_CMD_HEADER_OFFSET 0x00000000
  105. #define REO_GET_QUEUE_STATS_0_UNIFORM_REO_CMD_HEADER_CMD_HEADER_LSB 0
  106. #define REO_GET_QUEUE_STATS_0_UNIFORM_REO_CMD_HEADER_CMD_HEADER_MASK 0xffffffff
  107. /* Description REO_GET_QUEUE_STATS_1_RX_REO_QUEUE_DESC_ADDR_31_0
  108. Consumer: REO
  109. Producer: SW
  110. Address (lower 32 bits) of the REO queue descriptor
  111. <legal all>
  112. */
  113. #define REO_GET_QUEUE_STATS_1_RX_REO_QUEUE_DESC_ADDR_31_0_OFFSET 0x00000004
  114. #define REO_GET_QUEUE_STATS_1_RX_REO_QUEUE_DESC_ADDR_31_0_LSB 0
  115. #define REO_GET_QUEUE_STATS_1_RX_REO_QUEUE_DESC_ADDR_31_0_MASK 0xffffffff
  116. /* Description REO_GET_QUEUE_STATS_2_RX_REO_QUEUE_DESC_ADDR_39_32
  117. Consumer: REO
  118. Producer: SW
  119. Address (upper 8 bits) of the REO queue descriptor
  120. <legal all>
  121. */
  122. #define REO_GET_QUEUE_STATS_2_RX_REO_QUEUE_DESC_ADDR_39_32_OFFSET 0x00000008
  123. #define REO_GET_QUEUE_STATS_2_RX_REO_QUEUE_DESC_ADDR_39_32_LSB 0
  124. #define REO_GET_QUEUE_STATS_2_RX_REO_QUEUE_DESC_ADDR_39_32_MASK 0x000000ff
  125. /* Description REO_GET_QUEUE_STATS_2_CLEAR_STATS
  126. Clear stat settings....
  127. <enum 0 no_clear> Do NOT clear the stats after
  128. generating the status
  129. <enum 1 clear_the_stats> Clear the stats after
  130. generating the status.
  131. The stats actually cleared are:
  132. Timeout_count
  133. Forward_due_to_bar_count
  134. Duplicate_count
  135. Frames_in_order_count
  136. BAR_received_count
  137. MPDU_Frames_processed_count
  138. MSDU_Frames_processed_count
  139. Total_processed_byte_count
  140. Late_receive_MPDU_count
  141. window_jump_2k
  142. Hole_count
  143. <legal 0-1>
  144. */
  145. #define REO_GET_QUEUE_STATS_2_CLEAR_STATS_OFFSET 0x00000008
  146. #define REO_GET_QUEUE_STATS_2_CLEAR_STATS_LSB 8
  147. #define REO_GET_QUEUE_STATS_2_CLEAR_STATS_MASK 0x00000100
  148. /* Description REO_GET_QUEUE_STATS_2_RESERVED_2A
  149. <legal 0>
  150. */
  151. #define REO_GET_QUEUE_STATS_2_RESERVED_2A_OFFSET 0x00000008
  152. #define REO_GET_QUEUE_STATS_2_RESERVED_2A_LSB 9
  153. #define REO_GET_QUEUE_STATS_2_RESERVED_2A_MASK 0xfffffe00
  154. /* Description REO_GET_QUEUE_STATS_3_RESERVED_3A
  155. <legal 0>
  156. */
  157. #define REO_GET_QUEUE_STATS_3_RESERVED_3A_OFFSET 0x0000000c
  158. #define REO_GET_QUEUE_STATS_3_RESERVED_3A_LSB 0
  159. #define REO_GET_QUEUE_STATS_3_RESERVED_3A_MASK 0xffffffff
  160. /* Description REO_GET_QUEUE_STATS_4_RESERVED_4A
  161. <legal 0>
  162. */
  163. #define REO_GET_QUEUE_STATS_4_RESERVED_4A_OFFSET 0x00000010
  164. #define REO_GET_QUEUE_STATS_4_RESERVED_4A_LSB 0
  165. #define REO_GET_QUEUE_STATS_4_RESERVED_4A_MASK 0xffffffff
  166. /* Description REO_GET_QUEUE_STATS_5_RESERVED_5A
  167. <legal 0>
  168. */
  169. #define REO_GET_QUEUE_STATS_5_RESERVED_5A_OFFSET 0x00000014
  170. #define REO_GET_QUEUE_STATS_5_RESERVED_5A_LSB 0
  171. #define REO_GET_QUEUE_STATS_5_RESERVED_5A_MASK 0xffffffff
  172. /* Description REO_GET_QUEUE_STATS_6_RESERVED_6A
  173. <legal 0>
  174. */
  175. #define REO_GET_QUEUE_STATS_6_RESERVED_6A_OFFSET 0x00000018
  176. #define REO_GET_QUEUE_STATS_6_RESERVED_6A_LSB 0
  177. #define REO_GET_QUEUE_STATS_6_RESERVED_6A_MASK 0xffffffff
  178. /* Description REO_GET_QUEUE_STATS_7_RESERVED_7A
  179. <legal 0>
  180. */
  181. #define REO_GET_QUEUE_STATS_7_RESERVED_7A_OFFSET 0x0000001c
  182. #define REO_GET_QUEUE_STATS_7_RESERVED_7A_LSB 0
  183. #define REO_GET_QUEUE_STATS_7_RESERVED_7A_MASK 0xffffffff
  184. /* Description REO_GET_QUEUE_STATS_8_RESERVED_8A
  185. <legal 0>
  186. */
  187. #define REO_GET_QUEUE_STATS_8_RESERVED_8A_OFFSET 0x00000020
  188. #define REO_GET_QUEUE_STATS_8_RESERVED_8A_LSB 0
  189. #define REO_GET_QUEUE_STATS_8_RESERVED_8A_MASK 0xffffffff
  190. #endif // _REO_GET_QUEUE_STATS_H_