reo_get_queue_stats.h 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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 _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. #define REO_GET_QUEUE_STATS_0_UNIFORM_REO_CMD_HEADER_CMD_HEADER_OFFSET 0x00000000
  104. #define REO_GET_QUEUE_STATS_0_UNIFORM_REO_CMD_HEADER_CMD_HEADER_LSB 0
  105. #define REO_GET_QUEUE_STATS_0_UNIFORM_REO_CMD_HEADER_CMD_HEADER_MASK 0xffffffff
  106. /* Description REO_GET_QUEUE_STATS_1_RX_REO_QUEUE_DESC_ADDR_31_0
  107. Consumer: REO
  108. Producer: SW
  109. Address (lower 32 bits) of the REO queue descriptor
  110. <legal all>
  111. */
  112. #define REO_GET_QUEUE_STATS_1_RX_REO_QUEUE_DESC_ADDR_31_0_OFFSET 0x00000004
  113. #define REO_GET_QUEUE_STATS_1_RX_REO_QUEUE_DESC_ADDR_31_0_LSB 0
  114. #define REO_GET_QUEUE_STATS_1_RX_REO_QUEUE_DESC_ADDR_31_0_MASK 0xffffffff
  115. /* Description REO_GET_QUEUE_STATS_2_RX_REO_QUEUE_DESC_ADDR_39_32
  116. Consumer: REO
  117. Producer: SW
  118. Address (upper 8 bits) of the REO queue descriptor
  119. <legal all>
  120. */
  121. #define REO_GET_QUEUE_STATS_2_RX_REO_QUEUE_DESC_ADDR_39_32_OFFSET 0x00000008
  122. #define REO_GET_QUEUE_STATS_2_RX_REO_QUEUE_DESC_ADDR_39_32_LSB 0
  123. #define REO_GET_QUEUE_STATS_2_RX_REO_QUEUE_DESC_ADDR_39_32_MASK 0x000000ff
  124. /* Description REO_GET_QUEUE_STATS_2_CLEAR_STATS
  125. Clear stat settings....
  126. <enum 0 no_clear> Do NOT clear the stats after
  127. generating the status
  128. <enum 1 clear_the_stats> Clear the stats after
  129. generating the status.
  130. The stats actually cleared are:
  131. Timeout_count
  132. Forward_due_to_bar_count
  133. Duplicate_count
  134. Frames_in_order_count
  135. BAR_received_count
  136. MPDU_Frames_processed_count
  137. MSDU_Frames_processed_count
  138. Total_processed_byte_count
  139. Late_receive_MPDU_count
  140. window_jump_2k
  141. Hole_count
  142. <legal 0-1>
  143. */
  144. #define REO_GET_QUEUE_STATS_2_CLEAR_STATS_OFFSET 0x00000008
  145. #define REO_GET_QUEUE_STATS_2_CLEAR_STATS_LSB 8
  146. #define REO_GET_QUEUE_STATS_2_CLEAR_STATS_MASK 0x00000100
  147. /* Description REO_GET_QUEUE_STATS_2_RESERVED_2A
  148. <legal 0>
  149. */
  150. #define REO_GET_QUEUE_STATS_2_RESERVED_2A_OFFSET 0x00000008
  151. #define REO_GET_QUEUE_STATS_2_RESERVED_2A_LSB 9
  152. #define REO_GET_QUEUE_STATS_2_RESERVED_2A_MASK 0xfffffe00
  153. /* Description REO_GET_QUEUE_STATS_3_RESERVED_3A
  154. <legal 0>
  155. */
  156. #define REO_GET_QUEUE_STATS_3_RESERVED_3A_OFFSET 0x0000000c
  157. #define REO_GET_QUEUE_STATS_3_RESERVED_3A_LSB 0
  158. #define REO_GET_QUEUE_STATS_3_RESERVED_3A_MASK 0xffffffff
  159. /* Description REO_GET_QUEUE_STATS_4_RESERVED_4A
  160. <legal 0>
  161. */
  162. #define REO_GET_QUEUE_STATS_4_RESERVED_4A_OFFSET 0x00000010
  163. #define REO_GET_QUEUE_STATS_4_RESERVED_4A_LSB 0
  164. #define REO_GET_QUEUE_STATS_4_RESERVED_4A_MASK 0xffffffff
  165. /* Description REO_GET_QUEUE_STATS_5_RESERVED_5A
  166. <legal 0>
  167. */
  168. #define REO_GET_QUEUE_STATS_5_RESERVED_5A_OFFSET 0x00000014
  169. #define REO_GET_QUEUE_STATS_5_RESERVED_5A_LSB 0
  170. #define REO_GET_QUEUE_STATS_5_RESERVED_5A_MASK 0xffffffff
  171. /* Description REO_GET_QUEUE_STATS_6_RESERVED_6A
  172. <legal 0>
  173. */
  174. #define REO_GET_QUEUE_STATS_6_RESERVED_6A_OFFSET 0x00000018
  175. #define REO_GET_QUEUE_STATS_6_RESERVED_6A_LSB 0
  176. #define REO_GET_QUEUE_STATS_6_RESERVED_6A_MASK 0xffffffff
  177. /* Description REO_GET_QUEUE_STATS_7_RESERVED_7A
  178. <legal 0>
  179. */
  180. #define REO_GET_QUEUE_STATS_7_RESERVED_7A_OFFSET 0x0000001c
  181. #define REO_GET_QUEUE_STATS_7_RESERVED_7A_LSB 0
  182. #define REO_GET_QUEUE_STATS_7_RESERVED_7A_MASK 0xffffffff
  183. /* Description REO_GET_QUEUE_STATS_8_RESERVED_8A
  184. <legal 0>
  185. */
  186. #define REO_GET_QUEUE_STATS_8_RESERVED_8A_OFFSET 0x00000020
  187. #define REO_GET_QUEUE_STATS_8_RESERVED_8A_LSB 0
  188. #define REO_GET_QUEUE_STATS_8_RESERVED_8A_MASK 0xffffffff
  189. #endif // _REO_GET_QUEUE_STATS_H_