diff options
Diffstat (limited to 'cvmx-ciu-defs.h')
-rw-r--r-- | cvmx-ciu-defs.h | 5527 |
1 files changed, 5527 insertions, 0 deletions
diff --git a/cvmx-ciu-defs.h b/cvmx-ciu-defs.h new file mode 100644 index 0000000000000..05c03ff4eef23 --- /dev/null +++ b/cvmx-ciu-defs.h @@ -0,0 +1,5527 @@ +/***********************license start*************** + * Copyright (c) 2003-2010 Cavium Networks (support@cavium.com). All rights + * reserved. + * + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + + * * Neither the name of Cavium Networks nor the names of + * its contributors may be used to endorse or promote products + * derived from this software without specific prior written + * permission. + + * This Software, including technical data, may be subject to U.S. export control + * laws, including the U.S. Export Administration Act and its associated + * regulations, and may be subject to export or import regulations in other + * countries. + + * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" + * AND WITH ALL FAULTS AND CAVIUM NETWORKS MAKES NO PROMISES, REPRESENTATIONS OR + * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO + * THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR + * DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM + * SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES OF TITLE, + * MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF + * VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR + * CORRESPONDENCE TO DESCRIPTION. THE ENTIRE RISK ARISING OUT OF USE OR + * PERFORMANCE OF THE SOFTWARE LIES WITH YOU. + ***********************license end**************************************/ + + +/** + * cvmx-ciu-defs.h + * + * Configuration and status register (CSR) type definitions for + * Octeon ciu. + * + * This file is auto generated. Do not edit. + * + * <hr>$Revision$<hr> + * + */ +#ifndef __CVMX_CIU_TYPEDEFS_H__ +#define __CVMX_CIU_TYPEDEFS_H__ + +#define CVMX_CIU_BIST (CVMX_ADD_IO_SEG(0x0001070000000730ull)) +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +#define CVMX_CIU_BLOCK_INT CVMX_CIU_BLOCK_INT_FUNC() +static inline uint64_t CVMX_CIU_BLOCK_INT_FUNC(void) +{ + if (!(OCTEON_IS_MODEL(OCTEON_CN63XX))) + cvmx_warn("CVMX_CIU_BLOCK_INT not supported on this chip\n"); + return CVMX_ADD_IO_SEG(0x00010700000007C0ull); +} +#else +#define CVMX_CIU_BLOCK_INT (CVMX_ADD_IO_SEG(0x00010700000007C0ull)) +#endif +#define CVMX_CIU_DINT (CVMX_ADD_IO_SEG(0x0001070000000720ull)) +#define CVMX_CIU_FUSE (CVMX_ADD_IO_SEG(0x0001070000000728ull)) +#define CVMX_CIU_GSTOP (CVMX_ADD_IO_SEG(0x0001070000000710ull)) +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +#define CVMX_CIU_INT33_SUM0 CVMX_CIU_INT33_SUM0_FUNC() +static inline uint64_t CVMX_CIU_INT33_SUM0_FUNC(void) +{ + if (!(OCTEON_IS_MODEL(OCTEON_CN63XX))) + cvmx_warn("CVMX_CIU_INT33_SUM0 not supported on this chip\n"); + return CVMX_ADD_IO_SEG(0x0001070000000110ull); +} +#else +#define CVMX_CIU_INT33_SUM0 (CVMX_ADD_IO_SEG(0x0001070000000110ull)) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_INTX_EN0(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset <= 1) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 3) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 32))) || + (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 3) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 7) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 23) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 32))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 11) || ((offset >= 32) && (offset <= 33)))))) + cvmx_warn("CVMX_CIU_INTX_EN0(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000000200ull) + ((offset) & 63) * 16; +} +#else +#define CVMX_CIU_INTX_EN0(offset) (CVMX_ADD_IO_SEG(0x0001070000000200ull) + ((offset) & 63) * 16) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_INTX_EN0_W1C(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 7) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 23) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 32))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 11) || ((offset >= 32) && (offset <= 33)))))) + cvmx_warn("CVMX_CIU_INTX_EN0_W1C(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000002200ull) + ((offset) & 63) * 16; +} +#else +#define CVMX_CIU_INTX_EN0_W1C(offset) (CVMX_ADD_IO_SEG(0x0001070000002200ull) + ((offset) & 63) * 16) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_INTX_EN0_W1S(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 7) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 23) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 32))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 11) || ((offset >= 32) && (offset <= 33)))))) + cvmx_warn("CVMX_CIU_INTX_EN0_W1S(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000006200ull) + ((offset) & 63) * 16; +} +#else +#define CVMX_CIU_INTX_EN0_W1S(offset) (CVMX_ADD_IO_SEG(0x0001070000006200ull) + ((offset) & 63) * 16) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_INTX_EN1(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset <= 1) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 3) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 32))) || + (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 3) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 7) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 23) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 32))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 11) || ((offset >= 32) && (offset <= 33)))))) + cvmx_warn("CVMX_CIU_INTX_EN1(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000000208ull) + ((offset) & 63) * 16; +} +#else +#define CVMX_CIU_INTX_EN1(offset) (CVMX_ADD_IO_SEG(0x0001070000000208ull) + ((offset) & 63) * 16) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_INTX_EN1_W1C(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 7) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 23) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 32))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 11) || ((offset >= 32) && (offset <= 33)))))) + cvmx_warn("CVMX_CIU_INTX_EN1_W1C(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000002208ull) + ((offset) & 63) * 16; +} +#else +#define CVMX_CIU_INTX_EN1_W1C(offset) (CVMX_ADD_IO_SEG(0x0001070000002208ull) + ((offset) & 63) * 16) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_INTX_EN1_W1S(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 7) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 23) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 32))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 11) || ((offset >= 32) && (offset <= 33)))))) + cvmx_warn("CVMX_CIU_INTX_EN1_W1S(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000006208ull) + ((offset) & 63) * 16; +} +#else +#define CVMX_CIU_INTX_EN1_W1S(offset) (CVMX_ADD_IO_SEG(0x0001070000006208ull) + ((offset) & 63) * 16) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_INTX_EN4_0(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 1))) || + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 11))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 15))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 5))))) + cvmx_warn("CVMX_CIU_INTX_EN4_0(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000000C80ull) + ((offset) & 15) * 16; +} +#else +#define CVMX_CIU_INTX_EN4_0(offset) (CVMX_ADD_IO_SEG(0x0001070000000C80ull) + ((offset) & 15) * 16) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_INTX_EN4_0_W1C(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 11))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 15))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 5))))) + cvmx_warn("CVMX_CIU_INTX_EN4_0_W1C(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000002C80ull) + ((offset) & 15) * 16; +} +#else +#define CVMX_CIU_INTX_EN4_0_W1C(offset) (CVMX_ADD_IO_SEG(0x0001070000002C80ull) + ((offset) & 15) * 16) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_INTX_EN4_0_W1S(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 11))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 15))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 5))))) + cvmx_warn("CVMX_CIU_INTX_EN4_0_W1S(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000006C80ull) + ((offset) & 15) * 16; +} +#else +#define CVMX_CIU_INTX_EN4_0_W1S(offset) (CVMX_ADD_IO_SEG(0x0001070000006C80ull) + ((offset) & 15) * 16) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_INTX_EN4_1(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 1))) || + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 11))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 15))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 5))))) + cvmx_warn("CVMX_CIU_INTX_EN4_1(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000000C88ull) + ((offset) & 15) * 16; +} +#else +#define CVMX_CIU_INTX_EN4_1(offset) (CVMX_ADD_IO_SEG(0x0001070000000C88ull) + ((offset) & 15) * 16) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_INTX_EN4_1_W1C(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 11))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 15))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 5))))) + cvmx_warn("CVMX_CIU_INTX_EN4_1_W1C(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000002C88ull) + ((offset) & 15) * 16; +} +#else +#define CVMX_CIU_INTX_EN4_1_W1C(offset) (CVMX_ADD_IO_SEG(0x0001070000002C88ull) + ((offset) & 15) * 16) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_INTX_EN4_1_W1S(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 11))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 15))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 5))))) + cvmx_warn("CVMX_CIU_INTX_EN4_1_W1S(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000006C88ull) + ((offset) & 15) * 16; +} +#else +#define CVMX_CIU_INTX_EN4_1_W1S(offset) (CVMX_ADD_IO_SEG(0x0001070000006C88ull) + ((offset) & 15) * 16) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_INTX_SUM0(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset <= 1) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 3) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 32))) || + (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 3) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 7) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 23) || (offset == 32))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 32))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 11) || (offset == 32))))) + cvmx_warn("CVMX_CIU_INTX_SUM0(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000000000ull) + ((offset) & 63) * 8; +} +#else +#define CVMX_CIU_INTX_SUM0(offset) (CVMX_ADD_IO_SEG(0x0001070000000000ull) + ((offset) & 63) * 8) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_INTX_SUM4(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 1))) || + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 11))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 15))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 5))))) + cvmx_warn("CVMX_CIU_INTX_SUM4(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000000C00ull) + ((offset) & 15) * 8; +} +#else +#define CVMX_CIU_INTX_SUM4(offset) (CVMX_ADD_IO_SEG(0x0001070000000C00ull) + ((offset) & 15) * 8) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +#define CVMX_CIU_INT_DBG_SEL CVMX_CIU_INT_DBG_SEL_FUNC() +static inline uint64_t CVMX_CIU_INT_DBG_SEL_FUNC(void) +{ + if (!(OCTEON_IS_MODEL(OCTEON_CN63XX))) + cvmx_warn("CVMX_CIU_INT_DBG_SEL not supported on this chip\n"); + return CVMX_ADD_IO_SEG(0x00010700000007D0ull); +} +#else +#define CVMX_CIU_INT_DBG_SEL (CVMX_ADD_IO_SEG(0x00010700000007D0ull)) +#endif +#define CVMX_CIU_INT_SUM1 (CVMX_ADD_IO_SEG(0x0001070000000108ull)) +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_MBOX_CLRX(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset == 0))) || + (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 1))) || + (OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 15))) || + (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 1))) || + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 11))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 15))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 5))))) + cvmx_warn("CVMX_CIU_MBOX_CLRX(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000000680ull) + ((offset) & 15) * 8; +} +#else +#define CVMX_CIU_MBOX_CLRX(offset) (CVMX_ADD_IO_SEG(0x0001070000000680ull) + ((offset) & 15) * 8) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_MBOX_SETX(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset == 0))) || + (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 1))) || + (OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 15))) || + (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 1))) || + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 11))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 15))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 5))))) + cvmx_warn("CVMX_CIU_MBOX_SETX(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000000600ull) + ((offset) & 15) * 8; +} +#else +#define CVMX_CIU_MBOX_SETX(offset) (CVMX_ADD_IO_SEG(0x0001070000000600ull) + ((offset) & 15) * 8) +#endif +#define CVMX_CIU_NMI (CVMX_ADD_IO_SEG(0x0001070000000718ull)) +#define CVMX_CIU_PCI_INTA (CVMX_ADD_IO_SEG(0x0001070000000750ull)) +#define CVMX_CIU_PP_DBG (CVMX_ADD_IO_SEG(0x0001070000000708ull)) +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_PP_POKEX(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset == 0))) || + (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 1))) || + (OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 15))) || + (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 1))) || + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 11))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 15))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 5))))) + cvmx_warn("CVMX_CIU_PP_POKEX(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000000580ull) + ((offset) & 15) * 8; +} +#else +#define CVMX_CIU_PP_POKEX(offset) (CVMX_ADD_IO_SEG(0x0001070000000580ull) + ((offset) & 15) * 8) +#endif +#define CVMX_CIU_PP_RST (CVMX_ADD_IO_SEG(0x0001070000000700ull)) +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +#define CVMX_CIU_QLM0 CVMX_CIU_QLM0_FUNC() +static inline uint64_t CVMX_CIU_QLM0_FUNC(void) +{ + if (!(OCTEON_IS_MODEL(OCTEON_CN63XX))) + cvmx_warn("CVMX_CIU_QLM0 not supported on this chip\n"); + return CVMX_ADD_IO_SEG(0x0001070000000780ull); +} +#else +#define CVMX_CIU_QLM0 (CVMX_ADD_IO_SEG(0x0001070000000780ull)) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +#define CVMX_CIU_QLM1 CVMX_CIU_QLM1_FUNC() +static inline uint64_t CVMX_CIU_QLM1_FUNC(void) +{ + if (!(OCTEON_IS_MODEL(OCTEON_CN63XX))) + cvmx_warn("CVMX_CIU_QLM1 not supported on this chip\n"); + return CVMX_ADD_IO_SEG(0x0001070000000788ull); +} +#else +#define CVMX_CIU_QLM1 (CVMX_ADD_IO_SEG(0x0001070000000788ull)) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +#define CVMX_CIU_QLM2 CVMX_CIU_QLM2_FUNC() +static inline uint64_t CVMX_CIU_QLM2_FUNC(void) +{ + if (!(OCTEON_IS_MODEL(OCTEON_CN63XX))) + cvmx_warn("CVMX_CIU_QLM2 not supported on this chip\n"); + return CVMX_ADD_IO_SEG(0x0001070000000790ull); +} +#else +#define CVMX_CIU_QLM2 (CVMX_ADD_IO_SEG(0x0001070000000790ull)) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +#define CVMX_CIU_QLM_DCOK CVMX_CIU_QLM_DCOK_FUNC() +static inline uint64_t CVMX_CIU_QLM_DCOK_FUNC(void) +{ + if (!(OCTEON_IS_MODEL(OCTEON_CN52XX) || OCTEON_IS_MODEL(OCTEON_CN56XX))) + cvmx_warn("CVMX_CIU_QLM_DCOK not supported on this chip\n"); + return CVMX_ADD_IO_SEG(0x0001070000000760ull); +} +#else +#define CVMX_CIU_QLM_DCOK (CVMX_ADD_IO_SEG(0x0001070000000760ull)) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +#define CVMX_CIU_QLM_JTGC CVMX_CIU_QLM_JTGC_FUNC() +static inline uint64_t CVMX_CIU_QLM_JTGC_FUNC(void) +{ + if (!(OCTEON_IS_MODEL(OCTEON_CN52XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN63XX))) + cvmx_warn("CVMX_CIU_QLM_JTGC not supported on this chip\n"); + return CVMX_ADD_IO_SEG(0x0001070000000768ull); +} +#else +#define CVMX_CIU_QLM_JTGC (CVMX_ADD_IO_SEG(0x0001070000000768ull)) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +#define CVMX_CIU_QLM_JTGD CVMX_CIU_QLM_JTGD_FUNC() +static inline uint64_t CVMX_CIU_QLM_JTGD_FUNC(void) +{ + if (!(OCTEON_IS_MODEL(OCTEON_CN52XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN63XX))) + cvmx_warn("CVMX_CIU_QLM_JTGD not supported on this chip\n"); + return CVMX_ADD_IO_SEG(0x0001070000000770ull); +} +#else +#define CVMX_CIU_QLM_JTGD (CVMX_ADD_IO_SEG(0x0001070000000770ull)) +#endif +#define CVMX_CIU_SOFT_BIST (CVMX_ADD_IO_SEG(0x0001070000000738ull)) +#define CVMX_CIU_SOFT_PRST (CVMX_ADD_IO_SEG(0x0001070000000748ull)) +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +#define CVMX_CIU_SOFT_PRST1 CVMX_CIU_SOFT_PRST1_FUNC() +static inline uint64_t CVMX_CIU_SOFT_PRST1_FUNC(void) +{ + if (!(OCTEON_IS_MODEL(OCTEON_CN52XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN63XX))) + cvmx_warn("CVMX_CIU_SOFT_PRST1 not supported on this chip\n"); + return CVMX_ADD_IO_SEG(0x0001070000000758ull); +} +#else +#define CVMX_CIU_SOFT_PRST1 (CVMX_ADD_IO_SEG(0x0001070000000758ull)) +#endif +#define CVMX_CIU_SOFT_RST (CVMX_ADD_IO_SEG(0x0001070000000740ull)) +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_TIMX(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 3))))) + cvmx_warn("CVMX_CIU_TIMX(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000000480ull) + ((offset) & 3) * 8; +} +#else +#define CVMX_CIU_TIMX(offset) (CVMX_ADD_IO_SEG(0x0001070000000480ull) + ((offset) & 3) * 8) +#endif +#if CVMX_ENABLE_CSR_ADDRESS_CHECKING +static inline uint64_t CVMX_CIU_WDOGX(unsigned long offset) +{ + if (!( + (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset == 0))) || + (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 1))) || + (OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 15))) || + (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 1))) || + (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3))) || + (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 11))) || + (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 15))) || + (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 5))))) + cvmx_warn("CVMX_CIU_WDOGX(%lu) is invalid on this chip\n", offset); + return CVMX_ADD_IO_SEG(0x0001070000000500ull) + ((offset) & 15) * 8; +} +#else +#define CVMX_CIU_WDOGX(offset) (CVMX_ADD_IO_SEG(0x0001070000000500ull) + ((offset) & 15) * 8) +#endif + +/** + * cvmx_ciu_bist + */ +union cvmx_ciu_bist +{ + uint64_t u64; + struct cvmx_ciu_bist_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_5_63 : 59; + uint64_t bist : 5; /**< BIST Results. + HW sets a bit in BIST for for memory that fails + BIST. */ +#else + uint64_t bist : 5; + uint64_t reserved_5_63 : 59; +#endif + } s; + struct cvmx_ciu_bist_cn30xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_4_63 : 60; + uint64_t bist : 4; /**< BIST Results. + HW sets a bit in BIST for for memory that fails + BIST. */ +#else + uint64_t bist : 4; + uint64_t reserved_4_63 : 60; +#endif + } cn30xx; + struct cvmx_ciu_bist_cn30xx cn31xx; + struct cvmx_ciu_bist_cn30xx cn38xx; + struct cvmx_ciu_bist_cn30xx cn38xxp2; + struct cvmx_ciu_bist_cn50xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_2_63 : 62; + uint64_t bist : 2; /**< BIST Results. + HW sets a bit in BIST for for memory that fails + BIST. */ +#else + uint64_t bist : 2; + uint64_t reserved_2_63 : 62; +#endif + } cn50xx; + struct cvmx_ciu_bist_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_3_63 : 61; + uint64_t bist : 3; /**< BIST Results. + HW sets a bit in BIST for for memory that fails + BIST. */ +#else + uint64_t bist : 3; + uint64_t reserved_3_63 : 61; +#endif + } cn52xx; + struct cvmx_ciu_bist_cn52xx cn52xxp1; + struct cvmx_ciu_bist_cn30xx cn56xx; + struct cvmx_ciu_bist_cn30xx cn56xxp1; + struct cvmx_ciu_bist_cn30xx cn58xx; + struct cvmx_ciu_bist_cn30xx cn58xxp1; + struct cvmx_ciu_bist_s cn63xx; + struct cvmx_ciu_bist_s cn63xxp1; +}; +typedef union cvmx_ciu_bist cvmx_ciu_bist_t; + +/** + * cvmx_ciu_block_int + * + * CIU_BLOCK_INT = CIU Blocks Interrupt + * + * The interrupt lines from the various chip blocks. + */ +union cvmx_ciu_block_int +{ + uint64_t u64; + struct cvmx_ciu_block_int_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_43_63 : 21; + uint64_t ptp : 1; /**< PTP interrupt + See CIU_INT_SUM1[PTP] */ + uint64_t dpi : 1; /**< DPI interrupt + See DPI_INT_REG */ + uint64_t dfm : 1; /**< DFM interrupt + See DFM_FNT_STAT */ + uint64_t reserved_34_39 : 6; + uint64_t srio1 : 1; /**< SRIO1 interrupt + See SRIO1_INT_REG */ + uint64_t srio0 : 1; /**< SRIO0 interrupt + See SRIO0_INT_REG */ + uint64_t reserved_31_31 : 1; + uint64_t iob : 1; /**< IOB interrupt + See IOB_INT_SUM */ + uint64_t reserved_29_29 : 1; + uint64_t agl : 1; /**< AGL interrupt + See AGL_GMX_RX*_INT_REG, AGL_GMX_TX_INT_REG */ + uint64_t reserved_27_27 : 1; + uint64_t pem1 : 1; /**< PEM1 interrupt + See PEM1_INT_SUM (enabled by PEM1_INT_ENB) */ + uint64_t pem0 : 1; /**< PEM0 interrupt + See PEM0_INT_SUM (enabled by PEM0_INT_ENB) */ + uint64_t reserved_23_24 : 2; + uint64_t asxpcs0 : 1; /**< See PCS0_INT*_REG, PCSX0_INT_REG */ + uint64_t reserved_21_21 : 1; + uint64_t pip : 1; /**< PIP interrupt + See PIP_INT_REG */ + uint64_t reserved_18_19 : 2; + uint64_t lmc0 : 1; /**< LMC0 interrupt + See LMC0_INT */ + uint64_t l2c : 1; /**< L2C interrupt + See L2C_INT_REG */ + uint64_t reserved_15_15 : 1; + uint64_t rad : 1; /**< RAD interrupt + See RAD_REG_ERROR */ + uint64_t usb : 1; /**< USB UCTL0 interrupt + See UCTL0_INT_REG */ + uint64_t pow : 1; /**< POW err interrupt + See POW_ECC_ERR */ + uint64_t tim : 1; /**< TIM interrupt + See TIM_REG_ERROR */ + uint64_t pko : 1; /**< PKO interrupt + See PKO_REG_ERROR */ + uint64_t ipd : 1; /**< IPD interrupt + See IPD_INT_SUM */ + uint64_t reserved_8_8 : 1; + uint64_t zip : 1; /**< ZIP interrupt + See ZIP_ERROR */ + uint64_t dfa : 1; /**< DFA interrupt + See DFA_ERROR */ + uint64_t fpa : 1; /**< FPA interrupt + See FPA_INT_SUM */ + uint64_t key : 1; /**< KEY interrupt + See KEY_INT_SUM */ + uint64_t sli : 1; /**< SLI interrupt + See SLI_INT_SUM (enabled by SLI_INT_ENB_CIU) */ + uint64_t reserved_2_2 : 1; + uint64_t gmx0 : 1; /**< GMX0 interrupt + See GMX0_RX*_INT_REG, GMX0_TX_INT_REG */ + uint64_t mio : 1; /**< MIO boot interrupt + See MIO_BOOT_ERR */ +#else + uint64_t mio : 1; + uint64_t gmx0 : 1; + uint64_t reserved_2_2 : 1; + uint64_t sli : 1; + uint64_t key : 1; + uint64_t fpa : 1; + uint64_t dfa : 1; + uint64_t zip : 1; + uint64_t reserved_8_8 : 1; + uint64_t ipd : 1; + uint64_t pko : 1; + uint64_t tim : 1; + uint64_t pow : 1; + uint64_t usb : 1; + uint64_t rad : 1; + uint64_t reserved_15_15 : 1; + uint64_t l2c : 1; + uint64_t lmc0 : 1; + uint64_t reserved_18_19 : 2; + uint64_t pip : 1; + uint64_t reserved_21_21 : 1; + uint64_t asxpcs0 : 1; + uint64_t reserved_23_24 : 2; + uint64_t pem0 : 1; + uint64_t pem1 : 1; + uint64_t reserved_27_27 : 1; + uint64_t agl : 1; + uint64_t reserved_29_29 : 1; + uint64_t iob : 1; + uint64_t reserved_31_31 : 1; + uint64_t srio0 : 1; + uint64_t srio1 : 1; + uint64_t reserved_34_39 : 6; + uint64_t dfm : 1; + uint64_t dpi : 1; + uint64_t ptp : 1; + uint64_t reserved_43_63 : 21; +#endif + } s; + struct cvmx_ciu_block_int_s cn63xx; + struct cvmx_ciu_block_int_s cn63xxp1; +}; +typedef union cvmx_ciu_block_int cvmx_ciu_block_int_t; + +/** + * cvmx_ciu_dint + */ +union cvmx_ciu_dint +{ + uint64_t u64; + struct cvmx_ciu_dint_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_16_63 : 48; + uint64_t dint : 16; /**< Send DINT pulse to PP vector */ +#else + uint64_t dint : 16; + uint64_t reserved_16_63 : 48; +#endif + } s; + struct cvmx_ciu_dint_cn30xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_1_63 : 63; + uint64_t dint : 1; /**< Send DINT pulse to PP vector */ +#else + uint64_t dint : 1; + uint64_t reserved_1_63 : 63; +#endif + } cn30xx; + struct cvmx_ciu_dint_cn31xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_2_63 : 62; + uint64_t dint : 2; /**< Send DINT pulse to PP vector */ +#else + uint64_t dint : 2; + uint64_t reserved_2_63 : 62; +#endif + } cn31xx; + struct cvmx_ciu_dint_s cn38xx; + struct cvmx_ciu_dint_s cn38xxp2; + struct cvmx_ciu_dint_cn31xx cn50xx; + struct cvmx_ciu_dint_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_4_63 : 60; + uint64_t dint : 4; /**< Send DINT pulse to PP vector */ +#else + uint64_t dint : 4; + uint64_t reserved_4_63 : 60; +#endif + } cn52xx; + struct cvmx_ciu_dint_cn52xx cn52xxp1; + struct cvmx_ciu_dint_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_12_63 : 52; + uint64_t dint : 12; /**< Send DINT pulse to PP vector */ +#else + uint64_t dint : 12; + uint64_t reserved_12_63 : 52; +#endif + } cn56xx; + struct cvmx_ciu_dint_cn56xx cn56xxp1; + struct cvmx_ciu_dint_s cn58xx; + struct cvmx_ciu_dint_s cn58xxp1; + struct cvmx_ciu_dint_cn63xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_6_63 : 58; + uint64_t dint : 6; /**< Send DINT pulse to PP vector */ +#else + uint64_t dint : 6; + uint64_t reserved_6_63 : 58; +#endif + } cn63xx; + struct cvmx_ciu_dint_cn63xx cn63xxp1; +}; +typedef union cvmx_ciu_dint cvmx_ciu_dint_t; + +/** + * cvmx_ciu_fuse + */ +union cvmx_ciu_fuse +{ + uint64_t u64; + struct cvmx_ciu_fuse_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_16_63 : 48; + uint64_t fuse : 16; /**< Physical PP is present */ +#else + uint64_t fuse : 16; + uint64_t reserved_16_63 : 48; +#endif + } s; + struct cvmx_ciu_fuse_cn30xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_1_63 : 63; + uint64_t fuse : 1; /**< Physical PP is present */ +#else + uint64_t fuse : 1; + uint64_t reserved_1_63 : 63; +#endif + } cn30xx; + struct cvmx_ciu_fuse_cn31xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_2_63 : 62; + uint64_t fuse : 2; /**< Physical PP is present */ +#else + uint64_t fuse : 2; + uint64_t reserved_2_63 : 62; +#endif + } cn31xx; + struct cvmx_ciu_fuse_s cn38xx; + struct cvmx_ciu_fuse_s cn38xxp2; + struct cvmx_ciu_fuse_cn31xx cn50xx; + struct cvmx_ciu_fuse_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_4_63 : 60; + uint64_t fuse : 4; /**< Physical PP is present */ +#else + uint64_t fuse : 4; + uint64_t reserved_4_63 : 60; +#endif + } cn52xx; + struct cvmx_ciu_fuse_cn52xx cn52xxp1; + struct cvmx_ciu_fuse_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_12_63 : 52; + uint64_t fuse : 12; /**< Physical PP is present */ +#else + uint64_t fuse : 12; + uint64_t reserved_12_63 : 52; +#endif + } cn56xx; + struct cvmx_ciu_fuse_cn56xx cn56xxp1; + struct cvmx_ciu_fuse_s cn58xx; + struct cvmx_ciu_fuse_s cn58xxp1; + struct cvmx_ciu_fuse_cn63xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_6_63 : 58; + uint64_t fuse : 6; /**< Physical PP is present */ +#else + uint64_t fuse : 6; + uint64_t reserved_6_63 : 58; +#endif + } cn63xx; + struct cvmx_ciu_fuse_cn63xx cn63xxp1; +}; +typedef union cvmx_ciu_fuse cvmx_ciu_fuse_t; + +/** + * cvmx_ciu_gstop + */ +union cvmx_ciu_gstop +{ + uint64_t u64; + struct cvmx_ciu_gstop_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_1_63 : 63; + uint64_t gstop : 1; /**< GSTOP bit */ +#else + uint64_t gstop : 1; + uint64_t reserved_1_63 : 63; +#endif + } s; + struct cvmx_ciu_gstop_s cn30xx; + struct cvmx_ciu_gstop_s cn31xx; + struct cvmx_ciu_gstop_s cn38xx; + struct cvmx_ciu_gstop_s cn38xxp2; + struct cvmx_ciu_gstop_s cn50xx; + struct cvmx_ciu_gstop_s cn52xx; + struct cvmx_ciu_gstop_s cn52xxp1; + struct cvmx_ciu_gstop_s cn56xx; + struct cvmx_ciu_gstop_s cn56xxp1; + struct cvmx_ciu_gstop_s cn58xx; + struct cvmx_ciu_gstop_s cn58xxp1; + struct cvmx_ciu_gstop_s cn63xx; + struct cvmx_ciu_gstop_s cn63xxp1; +}; +typedef union cvmx_ciu_gstop cvmx_ciu_gstop_t; + +/** + * cvmx_ciu_int#_en0 + * + * Notes: + * CIU_INT0_EN0: PP0 /IP2 + * CIU_INT1_EN0: PP0 /IP3 + * ... + * CIU_INT6_EN0: PP3/IP2 + * CIU_INT7_EN0: PP3/IP3 + * (hole) + * CIU_INT32_EN0: PCI /IP + */ +union cvmx_ciu_intx_en0 +{ + uint64_t u64; + struct cvmx_ciu_intx_en0_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt enable */ + uint64_t mii : 1; /**< RGMII/MII/MIX Interface 0 Interrupt enable */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt enable */ + uint64_t powiq : 1; /**< POW IQ interrupt enable */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt enable */ + uint64_t mpi : 1; /**< MPI/SPI interrupt */ + uint64_t pcm : 1; /**< PCM/TDM interrupt */ + uint64_t usb : 1; /**< USB EHCI or OHCI Interrupt enable */ + uint64_t timer : 4; /**< General timer interrupt enables */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop interrupt enable */ + uint64_t gmx_drp : 2; /**< GMX packet drop interrupt enable */ + uint64_t trace : 1; /**< Trace buffer interrupt enable */ + uint64_t rml : 1; /**< RML Interrupt enable */ + uint64_t twsi : 1; /**< TWSI Interrupt enable */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCIe/sRIO MSI enables */ + uint64_t pci_int : 4; /**< PCIe INTA/B/C/D enables */ + uint64_t uart : 2; /**< Two UART interrupt enables */ + uint64_t mbox : 2; /**< Two mailbox/PCIe/sRIO interrupt enables */ + uint64_t gpio : 16; /**< 16 GPIO interrupt enables */ + uint64_t workq : 16; /**< 16 work queue interrupt enables */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t pcm : 1; + uint64_t mpi : 1; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } s; + struct cvmx_ciu_intx_en0_cn30xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_59_63 : 5; + uint64_t mpi : 1; /**< MPI/SPI interrupt */ + uint64_t pcm : 1; /**< PCM/TDM interrupt */ + uint64_t usb : 1; /**< USB interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t reserved_51_51 : 1; + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t reserved_49_49 : 1; + uint64_t gmx_drp : 1; /**< GMX packet drop */ + uint64_t reserved_47_47 : 1; + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t reserved_47_47 : 1; + uint64_t gmx_drp : 1; + uint64_t reserved_49_49 : 1; + uint64_t ipd_drp : 1; + uint64_t reserved_51_51 : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t pcm : 1; + uint64_t mpi : 1; + uint64_t reserved_59_63 : 5; +#endif + } cn30xx; + struct cvmx_ciu_intx_en0_cn31xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_59_63 : 5; + uint64_t mpi : 1; /**< MPI/SPI interrupt */ + uint64_t pcm : 1; /**< PCM/TDM interrupt */ + uint64_t usb : 1; /**< USB interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t reserved_51_51 : 1; + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t reserved_49_49 : 1; + uint64_t gmx_drp : 1; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 1; + uint64_t reserved_49_49 : 1; + uint64_t ipd_drp : 1; + uint64_t reserved_51_51 : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t pcm : 1; + uint64_t mpi : 1; + uint64_t reserved_59_63 : 5; +#endif + } cn31xx; + struct cvmx_ciu_intx_en0_cn38xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_56_63 : 8; + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t gmx_drp : 2; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t reserved_56_63 : 8; +#endif + } cn38xx; + struct cvmx_ciu_intx_en0_cn38xx cn38xxp2; + struct cvmx_ciu_intx_en0_cn30xx cn50xx; + struct cvmx_ciu_intx_en0_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt */ + uint64_t mii : 1; /**< MII Interface Interrupt */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt */ + uint64_t powiq : 1; /**< POW IQ interrupt */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< USB Interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t reserved_51_51 : 1; + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t reserved_49_49 : 1; + uint64_t gmx_drp : 1; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 1; + uint64_t reserved_49_49 : 1; + uint64_t ipd_drp : 1; + uint64_t reserved_51_51 : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } cn52xx; + struct cvmx_ciu_intx_en0_cn52xx cn52xxp1; + struct cvmx_ciu_intx_en0_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt */ + uint64_t mii : 1; /**< MII Interface Interrupt */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt */ + uint64_t powiq : 1; /**< POW IQ interrupt */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< USB Interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t gmx_drp : 2; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } cn56xx; + struct cvmx_ciu_intx_en0_cn56xx cn56xxp1; + struct cvmx_ciu_intx_en0_cn38xx cn58xx; + struct cvmx_ciu_intx_en0_cn38xx cn58xxp1; + struct cvmx_ciu_intx_en0_cn52xx cn63xx; + struct cvmx_ciu_intx_en0_cn52xx cn63xxp1; +}; +typedef union cvmx_ciu_intx_en0 cvmx_ciu_intx_en0_t; + +/** + * cvmx_ciu_int#_en0_w1c + * + * Notes: + * Write-1-to-clear version of the CIU_INTx_EN0 register + * + */ +union cvmx_ciu_intx_en0_w1c +{ + uint64_t u64; + struct cvmx_ciu_intx_en0_w1c_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Write 1 to clear Boot bus DMA engines Interrupt + enable */ + uint64_t mii : 1; /**< Write 1 to clr RGMII/MII/MIX Interface 0 Interrupt + enable */ + uint64_t ipdppthr : 1; /**< Write 1 to clear IPD per-port counter threshold + interrupt enable */ + uint64_t powiq : 1; /**< Write 1 to clear POW IQ interrupt */ + uint64_t twsi2 : 1; /**< Write 1 to clear 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< Write 1 to clear USB EHCI or OHCI Interrupt */ + uint64_t timer : 4; /**< Write 1 to clear General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt */ + uint64_t ipd_drp : 1; /**< Write 1 to clear IPD QOS packet drop interrupt + enable */ + uint64_t gmx_drp : 2; /**< Write 1 to clear GMX packet drop interrupt enable */ + uint64_t trace : 1; /**< Write 1 to clear Trace buffer interrupt enable */ + uint64_t rml : 1; /**< Write 1 to clear RML Interrupt enable */ + uint64_t twsi : 1; /**< Write 1 to clear TWSI Interrupt enable */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< Write 1s to clear PCIe/sRIO MSI enables */ + uint64_t pci_int : 4; /**< Write 1s to clear PCIe INTA/B/C/D enables */ + uint64_t uart : 2; /**< Write 1s to clear UART interrupt enables */ + uint64_t mbox : 2; /**< Write 1s to clear mailbox/PCIe/sRIO interrupt + enables */ + uint64_t gpio : 16; /**< Write 1s to clear GPIO interrupt enables */ + uint64_t workq : 16; /**< Write 1s to clear work queue interrupt enables */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } s; + struct cvmx_ciu_intx_en0_w1c_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt */ + uint64_t mii : 1; /**< MII Interface Interrupt */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt */ + uint64_t powiq : 1; /**< POW IQ interrupt */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< USB Interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t reserved_51_51 : 1; + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t reserved_49_49 : 1; + uint64_t gmx_drp : 1; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 1; + uint64_t reserved_49_49 : 1; + uint64_t ipd_drp : 1; + uint64_t reserved_51_51 : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } cn52xx; + struct cvmx_ciu_intx_en0_w1c_s cn56xx; + struct cvmx_ciu_intx_en0_w1c_cn58xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_56_63 : 8; + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t gmx_drp : 2; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t reserved_56_63 : 8; +#endif + } cn58xx; + struct cvmx_ciu_intx_en0_w1c_cn52xx cn63xx; + struct cvmx_ciu_intx_en0_w1c_cn52xx cn63xxp1; +}; +typedef union cvmx_ciu_intx_en0_w1c cvmx_ciu_intx_en0_w1c_t; + +/** + * cvmx_ciu_int#_en0_w1s + * + * Notes: + * Write-1-to-set version of the CIU_INTx_EN0 register + * + */ +union cvmx_ciu_intx_en0_w1s +{ + uint64_t u64; + struct cvmx_ciu_intx_en0_w1s_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Write 1 to set Boot bus DMA engines Interrupt + enable */ + uint64_t mii : 1; /**< Write 1 to set RGMII/MII/MIX Interface 0 Interrupt + enable */ + uint64_t ipdppthr : 1; /**< Write 1 to set IPD per-port counter threshold + interrupt enable */ + uint64_t powiq : 1; /**< Write 1 to set POW IQ interrupt */ + uint64_t twsi2 : 1; /**< Write 1 to set 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< Write 1 to set USB EHCI or OHCI Interrupt */ + uint64_t timer : 4; /**< Write 1 to set General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt */ + uint64_t ipd_drp : 1; /**< Write 1 to set IPD QOS packet drop interrupt + enable */ + uint64_t gmx_drp : 2; /**< Write 1 to set GMX packet drop interrupt enable */ + uint64_t trace : 1; /**< Write 1 to set Trace buffer interrupt enable */ + uint64_t rml : 1; /**< Write 1 to set RML Interrupt enable */ + uint64_t twsi : 1; /**< Write 1 to set TWSI Interrupt enable */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< Write 1s to set PCIe/sRIO MSI enables */ + uint64_t pci_int : 4; /**< Write 1s to set PCIe INTA/B/C/D enables */ + uint64_t uart : 2; /**< Write 1s to set UART interrupt enables */ + uint64_t mbox : 2; /**< Write 1s to set mailbox/PCIe/sRIO interrupt + enables */ + uint64_t gpio : 16; /**< Write 1s to set GPIO interrupt enables */ + uint64_t workq : 16; /**< Write 1s to set work queue interrupt enables */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } s; + struct cvmx_ciu_intx_en0_w1s_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt */ + uint64_t mii : 1; /**< MII Interface Interrupt */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt */ + uint64_t powiq : 1; /**< POW IQ interrupt */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< USB Interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t reserved_51_51 : 1; + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t reserved_49_49 : 1; + uint64_t gmx_drp : 1; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 1; + uint64_t reserved_49_49 : 1; + uint64_t ipd_drp : 1; + uint64_t reserved_51_51 : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } cn52xx; + struct cvmx_ciu_intx_en0_w1s_s cn56xx; + struct cvmx_ciu_intx_en0_w1s_cn58xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_56_63 : 8; + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t gmx_drp : 2; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t reserved_56_63 : 8; +#endif + } cn58xx; + struct cvmx_ciu_intx_en0_w1s_cn52xx cn63xx; + struct cvmx_ciu_intx_en0_w1s_cn52xx cn63xxp1; +}; +typedef union cvmx_ciu_intx_en0_w1s cvmx_ciu_intx_en0_w1s_t; + +/** + * cvmx_ciu_int#_en1 + * + * Notes: + * @verbatim + * PPx/IP2 will be raised when... + * + * n = x*2 + * PPx/IP2 = |([CIU_INT_SUM1, CIU_INTn_SUM0] & [CIU_INTn_EN1, CIU_INTn_EN0]) + * + * PPx/IP3 will be raised when... + * + * n = x*2 + 1 + * PPx/IP3 = |([CIU_INT_SUM1, CIU_INTn_SUM0] & [CIU_INTn_EN1, CIU_INTn_EN0]) + * + * PCI/INT will be raised when... + * + * PCI/INT = |([CIU_INT_SUM1, CIU_INT32_SUM0] & [CIU_INT32_EN1, CIU_INT32_EN0]) + * @endverbatim + */ +union cvmx_ciu_intx_en1 +{ + uint64_t u64; + struct cvmx_ciu_intx_en1_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t rst : 1; /**< MIO RST interrupt enable */ + uint64_t reserved_57_62 : 6; + uint64_t dfm : 1; /**< DFM interrupt enable */ + uint64_t reserved_53_55 : 3; + uint64_t lmc0 : 1; /**< LMC0 interrupt enable */ + uint64_t srio1 : 1; /**< SRIO1 interrupt enable */ + uint64_t srio0 : 1; /**< SRIO0 interrupt enable */ + uint64_t pem1 : 1; /**< PEM1 interrupt enable */ + uint64_t pem0 : 1; /**< PEM0 interrupt enable */ + uint64_t ptp : 1; /**< PTP interrupt enable */ + uint64_t agl : 1; /**< AGL interrupt enable */ + uint64_t reserved_37_45 : 9; + uint64_t agx0 : 1; /**< GMX0 interrupt enable */ + uint64_t dpi : 1; /**< DPI interrupt enable */ + uint64_t sli : 1; /**< SLI interrupt enable */ + uint64_t usb : 1; /**< USB UCTL0 interrupt enable */ + uint64_t dfa : 1; /**< DFA interrupt enable */ + uint64_t key : 1; /**< KEY interrupt enable */ + uint64_t rad : 1; /**< RAD interrupt enable */ + uint64_t tim : 1; /**< TIM interrupt enable */ + uint64_t zip : 1; /**< ZIP interrupt enable */ + uint64_t pko : 1; /**< PKO interrupt enable */ + uint64_t pip : 1; /**< PIP interrupt enable */ + uint64_t ipd : 1; /**< IPD interrupt enable */ + uint64_t l2c : 1; /**< L2C interrupt enable */ + uint64_t pow : 1; /**< POW err interrupt enable */ + uint64_t fpa : 1; /**< FPA interrupt enable */ + uint64_t iob : 1; /**< IOB interrupt enable */ + uint64_t mio : 1; /**< MIO boot interrupt enable */ + uint64_t nand : 1; /**< NAND Flash Controller interrupt enable */ + uint64_t mii1 : 1; /**< RGMII/MII/MIX Interface 1 Interrupt enable */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t wdog : 16; /**< Watchdog summary interrupt enable vector */ +#else + uint64_t wdog : 16; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t mio : 1; + uint64_t iob : 1; + uint64_t fpa : 1; + uint64_t pow : 1; + uint64_t l2c : 1; + uint64_t ipd : 1; + uint64_t pip : 1; + uint64_t pko : 1; + uint64_t zip : 1; + uint64_t tim : 1; + uint64_t rad : 1; + uint64_t key : 1; + uint64_t dfa : 1; + uint64_t usb : 1; + uint64_t sli : 1; + uint64_t dpi : 1; + uint64_t agx0 : 1; + uint64_t reserved_37_45 : 9; + uint64_t agl : 1; + uint64_t ptp : 1; + uint64_t pem0 : 1; + uint64_t pem1 : 1; + uint64_t srio0 : 1; + uint64_t srio1 : 1; + uint64_t lmc0 : 1; + uint64_t reserved_53_55 : 3; + uint64_t dfm : 1; + uint64_t reserved_57_62 : 6; + uint64_t rst : 1; +#endif + } s; + struct cvmx_ciu_intx_en1_cn30xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_1_63 : 63; + uint64_t wdog : 1; /**< Watchdog summary interrupt enable vector */ +#else + uint64_t wdog : 1; + uint64_t reserved_1_63 : 63; +#endif + } cn30xx; + struct cvmx_ciu_intx_en1_cn31xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_2_63 : 62; + uint64_t wdog : 2; /**< Watchdog summary interrupt enable vectory */ +#else + uint64_t wdog : 2; + uint64_t reserved_2_63 : 62; +#endif + } cn31xx; + struct cvmx_ciu_intx_en1_cn38xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_16_63 : 48; + uint64_t wdog : 16; /**< Watchdog summary interrupt enable vectory */ +#else + uint64_t wdog : 16; + uint64_t reserved_16_63 : 48; +#endif + } cn38xx; + struct cvmx_ciu_intx_en1_cn38xx cn38xxp2; + struct cvmx_ciu_intx_en1_cn31xx cn50xx; + struct cvmx_ciu_intx_en1_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_20_63 : 44; + uint64_t nand : 1; /**< NAND Flash Controller */ + uint64_t mii1 : 1; /**< Second MII Interrupt */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t reserved_4_15 : 12; + uint64_t wdog : 4; /**< Watchdog summary interrupt enable vector */ +#else + uint64_t wdog : 4; + uint64_t reserved_4_15 : 12; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t reserved_20_63 : 44; +#endif + } cn52xx; + struct cvmx_ciu_intx_en1_cn52xxp1 + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_19_63 : 45; + uint64_t mii1 : 1; /**< Second MII Interrupt */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t reserved_4_15 : 12; + uint64_t wdog : 4; /**< Watchdog summary interrupt enable vector */ +#else + uint64_t wdog : 4; + uint64_t reserved_4_15 : 12; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t reserved_19_63 : 45; +#endif + } cn52xxp1; + struct cvmx_ciu_intx_en1_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_12_63 : 52; + uint64_t wdog : 12; /**< Watchdog summary interrupt enable vectory */ +#else + uint64_t wdog : 12; + uint64_t reserved_12_63 : 52; +#endif + } cn56xx; + struct cvmx_ciu_intx_en1_cn56xx cn56xxp1; + struct cvmx_ciu_intx_en1_cn38xx cn58xx; + struct cvmx_ciu_intx_en1_cn38xx cn58xxp1; + struct cvmx_ciu_intx_en1_cn63xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t rst : 1; /**< MIO RST interrupt enable */ + uint64_t reserved_57_62 : 6; + uint64_t dfm : 1; /**< DFM interrupt enable */ + uint64_t reserved_53_55 : 3; + uint64_t lmc0 : 1; /**< LMC0 interrupt enable */ + uint64_t srio1 : 1; /**< SRIO1 interrupt enable */ + uint64_t srio0 : 1; /**< SRIO0 interrupt enable */ + uint64_t pem1 : 1; /**< PEM1 interrupt enable */ + uint64_t pem0 : 1; /**< PEM0 interrupt enable */ + uint64_t ptp : 1; /**< PTP interrupt enable */ + uint64_t agl : 1; /**< AGL interrupt enable */ + uint64_t reserved_37_45 : 9; + uint64_t agx0 : 1; /**< GMX0 interrupt enable */ + uint64_t dpi : 1; /**< DPI interrupt enable */ + uint64_t sli : 1; /**< SLI interrupt enable */ + uint64_t usb : 1; /**< USB UCTL0 interrupt enable */ + uint64_t dfa : 1; /**< DFA interrupt enable */ + uint64_t key : 1; /**< KEY interrupt enable */ + uint64_t rad : 1; /**< RAD interrupt enable */ + uint64_t tim : 1; /**< TIM interrupt enable */ + uint64_t zip : 1; /**< ZIP interrupt enable */ + uint64_t pko : 1; /**< PKO interrupt enable */ + uint64_t pip : 1; /**< PIP interrupt enable */ + uint64_t ipd : 1; /**< IPD interrupt enable */ + uint64_t l2c : 1; /**< L2C interrupt enable */ + uint64_t pow : 1; /**< POW err interrupt enable */ + uint64_t fpa : 1; /**< FPA interrupt enable */ + uint64_t iob : 1; /**< IOB interrupt enable */ + uint64_t mio : 1; /**< MIO boot interrupt enable */ + uint64_t nand : 1; /**< NAND Flash Controller interrupt enable */ + uint64_t mii1 : 1; /**< RGMII/MII/MIX Interface 1 Interrupt enable */ + uint64_t reserved_6_17 : 12; + uint64_t wdog : 6; /**< Watchdog summary interrupt enable vector */ +#else + uint64_t wdog : 6; + uint64_t reserved_6_17 : 12; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t mio : 1; + uint64_t iob : 1; + uint64_t fpa : 1; + uint64_t pow : 1; + uint64_t l2c : 1; + uint64_t ipd : 1; + uint64_t pip : 1; + uint64_t pko : 1; + uint64_t zip : 1; + uint64_t tim : 1; + uint64_t rad : 1; + uint64_t key : 1; + uint64_t dfa : 1; + uint64_t usb : 1; + uint64_t sli : 1; + uint64_t dpi : 1; + uint64_t agx0 : 1; + uint64_t reserved_37_45 : 9; + uint64_t agl : 1; + uint64_t ptp : 1; + uint64_t pem0 : 1; + uint64_t pem1 : 1; + uint64_t srio0 : 1; + uint64_t srio1 : 1; + uint64_t lmc0 : 1; + uint64_t reserved_53_55 : 3; + uint64_t dfm : 1; + uint64_t reserved_57_62 : 6; + uint64_t rst : 1; +#endif + } cn63xx; + struct cvmx_ciu_intx_en1_cn63xx cn63xxp1; +}; +typedef union cvmx_ciu_intx_en1 cvmx_ciu_intx_en1_t; + +/** + * cvmx_ciu_int#_en1_w1c + * + * Notes: + * Write-1-to-clear version of the CIU_INTx_EN1 register + * + */ +union cvmx_ciu_intx_en1_w1c +{ + uint64_t u64; + struct cvmx_ciu_intx_en1_w1c_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t rst : 1; /**< Write 1 to clear MIO RST interrupt enable */ + uint64_t reserved_57_62 : 6; + uint64_t dfm : 1; /**< Write 1 to clear DFM interrupt enable */ + uint64_t reserved_53_55 : 3; + uint64_t lmc0 : 1; /**< Write 1 to clear LMC0 interrupt enable */ + uint64_t srio1 : 1; /**< Write 1 to clear SRIO1 interrupt enable */ + uint64_t srio0 : 1; /**< Write 1 to clear SRIO0 interrupt enable */ + uint64_t pem1 : 1; /**< Write 1 to clear PEM1 interrupt enable */ + uint64_t pem0 : 1; /**< Write 1 to clear PEM0 interrupt enable */ + uint64_t ptp : 1; /**< Write 1 to clear PTP interrupt enable */ + uint64_t agl : 1; /**< Write 1 to clear AGL interrupt enable */ + uint64_t reserved_37_45 : 9; + uint64_t agx0 : 1; /**< Write 1 to clear GMX0 interrupt enable */ + uint64_t dpi : 1; /**< Write 1 to clear DPI interrupt enable */ + uint64_t sli : 1; /**< Write 1 to clear SLI interrupt enable */ + uint64_t usb : 1; /**< Write 1 to clear USB UCTL0 interrupt enable */ + uint64_t dfa : 1; /**< Write 1 to clear DFA interrupt enable */ + uint64_t key : 1; /**< Write 1 to clear KEY interrupt enable */ + uint64_t rad : 1; /**< Write 1 to clear RAD interrupt enable */ + uint64_t tim : 1; /**< Write 1 to clear TIM interrupt enable */ + uint64_t zip : 1; /**< Write 1 to clear ZIP interrupt enable */ + uint64_t pko : 1; /**< Write 1 to clear PKO interrupt enable */ + uint64_t pip : 1; /**< Write 1 to clear PIP interrupt enable */ + uint64_t ipd : 1; /**< Write 1 to clear IPD interrupt enable */ + uint64_t l2c : 1; /**< Write 1 to clear L2C interrupt enable */ + uint64_t pow : 1; /**< Write 1 to clear POW err interrupt enable */ + uint64_t fpa : 1; /**< Write 1 to clear FPA interrupt enable */ + uint64_t iob : 1; /**< Write 1 to clear IOB interrupt enable */ + uint64_t mio : 1; /**< Write 1 to clear MIO boot interrupt enable */ + uint64_t nand : 1; /**< Write 1 to clear NAND Flash Controller interrupt + enable */ + uint64_t mii1 : 1; /**< Write 1 to clear RGMII/MII/MIX Interface 1 + Interrupt enable */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t wdog : 16; /**< Write 1s to clear Watchdog summary interrupt enable */ +#else + uint64_t wdog : 16; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t mio : 1; + uint64_t iob : 1; + uint64_t fpa : 1; + uint64_t pow : 1; + uint64_t l2c : 1; + uint64_t ipd : 1; + uint64_t pip : 1; + uint64_t pko : 1; + uint64_t zip : 1; + uint64_t tim : 1; + uint64_t rad : 1; + uint64_t key : 1; + uint64_t dfa : 1; + uint64_t usb : 1; + uint64_t sli : 1; + uint64_t dpi : 1; + uint64_t agx0 : 1; + uint64_t reserved_37_45 : 9; + uint64_t agl : 1; + uint64_t ptp : 1; + uint64_t pem0 : 1; + uint64_t pem1 : 1; + uint64_t srio0 : 1; + uint64_t srio1 : 1; + uint64_t lmc0 : 1; + uint64_t reserved_53_55 : 3; + uint64_t dfm : 1; + uint64_t reserved_57_62 : 6; + uint64_t rst : 1; +#endif + } s; + struct cvmx_ciu_intx_en1_w1c_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_20_63 : 44; + uint64_t nand : 1; /**< NAND Flash Controller */ + uint64_t mii1 : 1; /**< Second MII Interrupt */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t reserved_4_15 : 12; + uint64_t wdog : 4; /**< Watchdog summary interrupt enable vector */ +#else + uint64_t wdog : 4; + uint64_t reserved_4_15 : 12; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t reserved_20_63 : 44; +#endif + } cn52xx; + struct cvmx_ciu_intx_en1_w1c_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_12_63 : 52; + uint64_t wdog : 12; /**< Watchdog summary interrupt enable vectory */ +#else + uint64_t wdog : 12; + uint64_t reserved_12_63 : 52; +#endif + } cn56xx; + struct cvmx_ciu_intx_en1_w1c_cn58xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_16_63 : 48; + uint64_t wdog : 16; /**< Watchdog summary interrupt enable vectory */ +#else + uint64_t wdog : 16; + uint64_t reserved_16_63 : 48; +#endif + } cn58xx; + struct cvmx_ciu_intx_en1_w1c_cn63xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t rst : 1; /**< Write 1 to clear MIO RST interrupt enable */ + uint64_t reserved_57_62 : 6; + uint64_t dfm : 1; /**< Write 1 to clear DFM interrupt enable */ + uint64_t reserved_53_55 : 3; + uint64_t lmc0 : 1; /**< Write 1 to clear LMC0 interrupt enable */ + uint64_t srio1 : 1; /**< Write 1 to clear SRIO1 interrupt enable */ + uint64_t srio0 : 1; /**< Write 1 to clear SRIO0 interrupt enable */ + uint64_t pem1 : 1; /**< Write 1 to clear PEM1 interrupt enable */ + uint64_t pem0 : 1; /**< Write 1 to clear PEM0 interrupt enable */ + uint64_t ptp : 1; /**< Write 1 to clear PTP interrupt enable */ + uint64_t agl : 1; /**< Write 1 to clear AGL interrupt enable */ + uint64_t reserved_37_45 : 9; + uint64_t agx0 : 1; /**< Write 1 to clear GMX0 interrupt enable */ + uint64_t dpi : 1; /**< Write 1 to clear DPI interrupt enable */ + uint64_t sli : 1; /**< Write 1 to clear SLI interrupt enable */ + uint64_t usb : 1; /**< Write 1 to clear USB UCTL0 interrupt enable */ + uint64_t dfa : 1; /**< Write 1 to clear DFA interrupt enable */ + uint64_t key : 1; /**< Write 1 to clear KEY interrupt enable */ + uint64_t rad : 1; /**< Write 1 to clear RAD interrupt enable */ + uint64_t tim : 1; /**< Write 1 to clear TIM interrupt enable */ + uint64_t zip : 1; /**< Write 1 to clear ZIP interrupt enable */ + uint64_t pko : 1; /**< Write 1 to clear PKO interrupt enable */ + uint64_t pip : 1; /**< Write 1 to clear PIP interrupt enable */ + uint64_t ipd : 1; /**< Write 1 to clear IPD interrupt enable */ + uint64_t l2c : 1; /**< Write 1 to clear L2C interrupt enable */ + uint64_t pow : 1; /**< Write 1 to clear POW err interrupt enable */ + uint64_t fpa : 1; /**< Write 1 to clear FPA interrupt enable */ + uint64_t iob : 1; /**< Write 1 to clear IOB interrupt enable */ + uint64_t mio : 1; /**< Write 1 to clear MIO boot interrupt enable */ + uint64_t nand : 1; /**< Write 1 to clear NAND Flash Controller interrupt + enable */ + uint64_t mii1 : 1; /**< Write 1 to clear RGMII/MII/MIX Interface 1 + Interrupt enable */ + uint64_t reserved_6_17 : 12; + uint64_t wdog : 6; /**< Write 1s to clear Watchdog summary interrupt enable */ +#else + uint64_t wdog : 6; + uint64_t reserved_6_17 : 12; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t mio : 1; + uint64_t iob : 1; + uint64_t fpa : 1; + uint64_t pow : 1; + uint64_t l2c : 1; + uint64_t ipd : 1; + uint64_t pip : 1; + uint64_t pko : 1; + uint64_t zip : 1; + uint64_t tim : 1; + uint64_t rad : 1; + uint64_t key : 1; + uint64_t dfa : 1; + uint64_t usb : 1; + uint64_t sli : 1; + uint64_t dpi : 1; + uint64_t agx0 : 1; + uint64_t reserved_37_45 : 9; + uint64_t agl : 1; + uint64_t ptp : 1; + uint64_t pem0 : 1; + uint64_t pem1 : 1; + uint64_t srio0 : 1; + uint64_t srio1 : 1; + uint64_t lmc0 : 1; + uint64_t reserved_53_55 : 3; + uint64_t dfm : 1; + uint64_t reserved_57_62 : 6; + uint64_t rst : 1; +#endif + } cn63xx; + struct cvmx_ciu_intx_en1_w1c_cn63xx cn63xxp1; +}; +typedef union cvmx_ciu_intx_en1_w1c cvmx_ciu_intx_en1_w1c_t; + +/** + * cvmx_ciu_int#_en1_w1s + * + * Notes: + * Write-1-to-set version of the CIU_INTx_EN1 register + * + */ +union cvmx_ciu_intx_en1_w1s +{ + uint64_t u64; + struct cvmx_ciu_intx_en1_w1s_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t rst : 1; /**< Write 1 to set MIO RST interrupt enable */ + uint64_t reserved_57_62 : 6; + uint64_t dfm : 1; /**< Write 1 to set DFM interrupt enable */ + uint64_t reserved_53_55 : 3; + uint64_t lmc0 : 1; /**< Write 1 to set LMC0 interrupt enable */ + uint64_t srio1 : 1; /**< Write 1 to set SRIO1 interrupt enable */ + uint64_t srio0 : 1; /**< Write 1 to set SRIO0 interrupt enable */ + uint64_t pem1 : 1; /**< Write 1 to set PEM1 interrupt enable */ + uint64_t pem0 : 1; /**< Write 1 to set PEM0 interrupt enable */ + uint64_t ptp : 1; /**< Write 1 to set PTP interrupt enable */ + uint64_t agl : 1; /**< Write 1 to set AGL interrupt enable */ + uint64_t reserved_37_45 : 9; + uint64_t agx0 : 1; /**< Write 1 to set GMX0 interrupt enable */ + uint64_t dpi : 1; /**< Write 1 to set DPI interrupt enable */ + uint64_t sli : 1; /**< Write 1 to set SLI interrupt enable */ + uint64_t usb : 1; /**< Write 1 to set USB UCTL0 interrupt enable */ + uint64_t dfa : 1; /**< Write 1 to set DFA interrupt enable */ + uint64_t key : 1; /**< Write 1 to set KEY interrupt enable */ + uint64_t rad : 1; /**< Write 1 to set RAD interrupt enable */ + uint64_t tim : 1; /**< Write 1 to set TIM interrupt enable */ + uint64_t zip : 1; /**< Write 1 to set ZIP interrupt enable */ + uint64_t pko : 1; /**< Write 1 to set PKO interrupt enable */ + uint64_t pip : 1; /**< Write 1 to set PIP interrupt enable */ + uint64_t ipd : 1; /**< Write 1 to set IPD interrupt enable */ + uint64_t l2c : 1; /**< Write 1 to set L2C interrupt enable */ + uint64_t pow : 1; /**< Write 1 to set POW err interrupt enable */ + uint64_t fpa : 1; /**< Write 1 to set FPA interrupt enable */ + uint64_t iob : 1; /**< Write 1 to set IOB interrupt enable */ + uint64_t mio : 1; /**< Write 1 to set MIO boot interrupt enable */ + uint64_t nand : 1; /**< Write 1 to set NAND Flash Controller interrupt + enable */ + uint64_t mii1 : 1; /**< Write 1 to set RGMII/MII/MIX Interface 1 Interrupt + enable */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t wdog : 16; /**< Write 1s to set Watchdog summary interrupt enable */ +#else + uint64_t wdog : 16; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t mio : 1; + uint64_t iob : 1; + uint64_t fpa : 1; + uint64_t pow : 1; + uint64_t l2c : 1; + uint64_t ipd : 1; + uint64_t pip : 1; + uint64_t pko : 1; + uint64_t zip : 1; + uint64_t tim : 1; + uint64_t rad : 1; + uint64_t key : 1; + uint64_t dfa : 1; + uint64_t usb : 1; + uint64_t sli : 1; + uint64_t dpi : 1; + uint64_t agx0 : 1; + uint64_t reserved_37_45 : 9; + uint64_t agl : 1; + uint64_t ptp : 1; + uint64_t pem0 : 1; + uint64_t pem1 : 1; + uint64_t srio0 : 1; + uint64_t srio1 : 1; + uint64_t lmc0 : 1; + uint64_t reserved_53_55 : 3; + uint64_t dfm : 1; + uint64_t reserved_57_62 : 6; + uint64_t rst : 1; +#endif + } s; + struct cvmx_ciu_intx_en1_w1s_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_20_63 : 44; + uint64_t nand : 1; /**< NAND Flash Controller */ + uint64_t mii1 : 1; /**< Second MII Interrupt */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t reserved_4_15 : 12; + uint64_t wdog : 4; /**< Watchdog summary interrupt enable vector */ +#else + uint64_t wdog : 4; + uint64_t reserved_4_15 : 12; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t reserved_20_63 : 44; +#endif + } cn52xx; + struct cvmx_ciu_intx_en1_w1s_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_12_63 : 52; + uint64_t wdog : 12; /**< Watchdog summary interrupt enable vectory */ +#else + uint64_t wdog : 12; + uint64_t reserved_12_63 : 52; +#endif + } cn56xx; + struct cvmx_ciu_intx_en1_w1s_cn58xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_16_63 : 48; + uint64_t wdog : 16; /**< Watchdog summary interrupt enable vectory */ +#else + uint64_t wdog : 16; + uint64_t reserved_16_63 : 48; +#endif + } cn58xx; + struct cvmx_ciu_intx_en1_w1s_cn63xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t rst : 1; /**< Write 1 to set MIO RST interrupt enable */ + uint64_t reserved_57_62 : 6; + uint64_t dfm : 1; /**< Write 1 to set DFM interrupt enable */ + uint64_t reserved_53_55 : 3; + uint64_t lmc0 : 1; /**< Write 1 to set LMC0 interrupt enable */ + uint64_t srio1 : 1; /**< Write 1 to set SRIO1 interrupt enable */ + uint64_t srio0 : 1; /**< Write 1 to set SRIO0 interrupt enable */ + uint64_t pem1 : 1; /**< Write 1 to set PEM1 interrupt enable */ + uint64_t pem0 : 1; /**< Write 1 to set PEM0 interrupt enable */ + uint64_t ptp : 1; /**< Write 1 to set PTP interrupt enable */ + uint64_t agl : 1; /**< Write 1 to set AGL interrupt enable */ + uint64_t reserved_37_45 : 9; + uint64_t agx0 : 1; /**< Write 1 to set GMX0 interrupt enable */ + uint64_t dpi : 1; /**< Write 1 to set DPI interrupt enable */ + uint64_t sli : 1; /**< Write 1 to set SLI interrupt enable */ + uint64_t usb : 1; /**< Write 1 to set USB UCTL0 interrupt enable */ + uint64_t dfa : 1; /**< Write 1 to set DFA interrupt enable */ + uint64_t key : 1; /**< Write 1 to set KEY interrupt enable */ + uint64_t rad : 1; /**< Write 1 to set RAD interrupt enable */ + uint64_t tim : 1; /**< Write 1 to set TIM interrupt enable */ + uint64_t zip : 1; /**< Write 1 to set ZIP interrupt enable */ + uint64_t pko : 1; /**< Write 1 to set PKO interrupt enable */ + uint64_t pip : 1; /**< Write 1 to set PIP interrupt enable */ + uint64_t ipd : 1; /**< Write 1 to set IPD interrupt enable */ + uint64_t l2c : 1; /**< Write 1 to set L2C interrupt enable */ + uint64_t pow : 1; /**< Write 1 to set POW err interrupt enable */ + uint64_t fpa : 1; /**< Write 1 to set FPA interrupt enable */ + uint64_t iob : 1; /**< Write 1 to set IOB interrupt enable */ + uint64_t mio : 1; /**< Write 1 to set MIO boot interrupt enable */ + uint64_t nand : 1; /**< Write 1 to set NAND Flash Controller interrupt + enable */ + uint64_t mii1 : 1; /**< Write 1 to set RGMII/MII/MIX Interface 1 Interrupt + enable */ + uint64_t reserved_6_17 : 12; + uint64_t wdog : 6; /**< Write 1s to set Watchdog summary interrupt enable */ +#else + uint64_t wdog : 6; + uint64_t reserved_6_17 : 12; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t mio : 1; + uint64_t iob : 1; + uint64_t fpa : 1; + uint64_t pow : 1; + uint64_t l2c : 1; + uint64_t ipd : 1; + uint64_t pip : 1; + uint64_t pko : 1; + uint64_t zip : 1; + uint64_t tim : 1; + uint64_t rad : 1; + uint64_t key : 1; + uint64_t dfa : 1; + uint64_t usb : 1; + uint64_t sli : 1; + uint64_t dpi : 1; + uint64_t agx0 : 1; + uint64_t reserved_37_45 : 9; + uint64_t agl : 1; + uint64_t ptp : 1; + uint64_t pem0 : 1; + uint64_t pem1 : 1; + uint64_t srio0 : 1; + uint64_t srio1 : 1; + uint64_t lmc0 : 1; + uint64_t reserved_53_55 : 3; + uint64_t dfm : 1; + uint64_t reserved_57_62 : 6; + uint64_t rst : 1; +#endif + } cn63xx; + struct cvmx_ciu_intx_en1_w1s_cn63xx cn63xxp1; +}; +typedef union cvmx_ciu_intx_en1_w1s cvmx_ciu_intx_en1_w1s_t; + +/** + * cvmx_ciu_int#_en4_0 + * + * Notes: + * CIU_INT0_EN4_0: PP0 /IP4 + * CIU_INT1_EN4_0: PP1 /IP4 + * ... + * CIU_INT11_EN4_0: PP11 /IP4 + */ +union cvmx_ciu_intx_en4_0 +{ + uint64_t u64; + struct cvmx_ciu_intx_en4_0_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt enable */ + uint64_t mii : 1; /**< RGMII/MII/MIX Interface 0 Interrupt enable */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt enable */ + uint64_t powiq : 1; /**< POW IQ interrupt enable */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt enable */ + uint64_t mpi : 1; /**< MPI/SPI interrupt */ + uint64_t pcm : 1; /**< PCM/TDM interrupt */ + uint64_t usb : 1; /**< USB EHCI or OHCI Interrupt enable */ + uint64_t timer : 4; /**< General timer interrupt enables */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop interrupt enable */ + uint64_t gmx_drp : 2; /**< GMX packet drop interrupt enable */ + uint64_t trace : 1; /**< Trace buffer interrupt enable */ + uint64_t rml : 1; /**< RML Interrupt enable */ + uint64_t twsi : 1; /**< TWSI Interrupt enable */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCIe/sRIO MSI enables */ + uint64_t pci_int : 4; /**< PCIe INTA/B/C/D enables */ + uint64_t uart : 2; /**< Two UART interrupt enables */ + uint64_t mbox : 2; /**< Two mailbox interrupt enables */ + uint64_t gpio : 16; /**< 16 GPIO interrupt enables */ + uint64_t workq : 16; /**< 16 work queue interrupt enables */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t pcm : 1; + uint64_t mpi : 1; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } s; + struct cvmx_ciu_intx_en4_0_cn50xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_59_63 : 5; + uint64_t mpi : 1; /**< MPI/SPI interrupt */ + uint64_t pcm : 1; /**< PCM/TDM interrupt */ + uint64_t usb : 1; /**< USB interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t reserved_51_51 : 1; + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t reserved_49_49 : 1; + uint64_t gmx_drp : 1; /**< GMX packet drop */ + uint64_t reserved_47_47 : 1; + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t reserved_47_47 : 1; + uint64_t gmx_drp : 1; + uint64_t reserved_49_49 : 1; + uint64_t ipd_drp : 1; + uint64_t reserved_51_51 : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t pcm : 1; + uint64_t mpi : 1; + uint64_t reserved_59_63 : 5; +#endif + } cn50xx; + struct cvmx_ciu_intx_en4_0_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt */ + uint64_t mii : 1; /**< MII Interface Interrupt */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt */ + uint64_t powiq : 1; /**< POW IQ interrupt */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< USB Interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t reserved_51_51 : 1; + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t reserved_49_49 : 1; + uint64_t gmx_drp : 1; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 1; + uint64_t reserved_49_49 : 1; + uint64_t ipd_drp : 1; + uint64_t reserved_51_51 : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } cn52xx; + struct cvmx_ciu_intx_en4_0_cn52xx cn52xxp1; + struct cvmx_ciu_intx_en4_0_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt */ + uint64_t mii : 1; /**< MII Interface Interrupt */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt */ + uint64_t powiq : 1; /**< POW IQ interrupt */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< USB Interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t gmx_drp : 2; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } cn56xx; + struct cvmx_ciu_intx_en4_0_cn56xx cn56xxp1; + struct cvmx_ciu_intx_en4_0_cn58xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_56_63 : 8; + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t gmx_drp : 2; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t reserved_56_63 : 8; +#endif + } cn58xx; + struct cvmx_ciu_intx_en4_0_cn58xx cn58xxp1; + struct cvmx_ciu_intx_en4_0_cn52xx cn63xx; + struct cvmx_ciu_intx_en4_0_cn52xx cn63xxp1; +}; +typedef union cvmx_ciu_intx_en4_0 cvmx_ciu_intx_en4_0_t; + +/** + * cvmx_ciu_int#_en4_0_w1c + * + * Notes: + * Write-1-to-clear version of the CIU_INTx_EN4_0 register + * + */ +union cvmx_ciu_intx_en4_0_w1c +{ + uint64_t u64; + struct cvmx_ciu_intx_en4_0_w1c_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Write 1 to clear Boot bus DMA engines Interrupt + enable */ + uint64_t mii : 1; /**< Write 1 to clr RGMII/MII/MIX Interface 0 Interrupt + enable */ + uint64_t ipdppthr : 1; /**< Write 1 to clear IPD per-port counter threshold + interrupt enable */ + uint64_t powiq : 1; /**< Write 1 to clear POW IQ interrupt */ + uint64_t twsi2 : 1; /**< Write 1 to clear 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< Write 1 to clear USB EHCI or OHCI Interrupt */ + uint64_t timer : 4; /**< Write 1 to clear General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt */ + uint64_t ipd_drp : 1; /**< Write 1 to clear IPD QOS packet drop interrupt + enable */ + uint64_t gmx_drp : 2; /**< Write 1 to clear GMX packet drop interrupt enable */ + uint64_t trace : 1; /**< Write 1 to clear Trace buffer interrupt enable */ + uint64_t rml : 1; /**< Write 1 to clear RML Interrupt enable */ + uint64_t twsi : 1; /**< Write 1 to clear TWSI Interrupt enable */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< Write 1s to clear PCIe/sRIO MSI enables */ + uint64_t pci_int : 4; /**< Write 1s to clear PCIe INTA/B/C/D enables */ + uint64_t uart : 2; /**< Write 1s to clear UART interrupt enables */ + uint64_t mbox : 2; /**< Write 1s to clear mailbox interrupt enables */ + uint64_t gpio : 16; /**< Write 1s to clear GPIO interrupt enables */ + uint64_t workq : 16; /**< Write 1s to clear work queue interrupt enables */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } s; + struct cvmx_ciu_intx_en4_0_w1c_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt */ + uint64_t mii : 1; /**< MII Interface Interrupt */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt */ + uint64_t powiq : 1; /**< POW IQ interrupt */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< USB Interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t reserved_51_51 : 1; + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t reserved_49_49 : 1; + uint64_t gmx_drp : 1; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 1; + uint64_t reserved_49_49 : 1; + uint64_t ipd_drp : 1; + uint64_t reserved_51_51 : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } cn52xx; + struct cvmx_ciu_intx_en4_0_w1c_s cn56xx; + struct cvmx_ciu_intx_en4_0_w1c_cn58xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_56_63 : 8; + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t gmx_drp : 2; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t reserved_56_63 : 8; +#endif + } cn58xx; + struct cvmx_ciu_intx_en4_0_w1c_cn52xx cn63xx; + struct cvmx_ciu_intx_en4_0_w1c_cn52xx cn63xxp1; +}; +typedef union cvmx_ciu_intx_en4_0_w1c cvmx_ciu_intx_en4_0_w1c_t; + +/** + * cvmx_ciu_int#_en4_0_w1s + * + * Notes: + * Write-1-to-set version of the CIU_INTx_EN4_0 register + * + */ +union cvmx_ciu_intx_en4_0_w1s +{ + uint64_t u64; + struct cvmx_ciu_intx_en4_0_w1s_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Write 1 to set Boot bus DMA engines Interrupt + enable */ + uint64_t mii : 1; /**< Write 1 to set RGMII/MII/MIX Interface 0 Interrupt + enable */ + uint64_t ipdppthr : 1; /**< Write 1 to set IPD per-port counter threshold + interrupt enable */ + uint64_t powiq : 1; /**< Write 1 to set POW IQ interrupt */ + uint64_t twsi2 : 1; /**< Write 1 to set 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< Write 1 to set USB EHCI or OHCI Interrupt */ + uint64_t timer : 4; /**< Write 1 to set General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt */ + uint64_t ipd_drp : 1; /**< Write 1 to set IPD QOS packet drop interrupt + enable */ + uint64_t gmx_drp : 2; /**< Write 1 to set GMX packet drop interrupt enable */ + uint64_t trace : 1; /**< Write 1 to set Trace buffer interrupt enable */ + uint64_t rml : 1; /**< Write 1 to set RML Interrupt enable */ + uint64_t twsi : 1; /**< Write 1 to set TWSI Interrupt enable */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< Write 1s to set PCIe/sRIO MSI enables */ + uint64_t pci_int : 4; /**< Write 1s to set PCIe INTA/B/C/D enables */ + uint64_t uart : 2; /**< Write 1s to set UART interrupt enables */ + uint64_t mbox : 2; /**< Write 1s to set mailbox interrupt enables */ + uint64_t gpio : 16; /**< Write 1s to set GPIO interrupt enables */ + uint64_t workq : 16; /**< Write 1s to set work queue interrupt enables */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } s; + struct cvmx_ciu_intx_en4_0_w1s_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt */ + uint64_t mii : 1; /**< MII Interface Interrupt */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt */ + uint64_t powiq : 1; /**< POW IQ interrupt */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< USB Interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t reserved_51_51 : 1; + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t reserved_49_49 : 1; + uint64_t gmx_drp : 1; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 1; + uint64_t reserved_49_49 : 1; + uint64_t ipd_drp : 1; + uint64_t reserved_51_51 : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } cn52xx; + struct cvmx_ciu_intx_en4_0_w1s_s cn56xx; + struct cvmx_ciu_intx_en4_0_w1s_cn58xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_56_63 : 8; + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t gmx_drp : 2; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t reserved_44_44 : 1; + uint64_t pci_msi : 4; /**< PCI MSI */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox/PCI interrupts */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t reserved_44_44 : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t reserved_56_63 : 8; +#endif + } cn58xx; + struct cvmx_ciu_intx_en4_0_w1s_cn52xx cn63xx; + struct cvmx_ciu_intx_en4_0_w1s_cn52xx cn63xxp1; +}; +typedef union cvmx_ciu_intx_en4_0_w1s cvmx_ciu_intx_en4_0_w1s_t; + +/** + * cvmx_ciu_int#_en4_1 + * + * Notes: + * PPx/IP4 will be raised when... + * PPx/IP4 = |([CIU_INT_SUM1, CIU_INTx_SUM4] & [CIU_INTx_EN4_1, CIU_INTx_EN4_0]) + */ +union cvmx_ciu_intx_en4_1 +{ + uint64_t u64; + struct cvmx_ciu_intx_en4_1_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t rst : 1; /**< MIO RST interrupt enable */ + uint64_t reserved_57_62 : 6; + uint64_t dfm : 1; /**< DFM interrupt enable */ + uint64_t reserved_53_55 : 3; + uint64_t lmc0 : 1; /**< LMC0 interrupt enable */ + uint64_t srio1 : 1; /**< SRIO1 interrupt enable */ + uint64_t srio0 : 1; /**< SRIO0 interrupt enable */ + uint64_t pem1 : 1; /**< PEM1 interrupt enable */ + uint64_t pem0 : 1; /**< PEM0 interrupt enable */ + uint64_t ptp : 1; /**< PTP interrupt enable */ + uint64_t agl : 1; /**< AGL interrupt enable */ + uint64_t reserved_37_45 : 9; + uint64_t agx0 : 1; /**< GMX0 interrupt enable */ + uint64_t dpi : 1; /**< DPI interrupt enable */ + uint64_t sli : 1; /**< SLI interrupt enable */ + uint64_t usb : 1; /**< USB UCTL0 interrupt enable */ + uint64_t dfa : 1; /**< DFA interrupt enable */ + uint64_t key : 1; /**< KEY interrupt enable */ + uint64_t rad : 1; /**< RAD interrupt enable */ + uint64_t tim : 1; /**< TIM interrupt enable */ + uint64_t zip : 1; /**< ZIP interrupt enable */ + uint64_t pko : 1; /**< PKO interrupt enable */ + uint64_t pip : 1; /**< PIP interrupt enable */ + uint64_t ipd : 1; /**< IPD interrupt enable */ + uint64_t l2c : 1; /**< L2C interrupt enable */ + uint64_t pow : 1; /**< POW err interrupt enable */ + uint64_t fpa : 1; /**< FPA interrupt enable */ + uint64_t iob : 1; /**< IOB interrupt enable */ + uint64_t mio : 1; /**< MIO boot interrupt enable */ + uint64_t nand : 1; /**< NAND Flash Controller interrupt enable */ + uint64_t mii1 : 1; /**< RGMII/MII/MIX Interface 1 Interrupt enable */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t wdog : 16; /**< Watchdog summary interrupt enable vector */ +#else + uint64_t wdog : 16; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t mio : 1; + uint64_t iob : 1; + uint64_t fpa : 1; + uint64_t pow : 1; + uint64_t l2c : 1; + uint64_t ipd : 1; + uint64_t pip : 1; + uint64_t pko : 1; + uint64_t zip : 1; + uint64_t tim : 1; + uint64_t rad : 1; + uint64_t key : 1; + uint64_t dfa : 1; + uint64_t usb : 1; + uint64_t sli : 1; + uint64_t dpi : 1; + uint64_t agx0 : 1; + uint64_t reserved_37_45 : 9; + uint64_t agl : 1; + uint64_t ptp : 1; + uint64_t pem0 : 1; + uint64_t pem1 : 1; + uint64_t srio0 : 1; + uint64_t srio1 : 1; + uint64_t lmc0 : 1; + uint64_t reserved_53_55 : 3; + uint64_t dfm : 1; + uint64_t reserved_57_62 : 6; + uint64_t rst : 1; +#endif + } s; + struct cvmx_ciu_intx_en4_1_cn50xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_2_63 : 62; + uint64_t wdog : 2; /**< Watchdog summary interrupt enable vectory */ +#else + uint64_t wdog : 2; + uint64_t reserved_2_63 : 62; +#endif + } cn50xx; + struct cvmx_ciu_intx_en4_1_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_20_63 : 44; + uint64_t nand : 1; /**< NAND Flash Controller */ + uint64_t mii1 : 1; /**< Second MII Interrupt */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t reserved_4_15 : 12; + uint64_t wdog : 4; /**< Watchdog summary interrupt enable vector */ +#else + uint64_t wdog : 4; + uint64_t reserved_4_15 : 12; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t reserved_20_63 : 44; +#endif + } cn52xx; + struct cvmx_ciu_intx_en4_1_cn52xxp1 + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_19_63 : 45; + uint64_t mii1 : 1; /**< Second MII Interrupt */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t reserved_4_15 : 12; + uint64_t wdog : 4; /**< Watchdog summary interrupt enable vector */ +#else + uint64_t wdog : 4; + uint64_t reserved_4_15 : 12; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t reserved_19_63 : 45; +#endif + } cn52xxp1; + struct cvmx_ciu_intx_en4_1_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_12_63 : 52; + uint64_t wdog : 12; /**< Watchdog summary interrupt enable vectory */ +#else + uint64_t wdog : 12; + uint64_t reserved_12_63 : 52; +#endif + } cn56xx; + struct cvmx_ciu_intx_en4_1_cn56xx cn56xxp1; + struct cvmx_ciu_intx_en4_1_cn58xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_16_63 : 48; + uint64_t wdog : 16; /**< Watchdog summary interrupt enable vectory */ +#else + uint64_t wdog : 16; + uint64_t reserved_16_63 : 48; +#endif + } cn58xx; + struct cvmx_ciu_intx_en4_1_cn58xx cn58xxp1; + struct cvmx_ciu_intx_en4_1_cn63xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t rst : 1; /**< MIO RST interrupt enable */ + uint64_t reserved_57_62 : 6; + uint64_t dfm : 1; /**< DFM interrupt enable */ + uint64_t reserved_53_55 : 3; + uint64_t lmc0 : 1; /**< LMC0 interrupt enable */ + uint64_t srio1 : 1; /**< SRIO1 interrupt enable */ + uint64_t srio0 : 1; /**< SRIO0 interrupt enable */ + uint64_t pem1 : 1; /**< PEM1 interrupt enable */ + uint64_t pem0 : 1; /**< PEM0 interrupt enable */ + uint64_t ptp : 1; /**< PTP interrupt enable */ + uint64_t agl : 1; /**< AGL interrupt enable */ + uint64_t reserved_37_45 : 9; + uint64_t agx0 : 1; /**< GMX0 interrupt enable */ + uint64_t dpi : 1; /**< DPI interrupt enable */ + uint64_t sli : 1; /**< SLI interrupt enable */ + uint64_t usb : 1; /**< USB UCTL0 interrupt enable */ + uint64_t dfa : 1; /**< DFA interrupt enable */ + uint64_t key : 1; /**< KEY interrupt enable */ + uint64_t rad : 1; /**< RAD interrupt enable */ + uint64_t tim : 1; /**< TIM interrupt enable */ + uint64_t zip : 1; /**< ZIP interrupt enable */ + uint64_t pko : 1; /**< PKO interrupt enable */ + uint64_t pip : 1; /**< PIP interrupt enable */ + uint64_t ipd : 1; /**< IPD interrupt enable */ + uint64_t l2c : 1; /**< L2C interrupt enable */ + uint64_t pow : 1; /**< POW err interrupt enable */ + uint64_t fpa : 1; /**< FPA interrupt enable */ + uint64_t iob : 1; /**< IOB interrupt enable */ + uint64_t mio : 1; /**< MIO boot interrupt enable */ + uint64_t nand : 1; /**< NAND Flash Controller interrupt enable */ + uint64_t mii1 : 1; /**< RGMII/MII/MIX Interface 1 Interrupt enable */ + uint64_t reserved_6_17 : 12; + uint64_t wdog : 6; /**< Watchdog summary interrupt enable vector */ +#else + uint64_t wdog : 6; + uint64_t reserved_6_17 : 12; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t mio : 1; + uint64_t iob : 1; + uint64_t fpa : 1; + uint64_t pow : 1; + uint64_t l2c : 1; + uint64_t ipd : 1; + uint64_t pip : 1; + uint64_t pko : 1; + uint64_t zip : 1; + uint64_t tim : 1; + uint64_t rad : 1; + uint64_t key : 1; + uint64_t dfa : 1; + uint64_t usb : 1; + uint64_t sli : 1; + uint64_t dpi : 1; + uint64_t agx0 : 1; + uint64_t reserved_37_45 : 9; + uint64_t agl : 1; + uint64_t ptp : 1; + uint64_t pem0 : 1; + uint64_t pem1 : 1; + uint64_t srio0 : 1; + uint64_t srio1 : 1; + uint64_t lmc0 : 1; + uint64_t reserved_53_55 : 3; + uint64_t dfm : 1; + uint64_t reserved_57_62 : 6; + uint64_t rst : 1; +#endif + } cn63xx; + struct cvmx_ciu_intx_en4_1_cn63xx cn63xxp1; +}; +typedef union cvmx_ciu_intx_en4_1 cvmx_ciu_intx_en4_1_t; + +/** + * cvmx_ciu_int#_en4_1_w1c + * + * Notes: + * Write-1-to-clear version of the CIU_INTx_EN4_1 register + * + */ +union cvmx_ciu_intx_en4_1_w1c +{ + uint64_t u64; + struct cvmx_ciu_intx_en4_1_w1c_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t rst : 1; /**< Write 1 to clear MIO RST interrupt enable */ + uint64_t reserved_57_62 : 6; + uint64_t dfm : 1; /**< Write 1 to clear DFM interrupt enable */ + uint64_t reserved_53_55 : 3; + uint64_t lmc0 : 1; /**< Write 1 to clear LMC0 interrupt enable */ + uint64_t srio1 : 1; /**< Write 1 to clear SRIO1 interrupt enable */ + uint64_t srio0 : 1; /**< Write 1 to clear SRIO0 interrupt enable */ + uint64_t pem1 : 1; /**< Write 1 to clear PEM1 interrupt enable */ + uint64_t pem0 : 1; /**< Write 1 to clear PEM0 interrupt enable */ + uint64_t ptp : 1; /**< Write 1 to clear PTP interrupt enable */ + uint64_t agl : 1; /**< Write 1 to clear AGL interrupt enable */ + uint64_t reserved_37_45 : 9; + uint64_t agx0 : 1; /**< Write 1 to clear GMX0 interrupt enable */ + uint64_t dpi : 1; /**< Write 1 to clear DPI interrupt enable */ + uint64_t sli : 1; /**< Write 1 to clear SLI interrupt enable */ + uint64_t usb : 1; /**< Write 1 to clear USB UCTL0 interrupt enable */ + uint64_t dfa : 1; /**< Write 1 to clear DFA interrupt enable */ + uint64_t key : 1; /**< Write 1 to clear KEY interrupt enable */ + uint64_t rad : 1; /**< Write 1 to clear RAD interrupt enable */ + uint64_t tim : 1; /**< Write 1 to clear TIM interrupt enable */ + uint64_t zip : 1; /**< Write 1 to clear ZIP interrupt enable */ + uint64_t pko : 1; /**< Write 1 to clear PKO interrupt enable */ + uint64_t pip : 1; /**< Write 1 to clear PIP interrupt enable */ + uint64_t ipd : 1; /**< Write 1 to clear IPD interrupt enable */ + uint64_t l2c : 1; /**< Write 1 to clear L2C interrupt enable */ + uint64_t pow : 1; /**< Write 1 to clear POW err interrupt enable */ + uint64_t fpa : 1; /**< Write 1 to clear FPA interrupt enable */ + uint64_t iob : 1; /**< Write 1 to clear IOB interrupt enable */ + uint64_t mio : 1; /**< Write 1 to clear MIO boot interrupt enable */ + uint64_t nand : 1; /**< Write 1 to clear NAND Flash Controller interrupt + enable */ + uint64_t mii1 : 1; /**< Write 1 to clear RGMII/MII/MIX Interface 1 + Interrupt enable */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t wdog : 16; /**< Write 1s to clear Watchdog summary interrupt enable */ +#else + uint64_t wdog : 16; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t mio : 1; + uint64_t iob : 1; + uint64_t fpa : 1; + uint64_t pow : 1; + uint64_t l2c : 1; + uint64_t ipd : 1; + uint64_t pip : 1; + uint64_t pko : 1; + uint64_t zip : 1; + uint64_t tim : 1; + uint64_t rad : 1; + uint64_t key : 1; + uint64_t dfa : 1; + uint64_t usb : 1; + uint64_t sli : 1; + uint64_t dpi : 1; + uint64_t agx0 : 1; + uint64_t reserved_37_45 : 9; + uint64_t agl : 1; + uint64_t ptp : 1; + uint64_t pem0 : 1; + uint64_t pem1 : 1; + uint64_t srio0 : 1; + uint64_t srio1 : 1; + uint64_t lmc0 : 1; + uint64_t reserved_53_55 : 3; + uint64_t dfm : 1; + uint64_t reserved_57_62 : 6; + uint64_t rst : 1; +#endif + } s; + struct cvmx_ciu_intx_en4_1_w1c_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_20_63 : 44; + uint64_t nand : 1; /**< NAND Flash Controller */ + uint64_t mii1 : 1; /**< Second MII Interrupt */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t reserved_4_15 : 12; + uint64_t wdog : 4; /**< Watchdog summary interrupt enable vector */ +#else + uint64_t wdog : 4; + uint64_t reserved_4_15 : 12; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t reserved_20_63 : 44; +#endif + } cn52xx; + struct cvmx_ciu_intx_en4_1_w1c_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_12_63 : 52; + uint64_t wdog : 12; /**< Watchdog summary interrupt enable vectory */ +#else + uint64_t wdog : 12; + uint64_t reserved_12_63 : 52; +#endif + } cn56xx; + struct cvmx_ciu_intx_en4_1_w1c_cn58xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_16_63 : 48; + uint64_t wdog : 16; /**< Watchdog summary interrupt enable vectory */ +#else + uint64_t wdog : 16; + uint64_t reserved_16_63 : 48; +#endif + } cn58xx; + struct cvmx_ciu_intx_en4_1_w1c_cn63xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t rst : 1; /**< Write 1 to clear MIO RST interrupt enable */ + uint64_t reserved_57_62 : 6; + uint64_t dfm : 1; /**< Write 1 to clear DFM interrupt enable */ + uint64_t reserved_53_55 : 3; + uint64_t lmc0 : 1; /**< Write 1 to clear LMC0 interrupt enable */ + uint64_t srio1 : 1; /**< Write 1 to clear SRIO1 interrupt enable */ + uint64_t srio0 : 1; /**< Write 1 to clear SRIO0 interrupt enable */ + uint64_t pem1 : 1; /**< Write 1 to clear PEM1 interrupt enable */ + uint64_t pem0 : 1; /**< Write 1 to clear PEM0 interrupt enable */ + uint64_t ptp : 1; /**< Write 1 to clear PTP interrupt enable */ + uint64_t agl : 1; /**< Write 1 to clear AGL interrupt enable */ + uint64_t reserved_37_45 : 9; + uint64_t agx0 : 1; /**< Write 1 to clear GMX0 interrupt enable */ + uint64_t dpi : 1; /**< Write 1 to clear DPI interrupt enable */ + uint64_t sli : 1; /**< Write 1 to clear SLI interrupt enable */ + uint64_t usb : 1; /**< Write 1 to clear USB UCTL0 interrupt enable */ + uint64_t dfa : 1; /**< Write 1 to clear DFA interrupt enable */ + uint64_t key : 1; /**< Write 1 to clear KEY interrupt enable */ + uint64_t rad : 1; /**< Write 1 to clear RAD interrupt enable */ + uint64_t tim : 1; /**< Write 1 to clear TIM interrupt enable */ + uint64_t zip : 1; /**< Write 1 to clear ZIP interrupt enable */ + uint64_t pko : 1; /**< Write 1 to clear PKO interrupt enable */ + uint64_t pip : 1; /**< Write 1 to clear PIP interrupt enable */ + uint64_t ipd : 1; /**< Write 1 to clear IPD interrupt enable */ + uint64_t l2c : 1; /**< Write 1 to clear L2C interrupt enable */ + uint64_t pow : 1; /**< Write 1 to clear POW err interrupt enable */ + uint64_t fpa : 1; /**< Write 1 to clear FPA interrupt enable */ + uint64_t iob : 1; /**< Write 1 to clear IOB interrupt enable */ + uint64_t mio : 1; /**< Write 1 to clear MIO boot interrupt enable */ + uint64_t nand : 1; /**< Write 1 to clear NAND Flash Controller interrupt + enable */ + uint64_t mii1 : 1; /**< Write 1 to clear RGMII/MII/MIX Interface 1 + Interrupt enable */ + uint64_t reserved_6_17 : 12; + uint64_t wdog : 6; /**< Write 1s to clear Watchdog summary interrupt enable */ +#else + uint64_t wdog : 6; + uint64_t reserved_6_17 : 12; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t mio : 1; + uint64_t iob : 1; + uint64_t fpa : 1; + uint64_t pow : 1; + uint64_t l2c : 1; + uint64_t ipd : 1; + uint64_t pip : 1; + uint64_t pko : 1; + uint64_t zip : 1; + uint64_t tim : 1; + uint64_t rad : 1; + uint64_t key : 1; + uint64_t dfa : 1; + uint64_t usb : 1; + uint64_t sli : 1; + uint64_t dpi : 1; + uint64_t agx0 : 1; + uint64_t reserved_37_45 : 9; + uint64_t agl : 1; + uint64_t ptp : 1; + uint64_t pem0 : 1; + uint64_t pem1 : 1; + uint64_t srio0 : 1; + uint64_t srio1 : 1; + uint64_t lmc0 : 1; + uint64_t reserved_53_55 : 3; + uint64_t dfm : 1; + uint64_t reserved_57_62 : 6; + uint64_t rst : 1; +#endif + } cn63xx; + struct cvmx_ciu_intx_en4_1_w1c_cn63xx cn63xxp1; +}; +typedef union cvmx_ciu_intx_en4_1_w1c cvmx_ciu_intx_en4_1_w1c_t; + +/** + * cvmx_ciu_int#_en4_1_w1s + * + * Notes: + * Write-1-to-set version of the CIU_INTx_EN4_1 register + * + */ +union cvmx_ciu_intx_en4_1_w1s +{ + uint64_t u64; + struct cvmx_ciu_intx_en4_1_w1s_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t rst : 1; /**< Write 1 to set MIO RST interrupt enable */ + uint64_t reserved_57_62 : 6; + uint64_t dfm : 1; /**< Write 1 to set DFM interrupt enable */ + uint64_t reserved_53_55 : 3; + uint64_t lmc0 : 1; /**< Write 1 to set LMC0 interrupt enable */ + uint64_t srio1 : 1; /**< Write 1 to set SRIO1 interrupt enable */ + uint64_t srio0 : 1; /**< Write 1 to set SRIO0 interrupt enable */ + uint64_t pem1 : 1; /**< Write 1 to set PEM1 interrupt enable */ + uint64_t pem0 : 1; /**< Write 1 to set PEM0 interrupt enable */ + uint64_t ptp : 1; /**< Write 1 to set PTP interrupt enable */ + uint64_t agl : 1; /**< Write 1 to set AGL interrupt enable */ + uint64_t reserved_37_45 : 9; + uint64_t agx0 : 1; /**< Write 1 to set GMX0 interrupt enable */ + uint64_t dpi : 1; /**< Write 1 to set DPI interrupt enable */ + uint64_t sli : 1; /**< Write 1 to set SLI interrupt enable */ + uint64_t usb : 1; /**< Write 1 to set USB UCTL0 interrupt enable */ + uint64_t dfa : 1; /**< Write 1 to set DFA interrupt enable */ + uint64_t key : 1; /**< Write 1 to set KEY interrupt enable */ + uint64_t rad : 1; /**< Write 1 to set RAD interrupt enable */ + uint64_t tim : 1; /**< Write 1 to set TIM interrupt enable */ + uint64_t zip : 1; /**< Write 1 to set ZIP interrupt enable */ + uint64_t pko : 1; /**< Write 1 to set PKO interrupt enable */ + uint64_t pip : 1; /**< Write 1 to set PIP interrupt enable */ + uint64_t ipd : 1; /**< Write 1 to set IPD interrupt enable */ + uint64_t l2c : 1; /**< Write 1 to set L2C interrupt enable */ + uint64_t pow : 1; /**< Write 1 to set POW err interrupt enable */ + uint64_t fpa : 1; /**< Write 1 to set FPA interrupt enable */ + uint64_t iob : 1; /**< Write 1 to set IOB interrupt enable */ + uint64_t mio : 1; /**< Write 1 to set MIO boot interrupt enable */ + uint64_t nand : 1; /**< Write 1 to set NAND Flash Controller interrupt + enable */ + uint64_t mii1 : 1; /**< Write 1 to set RGMII/MII/MIX Interface 1 Interrupt + enable */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t wdog : 16; /**< Write 1s to set Watchdog summary interrupt enable */ +#else + uint64_t wdog : 16; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t mio : 1; + uint64_t iob : 1; + uint64_t fpa : 1; + uint64_t pow : 1; + uint64_t l2c : 1; + uint64_t ipd : 1; + uint64_t pip : 1; + uint64_t pko : 1; + uint64_t zip : 1; + uint64_t tim : 1; + uint64_t rad : 1; + uint64_t key : 1; + uint64_t dfa : 1; + uint64_t usb : 1; + uint64_t sli : 1; + uint64_t dpi : 1; + uint64_t agx0 : 1; + uint64_t reserved_37_45 : 9; + uint64_t agl : 1; + uint64_t ptp : 1; + uint64_t pem0 : 1; + uint64_t pem1 : 1; + uint64_t srio0 : 1; + uint64_t srio1 : 1; + uint64_t lmc0 : 1; + uint64_t reserved_53_55 : 3; + uint64_t dfm : 1; + uint64_t reserved_57_62 : 6; + uint64_t rst : 1; +#endif + } s; + struct cvmx_ciu_intx_en4_1_w1s_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_20_63 : 44; + uint64_t nand : 1; /**< NAND Flash Controller */ + uint64_t mii1 : 1; /**< Second MII Interrupt */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t reserved_4_15 : 12; + uint64_t wdog : 4; /**< Watchdog summary interrupt enable vector */ +#else + uint64_t wdog : 4; + uint64_t reserved_4_15 : 12; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t reserved_20_63 : 44; +#endif + } cn52xx; + struct cvmx_ciu_intx_en4_1_w1s_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_12_63 : 52; + uint64_t wdog : 12; /**< Watchdog summary interrupt enable vectory */ +#else + uint64_t wdog : 12; + uint64_t reserved_12_63 : 52; +#endif + } cn56xx; + struct cvmx_ciu_intx_en4_1_w1s_cn58xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_16_63 : 48; + uint64_t wdog : 16; /**< Watchdog summary interrupt enable vectory */ +#else + uint64_t wdog : 16; + uint64_t reserved_16_63 : 48; +#endif + } cn58xx; + struct cvmx_ciu_intx_en4_1_w1s_cn63xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t rst : 1; /**< Write 1 to set MIO RST interrupt enable */ + uint64_t reserved_57_62 : 6; + uint64_t dfm : 1; /**< Write 1 to set DFM interrupt enable */ + uint64_t reserved_53_55 : 3; + uint64_t lmc0 : 1; /**< Write 1 to set LMC0 interrupt enable */ + uint64_t srio1 : 1; /**< Write 1 to set SRIO1 interrupt enable */ + uint64_t srio0 : 1; /**< Write 1 to set SRIO0 interrupt enable */ + uint64_t pem1 : 1; /**< Write 1 to set PEM1 interrupt enable */ + uint64_t pem0 : 1; /**< Write 1 to set PEM0 interrupt enable */ + uint64_t ptp : 1; /**< Write 1 to set PTP interrupt enable */ + uint64_t agl : 1; /**< Write 1 to set AGL interrupt enable */ + uint64_t reserved_37_45 : 9; + uint64_t agx0 : 1; /**< Write 1 to set GMX0 interrupt enable */ + uint64_t dpi : 1; /**< Write 1 to set DPI interrupt enable */ + uint64_t sli : 1; /**< Write 1 to set SLI interrupt enable */ + uint64_t usb : 1; /**< Write 1 to set USB UCTL0 interrupt enable */ + uint64_t dfa : 1; /**< Write 1 to set DFA interrupt enable */ + uint64_t key : 1; /**< Write 1 to set KEY interrupt enable */ + uint64_t rad : 1; /**< Write 1 to set RAD interrupt enable */ + uint64_t tim : 1; /**< Write 1 to set TIM interrupt enable */ + uint64_t zip : 1; /**< Write 1 to set ZIP interrupt enable */ + uint64_t pko : 1; /**< Write 1 to set PKO interrupt enable */ + uint64_t pip : 1; /**< Write 1 to set PIP interrupt enable */ + uint64_t ipd : 1; /**< Write 1 to set IPD interrupt enable */ + uint64_t l2c : 1; /**< Write 1 to set L2C interrupt enable */ + uint64_t pow : 1; /**< Write 1 to set POW err interrupt enable */ + uint64_t fpa : 1; /**< Write 1 to set FPA interrupt enable */ + uint64_t iob : 1; /**< Write 1 to set IOB interrupt enable */ + uint64_t mio : 1; /**< Write 1 to set MIO boot interrupt enable */ + uint64_t nand : 1; /**< Write 1 to set NAND Flash Controller interrupt + enable */ + uint64_t mii1 : 1; /**< Write 1 to set RGMII/MII/MIX Interface 1 Interrupt + enable */ + uint64_t reserved_6_17 : 12; + uint64_t wdog : 6; /**< Write 1s to set Watchdog summary interrupt enable */ +#else + uint64_t wdog : 6; + uint64_t reserved_6_17 : 12; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t mio : 1; + uint64_t iob : 1; + uint64_t fpa : 1; + uint64_t pow : 1; + uint64_t l2c : 1; + uint64_t ipd : 1; + uint64_t pip : 1; + uint64_t pko : 1; + uint64_t zip : 1; + uint64_t tim : 1; + uint64_t rad : 1; + uint64_t key : 1; + uint64_t dfa : 1; + uint64_t usb : 1; + uint64_t sli : 1; + uint64_t dpi : 1; + uint64_t agx0 : 1; + uint64_t reserved_37_45 : 9; + uint64_t agl : 1; + uint64_t ptp : 1; + uint64_t pem0 : 1; + uint64_t pem1 : 1; + uint64_t srio0 : 1; + uint64_t srio1 : 1; + uint64_t lmc0 : 1; + uint64_t reserved_53_55 : 3; + uint64_t dfm : 1; + uint64_t reserved_57_62 : 6; + uint64_t rst : 1; +#endif + } cn63xx; + struct cvmx_ciu_intx_en4_1_w1s_cn63xx cn63xxp1; +}; +typedef union cvmx_ciu_intx_en4_1_w1s cvmx_ciu_intx_en4_1_w1s_t; + +/** + * cvmx_ciu_int#_sum0 + */ +union cvmx_ciu_intx_sum0 +{ + uint64_t u64; + struct cvmx_ciu_intx_sum0_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt + See MIO_BOOT_DMA_INT*, MIO_NDF_DMA_INT */ + uint64_t mii : 1; /**< RGMII/MII/MIX Interface 0 Interrupt + See MIX0_ISR */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt + See IPD_PORT_QOS_INT* */ + uint64_t powiq : 1; /**< POW IQ interrupt + See POW_IQ_INT */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt + See MIO_TWS1_INT */ + uint64_t mpi : 1; /**< MPI/SPI interrupt */ + uint64_t pcm : 1; /**< PCM/TDM interrupt */ + uint64_t usb : 1; /**< USB EHCI or OHCI Interrupt + See UAHC0_EHCI_USBSTS UAHC0_OHCI0_HCINTERRUPTSTATUS */ + uint64_t timer : 4; /**< General timer interrupts + Set any time the corresponding CIU timer expires */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt + KEY_ZERO will be set when the external ZERO_KEYS + pin is sampled high. KEY_ZERO is cleared by SW */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop interrupt + Set any time PIP/IPD drops a packet */ + uint64_t gmx_drp : 2; /**< GMX packet drop interrupt + Set any time corresponding GMX drops a packet */ + uint64_t trace : 1; /**< Trace buffer interrupt + See TRA_INT_STATUS */ + uint64_t rml : 1; /**< RML Interrupt + This interrupt will assert if any bit within + CIU_BLOCK_INT is asserted. */ + uint64_t twsi : 1; /**< TWSI Interrupt + See MIO_TWS0_INT */ + uint64_t wdog_sum : 1; /**< SUM1&EN1 summary bit + This read-only bit reads as a one whenever any + CIU_INT_SUM1 bit is set and corresponding + enable bit in CIU_INTx_EN is set, where x + is the same as x in this CIU_INTx_SUM0. + PPs use CIU_INTx_SUM0 where x=0-11 + PCIe/sRIO uses the CIU_INTx_SUM0 where x=32-33. + Even INTx registers report WDOG to IP2 + Odd INTx registers report WDOG to IP3 + Note that WDOG_SUM only summarizes the SUM/EN1 + result and does not have a corresponding enable + bit, so does not directly contribute to + interrupts. */ + uint64_t pci_msi : 4; /**< PCIe/sRIO MSI + See SLI_MSI_RCVn for bit <40+n> */ + uint64_t pci_int : 4; /**< PCIe INTA/B/C/D + Refer to "Receiving Emulated INTA/INTB/ + INTC/INTD" in the SLI chapter of the spec */ + uint64_t uart : 2; /**< Two UART interrupts + See MIO_UARTn_IIR[IID] for bit <34+n> */ + uint64_t mbox : 2; /**< Two mailbox interrupts for entries 0-11 + [33] is the or of <31:16> + [32] is the or of <15:0> + Two PCIe/sRIO internal interrupts for entries 32-33 + which equal CIU_PCI_INTA[INT] */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts + See POW_WQ_INT[WQ_INT] + 1 bit/group. A copy of the R/W1C bit in the POW. */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t wdog_sum : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t pcm : 1; + uint64_t mpi : 1; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } s; + struct cvmx_ciu_intx_sum0_cn30xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_59_63 : 5; + uint64_t mpi : 1; /**< MPI/SPI interrupt */ + uint64_t pcm : 1; /**< PCM/TDM interrupt */ + uint64_t usb : 1; /**< USB interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t reserved_51_51 : 1; + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t reserved_49_49 : 1; + uint64_t gmx_drp : 1; /**< GMX packet drop */ + uint64_t reserved_47_47 : 1; + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t wdog_sum : 1; /**< Watchdog summary + PPs use CIU_INTx_SUM0 where x=0-1. + PCI uses the CIU_INTx_SUM0 where x=32. + Even INTx registers report WDOG to IP2 + Odd INTx registers report WDOG to IP3 */ + uint64_t pci_msi : 4; /**< PCI MSI + [43] is the or of <63:48> + [42] is the or of <47:32> + [41] is the or of <31:16> + [40] is the or of <15:0> */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox interrupts for entries 0-31 + [33] is the or of <31:16> + [32] is the or of <15:0> + Two PCI internal interrupts for entry 32 + CIU_PCI_INTA */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts + 1 bit/group. A copy of the R/W1C bit in the POW. */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t wdog_sum : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t reserved_47_47 : 1; + uint64_t gmx_drp : 1; + uint64_t reserved_49_49 : 1; + uint64_t ipd_drp : 1; + uint64_t reserved_51_51 : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t pcm : 1; + uint64_t mpi : 1; + uint64_t reserved_59_63 : 5; +#endif + } cn30xx; + struct cvmx_ciu_intx_sum0_cn31xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_59_63 : 5; + uint64_t mpi : 1; /**< MPI/SPI interrupt */ + uint64_t pcm : 1; /**< PCM/TDM interrupt */ + uint64_t usb : 1; /**< USB interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t reserved_51_51 : 1; + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t reserved_49_49 : 1; + uint64_t gmx_drp : 1; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t wdog_sum : 1; /**< Watchdog summary + PPs use CIU_INTx_SUM0 where x=0-3. + PCI uses the CIU_INTx_SUM0 where x=32. + Even INTx registers report WDOG to IP2 + Odd INTx registers report WDOG to IP3 */ + uint64_t pci_msi : 4; /**< PCI MSI + [43] is the or of <63:48> + [42] is the or of <47:32> + [41] is the or of <31:16> + [40] is the or of <15:0> */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox interrupts for entries 0-31 + [33] is the or of <31:16> + [32] is the or of <15:0> + Two PCI internal interrupts for entry 32 + CIU_PCI_INTA */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts + 1 bit/group. A copy of the R/W1C bit in the POW. */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t wdog_sum : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 1; + uint64_t reserved_49_49 : 1; + uint64_t ipd_drp : 1; + uint64_t reserved_51_51 : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t pcm : 1; + uint64_t mpi : 1; + uint64_t reserved_59_63 : 5; +#endif + } cn31xx; + struct cvmx_ciu_intx_sum0_cn38xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_56_63 : 8; + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt + KEY_ZERO will be set when the external ZERO_KEYS + pin is sampled high. KEY_ZERO is cleared by SW */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t gmx_drp : 2; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t wdog_sum : 1; /**< Watchdog summary + PPs use CIU_INTx_SUM0 where x=0-31. + PCI uses the CIU_INTx_SUM0 where x=32. + Even INTx registers report WDOG to IP2 + Odd INTx registers report WDOG to IP3 */ + uint64_t pci_msi : 4; /**< PCI MSI + [43] is the or of <63:48> + [42] is the or of <47:32> + [41] is the or of <31:16> + [40] is the or of <15:0> */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox interrupts for entries 0-31 + [33] is the or of <31:16> + [32] is the or of <15:0> + Two PCI internal interrupts for entry 32 + CIU_PCI_INTA */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts + 1 bit/group. A copy of the R/W1C bit in the POW. */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t wdog_sum : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t reserved_56_63 : 8; +#endif + } cn38xx; + struct cvmx_ciu_intx_sum0_cn38xx cn38xxp2; + struct cvmx_ciu_intx_sum0_cn30xx cn50xx; + struct cvmx_ciu_intx_sum0_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt */ + uint64_t mii : 1; /**< MII Interface Interrupt */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt */ + uint64_t powiq : 1; /**< POW IQ interrupt */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< USB Interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t reserved_51_51 : 1; + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t reserved_49_49 : 1; + uint64_t gmx_drp : 1; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t wdog_sum : 1; /**< SUM1&EN1 summary bit + This read-only bit reads as a one whenever any + CIU_INT_SUM1 bit is set and corresponding + enable bit in CIU_INTx_EN is set, where x + is the same as x in this CIU_INTx_SUM0. + PPs use CIU_INTx_SUM0 where x=0-7. + PCI uses the CIU_INTx_SUM0 where x=32. + Even INTx registers report WDOG to IP2 + Odd INTx registers report WDOG to IP3 + Note that WDOG_SUM only summarizes the SUM/EN1 + result and does not have a corresponding enable + bit, so does not directly contribute to + interrupts. */ + uint64_t pci_msi : 4; /**< PCI MSI + Refer to "Receiving Message-Signalled + Interrupts" in the PCIe chapter of the spec */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D + Refer to "Receiving Emulated INTA/INTB/ + INTC/INTD" in the PCIe chapter of the spec */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox interrupts for entries 0-7 + [33] is the or of <31:16> + [32] is the or of <15:0> + Two PCI internal interrupts for entry 32 + CIU_PCI_INTA */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts + 1 bit/group. A copy of the R/W1C bit in the POW. */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t wdog_sum : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 1; + uint64_t reserved_49_49 : 1; + uint64_t ipd_drp : 1; + uint64_t reserved_51_51 : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } cn52xx; + struct cvmx_ciu_intx_sum0_cn52xx cn52xxp1; + struct cvmx_ciu_intx_sum0_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt */ + uint64_t mii : 1; /**< MII Interface Interrupt */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt */ + uint64_t powiq : 1; /**< POW IQ interrupt */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< USB Interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt + KEY_ZERO will be set when the external ZERO_KEYS + pin is sampled high. KEY_ZERO is cleared by SW */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t gmx_drp : 2; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t wdog_sum : 1; /**< Watchdog summary + PPs use CIU_INTx_SUM0 where x=0-23. + PCI uses the CIU_INTx_SUM0 where x=32. + Even INTx registers report WDOG to IP2 + Odd INTx registers report WDOG to IP3 */ + uint64_t pci_msi : 4; /**< PCI MSI + Refer to "Receiving Message-Signalled + Interrupts" in the PCIe chapter of the spec */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D + Refer to "Receiving Emulated INTA/INTB/ + INTC/INTD" in the PCIe chapter of the spec */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox interrupts for entries 0-23 + [33] is the or of <31:16> + [32] is the or of <15:0> + Two PCI internal interrupts for entry 32 + CIU_PCI_INTA */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts + 1 bit/group. A copy of the R/W1C bit in the POW. */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t wdog_sum : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } cn56xx; + struct cvmx_ciu_intx_sum0_cn56xx cn56xxp1; + struct cvmx_ciu_intx_sum0_cn38xx cn58xx; + struct cvmx_ciu_intx_sum0_cn38xx cn58xxp1; + struct cvmx_ciu_intx_sum0_cn52xx cn63xx; + struct cvmx_ciu_intx_sum0_cn52xx cn63xxp1; +}; +typedef union cvmx_ciu_intx_sum0 cvmx_ciu_intx_sum0_t; + +/** + * cvmx_ciu_int#_sum4 + */ +union cvmx_ciu_intx_sum4 +{ + uint64_t u64; + struct cvmx_ciu_intx_sum4_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt + See MIO_BOOT_DMA_INT*, MIO_NDF_DMA_INT */ + uint64_t mii : 1; /**< RGMII/MII/MIX Interface 0 Interrupt + See MIX0_ISR */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt + See IPD_PORT_QOS_INT* */ + uint64_t powiq : 1; /**< POW IQ interrupt + See POW_IQ_INT */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt + See MIO_TWS1_INT */ + uint64_t mpi : 1; /**< MPI/SPI interrupt */ + uint64_t pcm : 1; /**< PCM/TDM interrupt */ + uint64_t usb : 1; /**< USB EHCI or OHCI Interrupt + See UAHC0_EHCI_USBSTS UAHC0_OHCI0_HCINTERRUPTSTATUS */ + uint64_t timer : 4; /**< General timer interrupts + Set any time the corresponding CIU timer expires */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt + KEY_ZERO will be set when the external ZERO_KEYS + pin is sampled high. KEY_ZERO is cleared by SW */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop interrupt + Set any time PIP/IPD drops a packet */ + uint64_t gmx_drp : 2; /**< GMX packet drop interrupt + Set any time corresponding GMX drops a packet */ + uint64_t trace : 1; /**< Trace buffer interrupt + See TRA_INT_STATUS */ + uint64_t rml : 1; /**< RML Interrupt + This bit is set when any bit is set in + CIU_BLOCK_INT. */ + uint64_t twsi : 1; /**< TWSI Interrupt + See MIO_TWS0_INT */ + uint64_t wdog_sum : 1; /**< SUM1&EN4_1 summary bit + This read-only bit reads as a one whenever any + CIU_INT_SUM1 bit is set and corresponding + enable bit in CIU_INTx_EN4_1 is set, where x + is the same as x in this CIU_INTx_SUM4. + PPs use CIU_INTx_SUM4 for IP4, where x=PPid. + Note that WDOG_SUM only summarizes the SUM/EN4_1 + result and does not have a corresponding enable + bit, so does not directly contribute to + interrupts. */ + uint64_t pci_msi : 4; /**< PCIe/sRIO MSI + See SLI_MSI_RCVn for bit <40+n> */ + uint64_t pci_int : 4; /**< PCIe INTA/B/C/D + Refer to "Receiving Emulated INTA/INTB/ + INTC/INTD" in the SLI chapter of the spec */ + uint64_t uart : 2; /**< Two UART interrupts + See MIO_UARTn_IIR[IID] for bit <34+n> */ + uint64_t mbox : 2; /**< Two mailbox interrupts for entries 0-5 + [33] is the or of <31:16> + [32] is the or of <15:0> */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts + See POW_WQ_INT[WQ_INT] + 1 bit/group. A copy of the R/W1C bit in the POW. */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t wdog_sum : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t pcm : 1; + uint64_t mpi : 1; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } s; + struct cvmx_ciu_intx_sum4_cn50xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_59_63 : 5; + uint64_t mpi : 1; /**< MPI/SPI interrupt */ + uint64_t pcm : 1; /**< PCM/TDM interrupt */ + uint64_t usb : 1; /**< USB interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t reserved_51_51 : 1; + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t reserved_49_49 : 1; + uint64_t gmx_drp : 1; /**< GMX packet drop */ + uint64_t reserved_47_47 : 1; + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t wdog_sum : 1; /**< Watchdog summary + PPs use CIU_INTx_SUM4 where x=0-1. */ + uint64_t pci_msi : 4; /**< PCI MSI + [43] is the or of <63:48> + [42] is the or of <47:32> + [41] is the or of <31:16> + [40] is the or of <15:0> */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox interrupts for entries 0-31 + [33] is the or of <31:16> + [32] is the or of <15:0> + Two PCI internal interrupts for entry 32 + CIU_PCI_INTA */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts + 1 bit/group. A copy of the R/W1C bit in the POW. */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t wdog_sum : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t reserved_47_47 : 1; + uint64_t gmx_drp : 1; + uint64_t reserved_49_49 : 1; + uint64_t ipd_drp : 1; + uint64_t reserved_51_51 : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t pcm : 1; + uint64_t mpi : 1; + uint64_t reserved_59_63 : 5; +#endif + } cn50xx; + struct cvmx_ciu_intx_sum4_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt */ + uint64_t mii : 1; /**< MII Interface Interrupt */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt */ + uint64_t powiq : 1; /**< POW IQ interrupt */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< USB Interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t reserved_51_51 : 1; + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t reserved_49_49 : 1; + uint64_t gmx_drp : 1; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t wdog_sum : 1; /**< SUM1&EN4_1 summary bit + This read-only bit reads as a one whenever any + CIU_INT_SUM1 bit is set and corresponding + enable bit in CIU_INTx_EN4_1 is set, where x + is the same as x in this CIU_INTx_SUM4. + PPs use CIU_INTx_SUM4 for IP4, where x=PPid. + Note that WDOG_SUM only summarizes the SUM/EN4_1 + result and does not have a corresponding enable + bit, so does not directly contribute to + interrupts. */ + uint64_t pci_msi : 4; /**< PCI MSI + Refer to "Receiving Message-Signalled + Interrupts" in the PCIe chapter of the spec */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D + Refer to "Receiving Emulated INTA/INTB/ + INTC/INTD" in the PCIe chapter of the spec */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox interrupts for entries 0-3 + [33] is the or of <31:16> + [32] is the or of <15:0> */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts + 1 bit/group. A copy of the R/W1C bit in the POW. */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t wdog_sum : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 1; + uint64_t reserved_49_49 : 1; + uint64_t ipd_drp : 1; + uint64_t reserved_51_51 : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } cn52xx; + struct cvmx_ciu_intx_sum4_cn52xx cn52xxp1; + struct cvmx_ciu_intx_sum4_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt */ + uint64_t mii : 1; /**< MII Interface Interrupt */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt */ + uint64_t powiq : 1; /**< POW IQ interrupt */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< USB Interrupt */ + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt + KEY_ZERO will be set when the external ZERO_KEYS + pin is sampled high. KEY_ZERO is cleared by SW */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t gmx_drp : 2; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t wdog_sum : 1; /**< Watchdog summary + These registers report WDOG to IP4 */ + uint64_t pci_msi : 4; /**< PCI MSI + Refer to "Receiving Message-Signalled + Interrupts" in the PCIe chapter of the spec */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D + Refer to "Receiving Emulated INTA/INTB/ + INTC/INTD" in the PCIe chapter of the spec */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox interrupts for entries 0-11 + [33] is the or of <31:16> + [32] is the or of <15:0> */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts + 1 bit/group. A copy of the R/W1C bit in the POW. */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t wdog_sum : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } cn56xx; + struct cvmx_ciu_intx_sum4_cn56xx cn56xxp1; + struct cvmx_ciu_intx_sum4_cn58xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_56_63 : 8; + uint64_t timer : 4; /**< General timer interrupts */ + uint64_t key_zero : 1; /**< Key Zeroization interrupt + KEY_ZERO will be set when the external ZERO_KEYS + pin is sampled high. KEY_ZERO is cleared by SW */ + uint64_t ipd_drp : 1; /**< IPD QOS packet drop */ + uint64_t gmx_drp : 2; /**< GMX packet drop */ + uint64_t trace : 1; /**< L2C has the CMB trace buffer */ + uint64_t rml : 1; /**< RML Interrupt */ + uint64_t twsi : 1; /**< TWSI Interrupt */ + uint64_t wdog_sum : 1; /**< Watchdog summary + These registers report WDOG to IP4 */ + uint64_t pci_msi : 4; /**< PCI MSI + [43] is the or of <63:48> + [42] is the or of <47:32> + [41] is the or of <31:16> + [40] is the or of <15:0> */ + uint64_t pci_int : 4; /**< PCI INTA/B/C/D */ + uint64_t uart : 2; /**< Two UART interrupts */ + uint64_t mbox : 2; /**< Two mailbox interrupts for entries 0-31 + [33] is the or of <31:16> + [32] is the or of <15:0> + Two PCI internal interrupts for entry 32 + CIU_PCI_INTA */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts + 1 bit/group. A copy of the R/W1C bit in the POW. */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t wdog_sum : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 2; + uint64_t ipd_drp : 1; + uint64_t key_zero : 1; + uint64_t timer : 4; + uint64_t reserved_56_63 : 8; +#endif + } cn58xx; + struct cvmx_ciu_intx_sum4_cn58xx cn58xxp1; + struct cvmx_ciu_intx_sum4_cn52xx cn63xx; + struct cvmx_ciu_intx_sum4_cn52xx cn63xxp1; +}; +typedef union cvmx_ciu_intx_sum4 cvmx_ciu_intx_sum4_t; + +/** + * cvmx_ciu_int33_sum0 + */ +union cvmx_ciu_int33_sum0 +{ + uint64_t u64; + struct cvmx_ciu_int33_sum0_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t bootdma : 1; /**< Boot bus DMA engines Interrupt + See MIO_BOOT_DMA_INT*, MIO_NDF_DMA_INT */ + uint64_t mii : 1; /**< RGMII/MII/MIX Interface 0 Interrupt + See MIX0_ISR */ + uint64_t ipdppthr : 1; /**< IPD per-port counter threshold interrupt + See IPD_PORT_QOS_INT* */ + uint64_t powiq : 1; /**< POW IQ interrupt + See POW_IQ_INT */ + uint64_t twsi2 : 1; /**< 2nd TWSI Interrupt + See MIO_TWS1_INT */ + uint64_t reserved_57_58 : 2; + uint64_t usb : 1; /**< USB EHCI or OHCI Interrupt + See UAHC0_EHCI_USBSTS UAHC0_OHCI0_HCINTERRUPTSTATUS */ + uint64_t timer : 4; /**< General timer interrupts + Set any time the corresponding CIU timer expires */ + uint64_t reserved_51_51 : 1; + uint64_t ipd_drp : 1; /**< IPD QOS packet drop interrupt + Set any time PIP/IPD drops a packet */ + uint64_t reserved_49_49 : 1; + uint64_t gmx_drp : 1; /**< GMX packet drop interrupt + Set any time corresponding GMX drops a packet */ + uint64_t trace : 1; /**< Trace buffer interrupt + See TRA_INT_STATUS */ + uint64_t rml : 1; /**< RML Interrupt + This interrupt will assert if any bit within + CIU_BLOCK_INT is asserted. */ + uint64_t twsi : 1; /**< TWSI Interrupt + See MIO_TWS0_INT */ + uint64_t wdog_sum : 1; /**< SUM1&EN1 summary bit + This read-only bit reads as a one whenever any + CIU_INT_SUM1 bit is set and corresponding + enable bit in CIU_INTx_EN is set, where x + is the same as x in this CIU_INTx_SUM0. + PPs use CIU_INTx_SUM0 where x=0-11. + PCIe/sRIO uses the CIU_INTx_SUM0 where x=32-33. + Even INTx registers report WDOG to IP2 + Odd INTx registers report WDOG to IP3 + Note that WDOG_SUM only summarizes the SUM/EN1 + result and does not have a corresponding enable + bit, so does not directly contribute to + interrupts. */ + uint64_t pci_msi : 4; /**< PCIe/sRIO MSI + See SLI_MSI_RCVn for bit <40+n> */ + uint64_t pci_int : 4; /**< PCIe INTA/B/C/D + Refer to "Receiving Emulated INTA/INTB/ + INTC/INTD" in the SLI chapter of the spec */ + uint64_t uart : 2; /**< Two UART interrupts + See MIO_UARTn_IIR[IID] for bit <34+n> */ + uint64_t mbox : 2; /**< A read-only copy of CIU_PCI_INTA[INT] */ + uint64_t gpio : 16; /**< 16 GPIO interrupts */ + uint64_t workq : 16; /**< 16 work queue interrupts + See POW_WQ_INT[WQ_INT] + 1 bit/group. A copy of the R/W1C bit in the POW. */ +#else + uint64_t workq : 16; + uint64_t gpio : 16; + uint64_t mbox : 2; + uint64_t uart : 2; + uint64_t pci_int : 4; + uint64_t pci_msi : 4; + uint64_t wdog_sum : 1; + uint64_t twsi : 1; + uint64_t rml : 1; + uint64_t trace : 1; + uint64_t gmx_drp : 1; + uint64_t reserved_49_49 : 1; + uint64_t ipd_drp : 1; + uint64_t reserved_51_51 : 1; + uint64_t timer : 4; + uint64_t usb : 1; + uint64_t reserved_57_58 : 2; + uint64_t twsi2 : 1; + uint64_t powiq : 1; + uint64_t ipdppthr : 1; + uint64_t mii : 1; + uint64_t bootdma : 1; +#endif + } s; + struct cvmx_ciu_int33_sum0_s cn63xx; + struct cvmx_ciu_int33_sum0_s cn63xxp1; +}; +typedef union cvmx_ciu_int33_sum0 cvmx_ciu_int33_sum0_t; + +/** + * cvmx_ciu_int_dbg_sel + */ +union cvmx_ciu_int_dbg_sel +{ + uint64_t u64; + struct cvmx_ciu_int_dbg_sel_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_19_63 : 45; + uint64_t sel : 3; /**< Selects if all or the specific interrupt is + presented on the debug port. + 0=erst_n + 1=start_bist + 2=toggle at sclk/2 freq + 3=All PP interrupt bits are ORed together + 4=Only the selected PP/IRQ is selected */ + uint64_t reserved_10_15 : 6; + uint64_t irq : 2; /**< Which IRQ to select + 0=IRQ2 + 1=IRQ3 + 2=IRQ4 */ + uint64_t reserved_3_7 : 5; + uint64_t pp : 3; /**< Which PP to select */ +#else + uint64_t pp : 3; + uint64_t reserved_3_7 : 5; + uint64_t irq : 2; + uint64_t reserved_10_15 : 6; + uint64_t sel : 3; + uint64_t reserved_19_63 : 45; +#endif + } s; + struct cvmx_ciu_int_dbg_sel_s cn63xx; +}; +typedef union cvmx_ciu_int_dbg_sel cvmx_ciu_int_dbg_sel_t; + +/** + * cvmx_ciu_int_sum1 + */ +union cvmx_ciu_int_sum1 +{ + uint64_t u64; + struct cvmx_ciu_int_sum1_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t rst : 1; /**< MIO RST interrupt + See MIO_RST_INT */ + uint64_t reserved_57_62 : 6; + uint64_t dfm : 1; /**< DFM Interrupt + See DFM_FNT_STAT */ + uint64_t reserved_53_55 : 3; + uint64_t lmc0 : 1; /**< LMC0 interrupt + See LMC0_INT */ + uint64_t srio1 : 1; /**< SRIO1 interrupt + See SRIO1_INT_REG */ + uint64_t srio0 : 1; /**< SRIO0 interrupt + See SRIO0_INT_REG */ + uint64_t pem1 : 1; /**< PEM1 interrupt + See PEM1_INT_SUM (enabled by PEM1_INT_ENB) */ + uint64_t pem0 : 1; /**< PEM0 interrupt + See PEM0_INT_SUM (enabled by PEM0_INT_ENB) */ + uint64_t ptp : 1; /**< PTP interrupt + Set when HW decrements MIO_PTP_EVT_CNT to zero */ + uint64_t agl : 1; /**< AGL interrupt + See AGL_GMX_RX*_INT_REG, AGL_GMX_TX_INT_REG */ + uint64_t reserved_37_45 : 9; + uint64_t agx0 : 1; /**< GMX0 interrupt + See GMX0_RX*_INT_REG, GMX0_TX_INT_REG, + PCS0_INT*_REG, PCSX0_INT_REG */ + uint64_t dpi : 1; /**< DPI interrupt + See DPI_INT_REG */ + uint64_t sli : 1; /**< SLI interrupt + See SLI_INT_SUM (enabled by SLI_INT_ENB_CIU) */ + uint64_t usb : 1; /**< USB UCTL0 interrupt + See UCTL0_INT_REG */ + uint64_t dfa : 1; /**< DFA interrupt + See DFA_ERROR */ + uint64_t key : 1; /**< KEY interrupt + See KEY_INT_SUM */ + uint64_t rad : 1; /**< RAD interrupt + See RAD_REG_ERROR */ + uint64_t tim : 1; /**< TIM interrupt + See TIM_REG_ERROR */ + uint64_t zip : 1; /**< ZIP interrupt + See ZIP_ERROR */ + uint64_t pko : 1; /**< PKO interrupt + See PKO_REG_ERROR */ + uint64_t pip : 1; /**< PIP interrupt + See PIP_INT_REG */ + uint64_t ipd : 1; /**< IPD interrupt + See IPD_INT_SUM */ + uint64_t l2c : 1; /**< L2C interrupt + See L2C_INT_REG */ + uint64_t pow : 1; /**< POW err interrupt + See POW_ECC_ERR */ + uint64_t fpa : 1; /**< FPA interrupt + See FPA_INT_SUM */ + uint64_t iob : 1; /**< IOB interrupt + See IOB_INT_SUM */ + uint64_t mio : 1; /**< MIO boot interrupt + See MIO_BOOT_ERR */ + uint64_t nand : 1; /**< NAND Flash Controller interrupt + See NDF_INT */ + uint64_t mii1 : 1; /**< RGMII/MII/MIX Interface 1 Interrupt + See MIX1_ISR */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t wdog : 16; /**< 6 watchdog interrupts */ +#else + uint64_t wdog : 16; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t mio : 1; + uint64_t iob : 1; + uint64_t fpa : 1; + uint64_t pow : 1; + uint64_t l2c : 1; + uint64_t ipd : 1; + uint64_t pip : 1; + uint64_t pko : 1; + uint64_t zip : 1; + uint64_t tim : 1; + uint64_t rad : 1; + uint64_t key : 1; + uint64_t dfa : 1; + uint64_t usb : 1; + uint64_t sli : 1; + uint64_t dpi : 1; + uint64_t agx0 : 1; + uint64_t reserved_37_45 : 9; + uint64_t agl : 1; + uint64_t ptp : 1; + uint64_t pem0 : 1; + uint64_t pem1 : 1; + uint64_t srio0 : 1; + uint64_t srio1 : 1; + uint64_t lmc0 : 1; + uint64_t reserved_53_55 : 3; + uint64_t dfm : 1; + uint64_t reserved_57_62 : 6; + uint64_t rst : 1; +#endif + } s; + struct cvmx_ciu_int_sum1_cn30xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_1_63 : 63; + uint64_t wdog : 1; /**< 1 watchdog interrupt */ +#else + uint64_t wdog : 1; + uint64_t reserved_1_63 : 63; +#endif + } cn30xx; + struct cvmx_ciu_int_sum1_cn31xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_2_63 : 62; + uint64_t wdog : 2; /**< 2 watchdog interrupts */ +#else + uint64_t wdog : 2; + uint64_t reserved_2_63 : 62; +#endif + } cn31xx; + struct cvmx_ciu_int_sum1_cn38xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_16_63 : 48; + uint64_t wdog : 16; /**< 16 watchdog interrupts */ +#else + uint64_t wdog : 16; + uint64_t reserved_16_63 : 48; +#endif + } cn38xx; + struct cvmx_ciu_int_sum1_cn38xx cn38xxp2; + struct cvmx_ciu_int_sum1_cn31xx cn50xx; + struct cvmx_ciu_int_sum1_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_20_63 : 44; + uint64_t nand : 1; /**< NAND Flash Controller */ + uint64_t mii1 : 1; /**< Second MII Interrupt */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t reserved_4_15 : 12; + uint64_t wdog : 4; /**< 4 watchdog interrupts */ +#else + uint64_t wdog : 4; + uint64_t reserved_4_15 : 12; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t reserved_20_63 : 44; +#endif + } cn52xx; + struct cvmx_ciu_int_sum1_cn52xxp1 + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_19_63 : 45; + uint64_t mii1 : 1; /**< Second MII Interrupt */ + uint64_t usb1 : 1; /**< Second USB Interrupt */ + uint64_t uart2 : 1; /**< Third UART interrupt */ + uint64_t reserved_4_15 : 12; + uint64_t wdog : 4; /**< 4 watchdog interrupts */ +#else + uint64_t wdog : 4; + uint64_t reserved_4_15 : 12; + uint64_t uart2 : 1; + uint64_t usb1 : 1; + uint64_t mii1 : 1; + uint64_t reserved_19_63 : 45; +#endif + } cn52xxp1; + struct cvmx_ciu_int_sum1_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_12_63 : 52; + uint64_t wdog : 12; /**< 12 watchdog interrupts */ +#else + uint64_t wdog : 12; + uint64_t reserved_12_63 : 52; +#endif + } cn56xx; + struct cvmx_ciu_int_sum1_cn56xx cn56xxp1; + struct cvmx_ciu_int_sum1_cn38xx cn58xx; + struct cvmx_ciu_int_sum1_cn38xx cn58xxp1; + struct cvmx_ciu_int_sum1_cn63xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t rst : 1; /**< MIO RST interrupt + See MIO_RST_INT */ + uint64_t reserved_57_62 : 6; + uint64_t dfm : 1; /**< DFM Interrupt + See DFM_FNT_STAT */ + uint64_t reserved_53_55 : 3; + uint64_t lmc0 : 1; /**< LMC0 interrupt + See LMC0_INT */ + uint64_t srio1 : 1; /**< SRIO1 interrupt + See SRIO1_INT_REG, SRIO1_INT2_REG */ + uint64_t srio0 : 1; /**< SRIO0 interrupt + See SRIO0_INT_REG, SRIO0_INT2_REG */ + uint64_t pem1 : 1; /**< PEM1 interrupt + See PEM1_INT_SUM (enabled by PEM1_INT_ENB) */ + uint64_t pem0 : 1; /**< PEM0 interrupt + See PEM0_INT_SUM (enabled by PEM0_INT_ENB) */ + uint64_t ptp : 1; /**< PTP interrupt + Set when HW decrements MIO_PTP_EVT_CNT to zero */ + uint64_t agl : 1; /**< AGL interrupt + See AGL_GMX_RX*_INT_REG, AGL_GMX_TX_INT_REG */ + uint64_t reserved_37_45 : 9; + uint64_t agx0 : 1; /**< GMX0 interrupt + See GMX0_RX*_INT_REG, GMX0_TX_INT_REG, + PCS0_INT*_REG, PCSX0_INT_REG */ + uint64_t dpi : 1; /**< DPI interrupt + See DPI_INT_REG */ + uint64_t sli : 1; /**< SLI interrupt + See SLI_INT_SUM (enabled by SLI_INT_ENB_CIU) */ + uint64_t usb : 1; /**< USB UCTL0 interrupt + See UCTL0_INT_REG */ + uint64_t dfa : 1; /**< DFA interrupt + See DFA_ERROR */ + uint64_t key : 1; /**< KEY interrupt + See KEY_INT_SUM */ + uint64_t rad : 1; /**< RAD interrupt + See RAD_REG_ERROR */ + uint64_t tim : 1; /**< TIM interrupt + See TIM_REG_ERROR */ + uint64_t zip : 1; /**< ZIP interrupt + See ZIP_ERROR */ + uint64_t pko : 1; /**< PKO interrupt + See PKO_REG_ERROR */ + uint64_t pip : 1; /**< PIP interrupt + See PIP_INT_REG */ + uint64_t ipd : 1; /**< IPD interrupt + See IPD_INT_SUM */ + uint64_t l2c : 1; /**< L2C interrupt + See L2C_INT_REG */ + uint64_t pow : 1; /**< POW err interrupt + See POW_ECC_ERR */ + uint64_t fpa : 1; /**< FPA interrupt + See FPA_INT_SUM */ + uint64_t iob : 1; /**< IOB interrupt + See IOB_INT_SUM */ + uint64_t mio : 1; /**< MIO boot interrupt + See MIO_BOOT_ERR */ + uint64_t nand : 1; /**< NAND Flash Controller interrupt + See NDF_INT */ + uint64_t mii1 : 1; /**< RGMII/MII/MIX Interface 1 Interrupt + See MIX1_ISR */ + uint64_t reserved_6_17 : 12; + uint64_t wdog : 6; /**< 6 watchdog interrupts */ +#else + uint64_t wdog : 6; + uint64_t reserved_6_17 : 12; + uint64_t mii1 : 1; + uint64_t nand : 1; + uint64_t mio : 1; + uint64_t iob : 1; + uint64_t fpa : 1; + uint64_t pow : 1; + uint64_t l2c : 1; + uint64_t ipd : 1; + uint64_t pip : 1; + uint64_t pko : 1; + uint64_t zip : 1; + uint64_t tim : 1; + uint64_t rad : 1; + uint64_t key : 1; + uint64_t dfa : 1; + uint64_t usb : 1; + uint64_t sli : 1; + uint64_t dpi : 1; + uint64_t agx0 : 1; + uint64_t reserved_37_45 : 9; + uint64_t agl : 1; + uint64_t ptp : 1; + uint64_t pem0 : 1; + uint64_t pem1 : 1; + uint64_t srio0 : 1; + uint64_t srio1 : 1; + uint64_t lmc0 : 1; + uint64_t reserved_53_55 : 3; + uint64_t dfm : 1; + uint64_t reserved_57_62 : 6; + uint64_t rst : 1; +#endif + } cn63xx; + struct cvmx_ciu_int_sum1_cn63xx cn63xxp1; +}; +typedef union cvmx_ciu_int_sum1 cvmx_ciu_int_sum1_t; + +/** + * cvmx_ciu_mbox_clr# + */ +union cvmx_ciu_mbox_clrx +{ + uint64_t u64; + struct cvmx_ciu_mbox_clrx_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_32_63 : 32; + uint64_t bits : 32; /**< On writes, clr corresponding bit in MBOX register + on reads, return the MBOX register */ +#else + uint64_t bits : 32; + uint64_t reserved_32_63 : 32; +#endif + } s; + struct cvmx_ciu_mbox_clrx_s cn30xx; + struct cvmx_ciu_mbox_clrx_s cn31xx; + struct cvmx_ciu_mbox_clrx_s cn38xx; + struct cvmx_ciu_mbox_clrx_s cn38xxp2; + struct cvmx_ciu_mbox_clrx_s cn50xx; + struct cvmx_ciu_mbox_clrx_s cn52xx; + struct cvmx_ciu_mbox_clrx_s cn52xxp1; + struct cvmx_ciu_mbox_clrx_s cn56xx; + struct cvmx_ciu_mbox_clrx_s cn56xxp1; + struct cvmx_ciu_mbox_clrx_s cn58xx; + struct cvmx_ciu_mbox_clrx_s cn58xxp1; + struct cvmx_ciu_mbox_clrx_s cn63xx; + struct cvmx_ciu_mbox_clrx_s cn63xxp1; +}; +typedef union cvmx_ciu_mbox_clrx cvmx_ciu_mbox_clrx_t; + +/** + * cvmx_ciu_mbox_set# + */ +union cvmx_ciu_mbox_setx +{ + uint64_t u64; + struct cvmx_ciu_mbox_setx_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_32_63 : 32; + uint64_t bits : 32; /**< On writes, set corresponding bit in MBOX register + on reads, return the MBOX register */ +#else + uint64_t bits : 32; + uint64_t reserved_32_63 : 32; +#endif + } s; + struct cvmx_ciu_mbox_setx_s cn30xx; + struct cvmx_ciu_mbox_setx_s cn31xx; + struct cvmx_ciu_mbox_setx_s cn38xx; + struct cvmx_ciu_mbox_setx_s cn38xxp2; + struct cvmx_ciu_mbox_setx_s cn50xx; + struct cvmx_ciu_mbox_setx_s cn52xx; + struct cvmx_ciu_mbox_setx_s cn52xxp1; + struct cvmx_ciu_mbox_setx_s cn56xx; + struct cvmx_ciu_mbox_setx_s cn56xxp1; + struct cvmx_ciu_mbox_setx_s cn58xx; + struct cvmx_ciu_mbox_setx_s cn58xxp1; + struct cvmx_ciu_mbox_setx_s cn63xx; + struct cvmx_ciu_mbox_setx_s cn63xxp1; +}; +typedef union cvmx_ciu_mbox_setx cvmx_ciu_mbox_setx_t; + +/** + * cvmx_ciu_nmi + */ +union cvmx_ciu_nmi +{ + uint64_t u64; + struct cvmx_ciu_nmi_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_16_63 : 48; + uint64_t nmi : 16; /**< Send NMI pulse to PP vector */ +#else + uint64_t nmi : 16; + uint64_t reserved_16_63 : 48; +#endif + } s; + struct cvmx_ciu_nmi_cn30xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_1_63 : 63; + uint64_t nmi : 1; /**< Send NMI pulse to PP vector */ +#else + uint64_t nmi : 1; + uint64_t reserved_1_63 : 63; +#endif + } cn30xx; + struct cvmx_ciu_nmi_cn31xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_2_63 : 62; + uint64_t nmi : 2; /**< Send NMI pulse to PP vector */ +#else + uint64_t nmi : 2; + uint64_t reserved_2_63 : 62; +#endif + } cn31xx; + struct cvmx_ciu_nmi_s cn38xx; + struct cvmx_ciu_nmi_s cn38xxp2; + struct cvmx_ciu_nmi_cn31xx cn50xx; + struct cvmx_ciu_nmi_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_4_63 : 60; + uint64_t nmi : 4; /**< Send NMI pulse to PP vector */ +#else + uint64_t nmi : 4; + uint64_t reserved_4_63 : 60; +#endif + } cn52xx; + struct cvmx_ciu_nmi_cn52xx cn52xxp1; + struct cvmx_ciu_nmi_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_12_63 : 52; + uint64_t nmi : 12; /**< Send NMI pulse to PP vector */ +#else + uint64_t nmi : 12; + uint64_t reserved_12_63 : 52; +#endif + } cn56xx; + struct cvmx_ciu_nmi_cn56xx cn56xxp1; + struct cvmx_ciu_nmi_s cn58xx; + struct cvmx_ciu_nmi_s cn58xxp1; + struct cvmx_ciu_nmi_cn63xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_6_63 : 58; + uint64_t nmi : 6; /**< Send NMI pulse to PP vector */ +#else + uint64_t nmi : 6; + uint64_t reserved_6_63 : 58; +#endif + } cn63xx; + struct cvmx_ciu_nmi_cn63xx cn63xxp1; +}; +typedef union cvmx_ciu_nmi cvmx_ciu_nmi_t; + +/** + * cvmx_ciu_pci_inta + */ +union cvmx_ciu_pci_inta +{ + uint64_t u64; + struct cvmx_ciu_pci_inta_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_2_63 : 62; + uint64_t intr : 2; /**< PCIe/sRIO interrupt + These bits are observed in CIU_INTX_SUM0<33:32> + where X=32-33 */ +#else + uint64_t intr : 2; + uint64_t reserved_2_63 : 62; +#endif + } s; + struct cvmx_ciu_pci_inta_s cn30xx; + struct cvmx_ciu_pci_inta_s cn31xx; + struct cvmx_ciu_pci_inta_s cn38xx; + struct cvmx_ciu_pci_inta_s cn38xxp2; + struct cvmx_ciu_pci_inta_s cn50xx; + struct cvmx_ciu_pci_inta_s cn52xx; + struct cvmx_ciu_pci_inta_s cn52xxp1; + struct cvmx_ciu_pci_inta_s cn56xx; + struct cvmx_ciu_pci_inta_s cn56xxp1; + struct cvmx_ciu_pci_inta_s cn58xx; + struct cvmx_ciu_pci_inta_s cn58xxp1; + struct cvmx_ciu_pci_inta_s cn63xx; + struct cvmx_ciu_pci_inta_s cn63xxp1; +}; +typedef union cvmx_ciu_pci_inta cvmx_ciu_pci_inta_t; + +/** + * cvmx_ciu_pp_dbg + */ +union cvmx_ciu_pp_dbg +{ + uint64_t u64; + struct cvmx_ciu_pp_dbg_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_16_63 : 48; + uint64_t ppdbg : 16; /**< Debug[DM] value for each PP + whether the PP's are in debug mode or not */ +#else + uint64_t ppdbg : 16; + uint64_t reserved_16_63 : 48; +#endif + } s; + struct cvmx_ciu_pp_dbg_cn30xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_1_63 : 63; + uint64_t ppdbg : 1; /**< Debug[DM] value for each PP + whether the PP's are in debug mode or not */ +#else + uint64_t ppdbg : 1; + uint64_t reserved_1_63 : 63; +#endif + } cn30xx; + struct cvmx_ciu_pp_dbg_cn31xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_2_63 : 62; + uint64_t ppdbg : 2; /**< Debug[DM] value for each PP + whether the PP's are in debug mode or not */ +#else + uint64_t ppdbg : 2; + uint64_t reserved_2_63 : 62; +#endif + } cn31xx; + struct cvmx_ciu_pp_dbg_s cn38xx; + struct cvmx_ciu_pp_dbg_s cn38xxp2; + struct cvmx_ciu_pp_dbg_cn31xx cn50xx; + struct cvmx_ciu_pp_dbg_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_4_63 : 60; + uint64_t ppdbg : 4; /**< Debug[DM] value for each PP + whether the PP's are in debug mode or not */ +#else + uint64_t ppdbg : 4; + uint64_t reserved_4_63 : 60; +#endif + } cn52xx; + struct cvmx_ciu_pp_dbg_cn52xx cn52xxp1; + struct cvmx_ciu_pp_dbg_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_12_63 : 52; + uint64_t ppdbg : 12; /**< Debug[DM] value for each PP + whether the PP's are in debug mode or not */ +#else + uint64_t ppdbg : 12; + uint64_t reserved_12_63 : 52; +#endif + } cn56xx; + struct cvmx_ciu_pp_dbg_cn56xx cn56xxp1; + struct cvmx_ciu_pp_dbg_s cn58xx; + struct cvmx_ciu_pp_dbg_s cn58xxp1; + struct cvmx_ciu_pp_dbg_cn63xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_6_63 : 58; + uint64_t ppdbg : 6; /**< Debug[DM] value for each PP + whether the PP's are in debug mode or not */ +#else + uint64_t ppdbg : 6; + uint64_t reserved_6_63 : 58; +#endif + } cn63xx; + struct cvmx_ciu_pp_dbg_cn63xx cn63xxp1; +}; +typedef union cvmx_ciu_pp_dbg cvmx_ciu_pp_dbg_t; + +/** + * cvmx_ciu_pp_poke# + * + * Notes: + * Any write to a CIU_PP_POKE register clears any pending interrupt generated + * by the associated watchdog, resets the CIU_WDOG[STATE] field, and set + * CIU_WDOG[CNT] to be (CIU_WDOG[LEN] << 8). + * + * Reads to this register will return the associated CIU_WDOG register. + */ +union cvmx_ciu_pp_pokex +{ + uint64_t u64; + struct cvmx_ciu_pp_pokex_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t poke : 64; /**< Reserved */ +#else + uint64_t poke : 64; +#endif + } s; + struct cvmx_ciu_pp_pokex_s cn30xx; + struct cvmx_ciu_pp_pokex_s cn31xx; + struct cvmx_ciu_pp_pokex_s cn38xx; + struct cvmx_ciu_pp_pokex_s cn38xxp2; + struct cvmx_ciu_pp_pokex_s cn50xx; + struct cvmx_ciu_pp_pokex_s cn52xx; + struct cvmx_ciu_pp_pokex_s cn52xxp1; + struct cvmx_ciu_pp_pokex_s cn56xx; + struct cvmx_ciu_pp_pokex_s cn56xxp1; + struct cvmx_ciu_pp_pokex_s cn58xx; + struct cvmx_ciu_pp_pokex_s cn58xxp1; + struct cvmx_ciu_pp_pokex_s cn63xx; + struct cvmx_ciu_pp_pokex_s cn63xxp1; +}; +typedef union cvmx_ciu_pp_pokex cvmx_ciu_pp_pokex_t; + +/** + * cvmx_ciu_pp_rst + * + * Contains the reset control for each PP. Value of '1' will hold a PP in reset, '0' will release. + * Resets to 0xffff when PCI boot is enabled, 0xfffe otherwise. + */ +union cvmx_ciu_pp_rst +{ + uint64_t u64; + struct cvmx_ciu_pp_rst_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_16_63 : 48; + uint64_t rst : 15; /**< PP Rst for PP's 5-1 */ + uint64_t rst0 : 1; /**< PP Rst for PP0 + depends on standalone mode */ +#else + uint64_t rst0 : 1; + uint64_t rst : 15; + uint64_t reserved_16_63 : 48; +#endif + } s; + struct cvmx_ciu_pp_rst_cn30xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_1_63 : 63; + uint64_t rst0 : 1; /**< PP Rst for PP0 + depends on standalone mode */ +#else + uint64_t rst0 : 1; + uint64_t reserved_1_63 : 63; +#endif + } cn30xx; + struct cvmx_ciu_pp_rst_cn31xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_2_63 : 62; + uint64_t rst : 1; /**< PP Rst for PP1 */ + uint64_t rst0 : 1; /**< PP Rst for PP0 + depends on standalone mode */ +#else + uint64_t rst0 : 1; + uint64_t rst : 1; + uint64_t reserved_2_63 : 62; +#endif + } cn31xx; + struct cvmx_ciu_pp_rst_s cn38xx; + struct cvmx_ciu_pp_rst_s cn38xxp2; + struct cvmx_ciu_pp_rst_cn31xx cn50xx; + struct cvmx_ciu_pp_rst_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_4_63 : 60; + uint64_t rst : 3; /**< PP Rst for PP's 11-1 */ + uint64_t rst0 : 1; /**< PP Rst for PP0 + depends on standalone mode */ +#else + uint64_t rst0 : 1; + uint64_t rst : 3; + uint64_t reserved_4_63 : 60; +#endif + } cn52xx; + struct cvmx_ciu_pp_rst_cn52xx cn52xxp1; + struct cvmx_ciu_pp_rst_cn56xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_12_63 : 52; + uint64_t rst : 11; /**< PP Rst for PP's 11-1 */ + uint64_t rst0 : 1; /**< PP Rst for PP0 + depends on standalone mode */ +#else + uint64_t rst0 : 1; + uint64_t rst : 11; + uint64_t reserved_12_63 : 52; +#endif + } cn56xx; + struct cvmx_ciu_pp_rst_cn56xx cn56xxp1; + struct cvmx_ciu_pp_rst_s cn58xx; + struct cvmx_ciu_pp_rst_s cn58xxp1; + struct cvmx_ciu_pp_rst_cn63xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_6_63 : 58; + uint64_t rst : 5; /**< PP Rst for PP's 5-1 */ + uint64_t rst0 : 1; /**< PP Rst for PP0 + depends on standalone mode */ +#else + uint64_t rst0 : 1; + uint64_t rst : 5; + uint64_t reserved_6_63 : 58; +#endif + } cn63xx; + struct cvmx_ciu_pp_rst_cn63xx cn63xxp1; +}; +typedef union cvmx_ciu_pp_rst cvmx_ciu_pp_rst_t; + +/** + * cvmx_ciu_qlm0 + * + * Notes: + * This register is only reset by cold reset. + * + */ +union cvmx_ciu_qlm0 +{ + uint64_t u64; + struct cvmx_ciu_qlm0_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t g2bypass : 1; /**< QLM0 PCIE Gen2 tx bypass enable */ + uint64_t reserved_53_62 : 10; + uint64_t g2deemph : 5; /**< QLM0 PCIE Gen2 tx bypass de-emphasis value */ + uint64_t reserved_45_47 : 3; + uint64_t g2margin : 5; /**< QLM0 PCIE Gen2 tx bypass margin (amplitude) value */ + uint64_t reserved_32_39 : 8; + uint64_t txbypass : 1; /**< QLM0 transmitter bypass enable */ + uint64_t reserved_21_30 : 10; + uint64_t txdeemph : 5; /**< QLM0 transmitter bypass de-emphasis value */ + uint64_t reserved_13_15 : 3; + uint64_t txmargin : 5; /**< QLM0 transmitter bypass margin (amplitude) value */ + uint64_t reserved_4_7 : 4; + uint64_t lane_en : 4; /**< QLM0 lane enable mask */ +#else + uint64_t lane_en : 4; + uint64_t reserved_4_7 : 4; + uint64_t txmargin : 5; + uint64_t reserved_13_15 : 3; + uint64_t txdeemph : 5; + uint64_t reserved_21_30 : 10; + uint64_t txbypass : 1; + uint64_t reserved_32_39 : 8; + uint64_t g2margin : 5; + uint64_t reserved_45_47 : 3; + uint64_t g2deemph : 5; + uint64_t reserved_53_62 : 10; + uint64_t g2bypass : 1; +#endif + } s; + struct cvmx_ciu_qlm0_s cn63xx; + struct cvmx_ciu_qlm0_cn63xxp1 + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_32_63 : 32; + uint64_t txbypass : 1; /**< QLM0 transmitter bypass enable */ + uint64_t reserved_20_30 : 11; + uint64_t txdeemph : 4; /**< QLM0 transmitter bypass de-emphasis value */ + uint64_t reserved_13_15 : 3; + uint64_t txmargin : 5; /**< QLM0 transmitter bypass margin (amplitude) value */ + uint64_t reserved_4_7 : 4; + uint64_t lane_en : 4; /**< QLM0 lane enable mask */ +#else + uint64_t lane_en : 4; + uint64_t reserved_4_7 : 4; + uint64_t txmargin : 5; + uint64_t reserved_13_15 : 3; + uint64_t txdeemph : 4; + uint64_t reserved_20_30 : 11; + uint64_t txbypass : 1; + uint64_t reserved_32_63 : 32; +#endif + } cn63xxp1; +}; +typedef union cvmx_ciu_qlm0 cvmx_ciu_qlm0_t; + +/** + * cvmx_ciu_qlm1 + * + * Notes: + * This register is only reset by cold reset. + * + */ +union cvmx_ciu_qlm1 +{ + uint64_t u64; + struct cvmx_ciu_qlm1_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t g2bypass : 1; /**< QLM1 PCIE Gen2 tx bypass enable */ + uint64_t reserved_53_62 : 10; + uint64_t g2deemph : 5; /**< QLM1 PCIE Gen2 tx bypass de-emphasis value */ + uint64_t reserved_45_47 : 3; + uint64_t g2margin : 5; /**< QLM1 PCIE Gen2 tx bypass margin (amplitude) value */ + uint64_t reserved_32_39 : 8; + uint64_t txbypass : 1; /**< QLM1 transmitter bypass enable */ + uint64_t reserved_21_30 : 10; + uint64_t txdeemph : 5; /**< QLM1 transmitter bypass de-emphasis value */ + uint64_t reserved_13_15 : 3; + uint64_t txmargin : 5; /**< QLM1 transmitter bypass margin (amplitude) value */ + uint64_t reserved_4_7 : 4; + uint64_t lane_en : 4; /**< QLM1 lane enable mask */ +#else + uint64_t lane_en : 4; + uint64_t reserved_4_7 : 4; + uint64_t txmargin : 5; + uint64_t reserved_13_15 : 3; + uint64_t txdeemph : 5; + uint64_t reserved_21_30 : 10; + uint64_t txbypass : 1; + uint64_t reserved_32_39 : 8; + uint64_t g2margin : 5; + uint64_t reserved_45_47 : 3; + uint64_t g2deemph : 5; + uint64_t reserved_53_62 : 10; + uint64_t g2bypass : 1; +#endif + } s; + struct cvmx_ciu_qlm1_s cn63xx; + struct cvmx_ciu_qlm1_cn63xxp1 + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_32_63 : 32; + uint64_t txbypass : 1; /**< QLM1 transmitter bypass enable */ + uint64_t reserved_20_30 : 11; + uint64_t txdeemph : 4; /**< QLM1 transmitter bypass de-emphasis value */ + uint64_t reserved_13_15 : 3; + uint64_t txmargin : 5; /**< QLM1 transmitter bypass margin (amplitude) value */ + uint64_t reserved_4_7 : 4; + uint64_t lane_en : 4; /**< QLM1 lane enable mask */ +#else + uint64_t lane_en : 4; + uint64_t reserved_4_7 : 4; + uint64_t txmargin : 5; + uint64_t reserved_13_15 : 3; + uint64_t txdeemph : 4; + uint64_t reserved_20_30 : 11; + uint64_t txbypass : 1; + uint64_t reserved_32_63 : 32; +#endif + } cn63xxp1; +}; +typedef union cvmx_ciu_qlm1 cvmx_ciu_qlm1_t; + +/** + * cvmx_ciu_qlm2 + * + * Notes: + * This register is only reset by cold reset. + * + */ +union cvmx_ciu_qlm2 +{ + uint64_t u64; + struct cvmx_ciu_qlm2_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_32_63 : 32; + uint64_t txbypass : 1; /**< QLM2 transmitter bypass enable */ + uint64_t reserved_21_30 : 10; + uint64_t txdeemph : 5; /**< QLM2 transmitter bypass de-emphasis value */ + uint64_t reserved_13_15 : 3; + uint64_t txmargin : 5; /**< QLM2 transmitter bypass margin (amplitude) value */ + uint64_t reserved_4_7 : 4; + uint64_t lane_en : 4; /**< QLM2 lane enable mask */ +#else + uint64_t lane_en : 4; + uint64_t reserved_4_7 : 4; + uint64_t txmargin : 5; + uint64_t reserved_13_15 : 3; + uint64_t txdeemph : 5; + uint64_t reserved_21_30 : 10; + uint64_t txbypass : 1; + uint64_t reserved_32_63 : 32; +#endif + } s; + struct cvmx_ciu_qlm2_s cn63xx; + struct cvmx_ciu_qlm2_cn63xxp1 + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_32_63 : 32; + uint64_t txbypass : 1; /**< QLM2 transmitter bypass enable */ + uint64_t reserved_20_30 : 11; + uint64_t txdeemph : 4; /**< QLM2 transmitter bypass de-emphasis value */ + uint64_t reserved_13_15 : 3; + uint64_t txmargin : 5; /**< QLM2 transmitter bypass margin (amplitude) value */ + uint64_t reserved_4_7 : 4; + uint64_t lane_en : 4; /**< QLM2 lane enable mask */ +#else + uint64_t lane_en : 4; + uint64_t reserved_4_7 : 4; + uint64_t txmargin : 5; + uint64_t reserved_13_15 : 3; + uint64_t txdeemph : 4; + uint64_t reserved_20_30 : 11; + uint64_t txbypass : 1; + uint64_t reserved_32_63 : 32; +#endif + } cn63xxp1; +}; +typedef union cvmx_ciu_qlm2 cvmx_ciu_qlm2_t; + +/** + * cvmx_ciu_qlm_dcok + */ +union cvmx_ciu_qlm_dcok +{ + uint64_t u64; + struct cvmx_ciu_qlm_dcok_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_4_63 : 60; + uint64_t qlm_dcok : 4; /**< Re-assert dcok for each QLM. The value in this + field is "anded" with the pll_dcok pin and then + sent to each QLM (0..3). */ +#else + uint64_t qlm_dcok : 4; + uint64_t reserved_4_63 : 60; +#endif + } s; + struct cvmx_ciu_qlm_dcok_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_2_63 : 62; + uint64_t qlm_dcok : 2; /**< Re-assert dcok for each QLM. The value in this + field is "anded" with the pll_dcok pin and then + sent to each QLM (0..3). */ +#else + uint64_t qlm_dcok : 2; + uint64_t reserved_2_63 : 62; +#endif + } cn52xx; + struct cvmx_ciu_qlm_dcok_cn52xx cn52xxp1; + struct cvmx_ciu_qlm_dcok_s cn56xx; + struct cvmx_ciu_qlm_dcok_s cn56xxp1; +}; +typedef union cvmx_ciu_qlm_dcok cvmx_ciu_qlm_dcok_t; + +/** + * cvmx_ciu_qlm_jtgc + */ +union cvmx_ciu_qlm_jtgc +{ + uint64_t u64; + struct cvmx_ciu_qlm_jtgc_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_11_63 : 53; + uint64_t clk_div : 3; /**< Clock divider for QLM JTAG operations. eclk is + divided by 2^(CLK_DIV + 2) */ + uint64_t reserved_6_7 : 2; + uint64_t mux_sel : 2; /**< Selects which QLM JTAG shift out is shifted into + the QLM JTAG shift register: CIU_QLM_JTGD[SHFT_REG] */ + uint64_t bypass : 4; /**< Selects which QLM JTAG shift chains are bypassed + by the QLM JTAG data register (CIU_QLM_JTGD) (one + bit per QLM) */ +#else + uint64_t bypass : 4; + uint64_t mux_sel : 2; + uint64_t reserved_6_7 : 2; + uint64_t clk_div : 3; + uint64_t reserved_11_63 : 53; +#endif + } s; + struct cvmx_ciu_qlm_jtgc_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_11_63 : 53; + uint64_t clk_div : 3; /**< Clock divider for QLM JTAG operations. eclk is + divided by 2^(CLK_DIV + 2) */ + uint64_t reserved_5_7 : 3; + uint64_t mux_sel : 1; /**< Selects which QLM JTAG shift out is shifted into + the QLM JTAG shift register: CIU_QLM_JTGD[SHFT_REG] */ + uint64_t reserved_2_3 : 2; + uint64_t bypass : 2; /**< Selects which QLM JTAG shift chains are bypassed + by the QLM JTAG data register (CIU_QLM_JTGD) (one + bit per QLM) */ +#else + uint64_t bypass : 2; + uint64_t reserved_2_3 : 2; + uint64_t mux_sel : 1; + uint64_t reserved_5_7 : 3; + uint64_t clk_div : 3; + uint64_t reserved_11_63 : 53; +#endif + } cn52xx; + struct cvmx_ciu_qlm_jtgc_cn52xx cn52xxp1; + struct cvmx_ciu_qlm_jtgc_s cn56xx; + struct cvmx_ciu_qlm_jtgc_s cn56xxp1; + struct cvmx_ciu_qlm_jtgc_cn63xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_11_63 : 53; + uint64_t clk_div : 3; /**< Clock divider for QLM JTAG operations. eclk is + divided by 2^(CLK_DIV + 2) */ + uint64_t reserved_6_7 : 2; + uint64_t mux_sel : 2; /**< Selects which QLM JTAG shift out is shifted into + the QLM JTAG shift register: CIU_QLM_JTGD[SHFT_REG] */ + uint64_t reserved_3_3 : 1; + uint64_t bypass : 3; /**< Selects which QLM JTAG shift chains are bypassed + by the QLM JTAG data register (CIU_QLM_JTGD) (one + bit per QLM) */ +#else + uint64_t bypass : 3; + uint64_t reserved_3_3 : 1; + uint64_t mux_sel : 2; + uint64_t reserved_6_7 : 2; + uint64_t clk_div : 3; + uint64_t reserved_11_63 : 53; +#endif + } cn63xx; + struct cvmx_ciu_qlm_jtgc_cn63xx cn63xxp1; +}; +typedef union cvmx_ciu_qlm_jtgc cvmx_ciu_qlm_jtgc_t; + +/** + * cvmx_ciu_qlm_jtgd + */ +union cvmx_ciu_qlm_jtgd +{ + uint64_t u64; + struct cvmx_ciu_qlm_jtgd_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t capture : 1; /**< Perform JTAG capture operation (self-clearing when + op completes) */ + uint64_t shift : 1; /**< Perform JTAG shift operation (self-clearing when + op completes) */ + uint64_t update : 1; /**< Perform JTAG update operation (self-clearing when + op completes) */ + uint64_t reserved_44_60 : 17; + uint64_t select : 4; /**< Selects which QLM JTAG shift chains the JTAG + operations are performed on */ + uint64_t reserved_37_39 : 3; + uint64_t shft_cnt : 5; /**< QLM JTAG shift count (encoded in -1 notation) */ + uint64_t shft_reg : 32; /**< QLM JTAG shift register */ +#else + uint64_t shft_reg : 32; + uint64_t shft_cnt : 5; + uint64_t reserved_37_39 : 3; + uint64_t select : 4; + uint64_t reserved_44_60 : 17; + uint64_t update : 1; + uint64_t shift : 1; + uint64_t capture : 1; +#endif + } s; + struct cvmx_ciu_qlm_jtgd_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t capture : 1; /**< Perform JTAG capture operation (self-clearing when + op completes) */ + uint64_t shift : 1; /**< Perform JTAG shift operation (self-clearing when + op completes) */ + uint64_t update : 1; /**< Perform JTAG update operation (self-clearing when + op completes) */ + uint64_t reserved_42_60 : 19; + uint64_t select : 2; /**< Selects which QLM JTAG shift chains the JTAG + operations are performed on */ + uint64_t reserved_37_39 : 3; + uint64_t shft_cnt : 5; /**< QLM JTAG shift count (encoded in -1 notation) */ + uint64_t shft_reg : 32; /**< QLM JTAG shift register */ +#else + uint64_t shft_reg : 32; + uint64_t shft_cnt : 5; + uint64_t reserved_37_39 : 3; + uint64_t select : 2; + uint64_t reserved_42_60 : 19; + uint64_t update : 1; + uint64_t shift : 1; + uint64_t capture : 1; +#endif + } cn52xx; + struct cvmx_ciu_qlm_jtgd_cn52xx cn52xxp1; + struct cvmx_ciu_qlm_jtgd_s cn56xx; + struct cvmx_ciu_qlm_jtgd_cn56xxp1 + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t capture : 1; /**< Perform JTAG capture operation (self-clearing when + op completes) */ + uint64_t shift : 1; /**< Perform JTAG shift operation (self-clearing when + op completes) */ + uint64_t update : 1; /**< Perform JTAG update operation (self-clearing when + op completes) */ + uint64_t reserved_37_60 : 24; + uint64_t shft_cnt : 5; /**< QLM JTAG shift count (encoded in -1 notation) */ + uint64_t shft_reg : 32; /**< QLM JTAG shift register */ +#else + uint64_t shft_reg : 32; + uint64_t shft_cnt : 5; + uint64_t reserved_37_60 : 24; + uint64_t update : 1; + uint64_t shift : 1; + uint64_t capture : 1; +#endif + } cn56xxp1; + struct cvmx_ciu_qlm_jtgd_cn63xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t capture : 1; /**< Perform JTAG capture operation (self-clearing when + op completes) */ + uint64_t shift : 1; /**< Perform JTAG shift operation (self-clearing when + op completes) */ + uint64_t update : 1; /**< Perform JTAG update operation (self-clearing when + op completes) */ + uint64_t reserved_43_60 : 18; + uint64_t select : 3; /**< Selects which QLM JTAG shift chains the JTAG + operations are performed on */ + uint64_t reserved_37_39 : 3; + uint64_t shft_cnt : 5; /**< QLM JTAG shift count (encoded in -1 notation) */ + uint64_t shft_reg : 32; /**< QLM JTAG shift register */ +#else + uint64_t shft_reg : 32; + uint64_t shft_cnt : 5; + uint64_t reserved_37_39 : 3; + uint64_t select : 3; + uint64_t reserved_43_60 : 18; + uint64_t update : 1; + uint64_t shift : 1; + uint64_t capture : 1; +#endif + } cn63xx; + struct cvmx_ciu_qlm_jtgd_cn63xx cn63xxp1; +}; +typedef union cvmx_ciu_qlm_jtgd cvmx_ciu_qlm_jtgd_t; + +/** + * cvmx_ciu_soft_bist + */ +union cvmx_ciu_soft_bist +{ + uint64_t u64; + struct cvmx_ciu_soft_bist_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_1_63 : 63; + uint64_t soft_bist : 1; /**< Reserved */ +#else + uint64_t soft_bist : 1; + uint64_t reserved_1_63 : 63; +#endif + } s; + struct cvmx_ciu_soft_bist_s cn30xx; + struct cvmx_ciu_soft_bist_s cn31xx; + struct cvmx_ciu_soft_bist_s cn38xx; + struct cvmx_ciu_soft_bist_s cn38xxp2; + struct cvmx_ciu_soft_bist_s cn50xx; + struct cvmx_ciu_soft_bist_s cn52xx; + struct cvmx_ciu_soft_bist_s cn52xxp1; + struct cvmx_ciu_soft_bist_s cn56xx; + struct cvmx_ciu_soft_bist_s cn56xxp1; + struct cvmx_ciu_soft_bist_s cn58xx; + struct cvmx_ciu_soft_bist_s cn58xxp1; + struct cvmx_ciu_soft_bist_s cn63xx; + struct cvmx_ciu_soft_bist_s cn63xxp1; +}; +typedef union cvmx_ciu_soft_bist cvmx_ciu_soft_bist_t; + +/** + * cvmx_ciu_soft_prst + */ +union cvmx_ciu_soft_prst +{ + uint64_t u64; + struct cvmx_ciu_soft_prst_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_3_63 : 61; + uint64_t host64 : 1; /**< PCX Host Mode Device Capability (0=32b/1=64b) */ + uint64_t npi : 1; /**< When PCI soft reset is asserted, also reset the + NPI and PNI logic */ + uint64_t soft_prst : 1; /**< Resets the PCIe/sRIO logic in all modes, not just + RC mode. The reset value is based on the + corresponding MIO_RST_CTL[PRTMODE] CSR field: + If PRTMODE == 0, then SOFT_PRST resets to 0 + If PRTMODE != 0, then SOFT_PRST resets to 1 + When OCTEON is configured to drive the PERST*_L + chip pin (ie. MIO_RST_CTL0[RST_DRV] is set), this + controls the PERST*_L chip pin. */ +#else + uint64_t soft_prst : 1; + uint64_t npi : 1; + uint64_t host64 : 1; + uint64_t reserved_3_63 : 61; +#endif + } s; + struct cvmx_ciu_soft_prst_s cn30xx; + struct cvmx_ciu_soft_prst_s cn31xx; + struct cvmx_ciu_soft_prst_s cn38xx; + struct cvmx_ciu_soft_prst_s cn38xxp2; + struct cvmx_ciu_soft_prst_s cn50xx; + struct cvmx_ciu_soft_prst_cn52xx + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_1_63 : 63; + uint64_t soft_prst : 1; /**< Reset the PCI bus. Only works when Octane is + configured as a HOST. When OCTEON is a PCI host + (i.e. when PCI_HOST_MODE = 1), This controls + PCI_RST_L. Refer to section 10.11.1. */ +#else + uint64_t soft_prst : 1; + uint64_t reserved_1_63 : 63; +#endif + } cn52xx; + struct cvmx_ciu_soft_prst_cn52xx cn52xxp1; + struct cvmx_ciu_soft_prst_cn52xx cn56xx; + struct cvmx_ciu_soft_prst_cn52xx cn56xxp1; + struct cvmx_ciu_soft_prst_s cn58xx; + struct cvmx_ciu_soft_prst_s cn58xxp1; + struct cvmx_ciu_soft_prst_cn52xx cn63xx; + struct cvmx_ciu_soft_prst_cn52xx cn63xxp1; +}; +typedef union cvmx_ciu_soft_prst cvmx_ciu_soft_prst_t; + +/** + * cvmx_ciu_soft_prst1 + */ +union cvmx_ciu_soft_prst1 +{ + uint64_t u64; + struct cvmx_ciu_soft_prst1_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_1_63 : 63; + uint64_t soft_prst : 1; /**< Resets the PCIe/sRIO logic in all modes, not just + RC mode. The reset value is based on the + corresponding MIO_RST_CTL[PRTMODE] CSR field: + If PRTMODE == 0, then SOFT_PRST resets to 0 + If PRTMODE != 0, then SOFT_PRST resets to 1 + When OCTEON is configured to drive the PERST*_L + chip pin (ie. MIO_RST_CTL1[RST_DRV] is set), this + controls the PERST*_L chip pin. */ +#else + uint64_t soft_prst : 1; + uint64_t reserved_1_63 : 63; +#endif + } s; + struct cvmx_ciu_soft_prst1_s cn52xx; + struct cvmx_ciu_soft_prst1_s cn52xxp1; + struct cvmx_ciu_soft_prst1_s cn56xx; + struct cvmx_ciu_soft_prst1_s cn56xxp1; + struct cvmx_ciu_soft_prst1_s cn63xx; + struct cvmx_ciu_soft_prst1_s cn63xxp1; +}; +typedef union cvmx_ciu_soft_prst1 cvmx_ciu_soft_prst1_t; + +/** + * cvmx_ciu_soft_rst + */ +union cvmx_ciu_soft_rst +{ + uint64_t u64; + struct cvmx_ciu_soft_rst_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_1_63 : 63; + uint64_t soft_rst : 1; /**< Resets Octeon + When soft reseting Octeon from a remote PCIe/sRIO + host, always read CIU_SOFT_RST (and wait for + result) before writing SOFT_RST to '1'. */ +#else + uint64_t soft_rst : 1; + uint64_t reserved_1_63 : 63; +#endif + } s; + struct cvmx_ciu_soft_rst_s cn30xx; + struct cvmx_ciu_soft_rst_s cn31xx; + struct cvmx_ciu_soft_rst_s cn38xx; + struct cvmx_ciu_soft_rst_s cn38xxp2; + struct cvmx_ciu_soft_rst_s cn50xx; + struct cvmx_ciu_soft_rst_s cn52xx; + struct cvmx_ciu_soft_rst_s cn52xxp1; + struct cvmx_ciu_soft_rst_s cn56xx; + struct cvmx_ciu_soft_rst_s cn56xxp1; + struct cvmx_ciu_soft_rst_s cn58xx; + struct cvmx_ciu_soft_rst_s cn58xxp1; + struct cvmx_ciu_soft_rst_s cn63xx; + struct cvmx_ciu_soft_rst_s cn63xxp1; +}; +typedef union cvmx_ciu_soft_rst cvmx_ciu_soft_rst_t; + +/** + * cvmx_ciu_tim# + */ +union cvmx_ciu_timx +{ + uint64_t u64; + struct cvmx_ciu_timx_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_37_63 : 27; + uint64_t one_shot : 1; /**< One-shot mode */ + uint64_t len : 36; /**< Timeout length in core clock cycles + Periodic interrupts will occur every LEN+1 core + clock cycles when ONE_SHOT==0 + Timer disabled when LEN==0 */ +#else + uint64_t len : 36; + uint64_t one_shot : 1; + uint64_t reserved_37_63 : 27; +#endif + } s; + struct cvmx_ciu_timx_s cn30xx; + struct cvmx_ciu_timx_s cn31xx; + struct cvmx_ciu_timx_s cn38xx; + struct cvmx_ciu_timx_s cn38xxp2; + struct cvmx_ciu_timx_s cn50xx; + struct cvmx_ciu_timx_s cn52xx; + struct cvmx_ciu_timx_s cn52xxp1; + struct cvmx_ciu_timx_s cn56xx; + struct cvmx_ciu_timx_s cn56xxp1; + struct cvmx_ciu_timx_s cn58xx; + struct cvmx_ciu_timx_s cn58xxp1; + struct cvmx_ciu_timx_s cn63xx; + struct cvmx_ciu_timx_s cn63xxp1; +}; +typedef union cvmx_ciu_timx cvmx_ciu_timx_t; + +/** + * cvmx_ciu_wdog# + */ +union cvmx_ciu_wdogx +{ + uint64_t u64; + struct cvmx_ciu_wdogx_s + { +#if __BYTE_ORDER == __BIG_ENDIAN + uint64_t reserved_46_63 : 18; + uint64_t gstopen : 1; /**< GSTOPEN */ + uint64_t dstop : 1; /**< DSTOP */ + uint64_t cnt : 24; /**< Number of 256-cycle intervals until next watchdog + expiration. Cleared on write to associated + CIU_PP_POKE register. */ + uint64_t len : 16; /**< Watchdog time expiration length + The 16 bits of LEN represent the most significant + bits of a 24 bit decrementer that decrements + every 256 cycles. + LEN must be set > 0 */ + uint64_t state : 2; /**< Watchdog state + number of watchdog time expirations since last + PP poke. Cleared on write to associated + CIU_PP_POKE register. */ + uint64_t mode : 2; /**< Watchdog mode + 0 = Off + 1 = Interrupt Only + 2 = Interrupt + NMI + 3 = Interrupt + NMI + Soft-Reset */ +#else + uint64_t mode : 2; + uint64_t state : 2; + uint64_t len : 16; + uint64_t cnt : 24; + uint64_t dstop : 1; + uint64_t gstopen : 1; + uint64_t reserved_46_63 : 18; +#endif + } s; + struct cvmx_ciu_wdogx_s cn30xx; + struct cvmx_ciu_wdogx_s cn31xx; + struct cvmx_ciu_wdogx_s cn38xx; + struct cvmx_ciu_wdogx_s cn38xxp2; + struct cvmx_ciu_wdogx_s cn50xx; + struct cvmx_ciu_wdogx_s cn52xx; + struct cvmx_ciu_wdogx_s cn52xxp1; + struct cvmx_ciu_wdogx_s cn56xx; + struct cvmx_ciu_wdogx_s cn56xxp1; + struct cvmx_ciu_wdogx_s cn58xx; + struct cvmx_ciu_wdogx_s cn58xxp1; + struct cvmx_ciu_wdogx_s cn63xx; + struct cvmx_ciu_wdogx_s cn63xxp1; +}; +typedef union cvmx_ciu_wdogx cvmx_ciu_wdogx_t; + +#endif |