reo_get_queue_stats.h 7.4 KB

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