reo_flush_queue.h 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  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_FLUSH_QUEUE_H_
  21. #define _REO_FLUSH_QUEUE_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 flush_desc_addr_31_0[31:0]
  30. // 2 flush_desc_addr_39_32[7:0], block_desc_addr_usage_after_flush[8], block_resource_index[10:9], invalidate_queue_and_flush[11], reserved_2a[31:12]
  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_FLUSH_QUEUE 9
  40. struct reo_flush_queue {
  41. struct uniform_reo_cmd_header cmd_header;
  42. uint32_t flush_desc_addr_31_0 : 32; //[31:0]
  43. uint32_t flush_desc_addr_39_32 : 8, //[7:0]
  44. block_desc_addr_usage_after_flush: 1, //[8]
  45. block_resource_index : 2, //[10:9]
  46. invalidate_queue_and_flush : 1, //[11]
  47. reserved_2a : 20; //[31:12]
  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. flush_desc_addr_31_0
  61. Consumer: REO
  62. Producer: SW
  63. Address (lower 32 bits) of the descriptor to flush
  64. <legal all>
  65. flush_desc_addr_39_32
  66. Consumer: REO
  67. Producer: SW
  68. Address (upper 8 bits) of the descriptor to flush
  69. <legal all>
  70. block_desc_addr_usage_after_flush
  71. When set, REO shall not re-fetch this address till SW
  72. explicitly unblocked this address
  73. If the blocking resource was already used, this command
  74. shall fail and an error is reported
  75. <legal all>
  76. block_resource_index
  77. Field only valid when 'Block_desc_addr_usage_after_flush
  78. ' is set.
  79. Indicates which of the four blocking resources in REO
  80. will be assigned for managing the blocking of this address.
  81. <legal all>
  82. invalidate_queue_and_flush
  83. When set, after the queue has been completely flushed,
  84. invalidate the queue by clearing VLD and flush the queue
  85. descriptor from the cache.
  86. <legal all>
  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_FLUSH_QUEUE_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_FLUSH_QUEUE_0_CMD_HEADER_REO_CMD_NUMBER_OFFSET 0x00000000
  111. #define REO_FLUSH_QUEUE_0_CMD_HEADER_REO_CMD_NUMBER_LSB 0
  112. #define REO_FLUSH_QUEUE_0_CMD_HEADER_REO_CMD_NUMBER_MASK 0x0000ffff
  113. /* Description REO_FLUSH_QUEUE_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_FLUSH_QUEUE_0_CMD_HEADER_REO_STATUS_REQUIRED_OFFSET 0x00000000
  123. #define REO_FLUSH_QUEUE_0_CMD_HEADER_REO_STATUS_REQUIRED_LSB 16
  124. #define REO_FLUSH_QUEUE_0_CMD_HEADER_REO_STATUS_REQUIRED_MASK 0x00010000
  125. /* Description REO_FLUSH_QUEUE_0_CMD_HEADER_RESERVED_0A
  126. <legal 0>
  127. */
  128. #define REO_FLUSH_QUEUE_0_CMD_HEADER_RESERVED_0A_OFFSET 0x00000000
  129. #define REO_FLUSH_QUEUE_0_CMD_HEADER_RESERVED_0A_LSB 17
  130. #define REO_FLUSH_QUEUE_0_CMD_HEADER_RESERVED_0A_MASK 0xfffe0000
  131. /* Description REO_FLUSH_QUEUE_1_FLUSH_DESC_ADDR_31_0
  132. Consumer: REO
  133. Producer: SW
  134. Address (lower 32 bits) of the descriptor to flush
  135. <legal all>
  136. */
  137. #define REO_FLUSH_QUEUE_1_FLUSH_DESC_ADDR_31_0_OFFSET 0x00000004
  138. #define REO_FLUSH_QUEUE_1_FLUSH_DESC_ADDR_31_0_LSB 0
  139. #define REO_FLUSH_QUEUE_1_FLUSH_DESC_ADDR_31_0_MASK 0xffffffff
  140. /* Description REO_FLUSH_QUEUE_2_FLUSH_DESC_ADDR_39_32
  141. Consumer: REO
  142. Producer: SW
  143. Address (upper 8 bits) of the descriptor to flush
  144. <legal all>
  145. */
  146. #define REO_FLUSH_QUEUE_2_FLUSH_DESC_ADDR_39_32_OFFSET 0x00000008
  147. #define REO_FLUSH_QUEUE_2_FLUSH_DESC_ADDR_39_32_LSB 0
  148. #define REO_FLUSH_QUEUE_2_FLUSH_DESC_ADDR_39_32_MASK 0x000000ff
  149. /* Description REO_FLUSH_QUEUE_2_BLOCK_DESC_ADDR_USAGE_AFTER_FLUSH
  150. When set, REO shall not re-fetch this address till SW
  151. explicitly unblocked this address
  152. If the blocking resource was already used, this command
  153. shall fail and an error is reported
  154. <legal all>
  155. */
  156. #define REO_FLUSH_QUEUE_2_BLOCK_DESC_ADDR_USAGE_AFTER_FLUSH_OFFSET 0x00000008
  157. #define REO_FLUSH_QUEUE_2_BLOCK_DESC_ADDR_USAGE_AFTER_FLUSH_LSB 8
  158. #define REO_FLUSH_QUEUE_2_BLOCK_DESC_ADDR_USAGE_AFTER_FLUSH_MASK 0x00000100
  159. /* Description REO_FLUSH_QUEUE_2_BLOCK_RESOURCE_INDEX
  160. Field only valid when 'Block_desc_addr_usage_after_flush
  161. ' is set.
  162. Indicates which of the four blocking resources in REO
  163. will be assigned for managing the blocking of this address.
  164. <legal all>
  165. */
  166. #define REO_FLUSH_QUEUE_2_BLOCK_RESOURCE_INDEX_OFFSET 0x00000008
  167. #define REO_FLUSH_QUEUE_2_BLOCK_RESOURCE_INDEX_LSB 9
  168. #define REO_FLUSH_QUEUE_2_BLOCK_RESOURCE_INDEX_MASK 0x00000600
  169. /* Description REO_FLUSH_QUEUE_2_INVALIDATE_QUEUE_AND_FLUSH
  170. When set, after the queue has been completely flushed,
  171. invalidate the queue by clearing VLD and flush the queue
  172. descriptor from the cache.
  173. <legal all>
  174. */
  175. #define REO_FLUSH_QUEUE_2_INVALIDATE_QUEUE_AND_FLUSH_OFFSET 0x00000008
  176. #define REO_FLUSH_QUEUE_2_INVALIDATE_QUEUE_AND_FLUSH_LSB 11
  177. #define REO_FLUSH_QUEUE_2_INVALIDATE_QUEUE_AND_FLUSH_MASK 0x00000800
  178. /* Description REO_FLUSH_QUEUE_2_RESERVED_2A
  179. <legal 0>
  180. */
  181. #define REO_FLUSH_QUEUE_2_RESERVED_2A_OFFSET 0x00000008
  182. #define REO_FLUSH_QUEUE_2_RESERVED_2A_LSB 12
  183. #define REO_FLUSH_QUEUE_2_RESERVED_2A_MASK 0xfffff000
  184. /* Description REO_FLUSH_QUEUE_3_RESERVED_3A
  185. <legal 0>
  186. */
  187. #define REO_FLUSH_QUEUE_3_RESERVED_3A_OFFSET 0x0000000c
  188. #define REO_FLUSH_QUEUE_3_RESERVED_3A_LSB 0
  189. #define REO_FLUSH_QUEUE_3_RESERVED_3A_MASK 0xffffffff
  190. /* Description REO_FLUSH_QUEUE_4_RESERVED_4A
  191. <legal 0>
  192. */
  193. #define REO_FLUSH_QUEUE_4_RESERVED_4A_OFFSET 0x00000010
  194. #define REO_FLUSH_QUEUE_4_RESERVED_4A_LSB 0
  195. #define REO_FLUSH_QUEUE_4_RESERVED_4A_MASK 0xffffffff
  196. /* Description REO_FLUSH_QUEUE_5_RESERVED_5A
  197. <legal 0>
  198. */
  199. #define REO_FLUSH_QUEUE_5_RESERVED_5A_OFFSET 0x00000014
  200. #define REO_FLUSH_QUEUE_5_RESERVED_5A_LSB 0
  201. #define REO_FLUSH_QUEUE_5_RESERVED_5A_MASK 0xffffffff
  202. /* Description REO_FLUSH_QUEUE_6_RESERVED_6A
  203. <legal 0>
  204. */
  205. #define REO_FLUSH_QUEUE_6_RESERVED_6A_OFFSET 0x00000018
  206. #define REO_FLUSH_QUEUE_6_RESERVED_6A_LSB 0
  207. #define REO_FLUSH_QUEUE_6_RESERVED_6A_MASK 0xffffffff
  208. /* Description REO_FLUSH_QUEUE_7_RESERVED_7A
  209. <legal 0>
  210. */
  211. #define REO_FLUSH_QUEUE_7_RESERVED_7A_OFFSET 0x0000001c
  212. #define REO_FLUSH_QUEUE_7_RESERVED_7A_LSB 0
  213. #define REO_FLUSH_QUEUE_7_RESERVED_7A_MASK 0xffffffff
  214. /* Description REO_FLUSH_QUEUE_8_RESERVED_8A
  215. <legal 0>
  216. */
  217. #define REO_FLUSH_QUEUE_8_RESERVED_8A_OFFSET 0x00000020
  218. #define REO_FLUSH_QUEUE_8_RESERVED_8A_LSB 0
  219. #define REO_FLUSH_QUEUE_8_RESERVED_8A_MASK 0xffffffff
  220. #endif // _REO_FLUSH_QUEUE_H_