reo_flush_queue.h 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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_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], reserved_2a[31:11]
  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. reserved_2a : 21; //[31:11]
  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. reserved_2a
  83. <legal 0>
  84. reserved_3a
  85. <legal 0>
  86. reserved_4a
  87. <legal 0>
  88. reserved_5a
  89. <legal 0>
  90. reserved_6a
  91. <legal 0>
  92. reserved_7a
  93. <legal 0>
  94. reserved_8a
  95. <legal 0>
  96. */
  97. #define REO_FLUSH_QUEUE_0_UNIFORM_REO_CMD_HEADER_CMD_HEADER_OFFSET 0x00000000
  98. #define REO_FLUSH_QUEUE_0_UNIFORM_REO_CMD_HEADER_CMD_HEADER_LSB 0
  99. #define REO_FLUSH_QUEUE_0_UNIFORM_REO_CMD_HEADER_CMD_HEADER_MASK 0xffffffff
  100. /* Description REO_FLUSH_QUEUE_1_FLUSH_DESC_ADDR_31_0
  101. Consumer: REO
  102. Producer: SW
  103. Address (lower 32 bits) of the descriptor to flush
  104. <legal all>
  105. */
  106. #define REO_FLUSH_QUEUE_1_FLUSH_DESC_ADDR_31_0_OFFSET 0x00000004
  107. #define REO_FLUSH_QUEUE_1_FLUSH_DESC_ADDR_31_0_LSB 0
  108. #define REO_FLUSH_QUEUE_1_FLUSH_DESC_ADDR_31_0_MASK 0xffffffff
  109. /* Description REO_FLUSH_QUEUE_2_FLUSH_DESC_ADDR_39_32
  110. Consumer: REO
  111. Producer: SW
  112. Address (upper 8 bits) of the descriptor to flush
  113. <legal all>
  114. */
  115. #define REO_FLUSH_QUEUE_2_FLUSH_DESC_ADDR_39_32_OFFSET 0x00000008
  116. #define REO_FLUSH_QUEUE_2_FLUSH_DESC_ADDR_39_32_LSB 0
  117. #define REO_FLUSH_QUEUE_2_FLUSH_DESC_ADDR_39_32_MASK 0x000000ff
  118. /* Description REO_FLUSH_QUEUE_2_BLOCK_DESC_ADDR_USAGE_AFTER_FLUSH
  119. When set, REO shall not re-fetch this address till SW
  120. explicitly unblocked this address
  121. If the blocking resource was already used, this command
  122. shall fail and an error is reported
  123. <legal all>
  124. */
  125. #define REO_FLUSH_QUEUE_2_BLOCK_DESC_ADDR_USAGE_AFTER_FLUSH_OFFSET 0x00000008
  126. #define REO_FLUSH_QUEUE_2_BLOCK_DESC_ADDR_USAGE_AFTER_FLUSH_LSB 8
  127. #define REO_FLUSH_QUEUE_2_BLOCK_DESC_ADDR_USAGE_AFTER_FLUSH_MASK 0x00000100
  128. /* Description REO_FLUSH_QUEUE_2_BLOCK_RESOURCE_INDEX
  129. Field only valid when 'Block_desc_addr_usage_after_flush
  130. ' is set.
  131. Indicates which of the four blocking resources in REO
  132. will be assigned for managing the blocking of this address.
  133. <legal all>
  134. */
  135. #define REO_FLUSH_QUEUE_2_BLOCK_RESOURCE_INDEX_OFFSET 0x00000008
  136. #define REO_FLUSH_QUEUE_2_BLOCK_RESOURCE_INDEX_LSB 9
  137. #define REO_FLUSH_QUEUE_2_BLOCK_RESOURCE_INDEX_MASK 0x00000600
  138. /* Description REO_FLUSH_QUEUE_2_RESERVED_2A
  139. <legal 0>
  140. */
  141. #define REO_FLUSH_QUEUE_2_RESERVED_2A_OFFSET 0x00000008
  142. #define REO_FLUSH_QUEUE_2_RESERVED_2A_LSB 11
  143. #define REO_FLUSH_QUEUE_2_RESERVED_2A_MASK 0xfffff800
  144. /* Description REO_FLUSH_QUEUE_3_RESERVED_3A
  145. <legal 0>
  146. */
  147. #define REO_FLUSH_QUEUE_3_RESERVED_3A_OFFSET 0x0000000c
  148. #define REO_FLUSH_QUEUE_3_RESERVED_3A_LSB 0
  149. #define REO_FLUSH_QUEUE_3_RESERVED_3A_MASK 0xffffffff
  150. /* Description REO_FLUSH_QUEUE_4_RESERVED_4A
  151. <legal 0>
  152. */
  153. #define REO_FLUSH_QUEUE_4_RESERVED_4A_OFFSET 0x00000010
  154. #define REO_FLUSH_QUEUE_4_RESERVED_4A_LSB 0
  155. #define REO_FLUSH_QUEUE_4_RESERVED_4A_MASK 0xffffffff
  156. /* Description REO_FLUSH_QUEUE_5_RESERVED_5A
  157. <legal 0>
  158. */
  159. #define REO_FLUSH_QUEUE_5_RESERVED_5A_OFFSET 0x00000014
  160. #define REO_FLUSH_QUEUE_5_RESERVED_5A_LSB 0
  161. #define REO_FLUSH_QUEUE_5_RESERVED_5A_MASK 0xffffffff
  162. /* Description REO_FLUSH_QUEUE_6_RESERVED_6A
  163. <legal 0>
  164. */
  165. #define REO_FLUSH_QUEUE_6_RESERVED_6A_OFFSET 0x00000018
  166. #define REO_FLUSH_QUEUE_6_RESERVED_6A_LSB 0
  167. #define REO_FLUSH_QUEUE_6_RESERVED_6A_MASK 0xffffffff
  168. /* Description REO_FLUSH_QUEUE_7_RESERVED_7A
  169. <legal 0>
  170. */
  171. #define REO_FLUSH_QUEUE_7_RESERVED_7A_OFFSET 0x0000001c
  172. #define REO_FLUSH_QUEUE_7_RESERVED_7A_LSB 0
  173. #define REO_FLUSH_QUEUE_7_RESERVED_7A_MASK 0xffffffff
  174. /* Description REO_FLUSH_QUEUE_8_RESERVED_8A
  175. <legal 0>
  176. */
  177. #define REO_FLUSH_QUEUE_8_RESERVED_8A_OFFSET 0x00000020
  178. #define REO_FLUSH_QUEUE_8_RESERVED_8A_LSB 0
  179. #define REO_FLUSH_QUEUE_8_RESERVED_8A_MASK 0xffffffff
  180. #endif // _REO_FLUSH_QUEUE_H_