reo_unblock_cache.h 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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_UNBLOCK_CACHE_H_
  21. #define _REO_UNBLOCK_CACHE_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 unblock_type[0], cache_block_resource_index[2:1], reserved_1a[31:3]
  30. // 2 reserved_2a[31:0]
  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_UNBLOCK_CACHE 9
  40. struct reo_unblock_cache {
  41. struct uniform_reo_cmd_header cmd_header;
  42. uint32_t unblock_type : 1, //[0]
  43. cache_block_resource_index : 2, //[2:1]
  44. reserved_1a : 29; //[31:3]
  45. uint32_t reserved_2a : 32; //[31:0]
  46. uint32_t reserved_3a : 32; //[31:0]
  47. uint32_t reserved_4a : 32; //[31:0]
  48. uint32_t reserved_5a : 32; //[31:0]
  49. uint32_t reserved_6a : 32; //[31:0]
  50. uint32_t reserved_7a : 32; //[31:0]
  51. uint32_t reserved_8a : 32; //[31:0]
  52. };
  53. /*
  54. struct uniform_reo_cmd_header cmd_header
  55. Consumer: REO
  56. Producer: SW
  57. Details for command execution tracking purposes.
  58. unblock_type
  59. Unblock type
  60. <enum 0 unblock_resource_index> Unblock a block
  61. resource, whose index is given in field
  62. 'cache_block_resource_index'.
  63. If the indicated blocking resource is not in use (=> not
  64. blocking an address at the moment), the command status will
  65. indicate an error.
  66. <enum 1 unblock_cache> The entire cache usage is
  67. unblocked.
  68. If the entire cache is not in a blocked mode at the
  69. moment this command is received, the command status will
  70. indicate an error.
  71. Note that unlocking the entire cache has no changes to
  72. the current settings of the blocking resource settings
  73. <legal all>
  74. cache_block_resource_index
  75. Field not valid when field Unblock_type is set to
  76. unblock_cache.
  77. Indicates which of the four blocking resources in REO
  78. should be released from blocking a (descriptor) address.
  79. <legal all>
  80. reserved_1a
  81. <legal 0>
  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. /* EXTERNAL REFERENCE : struct uniform_reo_cmd_header cmd_header */
  98. /* Description REO_UNBLOCK_CACHE_0_CMD_HEADER_REO_CMD_NUMBER
  99. Consumer: REO/SW/DEBUG
  100. Producer: SW
  101. This number can be used by SW to track, identify and
  102. link the created commands with the command statusses
  103. <legal all>
  104. */
  105. #define REO_UNBLOCK_CACHE_0_CMD_HEADER_REO_CMD_NUMBER_OFFSET 0x00000000
  106. #define REO_UNBLOCK_CACHE_0_CMD_HEADER_REO_CMD_NUMBER_LSB 0
  107. #define REO_UNBLOCK_CACHE_0_CMD_HEADER_REO_CMD_NUMBER_MASK 0x0000ffff
  108. /* Description REO_UNBLOCK_CACHE_0_CMD_HEADER_REO_STATUS_REQUIRED
  109. Consumer: REO
  110. Producer: SW
  111. <enum 0 NoStatus> REO does not need to generate a status
  112. TLV for the execution of this command
  113. <enum 1 StatusRequired> REO shall generate a status TLV
  114. for the execution of this command
  115. <legal all>
  116. */
  117. #define REO_UNBLOCK_CACHE_0_CMD_HEADER_REO_STATUS_REQUIRED_OFFSET 0x00000000
  118. #define REO_UNBLOCK_CACHE_0_CMD_HEADER_REO_STATUS_REQUIRED_LSB 16
  119. #define REO_UNBLOCK_CACHE_0_CMD_HEADER_REO_STATUS_REQUIRED_MASK 0x00010000
  120. /* Description REO_UNBLOCK_CACHE_0_CMD_HEADER_RESERVED_0A
  121. <legal 0>
  122. */
  123. #define REO_UNBLOCK_CACHE_0_CMD_HEADER_RESERVED_0A_OFFSET 0x00000000
  124. #define REO_UNBLOCK_CACHE_0_CMD_HEADER_RESERVED_0A_LSB 17
  125. #define REO_UNBLOCK_CACHE_0_CMD_HEADER_RESERVED_0A_MASK 0xfffe0000
  126. /* Description REO_UNBLOCK_CACHE_1_UNBLOCK_TYPE
  127. Unblock type
  128. <enum 0 unblock_resource_index> Unblock a block
  129. resource, whose index is given in field
  130. 'cache_block_resource_index'.
  131. If the indicated blocking resource is not in use (=> not
  132. blocking an address at the moment), the command status will
  133. indicate an error.
  134. <enum 1 unblock_cache> The entire cache usage is
  135. unblocked.
  136. If the entire cache is not in a blocked mode at the
  137. moment this command is received, the command status will
  138. indicate an error.
  139. Note that unlocking the entire cache has no changes to
  140. the current settings of the blocking resource settings
  141. <legal all>
  142. */
  143. #define REO_UNBLOCK_CACHE_1_UNBLOCK_TYPE_OFFSET 0x00000004
  144. #define REO_UNBLOCK_CACHE_1_UNBLOCK_TYPE_LSB 0
  145. #define REO_UNBLOCK_CACHE_1_UNBLOCK_TYPE_MASK 0x00000001
  146. /* Description REO_UNBLOCK_CACHE_1_CACHE_BLOCK_RESOURCE_INDEX
  147. Field not valid when field Unblock_type is set to
  148. unblock_cache.
  149. Indicates which of the four blocking resources in REO
  150. should be released from blocking a (descriptor) address.
  151. <legal all>
  152. */
  153. #define REO_UNBLOCK_CACHE_1_CACHE_BLOCK_RESOURCE_INDEX_OFFSET 0x00000004
  154. #define REO_UNBLOCK_CACHE_1_CACHE_BLOCK_RESOURCE_INDEX_LSB 1
  155. #define REO_UNBLOCK_CACHE_1_CACHE_BLOCK_RESOURCE_INDEX_MASK 0x00000006
  156. /* Description REO_UNBLOCK_CACHE_1_RESERVED_1A
  157. <legal 0>
  158. */
  159. #define REO_UNBLOCK_CACHE_1_RESERVED_1A_OFFSET 0x00000004
  160. #define REO_UNBLOCK_CACHE_1_RESERVED_1A_LSB 3
  161. #define REO_UNBLOCK_CACHE_1_RESERVED_1A_MASK 0xfffffff8
  162. /* Description REO_UNBLOCK_CACHE_2_RESERVED_2A
  163. <legal 0>
  164. */
  165. #define REO_UNBLOCK_CACHE_2_RESERVED_2A_OFFSET 0x00000008
  166. #define REO_UNBLOCK_CACHE_2_RESERVED_2A_LSB 0
  167. #define REO_UNBLOCK_CACHE_2_RESERVED_2A_MASK 0xffffffff
  168. /* Description REO_UNBLOCK_CACHE_3_RESERVED_3A
  169. <legal 0>
  170. */
  171. #define REO_UNBLOCK_CACHE_3_RESERVED_3A_OFFSET 0x0000000c
  172. #define REO_UNBLOCK_CACHE_3_RESERVED_3A_LSB 0
  173. #define REO_UNBLOCK_CACHE_3_RESERVED_3A_MASK 0xffffffff
  174. /* Description REO_UNBLOCK_CACHE_4_RESERVED_4A
  175. <legal 0>
  176. */
  177. #define REO_UNBLOCK_CACHE_4_RESERVED_4A_OFFSET 0x00000010
  178. #define REO_UNBLOCK_CACHE_4_RESERVED_4A_LSB 0
  179. #define REO_UNBLOCK_CACHE_4_RESERVED_4A_MASK 0xffffffff
  180. /* Description REO_UNBLOCK_CACHE_5_RESERVED_5A
  181. <legal 0>
  182. */
  183. #define REO_UNBLOCK_CACHE_5_RESERVED_5A_OFFSET 0x00000014
  184. #define REO_UNBLOCK_CACHE_5_RESERVED_5A_LSB 0
  185. #define REO_UNBLOCK_CACHE_5_RESERVED_5A_MASK 0xffffffff
  186. /* Description REO_UNBLOCK_CACHE_6_RESERVED_6A
  187. <legal 0>
  188. */
  189. #define REO_UNBLOCK_CACHE_6_RESERVED_6A_OFFSET 0x00000018
  190. #define REO_UNBLOCK_CACHE_6_RESERVED_6A_LSB 0
  191. #define REO_UNBLOCK_CACHE_6_RESERVED_6A_MASK 0xffffffff
  192. /* Description REO_UNBLOCK_CACHE_7_RESERVED_7A
  193. <legal 0>
  194. */
  195. #define REO_UNBLOCK_CACHE_7_RESERVED_7A_OFFSET 0x0000001c
  196. #define REO_UNBLOCK_CACHE_7_RESERVED_7A_LSB 0
  197. #define REO_UNBLOCK_CACHE_7_RESERVED_7A_MASK 0xffffffff
  198. /* Description REO_UNBLOCK_CACHE_8_RESERVED_8A
  199. <legal 0>
  200. */
  201. #define REO_UNBLOCK_CACHE_8_RESERVED_8A_OFFSET 0x00000020
  202. #define REO_UNBLOCK_CACHE_8_RESERVED_8A_LSB 0
  203. #define REO_UNBLOCK_CACHE_8_RESERVED_8A_MASK 0xffffffff
  204. #endif // _REO_UNBLOCK_CACHE_H_