reo_flush_queue.h 9.6 KB

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