reo_unblock_cache_status.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. /* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
  2. *
  3. * Permission to use, copy, modify, and/or distribute this software for any
  4. * purpose with or without fee is hereby granted, provided that the above
  5. * copyright notice and this permission notice appear in all copies.
  6. *
  7. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  10. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  12. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  13. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. */
  15. #ifndef _REO_UNBLOCK_CACHE_STATUS_H_
  16. #define _REO_UNBLOCK_CACHE_STATUS_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #include "uniform_reo_status_header.h"
  20. #define NUM_OF_DWORDS_REO_UNBLOCK_CACHE_STATUS 26
  21. #define NUM_OF_QWORDS_REO_UNBLOCK_CACHE_STATUS 13
  22. struct reo_unblock_cache_status {
  23. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  24. struct uniform_reo_status_header status_header;
  25. uint32_t error_detected : 1, // [0:0]
  26. unblock_type : 1, // [1:1]
  27. reserved_2a : 30; // [31:2]
  28. uint32_t reserved_3a : 32; // [31:0]
  29. uint32_t reserved_4a : 32; // [31:0]
  30. uint32_t reserved_5a : 32; // [31:0]
  31. uint32_t reserved_6a : 32; // [31:0]
  32. uint32_t reserved_7a : 32; // [31:0]
  33. uint32_t reserved_8a : 32; // [31:0]
  34. uint32_t reserved_9a : 32; // [31:0]
  35. uint32_t reserved_10a : 32; // [31:0]
  36. uint32_t reserved_11a : 32; // [31:0]
  37. uint32_t reserved_12a : 32; // [31:0]
  38. uint32_t reserved_13a : 32; // [31:0]
  39. uint32_t reserved_14a : 32; // [31:0]
  40. uint32_t reserved_15a : 32; // [31:0]
  41. uint32_t reserved_16a : 32; // [31:0]
  42. uint32_t reserved_17a : 32; // [31:0]
  43. uint32_t reserved_18a : 32; // [31:0]
  44. uint32_t reserved_19a : 32; // [31:0]
  45. uint32_t reserved_20a : 32; // [31:0]
  46. uint32_t reserved_21a : 32; // [31:0]
  47. uint32_t reserved_22a : 32; // [31:0]
  48. uint32_t reserved_23a : 32; // [31:0]
  49. uint32_t reserved_24a : 32; // [31:0]
  50. uint32_t reserved_25a : 28, // [27:0]
  51. looping_count : 4; // [31:28]
  52. #else
  53. struct uniform_reo_status_header status_header;
  54. uint32_t reserved_2a : 30, // [31:2]
  55. unblock_type : 1, // [1:1]
  56. error_detected : 1; // [0:0]
  57. uint32_t reserved_3a : 32; // [31:0]
  58. uint32_t reserved_4a : 32; // [31:0]
  59. uint32_t reserved_5a : 32; // [31:0]
  60. uint32_t reserved_6a : 32; // [31:0]
  61. uint32_t reserved_7a : 32; // [31:0]
  62. uint32_t reserved_8a : 32; // [31:0]
  63. uint32_t reserved_9a : 32; // [31:0]
  64. uint32_t reserved_10a : 32; // [31:0]
  65. uint32_t reserved_11a : 32; // [31:0]
  66. uint32_t reserved_12a : 32; // [31:0]
  67. uint32_t reserved_13a : 32; // [31:0]
  68. uint32_t reserved_14a : 32; // [31:0]
  69. uint32_t reserved_15a : 32; // [31:0]
  70. uint32_t reserved_16a : 32; // [31:0]
  71. uint32_t reserved_17a : 32; // [31:0]
  72. uint32_t reserved_18a : 32; // [31:0]
  73. uint32_t reserved_19a : 32; // [31:0]
  74. uint32_t reserved_20a : 32; // [31:0]
  75. uint32_t reserved_21a : 32; // [31:0]
  76. uint32_t reserved_22a : 32; // [31:0]
  77. uint32_t reserved_23a : 32; // [31:0]
  78. uint32_t reserved_24a : 32; // [31:0]
  79. uint32_t looping_count : 4, // [31:28]
  80. reserved_25a : 28; // [27:0]
  81. #endif
  82. };
  83. /* Description STATUS_HEADER
  84. Consumer: SW
  85. Producer: REO
  86. Details that can link this status with the original command.
  87. It also contains info on how long REO took to execute this
  88. command.
  89. */
  90. /* Description REO_STATUS_NUMBER
  91. Consumer: SW , DEBUG
  92. Producer: REO
  93. The value in this field is equal to value of the 'REO_CMD_Number'
  94. field the REO command
  95. This field helps to correlate the statuses with the REO
  96. commands.
  97. <legal all>
  98. */
  99. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_OFFSET 0x0000000000000000
  100. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_LSB 0
  101. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_MSB 15
  102. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_MASK 0x000000000000ffff
  103. /* Description CMD_EXECUTION_TIME
  104. Consumer: DEBUG
  105. Producer: REO
  106. The amount of time REO took to excecute the command. Note
  107. that this time does not include the duration of the command
  108. waiting in the command ring, before the execution started.
  109. In us.
  110. <legal all>
  111. */
  112. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_OFFSET 0x0000000000000000
  113. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_LSB 16
  114. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_MSB 25
  115. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_MASK 0x0000000003ff0000
  116. /* Description REO_CMD_EXECUTION_STATUS
  117. Consumer: DEBUG
  118. Producer: REO
  119. Execution status of the command.
  120. <enum 0 reo_successful_execution> Command has successfully
  121. be executed
  122. <enum 1 reo_blocked_execution> Command could not be executed
  123. as the queue or cache was blocked
  124. <enum 2 reo_failed_execution> Command has encountered problems
  125. when executing, like the queue descriptor not being valid.
  126. None of the status fields in the entire STATUS TLV are valid.
  127. <enum 3 reo_resource_blocked> Command is NOT executed because
  128. one or more descriptors were blocked. This is SW programming
  129. mistake.
  130. None of the status fields in the entire STATUS TLV are valid.
  131. <legal 0-3>
  132. */
  133. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_OFFSET 0x0000000000000000
  134. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_LSB 26
  135. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MSB 27
  136. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MASK 0x000000000c000000
  137. /* Description RESERVED_0A
  138. <legal 0>
  139. */
  140. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_RESERVED_0A_OFFSET 0x0000000000000000
  141. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_RESERVED_0A_LSB 28
  142. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_RESERVED_0A_MSB 31
  143. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_RESERVED_0A_MASK 0x00000000f0000000
  144. /* Description TIMESTAMP
  145. Timestamp at the moment that this status report is written.
  146. <legal all>
  147. */
  148. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_TIMESTAMP_OFFSET 0x0000000000000000
  149. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_TIMESTAMP_LSB 32
  150. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_TIMESTAMP_MSB 63
  151. #define REO_UNBLOCK_CACHE_STATUS_STATUS_HEADER_TIMESTAMP_MASK 0xffffffff00000000
  152. /* Description ERROR_DETECTED
  153. Status for blocking resource handling
  154. 0: No error has been detected while executing this command
  155. 1: The blocking resource was not in use, and therefor it
  156. could not be 'unblocked'
  157. */
  158. #define REO_UNBLOCK_CACHE_STATUS_ERROR_DETECTED_OFFSET 0x0000000000000008
  159. #define REO_UNBLOCK_CACHE_STATUS_ERROR_DETECTED_LSB 0
  160. #define REO_UNBLOCK_CACHE_STATUS_ERROR_DETECTED_MSB 0
  161. #define REO_UNBLOCK_CACHE_STATUS_ERROR_DETECTED_MASK 0x0000000000000001
  162. /* Description UNBLOCK_TYPE
  163. Reference to the type of Unblock command type...
  164. <enum 0 unblock_resource_index> Unblock a blocking resource
  165. <enum 1 unblock_cache> The entire cache usage is unblock.
  166. <legal all>
  167. */
  168. #define REO_UNBLOCK_CACHE_STATUS_UNBLOCK_TYPE_OFFSET 0x0000000000000008
  169. #define REO_UNBLOCK_CACHE_STATUS_UNBLOCK_TYPE_LSB 1
  170. #define REO_UNBLOCK_CACHE_STATUS_UNBLOCK_TYPE_MSB 1
  171. #define REO_UNBLOCK_CACHE_STATUS_UNBLOCK_TYPE_MASK 0x0000000000000002
  172. /* Description RESERVED_2A
  173. <legal 0>
  174. */
  175. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_2A_OFFSET 0x0000000000000008
  176. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_2A_LSB 2
  177. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_2A_MSB 31
  178. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_2A_MASK 0x00000000fffffffc
  179. /* Description RESERVED_3A
  180. <legal 0>
  181. */
  182. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_3A_OFFSET 0x0000000000000008
  183. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_3A_LSB 32
  184. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_3A_MSB 63
  185. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_3A_MASK 0xffffffff00000000
  186. /* Description RESERVED_4A
  187. <legal 0>
  188. */
  189. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_4A_OFFSET 0x0000000000000010
  190. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_4A_LSB 0
  191. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_4A_MSB 31
  192. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_4A_MASK 0x00000000ffffffff
  193. /* Description RESERVED_5A
  194. <legal 0>
  195. */
  196. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_5A_OFFSET 0x0000000000000010
  197. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_5A_LSB 32
  198. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_5A_MSB 63
  199. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_5A_MASK 0xffffffff00000000
  200. /* Description RESERVED_6A
  201. <legal 0>
  202. */
  203. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_6A_OFFSET 0x0000000000000018
  204. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_6A_LSB 0
  205. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_6A_MSB 31
  206. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_6A_MASK 0x00000000ffffffff
  207. /* Description RESERVED_7A
  208. <legal 0>
  209. */
  210. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_7A_OFFSET 0x0000000000000018
  211. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_7A_LSB 32
  212. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_7A_MSB 63
  213. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_7A_MASK 0xffffffff00000000
  214. /* Description RESERVED_8A
  215. <legal 0>
  216. */
  217. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_8A_OFFSET 0x0000000000000020
  218. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_8A_LSB 0
  219. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_8A_MSB 31
  220. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_8A_MASK 0x00000000ffffffff
  221. /* Description RESERVED_9A
  222. <legal 0>
  223. */
  224. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_9A_OFFSET 0x0000000000000020
  225. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_9A_LSB 32
  226. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_9A_MSB 63
  227. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_9A_MASK 0xffffffff00000000
  228. /* Description RESERVED_10A
  229. <legal 0>
  230. */
  231. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_10A_OFFSET 0x0000000000000028
  232. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_10A_LSB 0
  233. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_10A_MSB 31
  234. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_10A_MASK 0x00000000ffffffff
  235. /* Description RESERVED_11A
  236. <legal 0>
  237. */
  238. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_11A_OFFSET 0x0000000000000028
  239. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_11A_LSB 32
  240. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_11A_MSB 63
  241. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_11A_MASK 0xffffffff00000000
  242. /* Description RESERVED_12A
  243. <legal 0>
  244. */
  245. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_12A_OFFSET 0x0000000000000030
  246. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_12A_LSB 0
  247. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_12A_MSB 31
  248. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_12A_MASK 0x00000000ffffffff
  249. /* Description RESERVED_13A
  250. <legal 0>
  251. */
  252. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_13A_OFFSET 0x0000000000000030
  253. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_13A_LSB 32
  254. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_13A_MSB 63
  255. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_13A_MASK 0xffffffff00000000
  256. /* Description RESERVED_14A
  257. <legal 0>
  258. */
  259. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_14A_OFFSET 0x0000000000000038
  260. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_14A_LSB 0
  261. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_14A_MSB 31
  262. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_14A_MASK 0x00000000ffffffff
  263. /* Description RESERVED_15A
  264. <legal 0>
  265. */
  266. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_15A_OFFSET 0x0000000000000038
  267. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_15A_LSB 32
  268. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_15A_MSB 63
  269. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_15A_MASK 0xffffffff00000000
  270. /* Description RESERVED_16A
  271. <legal 0>
  272. */
  273. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_16A_OFFSET 0x0000000000000040
  274. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_16A_LSB 0
  275. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_16A_MSB 31
  276. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_16A_MASK 0x00000000ffffffff
  277. /* Description RESERVED_17A
  278. <legal 0>
  279. */
  280. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_17A_OFFSET 0x0000000000000040
  281. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_17A_LSB 32
  282. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_17A_MSB 63
  283. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_17A_MASK 0xffffffff00000000
  284. /* Description RESERVED_18A
  285. <legal 0>
  286. */
  287. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_18A_OFFSET 0x0000000000000048
  288. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_18A_LSB 0
  289. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_18A_MSB 31
  290. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_18A_MASK 0x00000000ffffffff
  291. /* Description RESERVED_19A
  292. <legal 0>
  293. */
  294. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_19A_OFFSET 0x0000000000000048
  295. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_19A_LSB 32
  296. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_19A_MSB 63
  297. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_19A_MASK 0xffffffff00000000
  298. /* Description RESERVED_20A
  299. <legal 0>
  300. */
  301. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_20A_OFFSET 0x0000000000000050
  302. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_20A_LSB 0
  303. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_20A_MSB 31
  304. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_20A_MASK 0x00000000ffffffff
  305. /* Description RESERVED_21A
  306. <legal 0>
  307. */
  308. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_21A_OFFSET 0x0000000000000050
  309. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_21A_LSB 32
  310. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_21A_MSB 63
  311. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_21A_MASK 0xffffffff00000000
  312. /* Description RESERVED_22A
  313. <legal 0>
  314. */
  315. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_22A_OFFSET 0x0000000000000058
  316. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_22A_LSB 0
  317. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_22A_MSB 31
  318. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_22A_MASK 0x00000000ffffffff
  319. /* Description RESERVED_23A
  320. <legal 0>
  321. */
  322. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_23A_OFFSET 0x0000000000000058
  323. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_23A_LSB 32
  324. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_23A_MSB 63
  325. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_23A_MASK 0xffffffff00000000
  326. /* Description RESERVED_24A
  327. <legal 0>
  328. */
  329. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_24A_OFFSET 0x0000000000000060
  330. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_24A_LSB 0
  331. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_24A_MSB 31
  332. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_24A_MASK 0x00000000ffffffff
  333. /* Description RESERVED_25A
  334. <legal 0>
  335. */
  336. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_25A_OFFSET 0x0000000000000060
  337. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_25A_LSB 32
  338. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_25A_MSB 59
  339. #define REO_UNBLOCK_CACHE_STATUS_RESERVED_25A_MASK 0x0fffffff00000000
  340. /* Description LOOPING_COUNT
  341. A count value that indicates the number of times the producer
  342. of entries into this Ring has looped around the ring.
  343. At initialization time, this value is set to 0. On the first
  344. loop, this value is set to 1. After the max value is reached
  345. allowed by the number of bits for this field, the count
  346. value continues with 0 again.
  347. In case SW is the consumer of the ring entries, it can use
  348. this field to figure out up to where the producer of entries
  349. has created new entries. This eliminates the need to check
  350. where the "head pointer' of the ring is located once the
  351. SW starts processing an interrupt indicating that new entries
  352. have been put into this ring...
  353. Also note that SW if it wants only needs to look at the
  354. LSB bit of this count value.
  355. <legal all>
  356. */
  357. #define REO_UNBLOCK_CACHE_STATUS_LOOPING_COUNT_OFFSET 0x0000000000000060
  358. #define REO_UNBLOCK_CACHE_STATUS_LOOPING_COUNT_LSB 60
  359. #define REO_UNBLOCK_CACHE_STATUS_LOOPING_COUNT_MSB 63
  360. #define REO_UNBLOCK_CACHE_STATUS_LOOPING_COUNT_MASK 0xf000000000000000
  361. #endif // REO_UNBLOCK_CACHE_STATUS