1 /***********************license start***************
2 * Copyright (c) 2003-2012 Cavium Inc. (support@cavium.com). All rights
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
13 * * Redistributions in binary form must reproduce the above
14 * copyright notice, this list of conditions and the following
15 * disclaimer in the documentation and/or other materials provided
16 * with the distribution.
18 * * Neither the name of Cavium Inc. nor the names of
19 * its contributors may be used to endorse or promote products
20 * derived from this software without specific prior written
23 * This Software, including technical data, may be subject to U.S. export control
24 * laws, including the U.S. Export Administration Act and its associated
25 * regulations, and may be subject to export or import regulations in other
28 * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
29 * AND WITH ALL FAULTS AND CAVIUM INC. MAKES NO PROMISES, REPRESENTATIONS OR
30 * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO
31 * THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR
32 * DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM
33 * SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES OF TITLE,
34 * MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF
35 * VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR
36 * CORRESPONDENCE TO DESCRIPTION. THE ENTIRE RISK ARISING OUT OF USE OR
37 * PERFORMANCE OF THE SOFTWARE LIES WITH YOU.
38 ***********************license end**************************************/
44 * Configuration and status register (CSR) type definitions for
47 * This file is auto generated. Do not edit.
52 #ifndef __CVMX_ZIP_DEFS_H__
53 #define __CVMX_ZIP_DEFS_H__
55 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
56 #define CVMX_ZIP_CMD_BIST_RESULT CVMX_ZIP_CMD_BIST_RESULT_FUNC()
57 static inline uint64_t CVMX_ZIP_CMD_BIST_RESULT_FUNC(void)
59 if (!(OCTEON_IS_MODEL(OCTEON_CN31XX) || OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN58XX) || OCTEON_IS_MODEL(OCTEON_CN61XX) || OCTEON_IS_MODEL(OCTEON_CN63XX) || OCTEON_IS_MODEL(OCTEON_CN66XX) || OCTEON_IS_MODEL(OCTEON_CN68XX)))
60 cvmx_warn("CVMX_ZIP_CMD_BIST_RESULT not supported on this chip\n");
61 return CVMX_ADD_IO_SEG(0x0001180038000080ull);
64 #define CVMX_ZIP_CMD_BIST_RESULT (CVMX_ADD_IO_SEG(0x0001180038000080ull))
66 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
67 #define CVMX_ZIP_CMD_BUF CVMX_ZIP_CMD_BUF_FUNC()
68 static inline uint64_t CVMX_ZIP_CMD_BUF_FUNC(void)
70 if (!(OCTEON_IS_MODEL(OCTEON_CN31XX) || OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN58XX) || OCTEON_IS_MODEL(OCTEON_CN61XX) || OCTEON_IS_MODEL(OCTEON_CN63XX) || OCTEON_IS_MODEL(OCTEON_CN66XX) || OCTEON_IS_MODEL(OCTEON_CN68XX)))
71 cvmx_warn("CVMX_ZIP_CMD_BUF not supported on this chip\n");
72 return CVMX_ADD_IO_SEG(0x0001180038000008ull);
75 #define CVMX_ZIP_CMD_BUF (CVMX_ADD_IO_SEG(0x0001180038000008ull))
77 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
78 #define CVMX_ZIP_CMD_CTL CVMX_ZIP_CMD_CTL_FUNC()
79 static inline uint64_t CVMX_ZIP_CMD_CTL_FUNC(void)
81 if (!(OCTEON_IS_MODEL(OCTEON_CN31XX) || OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN58XX) || OCTEON_IS_MODEL(OCTEON_CN61XX) || OCTEON_IS_MODEL(OCTEON_CN63XX) || OCTEON_IS_MODEL(OCTEON_CN66XX) || OCTEON_IS_MODEL(OCTEON_CN68XX)))
82 cvmx_warn("CVMX_ZIP_CMD_CTL not supported on this chip\n");
83 return CVMX_ADD_IO_SEG(0x0001180038000000ull);
86 #define CVMX_ZIP_CMD_CTL (CVMX_ADD_IO_SEG(0x0001180038000000ull))
88 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
89 #define CVMX_ZIP_CONSTANTS CVMX_ZIP_CONSTANTS_FUNC()
90 static inline uint64_t CVMX_ZIP_CONSTANTS_FUNC(void)
92 if (!(OCTEON_IS_MODEL(OCTEON_CN31XX) || OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN58XX) || OCTEON_IS_MODEL(OCTEON_CN61XX) || OCTEON_IS_MODEL(OCTEON_CN63XX) || OCTEON_IS_MODEL(OCTEON_CN66XX) || OCTEON_IS_MODEL(OCTEON_CN68XX)))
93 cvmx_warn("CVMX_ZIP_CONSTANTS not supported on this chip\n");
94 return CVMX_ADD_IO_SEG(0x00011800380000A0ull);
97 #define CVMX_ZIP_CONSTANTS (CVMX_ADD_IO_SEG(0x00011800380000A0ull))
99 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
100 static inline uint64_t CVMX_ZIP_COREX_BIST_STATUS(unsigned long offset)
103 (OCTEON_IS_MODEL(OCTEON_CN68XX) && ((offset <= 1)))))
104 cvmx_warn("CVMX_ZIP_COREX_BIST_STATUS(%lu) is invalid on this chip\n", offset);
105 return CVMX_ADD_IO_SEG(0x0001180038000520ull) + ((offset) & 1) * 8;
108 #define CVMX_ZIP_COREX_BIST_STATUS(offset) (CVMX_ADD_IO_SEG(0x0001180038000520ull) + ((offset) & 1) * 8)
110 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
111 #define CVMX_ZIP_CTL_BIST_STATUS CVMX_ZIP_CTL_BIST_STATUS_FUNC()
112 static inline uint64_t CVMX_ZIP_CTL_BIST_STATUS_FUNC(void)
114 if (!(OCTEON_IS_MODEL(OCTEON_CN68XX)))
115 cvmx_warn("CVMX_ZIP_CTL_BIST_STATUS not supported on this chip\n");
116 return CVMX_ADD_IO_SEG(0x0001180038000510ull);
119 #define CVMX_ZIP_CTL_BIST_STATUS (CVMX_ADD_IO_SEG(0x0001180038000510ull))
121 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
122 #define CVMX_ZIP_CTL_CFG CVMX_ZIP_CTL_CFG_FUNC()
123 static inline uint64_t CVMX_ZIP_CTL_CFG_FUNC(void)
125 if (!(OCTEON_IS_MODEL(OCTEON_CN68XX)))
126 cvmx_warn("CVMX_ZIP_CTL_CFG not supported on this chip\n");
127 return CVMX_ADD_IO_SEG(0x0001180038000560ull);
130 #define CVMX_ZIP_CTL_CFG (CVMX_ADD_IO_SEG(0x0001180038000560ull))
132 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
133 static inline uint64_t CVMX_ZIP_DBG_COREX_INST(unsigned long offset)
136 (OCTEON_IS_MODEL(OCTEON_CN68XX) && ((offset <= 1)))))
137 cvmx_warn("CVMX_ZIP_DBG_COREX_INST(%lu) is invalid on this chip\n", offset);
138 return CVMX_ADD_IO_SEG(0x0001180038000640ull) + ((offset) & 1) * 8;
141 #define CVMX_ZIP_DBG_COREX_INST(offset) (CVMX_ADD_IO_SEG(0x0001180038000640ull) + ((offset) & 1) * 8)
143 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
144 static inline uint64_t CVMX_ZIP_DBG_COREX_STA(unsigned long offset)
147 (OCTEON_IS_MODEL(OCTEON_CN68XX) && ((offset <= 1)))))
148 cvmx_warn("CVMX_ZIP_DBG_COREX_STA(%lu) is invalid on this chip\n", offset);
149 return CVMX_ADD_IO_SEG(0x0001180038000680ull) + ((offset) & 1) * 8;
152 #define CVMX_ZIP_DBG_COREX_STA(offset) (CVMX_ADD_IO_SEG(0x0001180038000680ull) + ((offset) & 1) * 8)
154 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
155 static inline uint64_t CVMX_ZIP_DBG_QUEX_STA(unsigned long offset)
158 (OCTEON_IS_MODEL(OCTEON_CN68XX) && ((offset <= 1)))))
159 cvmx_warn("CVMX_ZIP_DBG_QUEX_STA(%lu) is invalid on this chip\n", offset);
160 return CVMX_ADD_IO_SEG(0x0001180038000600ull) + ((offset) & 1) * 8;
163 #define CVMX_ZIP_DBG_QUEX_STA(offset) (CVMX_ADD_IO_SEG(0x0001180038000600ull) + ((offset) & 1) * 8)
165 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
166 #define CVMX_ZIP_DEBUG0 CVMX_ZIP_DEBUG0_FUNC()
167 static inline uint64_t CVMX_ZIP_DEBUG0_FUNC(void)
169 if (!(OCTEON_IS_MODEL(OCTEON_CN31XX) || OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN58XX) || OCTEON_IS_MODEL(OCTEON_CN61XX) || OCTEON_IS_MODEL(OCTEON_CN63XX) || OCTEON_IS_MODEL(OCTEON_CN66XX) || OCTEON_IS_MODEL(OCTEON_CN68XX)))
170 cvmx_warn("CVMX_ZIP_DEBUG0 not supported on this chip\n");
171 return CVMX_ADD_IO_SEG(0x0001180038000098ull);
174 #define CVMX_ZIP_DEBUG0 (CVMX_ADD_IO_SEG(0x0001180038000098ull))
176 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
177 #define CVMX_ZIP_ECC_CTL CVMX_ZIP_ECC_CTL_FUNC()
178 static inline uint64_t CVMX_ZIP_ECC_CTL_FUNC(void)
180 if (!(OCTEON_IS_MODEL(OCTEON_CN68XX)))
181 cvmx_warn("CVMX_ZIP_ECC_CTL not supported on this chip\n");
182 return CVMX_ADD_IO_SEG(0x0001180038000568ull);
185 #define CVMX_ZIP_ECC_CTL (CVMX_ADD_IO_SEG(0x0001180038000568ull))
187 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
188 #define CVMX_ZIP_ERROR CVMX_ZIP_ERROR_FUNC()
189 static inline uint64_t CVMX_ZIP_ERROR_FUNC(void)
191 if (!(OCTEON_IS_MODEL(OCTEON_CN31XX) || OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN58XX) || OCTEON_IS_MODEL(OCTEON_CN61XX) || OCTEON_IS_MODEL(OCTEON_CN63XX) || OCTEON_IS_MODEL(OCTEON_CN66XX) || OCTEON_IS_MODEL(OCTEON_CN68XX)))
192 cvmx_warn("CVMX_ZIP_ERROR not supported on this chip\n");
193 return CVMX_ADD_IO_SEG(0x0001180038000088ull);
196 #define CVMX_ZIP_ERROR (CVMX_ADD_IO_SEG(0x0001180038000088ull))
198 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
199 #define CVMX_ZIP_INT_ENA CVMX_ZIP_INT_ENA_FUNC()
200 static inline uint64_t CVMX_ZIP_INT_ENA_FUNC(void)
202 if (!(OCTEON_IS_MODEL(OCTEON_CN68XX)))
203 cvmx_warn("CVMX_ZIP_INT_ENA not supported on this chip\n");
204 return CVMX_ADD_IO_SEG(0x0001180038000580ull);
207 #define CVMX_ZIP_INT_ENA (CVMX_ADD_IO_SEG(0x0001180038000580ull))
209 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
210 #define CVMX_ZIP_INT_MASK CVMX_ZIP_INT_MASK_FUNC()
211 static inline uint64_t CVMX_ZIP_INT_MASK_FUNC(void)
213 if (!(OCTEON_IS_MODEL(OCTEON_CN31XX) || OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN58XX) || OCTEON_IS_MODEL(OCTEON_CN61XX) || OCTEON_IS_MODEL(OCTEON_CN63XX) || OCTEON_IS_MODEL(OCTEON_CN66XX) || OCTEON_IS_MODEL(OCTEON_CN68XX)))
214 cvmx_warn("CVMX_ZIP_INT_MASK not supported on this chip\n");
215 return CVMX_ADD_IO_SEG(0x0001180038000090ull);
218 #define CVMX_ZIP_INT_MASK (CVMX_ADD_IO_SEG(0x0001180038000090ull))
220 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
221 #define CVMX_ZIP_INT_REG CVMX_ZIP_INT_REG_FUNC()
222 static inline uint64_t CVMX_ZIP_INT_REG_FUNC(void)
224 if (!(OCTEON_IS_MODEL(OCTEON_CN68XX)))
225 cvmx_warn("CVMX_ZIP_INT_REG not supported on this chip\n");
226 return CVMX_ADD_IO_SEG(0x0001180038000570ull);
229 #define CVMX_ZIP_INT_REG (CVMX_ADD_IO_SEG(0x0001180038000570ull))
231 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
232 static inline uint64_t CVMX_ZIP_QUEX_BUF(unsigned long offset)
235 (OCTEON_IS_MODEL(OCTEON_CN68XX) && ((offset <= 1)))))
236 cvmx_warn("CVMX_ZIP_QUEX_BUF(%lu) is invalid on this chip\n", offset);
237 return CVMX_ADD_IO_SEG(0x0001180038000100ull) + ((offset) & 1) * 8;
240 #define CVMX_ZIP_QUEX_BUF(offset) (CVMX_ADD_IO_SEG(0x0001180038000100ull) + ((offset) & 1) * 8)
242 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
243 static inline uint64_t CVMX_ZIP_QUEX_ECC_ERR_STA(unsigned long offset)
246 (OCTEON_IS_MODEL(OCTEON_CN68XX) && ((offset <= 1)))))
247 cvmx_warn("CVMX_ZIP_QUEX_ECC_ERR_STA(%lu) is invalid on this chip\n", offset);
248 return CVMX_ADD_IO_SEG(0x0001180038000590ull) + ((offset) & 1) * 8;
251 #define CVMX_ZIP_QUEX_ECC_ERR_STA(offset) (CVMX_ADD_IO_SEG(0x0001180038000590ull) + ((offset) & 1) * 8)
253 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
254 static inline uint64_t CVMX_ZIP_QUEX_MAP(unsigned long offset)
257 (OCTEON_IS_MODEL(OCTEON_CN68XX) && ((offset <= 1)))))
258 cvmx_warn("CVMX_ZIP_QUEX_MAP(%lu) is invalid on this chip\n", offset);
259 return CVMX_ADD_IO_SEG(0x0001180038000300ull) + ((offset) & 1) * 8;
262 #define CVMX_ZIP_QUEX_MAP(offset) (CVMX_ADD_IO_SEG(0x0001180038000300ull) + ((offset) & 1) * 8)
264 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
265 #define CVMX_ZIP_QUE_ENA CVMX_ZIP_QUE_ENA_FUNC()
266 static inline uint64_t CVMX_ZIP_QUE_ENA_FUNC(void)
268 if (!(OCTEON_IS_MODEL(OCTEON_CN68XX)))
269 cvmx_warn("CVMX_ZIP_QUE_ENA not supported on this chip\n");
270 return CVMX_ADD_IO_SEG(0x0001180038000500ull);
273 #define CVMX_ZIP_QUE_ENA (CVMX_ADD_IO_SEG(0x0001180038000500ull))
275 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
276 #define CVMX_ZIP_QUE_PRI CVMX_ZIP_QUE_PRI_FUNC()
277 static inline uint64_t CVMX_ZIP_QUE_PRI_FUNC(void)
279 if (!(OCTEON_IS_MODEL(OCTEON_CN68XX)))
280 cvmx_warn("CVMX_ZIP_QUE_PRI not supported on this chip\n");
281 return CVMX_ADD_IO_SEG(0x0001180038000508ull);
284 #define CVMX_ZIP_QUE_PRI (CVMX_ADD_IO_SEG(0x0001180038000508ull))
286 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
287 #define CVMX_ZIP_THROTTLE CVMX_ZIP_THROTTLE_FUNC()
288 static inline uint64_t CVMX_ZIP_THROTTLE_FUNC(void)
290 if (!(OCTEON_IS_MODEL(OCTEON_CN61XX) || OCTEON_IS_MODEL(OCTEON_CN63XX) || OCTEON_IS_MODEL(OCTEON_CN66XX) || OCTEON_IS_MODEL(OCTEON_CN68XX)))
291 cvmx_warn("CVMX_ZIP_THROTTLE not supported on this chip\n");
292 return CVMX_ADD_IO_SEG(0x0001180038000010ull);
295 #define CVMX_ZIP_THROTTLE (CVMX_ADD_IO_SEG(0x0001180038000010ull))
299 * cvmx_zip_cmd_bist_result
301 * ZIP_CMD_BIST_RESULT = ZIP Command BIST Result Register
304 * This register is a reformatted register with same fields as O63 2.x.
305 * The purpose of this register is for software backward compatibility.
306 * Some bits are the bist result of combined status of memories (per bit, 0=pass and 1=fail).
308 union cvmx_zip_cmd_bist_result {
310 struct cvmx_zip_cmd_bist_result_s {
311 #ifdef __BIG_ENDIAN_BITFIELD
312 uint64_t reserved_57_63 : 7;
313 uint64_t zip_core : 53; /**< BiST result of the ZIP_CORE memories */
314 uint64_t zip_ctl : 4; /**< BiST result of the ZIP_CTL memories */
316 uint64_t zip_ctl : 4;
317 uint64_t zip_core : 53;
318 uint64_t reserved_57_63 : 7;
321 struct cvmx_zip_cmd_bist_result_cn31xx {
322 #ifdef __BIG_ENDIAN_BITFIELD
323 uint64_t reserved_31_63 : 33;
324 uint64_t zip_core : 27; /**< BiST result of the ZIP_CORE memories */
325 uint64_t zip_ctl : 4; /**< BiST result of the ZIP_CTL memories */
327 uint64_t zip_ctl : 4;
328 uint64_t zip_core : 27;
329 uint64_t reserved_31_63 : 33;
332 struct cvmx_zip_cmd_bist_result_cn31xx cn38xx;
333 struct cvmx_zip_cmd_bist_result_cn31xx cn38xxp2;
334 struct cvmx_zip_cmd_bist_result_cn31xx cn56xx;
335 struct cvmx_zip_cmd_bist_result_cn31xx cn56xxp1;
336 struct cvmx_zip_cmd_bist_result_cn31xx cn58xx;
337 struct cvmx_zip_cmd_bist_result_cn31xx cn58xxp1;
338 struct cvmx_zip_cmd_bist_result_s cn61xx;
339 struct cvmx_zip_cmd_bist_result_s cn63xx;
340 struct cvmx_zip_cmd_bist_result_cn63xxp1 {
341 #ifdef __BIG_ENDIAN_BITFIELD
342 uint64_t reserved_43_63 : 21;
343 uint64_t zip_core : 39; /**< BiST result of the ZIP_CORE memories */
344 uint64_t zip_ctl : 4; /**< BiST result of the ZIP_CTL memories */
346 uint64_t zip_ctl : 4;
347 uint64_t zip_core : 39;
348 uint64_t reserved_43_63 : 21;
351 struct cvmx_zip_cmd_bist_result_s cn66xx;
352 struct cvmx_zip_cmd_bist_result_s cn68xx;
353 struct cvmx_zip_cmd_bist_result_s cn68xxp1;
355 typedef union cvmx_zip_cmd_bist_result cvmx_zip_cmd_bist_result_t;
360 * ZIP_CMD_BUF = ZIP Command Buffer Parameter Register
363 * This is an alias to ZIP_QUE0_BUF. The purpose of this register is for software backward compatibility.
364 * This register set the buffer parameters for the instruction queue 0.
366 union cvmx_zip_cmd_buf {
368 struct cvmx_zip_cmd_buf_s {
369 #ifdef __BIG_ENDIAN_BITFIELD
370 uint64_t reserved_58_63 : 6;
371 uint64_t dwb : 9; /**< Number of DontWriteBacks */
372 uint64_t pool : 3; /**< Free list used to free command buffer segments */
373 uint64_t size : 13; /**< Number of uint64s per command buffer segment */
374 uint64_t ptr : 33; /**< Initial command buffer pointer[39:7] (128B-aligned) */
380 uint64_t reserved_58_63 : 6;
383 struct cvmx_zip_cmd_buf_s cn31xx;
384 struct cvmx_zip_cmd_buf_s cn38xx;
385 struct cvmx_zip_cmd_buf_s cn38xxp2;
386 struct cvmx_zip_cmd_buf_s cn56xx;
387 struct cvmx_zip_cmd_buf_s cn56xxp1;
388 struct cvmx_zip_cmd_buf_s cn58xx;
389 struct cvmx_zip_cmd_buf_s cn58xxp1;
390 struct cvmx_zip_cmd_buf_s cn61xx;
391 struct cvmx_zip_cmd_buf_s cn63xx;
392 struct cvmx_zip_cmd_buf_s cn63xxp1;
393 struct cvmx_zip_cmd_buf_s cn66xx;
394 struct cvmx_zip_cmd_buf_s cn68xx;
395 struct cvmx_zip_cmd_buf_s cn68xxp1;
397 typedef union cvmx_zip_cmd_buf cvmx_zip_cmd_buf_t;
402 * ZIP_CMD_CTL = ZIP Clock/Reset Control Register
405 * This register controls clock and reset.
407 union cvmx_zip_cmd_ctl {
409 struct cvmx_zip_cmd_ctl_s {
410 #ifdef __BIG_ENDIAN_BITFIELD
411 uint64_t reserved_2_63 : 62;
412 uint64_t forceclk : 1; /**< Force zip_ctl__zip<0|1>_clock_on_b == 1 when set */
413 uint64_t reset : 1; /**< Reset one-shot pulse for zip cores */
416 uint64_t forceclk : 1;
417 uint64_t reserved_2_63 : 62;
420 struct cvmx_zip_cmd_ctl_s cn31xx;
421 struct cvmx_zip_cmd_ctl_s cn38xx;
422 struct cvmx_zip_cmd_ctl_s cn38xxp2;
423 struct cvmx_zip_cmd_ctl_s cn56xx;
424 struct cvmx_zip_cmd_ctl_s cn56xxp1;
425 struct cvmx_zip_cmd_ctl_s cn58xx;
426 struct cvmx_zip_cmd_ctl_s cn58xxp1;
427 struct cvmx_zip_cmd_ctl_s cn61xx;
428 struct cvmx_zip_cmd_ctl_s cn63xx;
429 struct cvmx_zip_cmd_ctl_s cn63xxp1;
430 struct cvmx_zip_cmd_ctl_s cn66xx;
431 struct cvmx_zip_cmd_ctl_s cn68xx;
432 struct cvmx_zip_cmd_ctl_s cn68xxp1;
434 typedef union cvmx_zip_cmd_ctl cvmx_zip_cmd_ctl_t;
439 * ZIP_CONSTANTS = ZIP Constants Register
442 * This contains all the current implementation related parameters of the zip core in this chip.
444 union cvmx_zip_constants {
446 struct cvmx_zip_constants_s {
447 #ifdef __BIG_ENDIAN_BITFIELD
448 uint64_t nexec : 8; /**< Number of available ZIP Exec Units */
449 uint64_t reserved_49_55 : 7;
450 uint64_t syncflush_capable : 1; /**< 1: SYNCFLUSH is supported
451 - 0: SYNCFLUSH is not supported.
452 Note: for O68 1.0, SYNCFLUSH is supported
453 although this field is 0. */
454 uint64_t depth : 16; /**< Maximum search depth for compression */
455 uint64_t onfsize : 12; /**< Output near full threshold in bytes */
456 uint64_t ctxsize : 12; /**< Decompression Context size in bytes */
457 uint64_t reserved_1_7 : 7;
458 uint64_t disabled : 1; /**< 1=zip is disabled, 0=zip is enabled */
460 uint64_t disabled : 1;
461 uint64_t reserved_1_7 : 7;
462 uint64_t ctxsize : 12;
463 uint64_t onfsize : 12;
465 uint64_t syncflush_capable : 1;
466 uint64_t reserved_49_55 : 7;
470 struct cvmx_zip_constants_cn31xx {
471 #ifdef __BIG_ENDIAN_BITFIELD
472 uint64_t reserved_48_63 : 16;
473 uint64_t depth : 16; /**< Maximum search depth for compression */
474 uint64_t onfsize : 12; /**< Output near full threshhold in bytes */
475 uint64_t ctxsize : 12; /**< Context size in bytes */
476 uint64_t reserved_1_7 : 7;
477 uint64_t disabled : 1; /**< 1=zip unit isdisabled, 0=zip unit not disabled */
479 uint64_t disabled : 1;
480 uint64_t reserved_1_7 : 7;
481 uint64_t ctxsize : 12;
482 uint64_t onfsize : 12;
484 uint64_t reserved_48_63 : 16;
487 struct cvmx_zip_constants_cn31xx cn38xx;
488 struct cvmx_zip_constants_cn31xx cn38xxp2;
489 struct cvmx_zip_constants_cn31xx cn56xx;
490 struct cvmx_zip_constants_cn31xx cn56xxp1;
491 struct cvmx_zip_constants_cn31xx cn58xx;
492 struct cvmx_zip_constants_cn31xx cn58xxp1;
493 struct cvmx_zip_constants_s cn61xx;
494 struct cvmx_zip_constants_cn31xx cn63xx;
495 struct cvmx_zip_constants_cn31xx cn63xxp1;
496 struct cvmx_zip_constants_s cn66xx;
497 struct cvmx_zip_constants_s cn68xx;
498 struct cvmx_zip_constants_cn31xx cn68xxp1;
500 typedef union cvmx_zip_constants cvmx_zip_constants_t;
503 * cvmx_zip_core#_bist_status
505 * ZIP_CORE_BIST_STATUS = ZIP CORE Bist Status Registers
508 * Those register have the bist status of memories in zip cores.
509 * Each bit is the bist result of an individual memory (per bit, 0=pass and 1=fail).
511 union cvmx_zip_corex_bist_status {
513 struct cvmx_zip_corex_bist_status_s {
514 #ifdef __BIG_ENDIAN_BITFIELD
515 uint64_t reserved_53_63 : 11;
516 uint64_t bstatus : 53; /**< BIST result of the ZIP_CORE memories */
518 uint64_t bstatus : 53;
519 uint64_t reserved_53_63 : 11;
522 struct cvmx_zip_corex_bist_status_s cn68xx;
523 struct cvmx_zip_corex_bist_status_s cn68xxp1;
525 typedef union cvmx_zip_corex_bist_status cvmx_zip_corex_bist_status_t;
528 * cvmx_zip_ctl_bist_status
530 * ZIP_CTL_BIST_STATUS = ZIP CONTROL Bist Status Register
533 * This register has the bist status of memories in zip_ctl (Instruction Buffer, G/S Pointer Fifo, Input Data Buffer,
534 * Output Data Buffers).
535 * Each bit is the bist result of an individual memory (per bit, 0=pass and 1=fail).
537 union cvmx_zip_ctl_bist_status {
539 struct cvmx_zip_ctl_bist_status_s {
540 #ifdef __BIG_ENDIAN_BITFIELD
541 uint64_t reserved_7_63 : 57;
542 uint64_t bstatus : 7; /**< BIST result of the memories */
544 uint64_t bstatus : 7;
545 uint64_t reserved_7_63 : 57;
548 struct cvmx_zip_ctl_bist_status_s cn68xx;
549 struct cvmx_zip_ctl_bist_status_s cn68xxp1;
551 typedef union cvmx_zip_ctl_bist_status cvmx_zip_ctl_bist_status_t;
556 * ZIP_CTL_CFG = ZIP Controller Configuration Register
559 * This register controls the behavior zip dma engine. It is recommended to kept those field in the default values for normal
560 * operation. Changing the values of the fields may be useful for diagnostics.
562 union cvmx_zip_ctl_cfg {
564 struct cvmx_zip_ctl_cfg_s {
565 #ifdef __BIG_ENDIAN_BITFIELD
566 uint64_t reserved_27_63 : 37;
567 uint64_t ildf : 3; /**< Instruction Load Command FIFO Credits <= 4 */
568 uint64_t reserved_22_23 : 2;
569 uint64_t iprf : 2; /**< Instruction Page Return Cmd FIFO Credits <= 2 */
570 uint64_t reserved_19_19 : 1;
571 uint64_t gstf : 3; /**< G/S Tag FIFO Credits <= 4 */
572 uint64_t reserved_15_15 : 1;
573 uint64_t stcf : 3; /**< Store Command FIFO Credits <= 4 */
574 uint64_t reserved_11_11 : 1;
575 uint64_t ldf : 3; /**< Load Cmd FIFO Credits <= 4 */
576 uint64_t reserved_6_7 : 2;
577 uint64_t wkqf : 2; /**< WorkQueue FIFO Credits <= 2 */
578 uint64_t reserved_2_3 : 2;
579 uint64_t busy : 1; /**< 1: ZIP system is busy; 0: ZIP system is idle. */
580 uint64_t lmod : 1; /**< Legacy Mode. */
584 uint64_t reserved_2_3 : 2;
586 uint64_t reserved_6_7 : 2;
588 uint64_t reserved_11_11 : 1;
590 uint64_t reserved_15_15 : 1;
592 uint64_t reserved_19_19 : 1;
594 uint64_t reserved_22_23 : 2;
596 uint64_t reserved_27_63 : 37;
599 struct cvmx_zip_ctl_cfg_s cn68xx;
600 struct cvmx_zip_ctl_cfg_s cn68xxp1;
602 typedef union cvmx_zip_ctl_cfg cvmx_zip_ctl_cfg_t;
605 * cvmx_zip_dbg_core#_inst
607 * ZIP_DBG_COREX_INST = ZIP Core Current Instruction Registers
610 * This register reflects the status of the current instruction that zip core is executing/ has executed.
611 * This register is only for debug use.
613 union cvmx_zip_dbg_corex_inst {
615 struct cvmx_zip_dbg_corex_inst_s {
616 #ifdef __BIG_ENDIAN_BITFIELD
617 uint64_t busy : 1; /**< Core State: 1 - Core is busy; 0 - Core is idle */
618 uint64_t reserved_33_62 : 30;
619 uint64_t qid : 1; /**< Queue Index of instruction executed (BUSY=0) or
620 being executed (BUSY=1) on this core */
621 uint64_t iid : 32; /**< Instruction Index executed (BUSY=0) or being
622 executed (BUSY=1) on this core */
626 uint64_t reserved_33_62 : 30;
630 struct cvmx_zip_dbg_corex_inst_s cn68xx;
631 struct cvmx_zip_dbg_corex_inst_s cn68xxp1;
633 typedef union cvmx_zip_dbg_corex_inst cvmx_zip_dbg_corex_inst_t;
636 * cvmx_zip_dbg_core#_sta
638 * ZIP_DBG_COREX_STA = ZIP Core Status Registers
641 * These register reflect the status of the zip cores.
642 * This register is only for debug use.
644 union cvmx_zip_dbg_corex_sta {
646 struct cvmx_zip_dbg_corex_sta_s {
647 #ifdef __BIG_ENDIAN_BITFIELD
648 uint64_t busy : 1; /**< Core State: 1 - Core is busy; 0 - Core is idle */
649 uint64_t reserved_37_62 : 26;
650 uint64_t ist : 5; /**< State of current instruction is executing */
651 uint64_t nie : 32; /**< Number of instructions executed on this core */
655 uint64_t reserved_37_62 : 26;
659 struct cvmx_zip_dbg_corex_sta_s cn68xx;
660 struct cvmx_zip_dbg_corex_sta_s cn68xxp1;
662 typedef union cvmx_zip_dbg_corex_sta cvmx_zip_dbg_corex_sta_t;
665 * cvmx_zip_dbg_que#_sta
667 * ZIP_DBG_QUEX_STA = ZIP Queue Status Registers
670 * This register reflects status of the zip instruction queue.
671 * This register is only for debug use.
673 union cvmx_zip_dbg_quex_sta {
675 struct cvmx_zip_dbg_quex_sta_s {
676 #ifdef __BIG_ENDIAN_BITFIELD
677 uint64_t busy : 1; /**< Queue State: 1 - Queue is busy; 0 - Queue is idle */
678 uint64_t reserved_52_62 : 11;
679 uint64_t cdbc : 20; /**< Current DoorBell Counter */
680 uint64_t nii : 32; /**< Number of instructions issued from this queue.
681 Reset to 0 when ZIP_QUEn_BUF is written. */
685 uint64_t reserved_52_62 : 11;
689 struct cvmx_zip_dbg_quex_sta_s cn68xx;
690 struct cvmx_zip_dbg_quex_sta_s cn68xxp1;
692 typedef union cvmx_zip_dbg_quex_sta cvmx_zip_dbg_quex_sta_t;
697 * ZIP_DEBUG0 = ZIP DEBUG Register
701 union cvmx_zip_debug0 {
703 struct cvmx_zip_debug0_s {
704 #ifdef __BIG_ENDIAN_BITFIELD
705 uint64_t reserved_30_63 : 34;
706 uint64_t asserts : 30; /**< FIFO assertion checks */
708 uint64_t asserts : 30;
709 uint64_t reserved_30_63 : 34;
712 struct cvmx_zip_debug0_cn31xx {
713 #ifdef __BIG_ENDIAN_BITFIELD
714 uint64_t reserved_14_63 : 50;
715 uint64_t asserts : 14; /**< FIFO assertion checks */
717 uint64_t asserts : 14;
718 uint64_t reserved_14_63 : 50;
721 struct cvmx_zip_debug0_cn31xx cn38xx;
722 struct cvmx_zip_debug0_cn31xx cn38xxp2;
723 struct cvmx_zip_debug0_cn31xx cn56xx;
724 struct cvmx_zip_debug0_cn31xx cn56xxp1;
725 struct cvmx_zip_debug0_cn31xx cn58xx;
726 struct cvmx_zip_debug0_cn31xx cn58xxp1;
727 struct cvmx_zip_debug0_cn61xx {
728 #ifdef __BIG_ENDIAN_BITFIELD
729 uint64_t reserved_17_63 : 47;
730 uint64_t asserts : 17; /**< FIFO assertion checks */
732 uint64_t asserts : 17;
733 uint64_t reserved_17_63 : 47;
736 struct cvmx_zip_debug0_cn61xx cn63xx;
737 struct cvmx_zip_debug0_cn61xx cn63xxp1;
738 struct cvmx_zip_debug0_cn61xx cn66xx;
739 struct cvmx_zip_debug0_s cn68xx;
740 struct cvmx_zip_debug0_s cn68xxp1;
742 typedef union cvmx_zip_debug0 cvmx_zip_debug0_t;
747 * ZIP_ECC_CTL = ZIP ECC Control Register
750 * This register enables ECC for each individual internal memory that requires ECC. For debug purpose, it can also
751 * control 1 or 2 bits be flipped in the ECC data.
753 union cvmx_zip_ecc_ctl {
755 struct cvmx_zip_ecc_ctl_s {
756 #ifdef __BIG_ENDIAN_BITFIELD
757 uint64_t reserved_34_63 : 30;
758 uint64_t ibge : 2; /**< controls instruction buffer flip syndrome
759 2'b00 : No Error Generation
760 2'b10, 2'b01: Flip 1 bit
761 2'b11 : Flip 2 bits */
762 uint64_t reserved_1_31 : 31;
763 uint64_t iben : 1; /**< 1: ECC Enabled for instruction buffer
764 - 0: ECC Disabled for instruction buffer */
767 uint64_t reserved_1_31 : 31;
769 uint64_t reserved_34_63 : 30;
772 struct cvmx_zip_ecc_ctl_s cn68xx;
773 struct cvmx_zip_ecc_ctl_s cn68xxp1;
775 typedef union cvmx_zip_ecc_ctl cvmx_zip_ecc_ctl_t;
780 * ZIP_ERROR = ZIP ERROR Register
783 * This register is an alias to ZIP_INT_REG[DOORBELL0].
784 * The purpose of this register is for software backward compatibility.
786 union cvmx_zip_error {
788 struct cvmx_zip_error_s {
789 #ifdef __BIG_ENDIAN_BITFIELD
790 uint64_t reserved_1_63 : 63;
791 uint64_t doorbell : 1; /**< A doorbell count has overflowed */
793 uint64_t doorbell : 1;
794 uint64_t reserved_1_63 : 63;
797 struct cvmx_zip_error_s cn31xx;
798 struct cvmx_zip_error_s cn38xx;
799 struct cvmx_zip_error_s cn38xxp2;
800 struct cvmx_zip_error_s cn56xx;
801 struct cvmx_zip_error_s cn56xxp1;
802 struct cvmx_zip_error_s cn58xx;
803 struct cvmx_zip_error_s cn58xxp1;
804 struct cvmx_zip_error_s cn61xx;
805 struct cvmx_zip_error_s cn63xx;
806 struct cvmx_zip_error_s cn63xxp1;
807 struct cvmx_zip_error_s cn66xx;
808 struct cvmx_zip_error_s cn68xx;
809 struct cvmx_zip_error_s cn68xxp1;
811 typedef union cvmx_zip_error cvmx_zip_error_t;
816 * ZIP_INT_ENA = ZIP Interrupt Enable Register
819 * Only when an interrupt source is enabled, an interrupt can be fired.
820 * When a bit is set to 1, the corresponding interrupt is enabled.
822 union cvmx_zip_int_ena {
824 struct cvmx_zip_int_ena_s {
825 #ifdef __BIG_ENDIAN_BITFIELD
826 uint64_t reserved_10_63 : 54;
827 uint64_t doorbell1 : 1; /**< Enable for Doorbell 1 count overflow */
828 uint64_t doorbell0 : 1; /**< Enable for Doorbell 0 count overflow */
829 uint64_t reserved_3_7 : 5;
830 uint64_t ibdbe : 1; /**< Enable for IBUF Double Bit Error */
831 uint64_t ibsbe : 1; /**< Enable for IBUF Single Bit Error */
832 uint64_t fife : 1; /**< Enable for FIFO errors */
837 uint64_t reserved_3_7 : 5;
838 uint64_t doorbell0 : 1;
839 uint64_t doorbell1 : 1;
840 uint64_t reserved_10_63 : 54;
843 struct cvmx_zip_int_ena_s cn68xx;
844 struct cvmx_zip_int_ena_s cn68xxp1;
846 typedef union cvmx_zip_int_ena cvmx_zip_int_ena_t;
851 * ZIP_INT_MASK = ZIP Interrupt Mask Register
854 * This register is an alias to ZIP_INT_ENA[DOORBELL0].
855 * The purpose of this register is for software backward compatibility.
857 union cvmx_zip_int_mask {
859 struct cvmx_zip_int_mask_s {
860 #ifdef __BIG_ENDIAN_BITFIELD
861 uint64_t reserved_1_63 : 63;
862 uint64_t doorbell : 1; /**< Bit mask corresponding to ZIP_ERROR[0] above */
864 uint64_t doorbell : 1;
865 uint64_t reserved_1_63 : 63;
868 struct cvmx_zip_int_mask_s cn31xx;
869 struct cvmx_zip_int_mask_s cn38xx;
870 struct cvmx_zip_int_mask_s cn38xxp2;
871 struct cvmx_zip_int_mask_s cn56xx;
872 struct cvmx_zip_int_mask_s cn56xxp1;
873 struct cvmx_zip_int_mask_s cn58xx;
874 struct cvmx_zip_int_mask_s cn58xxp1;
875 struct cvmx_zip_int_mask_s cn61xx;
876 struct cvmx_zip_int_mask_s cn63xx;
877 struct cvmx_zip_int_mask_s cn63xxp1;
878 struct cvmx_zip_int_mask_s cn66xx;
879 struct cvmx_zip_int_mask_s cn68xx;
880 struct cvmx_zip_int_mask_s cn68xxp1;
882 typedef union cvmx_zip_int_mask cvmx_zip_int_mask_t;
887 * ZIP_INT_REG = ZIP Interrupt Status Register
890 * This registers contains the status of all the interrupt source. An interrupt will be generated only when
891 * the corresponding interrupt source is enabled in ZIP_INT_ENA.
893 union cvmx_zip_int_reg {
895 struct cvmx_zip_int_reg_s {
896 #ifdef __BIG_ENDIAN_BITFIELD
897 uint64_t reserved_10_63 : 54;
898 uint64_t doorbell1 : 1; /**< Doorbell 1 count has overflowed */
899 uint64_t doorbell0 : 1; /**< Doorbell 0 count has overflowed */
900 uint64_t reserved_3_7 : 5;
901 uint64_t ibdbe : 1; /**< IBUF Double Bit Error */
902 uint64_t ibsbe : 1; /**< IBUF Single Bit Error */
903 uint64_t fife : 1; /**< FIFO errors and the detailed status is in
909 uint64_t reserved_3_7 : 5;
910 uint64_t doorbell0 : 1;
911 uint64_t doorbell1 : 1;
912 uint64_t reserved_10_63 : 54;
915 struct cvmx_zip_int_reg_s cn68xx;
916 struct cvmx_zip_int_reg_s cn68xxp1;
918 typedef union cvmx_zip_int_reg cvmx_zip_int_reg_t;
923 * NOTE: Fields NEXEC and SYNCFLUSH_CAPABLE are only valid for chips after O68 2.0 (including O68 2.0).
926 * ZIP_QUEX_BUF = ZIP Queue Buffer Parameter Registers
929 * These registers set the buffer parameters for the instruction queues . The size of the instruction buffer
930 * segments is measured in uint64s. The pool specifies (1 of 8 free lists to be used when freeing command
931 * buffer segments). The PTR field is overwritten with the next pointer each time that the command
932 * buffer segment is exhausted. When quiescent (i.e. outstanding doorbell count is 0), it is safe
933 * to rewrite this register to effectively reset the command buffer state machine. New commands
934 * will then be read from the newly specified command buffer pointer.
936 union cvmx_zip_quex_buf {
938 struct cvmx_zip_quex_buf_s {
939 #ifdef __BIG_ENDIAN_BITFIELD
940 uint64_t reserved_58_63 : 6;
941 uint64_t dwb : 9; /**< Number of DontWriteBacks */
942 uint64_t pool : 3; /**< Free list used to free command buffer segments */
943 uint64_t size : 13; /**< Number of uint64s per command buffer segment */
944 uint64_t ptr : 33; /**< Initial command buffer pointer[39:7] (128B-aligned) */
950 uint64_t reserved_58_63 : 6;
953 struct cvmx_zip_quex_buf_s cn68xx;
954 struct cvmx_zip_quex_buf_s cn68xxp1;
956 typedef union cvmx_zip_quex_buf cvmx_zip_quex_buf_t;
959 * cvmx_zip_que#_ecc_err_sta
961 * ZIP_QUEX_ECC_ERR_STA = ZIP Queue ECC ERROR STATUS Register
964 * This register contains the first ECC SBE/DBE status for the instruction buffer of a given zip instruction queue.
966 union cvmx_zip_quex_ecc_err_sta {
968 struct cvmx_zip_quex_ecc_err_sta_s {
969 #ifdef __BIG_ENDIAN_BITFIELD
970 uint64_t reserved_35_63 : 29;
971 uint64_t wnum : 3; /**< Index of the first IWORD that DBE happened
972 (Valid when ZIP_INT_REG[IBDBE] or [IBSBE] is set). */
973 uint64_t inum : 32; /**< Index of the first instruction that DBE happened
974 (Valid when ZIP_INT_REG[IBDBE] or [IBSBE] is set). */
978 uint64_t reserved_35_63 : 29;
981 struct cvmx_zip_quex_ecc_err_sta_s cn68xx;
982 struct cvmx_zip_quex_ecc_err_sta_s cn68xxp1;
984 typedef union cvmx_zip_quex_ecc_err_sta cvmx_zip_quex_ecc_err_sta_t;
989 * ZIP_QUEX_MAP = ZIP Queue Mapping Registers
992 * These registers control how each instruction queue maps to 2 zip cores.
993 * Bit[0] corresponds to zip core 0 and bit[1] corresponds to zip core 1.
994 * A "1" means instructions from the queue can be served by the corresponding zip core.
996 union cvmx_zip_quex_map {
998 struct cvmx_zip_quex_map_s {
999 #ifdef __BIG_ENDIAN_BITFIELD
1000 uint64_t reserved_2_63 : 62;
1001 uint64_t zce : 2; /**< Zip Core Enable
1002 Controls the logical instruction queue can be
1003 serviced by which zip core. Setting ZCE==0
1004 effectively disables the queue from being served
1005 (however the instruction can still be fetched).
1006 ZCE[1]=1, zip core 1 can serve the queue.
1007 ZCE[0]=1, zip core 0 can serve the queue. */
1010 uint64_t reserved_2_63 : 62;
1013 struct cvmx_zip_quex_map_s cn68xx;
1014 struct cvmx_zip_quex_map_s cn68xxp1;
1016 typedef union cvmx_zip_quex_map cvmx_zip_quex_map_t;
1021 * ZIP_QUE_ENA = ZIP Queue Enable Register
1024 * If a queue is disabled, ZIP_CTL will stop fetching instructions from the queue.
1026 union cvmx_zip_que_ena {
1028 struct cvmx_zip_que_ena_s {
1029 #ifdef __BIG_ENDIAN_BITFIELD
1030 uint64_t reserved_2_63 : 62;
1031 uint64_t ena : 2; /**< Enables the logical instruction queues.
1032 - 1: Queue is enabled. 0: Queue is disabled
1033 ENA[1]=1 enables queue 1
1034 ENA[0]=1 enables queue 0 */
1037 uint64_t reserved_2_63 : 62;
1040 struct cvmx_zip_que_ena_s cn68xx;
1041 struct cvmx_zip_que_ena_s cn68xxp1;
1043 typedef union cvmx_zip_que_ena cvmx_zip_que_ena_t;
1048 * ZIP_QUE_PRI = ZIP Queue Priority Register
1051 * This registers defines the priority between instruction queue 1 and instruction queue 0.
1052 * Bit[0] corresponds to queue 0 and bit[1] corresponds to queue 1. A "1" means high priority.
1054 union cvmx_zip_que_pri {
1056 struct cvmx_zip_que_pri_s {
1057 #ifdef __BIG_ENDIAN_BITFIELD
1058 uint64_t reserved_2_63 : 62;
1059 uint64_t pri : 2; /**< Priority
1060 2'b10: Queue 1 has higher priority.
1061 2'b01: Queue 0 has higher priority.
1062 2'b11,2'b00: round robin */
1065 uint64_t reserved_2_63 : 62;
1068 struct cvmx_zip_que_pri_s cn68xx;
1069 struct cvmx_zip_que_pri_s cn68xxp1;
1071 typedef union cvmx_zip_que_pri cvmx_zip_que_pri_t;
1076 * ZIP_THROTTLE = ZIP Throttle Register
1079 * This register controls the maximum number of in-flight X2I data fetch transactions. Values > 16 are illegal.
1080 * Writing 0 to this register causes the ZIP module to temporarily suspend NCB accesses; it is not recommended
1081 * for normal operation, but may be useful for diagnostics.
1083 union cvmx_zip_throttle {
1085 struct cvmx_zip_throttle_s {
1086 #ifdef __BIG_ENDIAN_BITFIELD
1087 uint64_t reserved_5_63 : 59;
1088 uint64_t max_infl : 5; /**< Maximum number of in-flight data fetch transactions on
1091 uint64_t max_infl : 5;
1092 uint64_t reserved_5_63 : 59;
1095 struct cvmx_zip_throttle_cn61xx {
1096 #ifdef __BIG_ENDIAN_BITFIELD
1097 uint64_t reserved_4_63 : 60;
1098 uint64_t max_infl : 4; /**< Maximum number of inflight data fetch transactions
1101 uint64_t max_infl : 4;
1102 uint64_t reserved_4_63 : 60;
1105 struct cvmx_zip_throttle_cn61xx cn63xx;
1106 struct cvmx_zip_throttle_cn61xx cn63xxp1;
1107 struct cvmx_zip_throttle_cn61xx cn66xx;
1108 struct cvmx_zip_throttle_s cn68xx;
1109 struct cvmx_zip_throttle_s cn68xxp1;
1111 typedef union cvmx_zip_throttle cvmx_zip_throttle_t;