mips: octeon: Add serdes and device helper support incl. DM PCIe driver
PATCH 18/50 mips: octeon: Add cvmx-pciercx-defs.h header file
In reply to Stefan RoeseFrom: Aaron Williams <[email protected]>
Import cvmx-pciercx-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support PCIe and networking on the MIPS Octeon II / III platforms.
---
.../include/mach/cvmx-pciercx-defs.h | 5586 +++++++++++++++++ 1 file changed, 5586 insertions(+) create mode 100644 arch/mips/mach-octeon/include/mach/cvmx-pciercx-defs.h
arch/mips/mach-octeon/include/mach/cvmx-pciercx-defs.h new file +5586 -0
@@ -0,0 +1,5586 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (C) 2020 Marvell International Ltd. +* +* Configuration and status register (CSR) type definitions for +* Octeon pciercx. +*/ + +#ifndef __CVMX_PCIERCX_DEFS_H__ +#define __CVMX_PCIERCX_DEFS_H__ + +static inline u64 CVMX_PCIERCX_CFG000 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000000ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000000ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000000ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000000ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000000ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000000ull ; + } +return 0x0000020000000000ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG001 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000004ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000004ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000004ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000004ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000004ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000004ull ; + } +return 0x0000020000000004ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG002 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000008ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000008ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000008ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000008ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000008ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000008ull ; + } +return 0x0000020000000008ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG003 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000000Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000000Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000000Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000000Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000000Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000000Cull ; + } +return 0x000002000000000Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG004 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000010ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000010ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000010ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000010ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000010ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000010ull ; + } +return 0x0000020000000010ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG005 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000014ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000014ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000014ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000014ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000014ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000014ull ; + } +return 0x0000020000000014ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG006 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000018ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000018ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000018ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000018ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000018ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000018ull ; + } +return 0x0000020000000018ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG007 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000001Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000001Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000001Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000001Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000001Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000001Cull ; + } +return 0x000002000000001Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG008 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000020ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000020ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000020ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000020ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000020ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000020ull ; + } +return 0x0000020000000020ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG009 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000024ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000024ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000024ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000024ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000024ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000024ull ; + } +return 0x0000020000000024ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG010 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000028ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000028ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000028ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000028ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000028ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000028ull ; + } +return 0x0000020000000028ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG011 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000002Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000002Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000002Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000002Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000002Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000002Cull ; + } +return 0x000002000000002Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG012 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000030ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000030ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000030ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000030ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000030ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000030ull ; + } +return 0x0000020000000030ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG013 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000034ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000034ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000034ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000034ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000034ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000034ull ; + } +return 0x0000020000000034ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG014 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000038ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000038ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000038ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000038ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000038ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000038ull ; + } +return 0x0000020000000038ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG015 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000003Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000003Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000003Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000003Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000003Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000003Cull ; + } +return 0x000002000000003Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG016 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000040ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000040ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000040ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000040ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000040ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000040ull ; + } +return 0x0000020000000040ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG017 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000044ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000044ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000044ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000044ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000044ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000044ull ; + } +return 0x0000020000000044ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG020 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000050ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000050ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000050ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000050ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000050ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000050ull ; + } +return 0x0000020000000050ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG021 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000054ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000054ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000054ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000054ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000054ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000054ull ; + } +return 0x0000020000000054ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG022 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000058ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000058ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000058ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000058ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000058ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000058ull ; + } +return 0x0000020000000058ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG023 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000005Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000005Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000005Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000005Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000005Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000005Cull ; + } +return 0x000002000000005Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG028 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000070ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000070ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000070ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000070ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000070ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000070ull ; + } +return 0x0000020000000070ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG029 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000074ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000074ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000074ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000074ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000074ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000074ull ; + } +return 0x0000020000000074ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG030 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000078ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000078ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000078ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000078ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000078ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000078ull ; + } +return 0x0000020000000078ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG031 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000007Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000007Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000007Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000007Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000007Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000007Cull ; + } +return 0x000002000000007Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG032 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000080ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000080ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000080ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000080ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000080ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000080ull ; + } +return 0x0000020000000080ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG033 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000084ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000084ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000084ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000084ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000084ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000084ull ; + } +return 0x0000020000000084ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG034 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000088ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000088ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000088ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000088ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000088ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000088ull ; + } +return 0x0000020000000088ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG035 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000008Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000008Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000008Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000008Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000008Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000008Cull ; + } +return 0x000002000000008Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG036 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000090ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000090ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000090ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000090ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000090ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000090ull ; + } +return 0x0000020000000090ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG037 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000094ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000094ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000094ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000094ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000094ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000094ull ; + } +return 0x0000020000000094ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG038 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000098ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000098ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000098ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000098ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000098ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000098ull ; + } +return 0x0000020000000098ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG039 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000009Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000009Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000009Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000009Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000009Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000009Cull ; + } +return 0x000002000000009Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG040 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x00000200000000A0ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00000200000000A0ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00000200000000A0ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00000200000000A0ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00000200000000A0ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00000000000000A0ull ; + } +return 0x00000200000000A0ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG041 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x00000200000000A4ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00000200000000A4ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00000200000000A4ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00000200000000A4ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00000200000000A4ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00000000000000A4ull ; + } +return 0x00000200000000A4ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG042 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x00000200000000A8ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00000200000000A8ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00000200000000A8ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00000200000000A8ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00000200000000A8ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00000000000000A8ull ; + } +return 0x00000200000000A8ull + (offset) *0x100000000ull ; +} + +#define CVMX_PCIERCX_CFG044 (offset) (0x00000200000000B0ull + ((offset) & 3) * 0x100000000ull) +#define CVMX_PCIERCX_CFG045 (offset) (0x00000200000000B4ull + ((offset) & 3) * 0x100000000ull) +#define CVMX_PCIERCX_CFG046 (offset) (0x00000200000000B8ull + ((offset) & 3) * 0x100000000ull) +static inline u64 CVMX_PCIERCX_CFG064 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000100ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000100ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000100ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000100ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000100ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000100ull ; + } +return 0x0000020000000100ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG065 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000104ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000104ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000104ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000104ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000104ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000104ull ; + } +return 0x0000020000000104ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG066 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000108ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000108ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000108ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000108ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000108ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000108ull ; + } +return 0x0000020000000108ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG067 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000010Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000010Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000010Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000010Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000010Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000010Cull ; + } +return 0x000002000000010Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG068 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000110ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000110ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000110ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000110ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000110ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000110ull ; + } +return 0x0000020000000110ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG069 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000114ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000114ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000114ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000114ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000114ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000114ull ; + } +return 0x0000020000000114ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG070 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000118ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000118ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000118ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000118ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000118ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000118ull ; + } +return 0x0000020000000118ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG071 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000011Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000011Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000011Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000011Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000011Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000011Cull ; + } +return 0x000002000000011Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG072 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000120ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000120ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000120ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000120ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000120ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000120ull ; + } +return 0x0000020000000120ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG073 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000124ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000124ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000124ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000124ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000124ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000124ull ; + } +return 0x0000020000000124ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG074 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000128ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000128ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000128ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000128ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000128ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000128ull ; + } +return 0x0000020000000128ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG075 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000012Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000012Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000012Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000012Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000012Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000012Cull ; + } +return 0x000002000000012Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG076 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000130ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000130ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000130ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000130ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000130ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000130ull ; + } +return 0x0000020000000130ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG077 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000134ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000134ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000134ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000134ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000134ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000134ull ; + } +return 0x0000020000000134ull + (offset) *0x100000000ull ; +} + +#define CVMX_PCIERCX_CFG086 (offset) (0x0000020000000158ull + ((offset) & 3) * 0x100000000ull) +#define CVMX_PCIERCX_CFG087 (offset) (0x000002000000015Cull + ((offset) & 3) * 0x100000000ull) +#define CVMX_PCIERCX_CFG088 (offset) (0x0000020000000160ull + ((offset) & 3) * 0x100000000ull) +#define CVMX_PCIERCX_CFG089 (offset) (0x0000020000000164ull + ((offset) & 3) * 0x100000000ull) +#define CVMX_PCIERCX_CFG090 (offset) (0x0000020000000168ull + ((offset) & 3) * 0x100000000ull) +#define CVMX_PCIERCX_CFG091 (offset) (0x000002000000016Cull + ((offset) & 3) * 0x100000000ull) +#define CVMX_PCIERCX_CFG092 (offset) (0x0000020000000170ull + ((offset) & 3) * 0x100000000ull) +static inline u64 CVMX_PCIERCX_CFG448 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000700ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000700ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000700ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000700ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000700ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000700ull ; + } +return 0x0000020000000700ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG449 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000704ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000704ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000704ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000704ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000704ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000704ull ; + } +return 0x0000020000000704ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG450 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000708ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000708ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000708ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000708ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000708ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000708ull ; + } +return 0x0000020000000708ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG451 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000070Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000070Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000070Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000070Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000070Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000070Cull ; + } +return 0x000002000000070Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG452 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000710ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000710ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000710ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000710ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000710ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000710ull ; + } +return 0x0000020000000710ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG453 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000714ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000714ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000714ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000714ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000714ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000714ull ; + } +return 0x0000020000000714ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG454 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000718ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000718ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000718ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000718ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000718ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000718ull ; + } +return 0x0000020000000718ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG455 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000071Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000071Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000071Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000071Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000071Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000071Cull ; + } +return 0x000002000000071Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG456 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000720ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000720ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000720ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000720ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000720ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000720ull ; + } +return 0x0000020000000720ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG458 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000728ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000728ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000728ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000728ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000728ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000728ull ; + } +return 0x0000020000000728ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG459 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000072Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000072Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000072Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000072Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000072Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000072Cull ; + } +return 0x000002000000072Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG460 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000730ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000730ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000730ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000730ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000730ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000730ull ; + } +return 0x0000020000000730ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG461 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000734ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000734ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000734ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000734ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000734ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000734ull ; + } +return 0x0000020000000734ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG462 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000738ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000738ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000738ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000738ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000738ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000738ull ; + } +return 0x0000020000000738ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG463 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000073Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000073Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000073Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000073Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000073Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000073Cull ; + } +return 0x000002000000073Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG464 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000740ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000740ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000740ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000740ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000740ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000740ull ; + } +return 0x0000020000000740ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG465 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000744ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000744ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000744ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000744ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000744ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000744ull ; + } +return 0x0000020000000744ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG466 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000748ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000748ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000748ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000748ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000748ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000748ull ; + } +return 0x0000020000000748ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG467 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000074Cull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000074Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000074Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000074Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000074Cull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000074Cull ; + } +return 0x000002000000074Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG468 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000750ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000750ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000750ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000750ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000750ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000750ull ; + } +return 0x0000020000000750ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG490 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00000000000007A8ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00000200000007A8ull + (offset) *0x100000000ull ; + } +return 0x00000000000007A8ull ; +} + +static inline u64 CVMX_PCIERCX_CFG491 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00000000000007ACull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00000200000007ACull + (offset) *0x100000000ull ; + } +return 0x00000000000007ACull ; +} + +static inline u64 CVMX_PCIERCX_CFG492 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00000000000007B0ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00000200000007B0ull + (offset) *0x100000000ull ; + } +return 0x00000000000007B0ull ; +} + +static inline u64 CVMX_PCIERCX_CFG515 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x000002000000080Cull + (offset) *0x100000000ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x000002000000080Cull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x000002000000080Cull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x000002000000080Cull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x000002000000080Cull + (offset) *0x100000000ull ; +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x000000000000080Cull ; + } +return 0x000002000000080Cull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG516 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000810ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000810ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000810ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000810ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000810ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000810ull ; + } +return 0x0000020000000810ull + (offset) *0x100000000ull ; +} + +static inline u64 CVMX_PCIERCX_CFG517 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x0000020000000814ull + (offset) *0x100000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x0000020000000814ull + (offset) *0x100000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x0000020000000814ull + (offset) *0x100000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x0000020000000814ull + (offset) *0x100000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x0000020000000814ull + (offset) *0x100000000ull ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x0000000000000814ull ; + } +return 0x0000020000000814ull + (offset) *0x100000000ull ; +} + +#define CVMX_PCIERCX_CFG548 (offset) (0x0000020000000890ull + ((offset) & 3) * 0x100000000ull) +#define CVMX_PCIERCX_CFG554 (offset) (0x00000200000008A8ull + ((offset) & 3) * 0x100000000ull) +#define CVMX_PCIERCX_CFG558 (offset) (0x00000200000008B8ull + ((offset) & 3) * 0x100000000ull) +#define CVMX_PCIERCX_CFG559 (offset) (0x00000200000008BCull + ((offset) & 3) * 0x100000000ull) + +/** +* cvmx_pcierc#_cfg000 +* +* This register contains the first 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg000 { +u32 u32; +struct cvmx_pciercx_cfg000_s { +u32 devid :16 ; +u32 vendid :16 ; + } s; +struct cvmx_pciercx_cfg000_s cn52xx; +struct cvmx_pciercx_cfg000_s cn52xxp1; +struct cvmx_pciercx_cfg000_s cn56xx; +struct cvmx_pciercx_cfg000_s cn56xxp1; +struct cvmx_pciercx_cfg000_s cn61xx; +struct cvmx_pciercx_cfg000_s cn63xx; +struct cvmx_pciercx_cfg000_s cn63xxp1; +struct cvmx_pciercx_cfg000_s cn66xx; +struct cvmx_pciercx_cfg000_s cn68xx; +struct cvmx_pciercx_cfg000_s cn68xxp1; +struct cvmx_pciercx_cfg000_s cn70xx; +struct cvmx_pciercx_cfg000_s cn70xxp1; +struct cvmx_pciercx_cfg000_s cn73xx; +struct cvmx_pciercx_cfg000_s cn78xx; +struct cvmx_pciercx_cfg000_s cn78xxp1; +struct cvmx_pciercx_cfg000_s cnf71xx; +struct cvmx_pciercx_cfg000_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg000 cvmx_pciercx_cfg000_t ; + +/** +* cvmx_pcierc#_cfg001 +* +* This register contains the second 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg001 { +u32 u32; +struct cvmx_pciercx_cfg001_s { +u32 dpe :1 ; +u32 sse :1 ; +u32 rma :1 ; +u32 rta :1 ; +u32 sta :1 ; +u32 devt :2 ; +u32 mdpe :1 ; +u32 fbb :1 ; +u32 reserved_22_22 :1 ; +u32 m66 :1 ; +u32 cl :1 ; +u32 i_stat :1 ; +u32 reserved_11_18 :8 ; +u32 i_dis :1 ; +u32 fbbe :1 ; +u32 see :1 ; +u32 ids_wcc :1 ; +u32 per :1 ; +u32 vps :1 ; +u32 mwice :1 ; +u32 scse :1 ; +u32 me :1 ; +u32 msae :1 ; +u32 isae :1 ; + } s; +struct cvmx_pciercx_cfg001_s cn52xx; +struct cvmx_pciercx_cfg001_s cn52xxp1; +struct cvmx_pciercx_cfg001_s cn56xx; +struct cvmx_pciercx_cfg001_s cn56xxp1; +struct cvmx_pciercx_cfg001_s cn61xx; +struct cvmx_pciercx_cfg001_s cn63xx; +struct cvmx_pciercx_cfg001_s cn63xxp1; +struct cvmx_pciercx_cfg001_s cn66xx; +struct cvmx_pciercx_cfg001_s cn68xx; +struct cvmx_pciercx_cfg001_s cn68xxp1; +struct cvmx_pciercx_cfg001_s cn70xx; +struct cvmx_pciercx_cfg001_s cn70xxp1; +struct cvmx_pciercx_cfg001_s cn73xx; +struct cvmx_pciercx_cfg001_s cn78xx; +struct cvmx_pciercx_cfg001_s cn78xxp1; +struct cvmx_pciercx_cfg001_s cnf71xx; +struct cvmx_pciercx_cfg001_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg001 cvmx_pciercx_cfg001_t ; + +/** +* cvmx_pcierc#_cfg002 +* +* This register contains the third 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg002 { +u32 u32; +struct cvmx_pciercx_cfg002_s { +u32 bcc :8 ; +u32 sc :8 ; +u32 pi :8 ; +u32 rid :8 ; + } s; +struct cvmx_pciercx_cfg002_s cn52xx; +struct cvmx_pciercx_cfg002_s cn52xxp1; +struct cvmx_pciercx_cfg002_s cn56xx; +struct cvmx_pciercx_cfg002_s cn56xxp1; +struct cvmx_pciercx_cfg002_s cn61xx; +struct cvmx_pciercx_cfg002_s cn63xx; +struct cvmx_pciercx_cfg002_s cn63xxp1; +struct cvmx_pciercx_cfg002_s cn66xx; +struct cvmx_pciercx_cfg002_s cn68xx; +struct cvmx_pciercx_cfg002_s cn68xxp1; +struct cvmx_pciercx_cfg002_s cn70xx; +struct cvmx_pciercx_cfg002_s cn70xxp1; +struct cvmx_pciercx_cfg002_s cn73xx; +struct cvmx_pciercx_cfg002_s cn78xx; +struct cvmx_pciercx_cfg002_s cn78xxp1; +struct cvmx_pciercx_cfg002_s cnf71xx; +struct cvmx_pciercx_cfg002_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg002 cvmx_pciercx_cfg002_t ; + +/** +* cvmx_pcierc#_cfg003 +* +* This register contains the fourth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg003 { +u32 u32; +struct cvmx_pciercx_cfg003_s { +u32 bist :8 ; +u32 mfd :1 ; +u32 chf :7 ; +u32 lt :8 ; +u32 cls :8 ; + } s; +struct cvmx_pciercx_cfg003_s cn52xx; +struct cvmx_pciercx_cfg003_s cn52xxp1; +struct cvmx_pciercx_cfg003_s cn56xx; +struct cvmx_pciercx_cfg003_s cn56xxp1; +struct cvmx_pciercx_cfg003_s cn61xx; +struct cvmx_pciercx_cfg003_s cn63xx; +struct cvmx_pciercx_cfg003_s cn63xxp1; +struct cvmx_pciercx_cfg003_s cn66xx; +struct cvmx_pciercx_cfg003_s cn68xx; +struct cvmx_pciercx_cfg003_s cn68xxp1; +struct cvmx_pciercx_cfg003_s cn70xx; +struct cvmx_pciercx_cfg003_s cn70xxp1; +struct cvmx_pciercx_cfg003_s cn73xx; +struct cvmx_pciercx_cfg003_s cn78xx; +struct cvmx_pciercx_cfg003_s cn78xxp1; +struct cvmx_pciercx_cfg003_s cnf71xx; +struct cvmx_pciercx_cfg003_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg003 cvmx_pciercx_cfg003_t ; + +/** +* cvmx_pcierc#_cfg004 +* +* This register contains the fifth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg004 { +u32 u32; +struct cvmx_pciercx_cfg004_s { +u32 reserved_0_31 :32 ; + } s; +struct cvmx_pciercx_cfg004_s cn52xx; +struct cvmx_pciercx_cfg004_s cn52xxp1; +struct cvmx_pciercx_cfg004_s cn56xx; +struct cvmx_pciercx_cfg004_s cn56xxp1; +struct cvmx_pciercx_cfg004_s cn61xx; +struct cvmx_pciercx_cfg004_s cn63xx; +struct cvmx_pciercx_cfg004_s cn63xxp1; +struct cvmx_pciercx_cfg004_s cn66xx; +struct cvmx_pciercx_cfg004_s cn68xx; +struct cvmx_pciercx_cfg004_s cn68xxp1; +struct cvmx_pciercx_cfg004_cn70xx { +u32 reserved_31_0 :32 ; + } cn70xx; +struct cvmx_pciercx_cfg004_cn70xx cn70xxp1; +struct cvmx_pciercx_cfg004_cn70xx cn73xx; +struct cvmx_pciercx_cfg004_cn70xx cn78xx; +struct cvmx_pciercx_cfg004_cn70xx cn78xxp1; +struct cvmx_pciercx_cfg004_s cnf71xx; +struct cvmx_pciercx_cfg004_cn70xx cnf75xx; +}; + +typedef union cvmx_pciercx_cfg004 cvmx_pciercx_cfg004_t ; + +/** +* cvmx_pcierc#_cfg005 +* +* This register contains the sixth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg005 { +u32 u32; +struct cvmx_pciercx_cfg005_s { +u32 reserved_0_31 :32 ; + } s; +struct cvmx_pciercx_cfg005_s cn52xx; +struct cvmx_pciercx_cfg005_s cn52xxp1; +struct cvmx_pciercx_cfg005_s cn56xx; +struct cvmx_pciercx_cfg005_s cn56xxp1; +struct cvmx_pciercx_cfg005_s cn61xx; +struct cvmx_pciercx_cfg005_s cn63xx; +struct cvmx_pciercx_cfg005_s cn63xxp1; +struct cvmx_pciercx_cfg005_s cn66xx; +struct cvmx_pciercx_cfg005_s cn68xx; +struct cvmx_pciercx_cfg005_s cn68xxp1; +struct cvmx_pciercx_cfg005_cn70xx { +u32 reserved_31_0 :32 ; + } cn70xx; +struct cvmx_pciercx_cfg005_cn70xx cn70xxp1; +struct cvmx_pciercx_cfg005_cn70xx cn73xx; +struct cvmx_pciercx_cfg005_cn70xx cn78xx; +struct cvmx_pciercx_cfg005_cn70xx cn78xxp1; +struct cvmx_pciercx_cfg005_s cnf71xx; +struct cvmx_pciercx_cfg005_cn70xx cnf75xx; +}; + +typedef union cvmx_pciercx_cfg005 cvmx_pciercx_cfg005_t ; + +/** +* cvmx_pcierc#_cfg006 +* +* This register contains the seventh 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg006 { +u32 u32; +struct cvmx_pciercx_cfg006_s { +u32 slt :8 ; +u32 subbnum :8 ; +u32 sbnum :8 ; +u32 pbnum :8 ; + } s; +struct cvmx_pciercx_cfg006_s cn52xx; +struct cvmx_pciercx_cfg006_s cn52xxp1; +struct cvmx_pciercx_cfg006_s cn56xx; +struct cvmx_pciercx_cfg006_s cn56xxp1; +struct cvmx_pciercx_cfg006_s cn61xx; +struct cvmx_pciercx_cfg006_s cn63xx; +struct cvmx_pciercx_cfg006_s cn63xxp1; +struct cvmx_pciercx_cfg006_s cn66xx; +struct cvmx_pciercx_cfg006_s cn68xx; +struct cvmx_pciercx_cfg006_s cn68xxp1; +struct cvmx_pciercx_cfg006_s cn70xx; +struct cvmx_pciercx_cfg006_s cn70xxp1; +struct cvmx_pciercx_cfg006_s cn73xx; +struct cvmx_pciercx_cfg006_s cn78xx; +struct cvmx_pciercx_cfg006_s cn78xxp1; +struct cvmx_pciercx_cfg006_s cnf71xx; +struct cvmx_pciercx_cfg006_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg006 cvmx_pciercx_cfg006_t ; + +/** +* cvmx_pcierc#_cfg007 +* +* This register contains the eighth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg007 { +u32 u32; +struct cvmx_pciercx_cfg007_s { +u32 dpe :1 ; +u32 sse :1 ; +u32 rma :1 ; +u32 rta :1 ; +u32 sta :1 ; +u32 devt :2 ; +u32 mdpe :1 ; +u32 fbb :1 ; +u32 reserved_22_22 :1 ; +u32 m66 :1 ; +u32 reserved_16_20 :5 ; +u32 lio_limi :4 ; +u32 reserved_9_11 :3 ; +u32 io32b :1 ; +u32 lio_base :4 ; +u32 reserved_1_3 :3 ; +u32 io32a :1 ; + } s; +struct cvmx_pciercx_cfg007_s cn52xx; +struct cvmx_pciercx_cfg007_s cn52xxp1; +struct cvmx_pciercx_cfg007_s cn56xx; +struct cvmx_pciercx_cfg007_s cn56xxp1; +struct cvmx_pciercx_cfg007_s cn61xx; +struct cvmx_pciercx_cfg007_s cn63xx; +struct cvmx_pciercx_cfg007_s cn63xxp1; +struct cvmx_pciercx_cfg007_s cn66xx; +struct cvmx_pciercx_cfg007_s cn68xx; +struct cvmx_pciercx_cfg007_s cn68xxp1; +struct cvmx_pciercx_cfg007_s cn70xx; +struct cvmx_pciercx_cfg007_s cn70xxp1; +struct cvmx_pciercx_cfg007_s cn73xx; +struct cvmx_pciercx_cfg007_s cn78xx; +struct cvmx_pciercx_cfg007_s cn78xxp1; +struct cvmx_pciercx_cfg007_s cnf71xx; +struct cvmx_pciercx_cfg007_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg007 cvmx_pciercx_cfg007_t ; + +/** +* cvmx_pcierc#_cfg008 +* +* This register contains the ninth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg008 { +u32 u32; +struct cvmx_pciercx_cfg008_s { +u32 ml_addr :12 ; +u32 reserved_16_19 :4 ; +u32 mb_addr :12 ; +u32 reserved_0_3 :4 ; + } s; +struct cvmx_pciercx_cfg008_s cn52xx; +struct cvmx_pciercx_cfg008_s cn52xxp1; +struct cvmx_pciercx_cfg008_s cn56xx; +struct cvmx_pciercx_cfg008_s cn56xxp1; +struct cvmx_pciercx_cfg008_s cn61xx; +struct cvmx_pciercx_cfg008_s cn63xx; +struct cvmx_pciercx_cfg008_s cn63xxp1; +struct cvmx_pciercx_cfg008_s cn66xx; +struct cvmx_pciercx_cfg008_s cn68xx; +struct cvmx_pciercx_cfg008_s cn68xxp1; +struct cvmx_pciercx_cfg008_cn70xx { +u32 ml_addr :12 ; +u32 reserved_19_16 :4 ; +u32 mb_addr :12 ; +u32 reserved_3_0 :4 ; + } cn70xx; +struct cvmx_pciercx_cfg008_cn70xx cn70xxp1; +struct cvmx_pciercx_cfg008_cn70xx cn73xx; +struct cvmx_pciercx_cfg008_cn70xx cn78xx; +struct cvmx_pciercx_cfg008_cn70xx cn78xxp1; +struct cvmx_pciercx_cfg008_s cnf71xx; +struct cvmx_pciercx_cfg008_cn70xx cnf75xx; +}; + +typedef union cvmx_pciercx_cfg008 cvmx_pciercx_cfg008_t ; + +/** +* cvmx_pcierc#_cfg009 +* +* This register contains the tenth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg009 { +u32 u32; +struct cvmx_pciercx_cfg009_s { +u32 lmem_limit :12 ; +u32 reserved_17_19 :3 ; +u32 mem64b :1 ; +u32 lmem_base :12 ; +u32 reserved_1_3 :3 ; +u32 mem64a :1 ; + } s; +struct cvmx_pciercx_cfg009_s cn52xx; +struct cvmx_pciercx_cfg009_s cn52xxp1; +struct cvmx_pciercx_cfg009_s cn56xx; +struct cvmx_pciercx_cfg009_s cn56xxp1; +struct cvmx_pciercx_cfg009_s cn61xx; +struct cvmx_pciercx_cfg009_s cn63xx; +struct cvmx_pciercx_cfg009_s cn63xxp1; +struct cvmx_pciercx_cfg009_s cn66xx; +struct cvmx_pciercx_cfg009_s cn68xx; +struct cvmx_pciercx_cfg009_s cn68xxp1; +struct cvmx_pciercx_cfg009_cn70xx { +u32 lmem_limit :12 ; +u32 reserved_19_17 :3 ; +u32 mem64b :1 ; +u32 lmem_base :12 ; +u32 reserved_3_1 :3 ; +u32 mem64a :1 ; + } cn70xx; +struct cvmx_pciercx_cfg009_cn70xx cn70xxp1; +struct cvmx_pciercx_cfg009_cn70xx cn73xx; +struct cvmx_pciercx_cfg009_cn70xx cn78xx; +struct cvmx_pciercx_cfg009_cn70xx cn78xxp1; +struct cvmx_pciercx_cfg009_s cnf71xx; +struct cvmx_pciercx_cfg009_cn70xx cnf75xx; +}; + +typedef union cvmx_pciercx_cfg009 cvmx_pciercx_cfg009_t ; + +/** +* cvmx_pcierc#_cfg010 +* +* This register contains the eleventh 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg010 { +u32 u32; +struct cvmx_pciercx_cfg010_s { +u32 umem_base :32 ; + } s; +struct cvmx_pciercx_cfg010_s cn52xx; +struct cvmx_pciercx_cfg010_s cn52xxp1; +struct cvmx_pciercx_cfg010_s cn56xx; +struct cvmx_pciercx_cfg010_s cn56xxp1; +struct cvmx_pciercx_cfg010_s cn61xx; +struct cvmx_pciercx_cfg010_s cn63xx; +struct cvmx_pciercx_cfg010_s cn63xxp1; +struct cvmx_pciercx_cfg010_s cn66xx; +struct cvmx_pciercx_cfg010_s cn68xx; +struct cvmx_pciercx_cfg010_s cn68xxp1; +struct cvmx_pciercx_cfg010_s cn70xx; +struct cvmx_pciercx_cfg010_s cn70xxp1; +struct cvmx_pciercx_cfg010_s cn73xx; +struct cvmx_pciercx_cfg010_s cn78xx; +struct cvmx_pciercx_cfg010_s cn78xxp1; +struct cvmx_pciercx_cfg010_s cnf71xx; +struct cvmx_pciercx_cfg010_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg010 cvmx_pciercx_cfg010_t ; + +/** +* cvmx_pcierc#_cfg011 +* +* This register contains the twelfth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg011 { +u32 u32; +struct cvmx_pciercx_cfg011_s { +u32 umem_limit :32 ; + } s; +struct cvmx_pciercx_cfg011_s cn52xx; +struct cvmx_pciercx_cfg011_s cn52xxp1; +struct cvmx_pciercx_cfg011_s cn56xx; +struct cvmx_pciercx_cfg011_s cn56xxp1; +struct cvmx_pciercx_cfg011_s cn61xx; +struct cvmx_pciercx_cfg011_s cn63xx; +struct cvmx_pciercx_cfg011_s cn63xxp1; +struct cvmx_pciercx_cfg011_s cn66xx; +struct cvmx_pciercx_cfg011_s cn68xx; +struct cvmx_pciercx_cfg011_s cn68xxp1; +struct cvmx_pciercx_cfg011_s cn70xx; +struct cvmx_pciercx_cfg011_s cn70xxp1; +struct cvmx_pciercx_cfg011_s cn73xx; +struct cvmx_pciercx_cfg011_s cn78xx; +struct cvmx_pciercx_cfg011_s cn78xxp1; +struct cvmx_pciercx_cfg011_s cnf71xx; +struct cvmx_pciercx_cfg011_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg011 cvmx_pciercx_cfg011_t ; + +/** +* cvmx_pcierc#_cfg012 +* +* This register contains the thirteenth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg012 { +u32 u32; +struct cvmx_pciercx_cfg012_s { +u32 uio_limit :16 ; +u32 uio_base :16 ; + } s; +struct cvmx_pciercx_cfg012_s cn52xx; +struct cvmx_pciercx_cfg012_s cn52xxp1; +struct cvmx_pciercx_cfg012_s cn56xx; +struct cvmx_pciercx_cfg012_s cn56xxp1; +struct cvmx_pciercx_cfg012_s cn61xx; +struct cvmx_pciercx_cfg012_s cn63xx; +struct cvmx_pciercx_cfg012_s cn63xxp1; +struct cvmx_pciercx_cfg012_s cn66xx; +struct cvmx_pciercx_cfg012_s cn68xx; +struct cvmx_pciercx_cfg012_s cn68xxp1; +struct cvmx_pciercx_cfg012_s cn70xx; +struct cvmx_pciercx_cfg012_s cn70xxp1; +struct cvmx_pciercx_cfg012_s cn73xx; +struct cvmx_pciercx_cfg012_s cn78xx; +struct cvmx_pciercx_cfg012_s cn78xxp1; +struct cvmx_pciercx_cfg012_s cnf71xx; +struct cvmx_pciercx_cfg012_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg012 cvmx_pciercx_cfg012_t ; + +/** +* cvmx_pcierc#_cfg013 +* +* This register contains the fourteenth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg013 { +u32 u32; +struct cvmx_pciercx_cfg013_s { +u32 reserved_8_31 :24 ; +u32 cp :8 ; + } s; +struct cvmx_pciercx_cfg013_s cn52xx; +struct cvmx_pciercx_cfg013_s cn52xxp1; +struct cvmx_pciercx_cfg013_s cn56xx; +struct cvmx_pciercx_cfg013_s cn56xxp1; +struct cvmx_pciercx_cfg013_s cn61xx; +struct cvmx_pciercx_cfg013_s cn63xx; +struct cvmx_pciercx_cfg013_s cn63xxp1; +struct cvmx_pciercx_cfg013_s cn66xx; +struct cvmx_pciercx_cfg013_s cn68xx; +struct cvmx_pciercx_cfg013_s cn68xxp1; +struct cvmx_pciercx_cfg013_s cn70xx; +struct cvmx_pciercx_cfg013_s cn70xxp1; +struct cvmx_pciercx_cfg013_s cn73xx; +struct cvmx_pciercx_cfg013_s cn78xx; +struct cvmx_pciercx_cfg013_s cn78xxp1; +struct cvmx_pciercx_cfg013_s cnf71xx; +struct cvmx_pciercx_cfg013_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg013 cvmx_pciercx_cfg013_t ; + +/** +* cvmx_pcierc#_cfg014 +* +* This register contains the fifteenth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg014 { +u32 u32; +struct cvmx_pciercx_cfg014_s { +u32 reserved_0_31 :32 ; + } s; +struct cvmx_pciercx_cfg014_s cn52xx; +struct cvmx_pciercx_cfg014_s cn52xxp1; +struct cvmx_pciercx_cfg014_s cn56xx; +struct cvmx_pciercx_cfg014_s cn56xxp1; +struct cvmx_pciercx_cfg014_s cn61xx; +struct cvmx_pciercx_cfg014_s cn63xx; +struct cvmx_pciercx_cfg014_s cn63xxp1; +struct cvmx_pciercx_cfg014_s cn66xx; +struct cvmx_pciercx_cfg014_s cn68xx; +struct cvmx_pciercx_cfg014_s cn68xxp1; +struct cvmx_pciercx_cfg014_s cn70xx; +struct cvmx_pciercx_cfg014_s cn70xxp1; +struct cvmx_pciercx_cfg014_s cn73xx; +struct cvmx_pciercx_cfg014_s cn78xx; +struct cvmx_pciercx_cfg014_s cn78xxp1; +struct cvmx_pciercx_cfg014_s cnf71xx; +struct cvmx_pciercx_cfg014_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg014 cvmx_pciercx_cfg014_t ; + +/** +* cvmx_pcierc#_cfg015 +* +* This register contains the sixteenth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg015 { +u32 u32; +struct cvmx_pciercx_cfg015_s { +u32 reserved_28_31 :4 ; +u32 dtsees :1 ; +u32 dts :1 ; +u32 sdt :1 ; +u32 pdt :1 ; +u32 fbbe :1 ; +u32 sbrst :1 ; +u32 mam :1 ; +u32 vga16d :1 ; +u32 vgae :1 ; +u32 isae :1 ; +u32 see :1 ; +u32 pere :1 ; +u32 inta :8 ; +u32 il :8 ; + } s; +struct cvmx_pciercx_cfg015_s cn52xx; +struct cvmx_pciercx_cfg015_s cn52xxp1; +struct cvmx_pciercx_cfg015_s cn56xx; +struct cvmx_pciercx_cfg015_s cn56xxp1; +struct cvmx_pciercx_cfg015_s cn61xx; +struct cvmx_pciercx_cfg015_s cn63xx; +struct cvmx_pciercx_cfg015_s cn63xxp1; +struct cvmx_pciercx_cfg015_s cn66xx; +struct cvmx_pciercx_cfg015_s cn68xx; +struct cvmx_pciercx_cfg015_s cn68xxp1; +struct cvmx_pciercx_cfg015_cn70xx { +u32 reserved_31_28 :4 ; +u32 dtsees :1 ; +u32 dts :1 ; +u32 sdt :1 ; +u32 pdt :1 ; +u32 fbbe :1 ; +u32 sbrst :1 ; +u32 mam :1 ; +u32 vga16d :1 ; +u32 vgae :1 ; +u32 isae :1 ; +u32 see :1 ; +u32 pere :1 ; +u32 inta :8 ; +u32 il :8 ; + } cn70xx; +struct cvmx_pciercx_cfg015_cn70xx cn70xxp1; +struct cvmx_pciercx_cfg015_cn70xx cn73xx; +struct cvmx_pciercx_cfg015_cn70xx cn78xx; +struct cvmx_pciercx_cfg015_cn70xx cn78xxp1; +struct cvmx_pciercx_cfg015_s cnf71xx; +struct cvmx_pciercx_cfg015_cn70xx cnf75xx; +}; + +typedef union cvmx_pciercx_cfg015 cvmx_pciercx_cfg015_t ; + +/** +* cvmx_pcierc#_cfg016 +* +* This register contains the seventeenth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg016 { +u32 u32; +struct cvmx_pciercx_cfg016_s { +u32 pmes :5 ; +u32 d2s :1 ; +u32 d1s :1 ; +u32 auxc :3 ; +u32 dsi :1 ; +u32 reserved_20_20 :1 ; +u32 pme_clock :1 ; +u32 pmsv :3 ; +u32 ncp :8 ; +u32 pmcid :8 ; + } s; +struct cvmx_pciercx_cfg016_s cn52xx; +struct cvmx_pciercx_cfg016_s cn52xxp1; +struct cvmx_pciercx_cfg016_s cn56xx; +struct cvmx_pciercx_cfg016_s cn56xxp1; +struct cvmx_pciercx_cfg016_s cn61xx; +struct cvmx_pciercx_cfg016_s cn63xx; +struct cvmx_pciercx_cfg016_s cn63xxp1; +struct cvmx_pciercx_cfg016_s cn66xx; +struct cvmx_pciercx_cfg016_s cn68xx; +struct cvmx_pciercx_cfg016_s cn68xxp1; +struct cvmx_pciercx_cfg016_s cn70xx; +struct cvmx_pciercx_cfg016_s cn70xxp1; +struct cvmx_pciercx_cfg016_s cn73xx; +struct cvmx_pciercx_cfg016_s cn78xx; +struct cvmx_pciercx_cfg016_s cn78xxp1; +struct cvmx_pciercx_cfg016_s cnf71xx; +struct cvmx_pciercx_cfg016_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg016 cvmx_pciercx_cfg016_t ; + +/** +* cvmx_pcierc#_cfg017 +* +* This register contains the eighteenth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg017 { +u32 u32; +struct cvmx_pciercx_cfg017_s { +u32 pmdia :8 ; +u32 bpccee :1 ; +u32 bd3h :1 ; +u32 reserved_16_21 :6 ; +u32 pmess :1 ; +u32 pmedsia :2 ; +u32 pmds :4 ; +u32 pmeens :1 ; +u32 reserved_4_7 :4 ; +u32 nsr :1 ; +u32 reserved_2_2 :1 ; +u32 ps :2 ; + } s; +struct cvmx_pciercx_cfg017_s cn52xx; +struct cvmx_pciercx_cfg017_s cn52xxp1; +struct cvmx_pciercx_cfg017_s cn56xx; +struct cvmx_pciercx_cfg017_s cn56xxp1; +struct cvmx_pciercx_cfg017_s cn61xx; +struct cvmx_pciercx_cfg017_s cn63xx; +struct cvmx_pciercx_cfg017_s cn63xxp1; +struct cvmx_pciercx_cfg017_s cn66xx; +struct cvmx_pciercx_cfg017_s cn68xx; +struct cvmx_pciercx_cfg017_s cn68xxp1; +struct cvmx_pciercx_cfg017_s cn70xx; +struct cvmx_pciercx_cfg017_s cn70xxp1; +struct cvmx_pciercx_cfg017_s cn73xx; +struct cvmx_pciercx_cfg017_s cn78xx; +struct cvmx_pciercx_cfg017_s cn78xxp1; +struct cvmx_pciercx_cfg017_s cnf71xx; +struct cvmx_pciercx_cfg017_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg017 cvmx_pciercx_cfg017_t ; + +/** +* cvmx_pcierc#_cfg020 +* +* This register contains the twenty-first 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg020 { +u32 u32; +struct cvmx_pciercx_cfg020_s { +u32 reserved_24_31 :8 ; +u32 m64 :1 ; +u32 mme :3 ; +u32 mmc :3 ; +u32 msien :1 ; +u32 ncp :8 ; +u32 msicid :8 ; + } s; +struct cvmx_pciercx_cfg020_s cn52xx; +struct cvmx_pciercx_cfg020_s cn52xxp1; +struct cvmx_pciercx_cfg020_s cn56xx; +struct cvmx_pciercx_cfg020_s cn56xxp1; +struct cvmx_pciercx_cfg020_cn61xx { +u32 reserved_25_31 :7 ; +u32 pvm :1 ; +u32 m64 :1 ; +u32 mme :3 ; +u32 mmc :3 ; +u32 msien :1 ; +u32 ncp :8 ; +u32 msicid :8 ; + } cn61xx; +struct cvmx_pciercx_cfg020_s cn63xx; +struct cvmx_pciercx_cfg020_s cn63xxp1; +struct cvmx_pciercx_cfg020_s cn66xx; +struct cvmx_pciercx_cfg020_s cn68xx; +struct cvmx_pciercx_cfg020_s cn68xxp1; +struct cvmx_pciercx_cfg020_cn61xx cn70xx; +struct cvmx_pciercx_cfg020_cn61xx cn70xxp1; +struct cvmx_pciercx_cfg020_cn73xx { +u32 reserved_25_31 :7 ; +u32 pvms :1 ; +u32 m64 :1 ; +u32 mme :3 ; +u32 mmc :3 ; +u32 msien :1 ; +u32 ncp :8 ; +u32 msicid :8 ; + } cn73xx; +struct cvmx_pciercx_cfg020_cn73xx cn78xx; +struct cvmx_pciercx_cfg020_cn73xx cn78xxp1; +struct cvmx_pciercx_cfg020_cn61xx cnf71xx; +struct cvmx_pciercx_cfg020_cn73xx cnf75xx; +}; + +typedef union cvmx_pciercx_cfg020 cvmx_pciercx_cfg020_t ; + +/** +* cvmx_pcierc#_cfg021 +* +* This register contains the twenty-second 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg021 { +u32 u32; +struct cvmx_pciercx_cfg021_s { +u32 lmsi :30 ; +u32 reserved_0_1 :2 ; + } s; +struct cvmx_pciercx_cfg021_s cn52xx; +struct cvmx_pciercx_cfg021_s cn52xxp1; +struct cvmx_pciercx_cfg021_s cn56xx; +struct cvmx_pciercx_cfg021_s cn56xxp1; +struct cvmx_pciercx_cfg021_s cn61xx; +struct cvmx_pciercx_cfg021_s cn63xx; +struct cvmx_pciercx_cfg021_s cn63xxp1; +struct cvmx_pciercx_cfg021_s cn66xx; +struct cvmx_pciercx_cfg021_s cn68xx; +struct cvmx_pciercx_cfg021_s cn68xxp1; +struct cvmx_pciercx_cfg021_s cn70xx; +struct cvmx_pciercx_cfg021_s cn70xxp1; +struct cvmx_pciercx_cfg021_s cn73xx; +struct cvmx_pciercx_cfg021_s cn78xx; +struct cvmx_pciercx_cfg021_s cn78xxp1; +struct cvmx_pciercx_cfg021_s cnf71xx; +struct cvmx_pciercx_cfg021_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg021 cvmx_pciercx_cfg021_t ; + +/** +* cvmx_pcierc#_cfg022 +* +* This register contains the twenty-third 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg022 { +u32 u32; +struct cvmx_pciercx_cfg022_s { +u32 umsi :32 ; + } s; +struct cvmx_pciercx_cfg022_s cn52xx; +struct cvmx_pciercx_cfg022_s cn52xxp1; +struct cvmx_pciercx_cfg022_s cn56xx; +struct cvmx_pciercx_cfg022_s cn56xxp1; +struct cvmx_pciercx_cfg022_s cn61xx; +struct cvmx_pciercx_cfg022_s cn63xx; +struct cvmx_pciercx_cfg022_s cn63xxp1; +struct cvmx_pciercx_cfg022_s cn66xx; +struct cvmx_pciercx_cfg022_s cn68xx; +struct cvmx_pciercx_cfg022_s cn68xxp1; +struct cvmx_pciercx_cfg022_s cn70xx; +struct cvmx_pciercx_cfg022_s cn70xxp1; +struct cvmx_pciercx_cfg022_s cn73xx; +struct cvmx_pciercx_cfg022_s cn78xx; +struct cvmx_pciercx_cfg022_s cn78xxp1; +struct cvmx_pciercx_cfg022_s cnf71xx; +struct cvmx_pciercx_cfg022_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg022 cvmx_pciercx_cfg022_t ; + +/** +* cvmx_pcierc#_cfg023 +* +* This register contains the twenty-fourth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg023 { +u32 u32; +struct cvmx_pciercx_cfg023_s { +u32 reserved_16_31 :16 ; +u32 msimd :16 ; + } s; +struct cvmx_pciercx_cfg023_s cn52xx; +struct cvmx_pciercx_cfg023_s cn52xxp1; +struct cvmx_pciercx_cfg023_s cn56xx; +struct cvmx_pciercx_cfg023_s cn56xxp1; +struct cvmx_pciercx_cfg023_s cn61xx; +struct cvmx_pciercx_cfg023_s cn63xx; +struct cvmx_pciercx_cfg023_s cn63xxp1; +struct cvmx_pciercx_cfg023_s cn66xx; +struct cvmx_pciercx_cfg023_s cn68xx; +struct cvmx_pciercx_cfg023_s cn68xxp1; +struct cvmx_pciercx_cfg023_s cn70xx; +struct cvmx_pciercx_cfg023_s cn70xxp1; +struct cvmx_pciercx_cfg023_s cn73xx; +struct cvmx_pciercx_cfg023_s cn78xx; +struct cvmx_pciercx_cfg023_s cn78xxp1; +struct cvmx_pciercx_cfg023_s cnf71xx; +struct cvmx_pciercx_cfg023_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg023 cvmx_pciercx_cfg023_t ; + +/** +* cvmx_pcierc#_cfg028 +* +* This register contains the twenty-ninth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg028 { +u32 u32; +struct cvmx_pciercx_cfg028_s { +u32 reserved_30_31 :2 ; +u32 imn :5 ; +u32 si :1 ; +u32 dpt :4 ; +u32 pciecv :4 ; +u32 ncp :8 ; +u32 pcieid :8 ; + } s; +struct cvmx_pciercx_cfg028_s cn52xx; +struct cvmx_pciercx_cfg028_s cn52xxp1; +struct cvmx_pciercx_cfg028_s cn56xx; +struct cvmx_pciercx_cfg028_s cn56xxp1; +struct cvmx_pciercx_cfg028_s cn61xx; +struct cvmx_pciercx_cfg028_s cn63xx; +struct cvmx_pciercx_cfg028_s cn63xxp1; +struct cvmx_pciercx_cfg028_s cn66xx; +struct cvmx_pciercx_cfg028_s cn68xx; +struct cvmx_pciercx_cfg028_s cn68xxp1; +struct cvmx_pciercx_cfg028_s cn70xx; +struct cvmx_pciercx_cfg028_s cn70xxp1; +struct cvmx_pciercx_cfg028_s cn73xx; +struct cvmx_pciercx_cfg028_s cn78xx; +struct cvmx_pciercx_cfg028_s cn78xxp1; +struct cvmx_pciercx_cfg028_s cnf71xx; +struct cvmx_pciercx_cfg028_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg028 cvmx_pciercx_cfg028_t ; + +/** +* cvmx_pcierc#_cfg029 +* +* This register contains the thirtieth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg029 { +u32 u32; +struct cvmx_pciercx_cfg029_s { +u32 reserved_29_31 :3 ; +u32 flr_cap :1 ; +u32 cspls :2 ; +u32 csplv :8 ; +u32 reserved_16_17 :2 ; +u32 rber :1 ; +u32 reserved_12_14 :3 ; +u32 el1al :3 ; +u32 el0al :3 ; +u32 etfs :1 ; +u32 pfs :2 ; +u32 mpss :3 ; + } s; +struct cvmx_pciercx_cfg029_cn52xx { +u32 reserved_28_31 :4 ; +u32 cspls :2 ; +u32 csplv :8 ; +u32 reserved_16_17 :2 ; +u32 rber :1 ; +u32 reserved_12_14 :3 ; +u32 el1al :3 ; +u32 el0al :3 ; +u32 etfs :1 ; +u32 pfs :2 ; +u32 mpss :3 ; + } cn52xx; +struct cvmx_pciercx_cfg029_cn52xx cn52xxp1; +struct cvmx_pciercx_cfg029_cn52xx cn56xx; +struct cvmx_pciercx_cfg029_cn52xx cn56xxp1; +struct cvmx_pciercx_cfg029_cn52xx cn61xx; +struct cvmx_pciercx_cfg029_cn52xx cn63xx; +struct cvmx_pciercx_cfg029_cn52xx cn63xxp1; +struct cvmx_pciercx_cfg029_cn52xx cn66xx; +struct cvmx_pciercx_cfg029_cn52xx cn68xx; +struct cvmx_pciercx_cfg029_cn52xx cn68xxp1; +struct cvmx_pciercx_cfg029_cn52xx cn70xx; +struct cvmx_pciercx_cfg029_cn52xx cn70xxp1; +struct cvmx_pciercx_cfg029_s cn73xx; +struct cvmx_pciercx_cfg029_s cn78xx; +struct cvmx_pciercx_cfg029_s cn78xxp1; +struct cvmx_pciercx_cfg029_cn52xx cnf71xx; +struct cvmx_pciercx_cfg029_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg029 cvmx_pciercx_cfg029_t ; + +/** +* cvmx_pcierc#_cfg030 +* +* This register contains the thirty-first 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg030 { +u32 u32; +struct cvmx_pciercx_cfg030_s { +u32 reserved_22_31 :10 ; +u32 tp :1 ; +u32 ap_d :1 ; +u32 ur_d :1 ; +u32 fe_d :1 ; +u32 nfe_d :1 ; +u32 ce_d :1 ; +u32 reserved_15_15 :1 ; +u32 mrrs :3 ; +u32 ns_en :1 ; +u32 ap_en :1 ; +u32 pf_en :1 ; +u32 etf_en :1 ; +u32 mps :3 ; +u32 ro_en :1 ; +u32 ur_en :1 ; +u32 fe_en :1 ; +u32 nfe_en :1 ; +u32 ce_en :1 ; + } s; +struct cvmx_pciercx_cfg030_s cn52xx; +struct cvmx_pciercx_cfg030_s cn52xxp1; +struct cvmx_pciercx_cfg030_s cn56xx; +struct cvmx_pciercx_cfg030_s cn56xxp1; +struct cvmx_pciercx_cfg030_s cn61xx; +struct cvmx_pciercx_cfg030_s cn63xx; +struct cvmx_pciercx_cfg030_s cn63xxp1; +struct cvmx_pciercx_cfg030_s cn66xx; +struct cvmx_pciercx_cfg030_s cn68xx; +struct cvmx_pciercx_cfg030_s cn68xxp1; +struct cvmx_pciercx_cfg030_s cn70xx; +struct cvmx_pciercx_cfg030_s cn70xxp1; +struct cvmx_pciercx_cfg030_s cn73xx; +struct cvmx_pciercx_cfg030_s cn78xx; +struct cvmx_pciercx_cfg030_s cn78xxp1; +struct cvmx_pciercx_cfg030_s cnf71xx; +struct cvmx_pciercx_cfg030_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg030 cvmx_pciercx_cfg030_t ; + +/** +* cvmx_pcierc#_cfg031 +* +* This register contains the thirty-second 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg031 { +u32 u32; +struct cvmx_pciercx_cfg031_s { +u32 pnum :8 ; +u32 reserved_23_23 :1 ; +u32 aspm :1 ; +u32 lbnc :1 ; +u32 dllarc :1 ; +u32 sderc :1 ; +u32 cpm :1 ; +u32 l1el :3 ; +u32 l0el :3 ; +u32 aslpms :2 ; +u32 mlw :6 ; +u32 mls :4 ; + } s; +struct cvmx_pciercx_cfg031_cn52xx { +u32 pnum :8 ; +u32 reserved_22_23 :2 ; +u32 lbnc :1 ; +u32 dllarc :1 ; +u32 sderc :1 ; +u32 cpm :1 ; +u32 l1el :3 ; +u32 l0el :3 ; +u32 aslpms :2 ; +u32 mlw :6 ; +u32 mls :4 ; + } cn52xx; +struct cvmx_pciercx_cfg031_cn52xx cn52xxp1; +struct cvmx_pciercx_cfg031_cn52xx cn56xx; +struct cvmx_pciercx_cfg031_cn52xx cn56xxp1; +struct cvmx_pciercx_cfg031_s cn61xx; +struct cvmx_pciercx_cfg031_cn52xx cn63xx; +struct cvmx_pciercx_cfg031_cn52xx cn63xxp1; +struct cvmx_pciercx_cfg031_s cn66xx; +struct cvmx_pciercx_cfg031_s cn68xx; +struct cvmx_pciercx_cfg031_cn52xx cn68xxp1; +struct cvmx_pciercx_cfg031_s cn70xx; +struct cvmx_pciercx_cfg031_s cn70xxp1; +struct cvmx_pciercx_cfg031_s cn73xx; +struct cvmx_pciercx_cfg031_s cn78xx; +struct cvmx_pciercx_cfg031_s cn78xxp1; +struct cvmx_pciercx_cfg031_s cnf71xx; +struct cvmx_pciercx_cfg031_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg031 cvmx_pciercx_cfg031_t ; + +/** +* cvmx_pcierc#_cfg032 +* +* This register contains the thirty-third 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg032 { +u32 u32; +struct cvmx_pciercx_cfg032_s { +u32 lab :1 ; +u32 lbm :1 ; +u32 dlla :1 ; +u32 scc :1 ; +u32 lt :1 ; +u32 reserved_26_26 :1 ; +u32 nlw :6 ; +u32 ls :4 ; +u32 reserved_12_15 :4 ; +u32 lab_int_enb :1 ; +u32 lbm_int_enb :1 ; +u32 hawd :1 ; +u32 ecpm :1 ; +u32 es :1 ; +u32 ccc :1 ; +u32 rl :1 ; +u32 ld :1 ; +u32 rcb :1 ; +u32 reserved_2_2 :1 ; +u32 aslpc :2 ; + } s; +struct cvmx_pciercx_cfg032_s cn52xx; +struct cvmx_pciercx_cfg032_s cn52xxp1; +struct cvmx_pciercx_cfg032_s cn56xx; +struct cvmx_pciercx_cfg032_s cn56xxp1; +struct cvmx_pciercx_cfg032_s cn61xx; +struct cvmx_pciercx_cfg032_s cn63xx; +struct cvmx_pciercx_cfg032_s cn63xxp1; +struct cvmx_pciercx_cfg032_s cn66xx; +struct cvmx_pciercx_cfg032_s cn68xx; +struct cvmx_pciercx_cfg032_s cn68xxp1; +struct cvmx_pciercx_cfg032_s cn70xx; +struct cvmx_pciercx_cfg032_s cn70xxp1; +struct cvmx_pciercx_cfg032_s cn73xx; +struct cvmx_pciercx_cfg032_s cn78xx; +struct cvmx_pciercx_cfg032_s cn78xxp1; +struct cvmx_pciercx_cfg032_s cnf71xx; +struct cvmx_pciercx_cfg032_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg032 cvmx_pciercx_cfg032_t ; + +/** +* cvmx_pcierc#_cfg033 +* +* This register contains the thirty-fourth 32-bits of PCIe type 1 configuration space. +* +*/ +union cvmx_pciercx_cfg033 { +u32 u32; +struct cvmx_pciercx_cfg033_s { +u32 ps_num :13 ; +u32 nccs :1 ; +u32 emip :1 ; +u32 sp_ls :2 ; +u32 sp_lv :8 ; +u32 hp_c :1 ; +u32 hp_s :1 ; +u32 pip :1 ; +u32 aip :1 ; +u32 mrlsp :1 ; +u32 pcp :1 ; +u32 abp :1 ; + } s; +struct cvmx_pciercx_cfg033_s cn52xx; +struct cvmx_pciercx_cfg033_s cn52xxp1; +struct cvmx_pciercx_cfg033_s cn56xx; +struct cvmx_pciercx_cfg033_s cn56xxp1; +struct cvmx_pciercx_cfg033_s cn61xx; +struct cvmx_pciercx_cfg033_s cn63xx; +struct cvmx_pciercx_cfg033_s cn63xxp1; +struct cvmx_pciercx_cfg033_s cn66xx; +struct cvmx_pciercx_cfg033_s cn68xx; +struct cvmx_pciercx_cfg033_s cn68xxp1; +struct cvmx_pciercx_cfg033_s cn70xx; +struct cvmx_pciercx_cfg033_s cn70xxp1; +struct cvmx_pciercx_cfg033_s cn73xx; +struct cvmx_pciercx_cfg033_s cn78xx; +struct cvmx_pciercx_cfg033_s cn78xxp1; +struct cvmx_pciercx_cfg033_s cnf71xx; +struct cvmx_pciercx_cfg033_s cnf75xx; +}; + +typedef union cvmx_pciercx_cfg033 cvmx_pciercx_cfg033_t ; + +/** +* cvmx_pcierc#_cfg034 +* +* This register contains the thirty-fifth 32-bits of PCIe type 1 configuration space. +*
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.29.2
Part of the diff is not shown here. View the raw message.
PATCH 19/50 mips: octeon: Add cvmx-pcsx-defs.h header file
In reply to Stefan RoeseFrom: Aaron Williams <[email protected]>
Import cvmx-pcsx-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support PCIe and networking on the MIPS Octeon II / III platforms.
---
.../mach-octeon/include/mach/cvmx-pcsx-defs.h | 1005 +++++++++++++++++ 1 file changed, 1005 insertions(+) create mode 100644 arch/mips/mach-octeon/include/mach/cvmx-pcsx-defs.h
arch/mips/mach-octeon/include/mach/cvmx-pcsx-defs.h new file +1005 -0
@@ -0,0 +1,1005 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (C) 2020 Marvell International Ltd. +* +* Configuration and status register (CSR) type definitions for +* Octeon pcsx. +*/ + +#ifndef __CVMX_PCSX_DEFS_H__ +#define __CVMX_PCSX_DEFS_H__ + +static inline u64 CVMX_PCSX_ANX_ADV_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001010ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001010ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001010ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001010ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +static inline u64 CVMX_PCSX_ANX_EXT_ST_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001028ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001028ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001028ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001028ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +static inline u64 CVMX_PCSX_ANX_LP_ABIL_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001018ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001018ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001018ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001018ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +static inline u64 CVMX_PCSX_ANX_RESULTS_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001020ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001020ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001020ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001020ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +static inline u64 CVMX_PCSX_INTX_EN_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001088ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001088ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001088ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001088ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +static inline u64 CVMX_PCSX_INTX_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001080ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001080ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001080ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001080ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +static inline u64 CVMX_PCSX_LINKX_TIMER_COUNT_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001040ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001040ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001040ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001040ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +static inline u64 CVMX_PCSX_LOG_ANLX_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001090ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001090ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001090ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001090ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +#define CVMX_PCSX_MAC_CRDT_CNTX_REG (offset, block_id) \ + (0x00011800B00010B0ull + (((offset) & 3) + ((block_id) & 1) * 0x20000ull) * 1024) +static inline u64 CVMX_PCSX_MISCX_CTL_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001078ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001078ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001078ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001078ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +static inline u64 CVMX_PCSX_MRX_CONTROL_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001000ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001000ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001000ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001000ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +static inline u64 CVMX_PCSX_MRX_STATUS_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001008ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001008ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001008ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001008ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +static inline u64 CVMX_PCSX_RXX_STATES_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001058ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001058ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001058ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001058ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +static inline u64 CVMX_PCSX_RXX_SYNC_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001050ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001050ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001050ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001050ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +#define CVMX_PCSX_SERDES_CRDT_CNTX_REG (offset, block_id) \ + (0x00011800B00010A0ull + (((offset) & 3) + ((block_id) & 1) * 0x20000ull) * 1024) +static inline u64 CVMX_PCSX_SGMX_AN_ADV_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001068ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001068ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001068ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001068ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +static inline u64 CVMX_PCSX_SGMX_LP_ADV_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001070ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001070ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001070ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001070ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +static inline u64 CVMX_PCSX_TXX_STATES_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001060ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001060ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001060ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001060ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +static inline u64 CVMX_PCSX_TX_RXX_POLARITY_REG (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001048ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001048ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800B0001048ull + ((offset ) + (block_id) *0x4000ull ) *1024 ; + } +return 0x00011800B0001048ull + ((offset ) + (block_id) *0x20000ull ) *1024 ; +} + +/** +* cvmx_pcs#_an#_adv_reg +* +* Bits [15:9] in the Status Register indicate ability to operate as per those signalling specification, +* when misc ctl reg MAC_PHY bit is set to MAC mode. Bits [15:9] will all, always read 1'b0, indicating +* that the chip cannot operate in the corresponding modes. +* +* Bit [4] RM_FLT is a don't care when the selected mode is SGMII. +* +* +* +* PCS_AN_ADV_REG = AN Advertisement Register4 +*/ +union cvmx_pcsx_anx_adv_reg { +u64 u64; +struct cvmx_pcsx_anx_adv_reg_s { +u64 reserved_16_63 :48 ; +u64 np :1 ; +u64 reserved_14_14 :1 ; +u64 rem_flt :2 ; +u64 reserved_9_11 :3 ; +u64 pause :2 ; +u64 hfd :1 ; +u64 fd :1 ; +u64 reserved_0_4 :5 ; + } s; +struct cvmx_pcsx_anx_adv_reg_s cn52xx; +struct cvmx_pcsx_anx_adv_reg_s cn52xxp1; +struct cvmx_pcsx_anx_adv_reg_s cn56xx; +struct cvmx_pcsx_anx_adv_reg_s cn56xxp1; +struct cvmx_pcsx_anx_adv_reg_s cn61xx; +struct cvmx_pcsx_anx_adv_reg_s cn63xx; +struct cvmx_pcsx_anx_adv_reg_s cn63xxp1; +struct cvmx_pcsx_anx_adv_reg_s cn66xx; +struct cvmx_pcsx_anx_adv_reg_s cn68xx; +struct cvmx_pcsx_anx_adv_reg_s cn68xxp1; +struct cvmx_pcsx_anx_adv_reg_s cn70xx; +struct cvmx_pcsx_anx_adv_reg_s cn70xxp1; +struct cvmx_pcsx_anx_adv_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_anx_adv_reg cvmx_pcsx_anx_adv_reg_t ; + +/** +* cvmx_pcs#_an#_ext_st_reg +* +* as per IEEE802.3 Clause 22 +* +*/ +union cvmx_pcsx_anx_ext_st_reg { +u64 u64; +struct cvmx_pcsx_anx_ext_st_reg_s { +u64 reserved_16_63 :48 ; +u64 thou_xfd :1 ; +u64 thou_xhd :1 ; +u64 thou_tfd :1 ; +u64 thou_thd :1 ; +u64 reserved_0_11 :12 ; + } s; +struct cvmx_pcsx_anx_ext_st_reg_s cn52xx; +struct cvmx_pcsx_anx_ext_st_reg_s cn52xxp1; +struct cvmx_pcsx_anx_ext_st_reg_s cn56xx; +struct cvmx_pcsx_anx_ext_st_reg_s cn56xxp1; +struct cvmx_pcsx_anx_ext_st_reg_s cn61xx; +struct cvmx_pcsx_anx_ext_st_reg_s cn63xx; +struct cvmx_pcsx_anx_ext_st_reg_s cn63xxp1; +struct cvmx_pcsx_anx_ext_st_reg_s cn66xx; +struct cvmx_pcsx_anx_ext_st_reg_s cn68xx; +struct cvmx_pcsx_anx_ext_st_reg_s cn68xxp1; +struct cvmx_pcsx_anx_ext_st_reg_cn70xx { +u64 reserved_16_63 :48 ; +u64 thou_xfd :1 ; +u64 thou_xhd :1 ; +u64 thou_tfd :1 ; +u64 thou_thd :1 ; +u64 reserved_11_0 :12 ; + } cn70xx; +struct cvmx_pcsx_anx_ext_st_reg_cn70xx cn70xxp1; +struct cvmx_pcsx_anx_ext_st_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_anx_ext_st_reg cvmx_pcsx_anx_ext_st_reg_t ; + +/** +* cvmx_pcs#_an#_lp_abil_reg +* +* as per IEEE802.3 Clause 37 +* +*/ +union cvmx_pcsx_anx_lp_abil_reg { +u64 u64; +struct cvmx_pcsx_anx_lp_abil_reg_s { +u64 reserved_16_63 :48 ; +u64 np :1 ; +u64 ack :1 ; +u64 rem_flt :2 ; +u64 reserved_9_11 :3 ; +u64 pause :2 ; +u64 hfd :1 ; +u64 fd :1 ; +u64 reserved_0_4 :5 ; + } s; +struct cvmx_pcsx_anx_lp_abil_reg_s cn52xx; +struct cvmx_pcsx_anx_lp_abil_reg_s cn52xxp1; +struct cvmx_pcsx_anx_lp_abil_reg_s cn56xx; +struct cvmx_pcsx_anx_lp_abil_reg_s cn56xxp1; +struct cvmx_pcsx_anx_lp_abil_reg_s cn61xx; +struct cvmx_pcsx_anx_lp_abil_reg_s cn63xx; +struct cvmx_pcsx_anx_lp_abil_reg_s cn63xxp1; +struct cvmx_pcsx_anx_lp_abil_reg_s cn66xx; +struct cvmx_pcsx_anx_lp_abil_reg_s cn68xx; +struct cvmx_pcsx_anx_lp_abil_reg_s cn68xxp1; +struct cvmx_pcsx_anx_lp_abil_reg_s cn70xx; +struct cvmx_pcsx_anx_lp_abil_reg_s cn70xxp1; +struct cvmx_pcsx_anx_lp_abil_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_anx_lp_abil_reg cvmx_pcsx_anx_lp_abil_reg_t ; + +/** +* cvmx_pcs#_an#_results_reg +* +* NOTE: +* an_results_reg is don't care when AN_OVRD is set to 1. If AN_OVRD=0 and AN_CPT=1 +* the an_results_reg is valid. +*/ +union cvmx_pcsx_anx_results_reg { +u64 u64; +struct cvmx_pcsx_anx_results_reg_s { +u64 reserved_7_63 :57 ; +u64 pause :2 ; +u64 spd :2 ; +u64 an_cpt :1 ; +u64 dup :1 ; +u64 link_ok :1 ; + } s; +struct cvmx_pcsx_anx_results_reg_s cn52xx; +struct cvmx_pcsx_anx_results_reg_s cn52xxp1; +struct cvmx_pcsx_anx_results_reg_s cn56xx; +struct cvmx_pcsx_anx_results_reg_s cn56xxp1; +struct cvmx_pcsx_anx_results_reg_s cn61xx; +struct cvmx_pcsx_anx_results_reg_s cn63xx; +struct cvmx_pcsx_anx_results_reg_s cn63xxp1; +struct cvmx_pcsx_anx_results_reg_s cn66xx; +struct cvmx_pcsx_anx_results_reg_s cn68xx; +struct cvmx_pcsx_anx_results_reg_s cn68xxp1; +struct cvmx_pcsx_anx_results_reg_s cn70xx; +struct cvmx_pcsx_anx_results_reg_s cn70xxp1; +struct cvmx_pcsx_anx_results_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_anx_results_reg cvmx_pcsx_anx_results_reg_t ; + +/** +* cvmx_pcs#_int#_en_reg +* +* PCS Interrupt Enable Register +* +*/ +union cvmx_pcsx_intx_en_reg { +u64 u64; +struct cvmx_pcsx_intx_en_reg_s { +u64 reserved_13_63 :51 ; +u64 dbg_sync_en :1 ; +u64 dup :1 ; +u64 sync_bad_en :1 ; +u64 an_bad_en :1 ; +u64 rxlock_en :1 ; +u64 rxbad_en :1 ; +u64 rxerr_en :1 ; +u64 txbad_en :1 ; +u64 txfifo_en :1 ; +u64 txfifu_en :1 ; +u64 an_err_en :1 ; +u64 xmit_en :1 ; +u64 lnkspd_en :1 ; + } s; +struct cvmx_pcsx_intx_en_reg_cn52xx { +u64 reserved_12_63 :52 ; +u64 dup :1 ; +u64 sync_bad_en :1 ; +u64 an_bad_en :1 ; +u64 rxlock_en :1 ; +u64 rxbad_en :1 ; +u64 rxerr_en :1 ; +u64 txbad_en :1 ; +u64 txfifo_en :1 ; +u64 txfifu_en :1 ; +u64 an_err_en :1 ; +u64 xmit_en :1 ; +u64 lnkspd_en :1 ; + } cn52xx; +struct cvmx_pcsx_intx_en_reg_cn52xx cn52xxp1; +struct cvmx_pcsx_intx_en_reg_cn52xx cn56xx; +struct cvmx_pcsx_intx_en_reg_cn52xx cn56xxp1; +struct cvmx_pcsx_intx_en_reg_s cn61xx; +struct cvmx_pcsx_intx_en_reg_s cn63xx; +struct cvmx_pcsx_intx_en_reg_s cn63xxp1; +struct cvmx_pcsx_intx_en_reg_s cn66xx; +struct cvmx_pcsx_intx_en_reg_s cn68xx; +struct cvmx_pcsx_intx_en_reg_s cn68xxp1; +struct cvmx_pcsx_intx_en_reg_s cn70xx; +struct cvmx_pcsx_intx_en_reg_s cn70xxp1; +struct cvmx_pcsx_intx_en_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_intx_en_reg cvmx_pcsx_intx_en_reg_t ; + +/** +* cvmx_pcs#_int#_reg +* +* PCS Interrupt Register +* NOTE: RXERR and TXERR conditions to be discussed with Dan before finalising +* DBG_SYNC interrupt fires when code group synchronization state machine makes a transition from +* SYNC_ACQUIRED_1 state to SYNC_ACQUIRED_2 state(See IEEE 802.3-2005 figure 37-9). It is an +* indication that a bad code group +* was received after code group synchronizaton was achieved. This interrupt should be disabled +* during normal link operation. +* Use it as a debug help feature only. +*/ +union cvmx_pcsx_intx_reg { +u64 u64; +struct cvmx_pcsx_intx_reg_s { +u64 reserved_13_63 :51 ; +u64 dbg_sync :1 ; +u64 dup :1 ; +u64 sync_bad :1 ; +u64 an_bad :1 ; +u64 rxlock :1 ; +u64 rxbad :1 ; +u64 rxerr :1 ; +u64 txbad :1 ; +u64 txfifo :1 ; +u64 txfifu :1 ; +u64 an_err :1 ; +u64 xmit :1 ; +u64 lnkspd :1 ; + } s; +struct cvmx_pcsx_intx_reg_cn52xx { +u64 reserved_12_63 :52 ; +u64 dup :1 ; +u64 sync_bad :1 ; +u64 an_bad :1 ; +u64 rxlock :1 ; +u64 rxbad :1 ; +u64 rxerr :1 ; +u64 txbad :1 ; +u64 txfifo :1 ; +u64 txfifu :1 ; +u64 an_err :1 ; +u64 xmit :1 ; +u64 lnkspd :1 ; + } cn52xx; +struct cvmx_pcsx_intx_reg_cn52xx cn52xxp1; +struct cvmx_pcsx_intx_reg_cn52xx cn56xx; +struct cvmx_pcsx_intx_reg_cn52xx cn56xxp1; +struct cvmx_pcsx_intx_reg_s cn61xx; +struct cvmx_pcsx_intx_reg_s cn63xx; +struct cvmx_pcsx_intx_reg_s cn63xxp1; +struct cvmx_pcsx_intx_reg_s cn66xx; +struct cvmx_pcsx_intx_reg_s cn68xx; +struct cvmx_pcsx_intx_reg_s cn68xxp1; +struct cvmx_pcsx_intx_reg_s cn70xx; +struct cvmx_pcsx_intx_reg_s cn70xxp1; +struct cvmx_pcsx_intx_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_intx_reg cvmx_pcsx_intx_reg_t ; + +/** +* cvmx_pcs#_link#_timer_count_reg +* +* PCS_LINK_TIMER_COUNT_REG = 1.6ms nominal link timer register +* +*/ +union cvmx_pcsx_linkx_timer_count_reg { +u64 u64; +struct cvmx_pcsx_linkx_timer_count_reg_s { +u64 reserved_16_63 :48 ; +u64 count :16 ; + } s; +struct cvmx_pcsx_linkx_timer_count_reg_s cn52xx; +struct cvmx_pcsx_linkx_timer_count_reg_s cn52xxp1; +struct cvmx_pcsx_linkx_timer_count_reg_s cn56xx; +struct cvmx_pcsx_linkx_timer_count_reg_s cn56xxp1; +struct cvmx_pcsx_linkx_timer_count_reg_s cn61xx; +struct cvmx_pcsx_linkx_timer_count_reg_s cn63xx; +struct cvmx_pcsx_linkx_timer_count_reg_s cn63xxp1; +struct cvmx_pcsx_linkx_timer_count_reg_s cn66xx; +struct cvmx_pcsx_linkx_timer_count_reg_s cn68xx; +struct cvmx_pcsx_linkx_timer_count_reg_s cn68xxp1; +struct cvmx_pcsx_linkx_timer_count_reg_s cn70xx; +struct cvmx_pcsx_linkx_timer_count_reg_s cn70xxp1; +struct cvmx_pcsx_linkx_timer_count_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_linkx_timer_count_reg cvmx_pcsx_linkx_timer_count_reg_t ; + +/** +* cvmx_pcs#_log_anl#_reg +* +* PCS Logic Analyzer Register +* NOTE: Logic Analyzer is enabled with LA_EN for the specified PCS lane only. PKT_SZ is +* effective only when LA_EN=1 +* For normal operation(sgmii or 1000Base-X), this bit must be 0. +* See pcsx.csr for xaui logic analyzer mode. +* For full description see document at .../rtl/pcs/readme_logic_analyzer.txt +*/ +union cvmx_pcsx_log_anlx_reg { +u64 u64; +struct cvmx_pcsx_log_anlx_reg_s { +u64 reserved_4_63 :60 ; +u64 lafifovfl :1 ; +u64 la_en :1 ; +u64 pkt_sz :2 ; + } s; +struct cvmx_pcsx_log_anlx_reg_s cn52xx; +struct cvmx_pcsx_log_anlx_reg_s cn52xxp1; +struct cvmx_pcsx_log_anlx_reg_s cn56xx; +struct cvmx_pcsx_log_anlx_reg_s cn56xxp1; +struct cvmx_pcsx_log_anlx_reg_s cn61xx; +struct cvmx_pcsx_log_anlx_reg_s cn63xx; +struct cvmx_pcsx_log_anlx_reg_s cn63xxp1; +struct cvmx_pcsx_log_anlx_reg_s cn66xx; +struct cvmx_pcsx_log_anlx_reg_s cn68xx; +struct cvmx_pcsx_log_anlx_reg_s cn68xxp1; +struct cvmx_pcsx_log_anlx_reg_s cn70xx; +struct cvmx_pcsx_log_anlx_reg_s cn70xxp1; +struct cvmx_pcsx_log_anlx_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_log_anlx_reg cvmx_pcsx_log_anlx_reg_t ; + +/** +* cvmx_pcs#_mac_crdt_cnt#_reg +* +* PCS MAC Credit Count +* +*/ +union cvmx_pcsx_mac_crdt_cntx_reg { +u64 u64; +struct cvmx_pcsx_mac_crdt_cntx_reg_s { +u64 reserved_5_63 :59 ; +u64 cnt :5 ; + } s; +struct cvmx_pcsx_mac_crdt_cntx_reg_s cn70xx; +struct cvmx_pcsx_mac_crdt_cntx_reg_s cn70xxp1; +}; + +typedef union cvmx_pcsx_mac_crdt_cntx_reg cvmx_pcsx_mac_crdt_cntx_reg_t ; + +/** +* cvmx_pcs#_misc#_ctl_reg +* +* SGMII Misc Control Register +* SGMII bit [12] is really a misnomer, it is a decode of pi_qlm_cfg pins to indicate SGMII or +* 1000Base-X modes. +* Note: MODE bit +* When MODE=1, 1000Base-X mode is selected. Auto negotiation will follow IEEE 802.3 clause 37. +* When MODE=0, SGMII mode is selected and the following note will apply. +* Repeat note from SGM_AN_ADV register +* NOTE: The SGMII AN Advertisement Register above will be sent during Auto Negotiation if the +* MAC_PHY mode bit in misc_ctl_reg +* is set (1=PHY mode). If the bit is not set (0=MAC mode), the tx_config_reg[14] becomes ACK bit +* and [0] is always 1. +* All other bits in tx_config_reg sent will be 0. The PHY dictates the Auto Negotiation results. +*/ +union cvmx_pcsx_miscx_ctl_reg { +u64 u64; +struct cvmx_pcsx_miscx_ctl_reg_s { +u64 reserved_13_63 :51 ; +u64 sgmii :1 ; +u64 gmxeno :1 ; +u64 loopbck2 :1 ; +u64 mac_phy :1 ; +u64 mode :1 ; +u64 an_ovrd :1 ; +u64 samp_pt :7 ; + } s; +struct cvmx_pcsx_miscx_ctl_reg_s cn52xx; +struct cvmx_pcsx_miscx_ctl_reg_s cn52xxp1; +struct cvmx_pcsx_miscx_ctl_reg_s cn56xx; +struct cvmx_pcsx_miscx_ctl_reg_s cn56xxp1; +struct cvmx_pcsx_miscx_ctl_reg_s cn61xx; +struct cvmx_pcsx_miscx_ctl_reg_s cn63xx; +struct cvmx_pcsx_miscx_ctl_reg_s cn63xxp1; +struct cvmx_pcsx_miscx_ctl_reg_s cn66xx; +struct cvmx_pcsx_miscx_ctl_reg_s cn68xx; +struct cvmx_pcsx_miscx_ctl_reg_s cn68xxp1; +struct cvmx_pcsx_miscx_ctl_reg_cn70xx { +u64 reserved_12_63 :52 ; +u64 gmxeno :1 ; +u64 loopbck2 :1 ; +u64 mac_phy :1 ; +u64 mode :1 ; +u64 an_ovrd :1 ; +u64 samp_pt :7 ; + } cn70xx; +struct cvmx_pcsx_miscx_ctl_reg_cn70xx cn70xxp1; +struct cvmx_pcsx_miscx_ctl_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_miscx_ctl_reg cvmx_pcsx_miscx_ctl_reg_t ; + +/** +* cvmx_pcs#_mr#_control_reg +* +* NOTE: +* Whenever AN_EN bit[12] is set, Auto negotiation is allowed to happen. The results +* of the auto negotiation process set the fields in the AN_RESULTS reg. When AN_EN is not set, +* AN_RESULTS reg is don't care. The effective SPD, DUP etc.. get their values +* from the pcs_mr_ctrl reg. +*/ +union cvmx_pcsx_mrx_control_reg { +u64 u64; +struct cvmx_pcsx_mrx_control_reg_s { +u64 reserved_16_63 :48 ; +u64 reset :1 ; +u64 loopbck1 :1 ; +u64 spdlsb :1 ; +u64 an_en :1 ; +u64 pwr_dn :1 ; +u64 reserved_10_10 :1 ; +u64 rst_an :1 ; +u64 dup :1 ; +u64 coltst :1 ; +u64 spdmsb :1 ; +u64 uni :1 ; +u64 reserved_0_4 :5 ; + } s; +struct cvmx_pcsx_mrx_control_reg_s cn52xx; +struct cvmx_pcsx_mrx_control_reg_s cn52xxp1; +struct cvmx_pcsx_mrx_control_reg_s cn56xx; +struct cvmx_pcsx_mrx_control_reg_s cn56xxp1; +struct cvmx_pcsx_mrx_control_reg_s cn61xx; +struct cvmx_pcsx_mrx_control_reg_s cn63xx; +struct cvmx_pcsx_mrx_control_reg_s cn63xxp1; +struct cvmx_pcsx_mrx_control_reg_s cn66xx; +struct cvmx_pcsx_mrx_control_reg_s cn68xx; +struct cvmx_pcsx_mrx_control_reg_s cn68xxp1; +struct cvmx_pcsx_mrx_control_reg_s cn70xx; +struct cvmx_pcsx_mrx_control_reg_s cn70xxp1; +struct cvmx_pcsx_mrx_control_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_mrx_control_reg cvmx_pcsx_mrx_control_reg_t ; + +/** +* cvmx_pcs#_mr#_status_reg +* +* Bits [15:9] in the Status Register indicate ability to operate as per those signalling +* specification, +* when misc ctl reg MAC_PHY bit is set to MAC mode. Bits [15:9] will all, always read 1'b0, +* indicating +* that the chip cannot operate in the corresponding modes. +* Bit [4] RM_FLT is a don't care when the selected mode is SGMII. +*/ +union cvmx_pcsx_mrx_status_reg { +u64 u64; +struct cvmx_pcsx_mrx_status_reg_s { +u64 reserved_16_63 :48 ; +u64 hun_t4 :1 ; +u64 hun_xfd :1 ; +u64 hun_xhd :1 ; +u64 ten_fd :1 ; +u64 ten_hd :1 ; +u64 hun_t2fd :1 ; +u64 hun_t2hd :1 ; +u64 ext_st :1 ; +u64 reserved_7_7 :1 ; +u64 prb_sup :1 ; +u64 an_cpt :1 ; +u64 rm_flt :1 ; +u64 an_abil :1 ; +u64 lnk_st :1 ; +u64 reserved_1_1 :1 ; +u64 extnd :1 ; + } s; +struct cvmx_pcsx_mrx_status_reg_s cn52xx; +struct cvmx_pcsx_mrx_status_reg_s cn52xxp1; +struct cvmx_pcsx_mrx_status_reg_s cn56xx; +struct cvmx_pcsx_mrx_status_reg_s cn56xxp1; +struct cvmx_pcsx_mrx_status_reg_s cn61xx; +struct cvmx_pcsx_mrx_status_reg_s cn63xx; +struct cvmx_pcsx_mrx_status_reg_s cn63xxp1; +struct cvmx_pcsx_mrx_status_reg_s cn66xx; +struct cvmx_pcsx_mrx_status_reg_s cn68xx; +struct cvmx_pcsx_mrx_status_reg_s cn68xxp1; +struct cvmx_pcsx_mrx_status_reg_s cn70xx; +struct cvmx_pcsx_mrx_status_reg_s cn70xxp1; +struct cvmx_pcsx_mrx_status_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_mrx_status_reg cvmx_pcsx_mrx_status_reg_t ; + +/** +* cvmx_pcs#_rx#_states_reg +* +* PCS_RX_STATES_REG = RX State Machines states register +* +*/ +union cvmx_pcsx_rxx_states_reg { +u64 u64; +struct cvmx_pcsx_rxx_states_reg_s { +u64 reserved_16_63 :48 ; +u64 rx_bad :1 ; +u64 rx_st :5 ; +u64 sync_bad :1 ; +u64 sync :4 ; +u64 an_bad :1 ; +u64 an_st :4 ; + } s; +struct cvmx_pcsx_rxx_states_reg_s cn52xx; +struct cvmx_pcsx_rxx_states_reg_s cn52xxp1; +struct cvmx_pcsx_rxx_states_reg_s cn56xx; +struct cvmx_pcsx_rxx_states_reg_s cn56xxp1; +struct cvmx_pcsx_rxx_states_reg_s cn61xx; +struct cvmx_pcsx_rxx_states_reg_s cn63xx; +struct cvmx_pcsx_rxx_states_reg_s cn63xxp1; +struct cvmx_pcsx_rxx_states_reg_s cn66xx; +struct cvmx_pcsx_rxx_states_reg_s cn68xx; +struct cvmx_pcsx_rxx_states_reg_s cn68xxp1; +struct cvmx_pcsx_rxx_states_reg_s cn70xx; +struct cvmx_pcsx_rxx_states_reg_s cn70xxp1; +struct cvmx_pcsx_rxx_states_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_rxx_states_reg cvmx_pcsx_rxx_states_reg_t ; + +/** +* cvmx_pcs#_rx#_sync_reg +* +* Note: +* r_tx_rx_polarity_reg bit [2] will show correct polarity needed on the link receive path after code grp synchronization is achieved. +* +* +* PCS_RX_SYNC_REG = Code Group synchronization reg +*/ +union cvmx_pcsx_rxx_sync_reg { +u64 u64; +struct cvmx_pcsx_rxx_sync_reg_s { +u64 reserved_2_63 :62 ; +u64 sync :1 ; +u64 bit_lock :1 ; + } s; +struct cvmx_pcsx_rxx_sync_reg_s cn52xx; +struct cvmx_pcsx_rxx_sync_reg_s cn52xxp1; +struct cvmx_pcsx_rxx_sync_reg_s cn56xx; +struct cvmx_pcsx_rxx_sync_reg_s cn56xxp1; +struct cvmx_pcsx_rxx_sync_reg_s cn61xx; +struct cvmx_pcsx_rxx_sync_reg_s cn63xx; +struct cvmx_pcsx_rxx_sync_reg_s cn63xxp1; +struct cvmx_pcsx_rxx_sync_reg_s cn66xx; +struct cvmx_pcsx_rxx_sync_reg_s cn68xx; +struct cvmx_pcsx_rxx_sync_reg_s cn68xxp1; +struct cvmx_pcsx_rxx_sync_reg_s cn70xx; +struct cvmx_pcsx_rxx_sync_reg_s cn70xxp1; +struct cvmx_pcsx_rxx_sync_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_rxx_sync_reg cvmx_pcsx_rxx_sync_reg_t ; + +/** +* cvmx_pcs#_serdes_crdt_cnt#_reg +* +* PCS SERDES Credit Count +* +*/ +union cvmx_pcsx_serdes_crdt_cntx_reg { +u64 u64; +struct cvmx_pcsx_serdes_crdt_cntx_reg_s { +u64 reserved_5_63 :59 ; +u64 cnt :5 ; + } s; +struct cvmx_pcsx_serdes_crdt_cntx_reg_s cn70xx; +struct cvmx_pcsx_serdes_crdt_cntx_reg_s cn70xxp1; +}; + +typedef union cvmx_pcsx_serdes_crdt_cntx_reg cvmx_pcsx_serdes_crdt_cntx_reg_t ; + +/** +* cvmx_pcs#_sgm#_an_adv_reg +* +* SGMII AN Advertisement Register (sent out as tx_config_reg) +* NOTE: The SGMII AN Advertisement Register above will be sent during Auto Negotiation if the +* MAC_PHY mode bit in misc_ctl_reg +* is set (1=PHY mode). If the bit is not set (0=MAC mode), the tx_config_reg[14] becomes ACK bit +* and [0] is always 1. +* All other bits in tx_config_reg sent will be 0. The PHY dictates the Auto Negotiation results. +*/ +union cvmx_pcsx_sgmx_an_adv_reg { +u64 u64; +struct cvmx_pcsx_sgmx_an_adv_reg_s { +u64 reserved_16_63 :48 ; +u64 link :1 ; +u64 ack :1 ; +u64 reserved_13_13 :1 ; +u64 dup :1 ; +u64 speed :2 ; +u64 reserved_1_9 :9 ; +u64 one :1 ; + } s; +struct cvmx_pcsx_sgmx_an_adv_reg_s cn52xx; +struct cvmx_pcsx_sgmx_an_adv_reg_s cn52xxp1; +struct cvmx_pcsx_sgmx_an_adv_reg_s cn56xx; +struct cvmx_pcsx_sgmx_an_adv_reg_s cn56xxp1; +struct cvmx_pcsx_sgmx_an_adv_reg_s cn61xx; +struct cvmx_pcsx_sgmx_an_adv_reg_s cn63xx; +struct cvmx_pcsx_sgmx_an_adv_reg_s cn63xxp1; +struct cvmx_pcsx_sgmx_an_adv_reg_s cn66xx; +struct cvmx_pcsx_sgmx_an_adv_reg_s cn68xx; +struct cvmx_pcsx_sgmx_an_adv_reg_s cn68xxp1; +struct cvmx_pcsx_sgmx_an_adv_reg_s cn70xx; +struct cvmx_pcsx_sgmx_an_adv_reg_s cn70xxp1; +struct cvmx_pcsx_sgmx_an_adv_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_sgmx_an_adv_reg cvmx_pcsx_sgmx_an_adv_reg_t ; + +/** +* cvmx_pcs#_sgm#_lp_adv_reg +* +* SGMII LP Advertisement Register (received as rx_config_reg) +* +*/ +union cvmx_pcsx_sgmx_lp_adv_reg { +u64 u64; +struct cvmx_pcsx_sgmx_lp_adv_reg_s { +u64 reserved_16_63 :48 ; +u64 link :1 ; +u64 reserved_13_14 :2 ; +u64 dup :1 ; +u64 speed :2 ; +u64 reserved_1_9 :9 ; +u64 one :1 ; + } s; +struct cvmx_pcsx_sgmx_lp_adv_reg_s cn52xx; +struct cvmx_pcsx_sgmx_lp_adv_reg_s cn52xxp1; +struct cvmx_pcsx_sgmx_lp_adv_reg_s cn56xx; +struct cvmx_pcsx_sgmx_lp_adv_reg_s cn56xxp1; +struct cvmx_pcsx_sgmx_lp_adv_reg_s cn61xx; +struct cvmx_pcsx_sgmx_lp_adv_reg_s cn63xx; +struct cvmx_pcsx_sgmx_lp_adv_reg_s cn63xxp1; +struct cvmx_pcsx_sgmx_lp_adv_reg_s cn66xx; +struct cvmx_pcsx_sgmx_lp_adv_reg_s cn68xx; +struct cvmx_pcsx_sgmx_lp_adv_reg_s cn68xxp1; +struct cvmx_pcsx_sgmx_lp_adv_reg_s cn70xx; +struct cvmx_pcsx_sgmx_lp_adv_reg_s cn70xxp1; +struct cvmx_pcsx_sgmx_lp_adv_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_sgmx_lp_adv_reg cvmx_pcsx_sgmx_lp_adv_reg_t ; + +/** +* cvmx_pcs#_tx#_states_reg +* +* PCS_TX_STATES_REG = TX State Machines states register +* +*/ +union cvmx_pcsx_txx_states_reg { +u64 u64; +struct cvmx_pcsx_txx_states_reg_s { +u64 reserved_7_63 :57 ; +u64 xmit :2 ; +u64 tx_bad :1 ; +u64 ord_st :4 ; + } s; +struct cvmx_pcsx_txx_states_reg_s cn52xx; +struct cvmx_pcsx_txx_states_reg_s cn52xxp1; +struct cvmx_pcsx_txx_states_reg_s cn56xx; +struct cvmx_pcsx_txx_states_reg_s cn56xxp1; +struct cvmx_pcsx_txx_states_reg_s cn61xx; +struct cvmx_pcsx_txx_states_reg_s cn63xx; +struct cvmx_pcsx_txx_states_reg_s cn63xxp1; +struct cvmx_pcsx_txx_states_reg_s cn66xx; +struct cvmx_pcsx_txx_states_reg_s cn68xx; +struct cvmx_pcsx_txx_states_reg_s cn68xxp1; +struct cvmx_pcsx_txx_states_reg_s cn70xx; +struct cvmx_pcsx_txx_states_reg_s cn70xxp1; +struct cvmx_pcsx_txx_states_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_txx_states_reg cvmx_pcsx_txx_states_reg_t ; + +/** +* cvmx_pcs#_tx_rx#_polarity_reg +* +* Note: +* r_tx_rx_polarity_reg bit [2] will show correct polarity needed on the link receive path after +* code grp synchronization is achieved. +*/ +union cvmx_pcsx_tx_rxx_polarity_reg { +u64 u64; +struct cvmx_pcsx_tx_rxx_polarity_reg_s { +u64 reserved_4_63 :60 ; +u64 rxovrd :1 ; +u64 autorxpl :1 ; +u64 rxplrt :1 ; +u64 txplrt :1 ; + } s; +struct cvmx_pcsx_tx_rxx_polarity_reg_s cn52xx; +struct cvmx_pcsx_tx_rxx_polarity_reg_s cn52xxp1; +struct cvmx_pcsx_tx_rxx_polarity_reg_s cn56xx; +struct cvmx_pcsx_tx_rxx_polarity_reg_s cn56xxp1; +struct cvmx_pcsx_tx_rxx_polarity_reg_s cn61xx; +struct cvmx_pcsx_tx_rxx_polarity_reg_s cn63xx; +struct cvmx_pcsx_tx_rxx_polarity_reg_s cn63xxp1; +struct cvmx_pcsx_tx_rxx_polarity_reg_s cn66xx; +struct cvmx_pcsx_tx_rxx_polarity_reg_s cn68xx; +struct cvmx_pcsx_tx_rxx_polarity_reg_s cn68xxp1; +struct cvmx_pcsx_tx_rxx_polarity_reg_s cn70xx; +struct cvmx_pcsx_tx_rxx_polarity_reg_s cn70xxp1; +struct cvmx_pcsx_tx_rxx_polarity_reg_s cnf71xx; +}; + +typedef union cvmx_pcsx_tx_rxx_polarity_reg cvmx_pcsx_tx_rxx_polarity_reg_t ; + +#endif
Signature · 1 line
2.29.2
PATCH 20/50 mips: octeon: Add cvmx-pemx-defs.h header file
In reply to Stefan RoeseFrom: Aaron Williams <[email protected]>
Import cvmx-pemx-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support PCIe and networking on the MIPS Octeon II / III platforms.
---
.../mach-octeon/include/mach/cvmx-pemx-defs.h | 2028 +++++++++++++++++ 1 file changed, 2028 insertions(+) create mode 100644 arch/mips/mach-octeon/include/mach/cvmx-pemx-defs.h
arch/mips/mach-octeon/include/mach/cvmx-pemx-defs.h new file +2028 -0
@@ -0,0 +1,2028 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (C) 2020 Marvell International Ltd. +* +* Configuration and status register (CSR) type definitions for +* Octeon pemx. +*/ + +#ifndef __CVMX_PEMX_DEFS_H__ +#define __CVMX_PEMX_DEFS_H__ + +static inline u64 CVMX_PEMX_BAR1_INDEXX (unsigned long offset,unsigned long block_id) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000100ull + ((offset ) + (block_id) *0x200000ull ) *8 ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000100ull + ((offset ) + (block_id) *0x200000ull ) *8 ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011800C0000100ull + ((offset ) + (block_id) *0x200000ull ) *8 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011800C0000100ull + ((offset ) + (block_id) *0x200000ull ) *8 ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000100ull + ((offset ) + (block_id) *0x200000ull ) *8 ; +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800C00000A8ull + ((offset ) + (block_id) *0x200000ull ) *8 ; + } +return 0x00011800C0000100ull + ((offset ) + (block_id) *0x200000ull ) *8 ; +} + +static inline u64 CVMX_PEMX_BAR2_MASK (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00011800C00000B0ull + (offset) *0x1000000ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x00011800C00000B0ull + (offset) *0x1000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011800C00000B0ull + (offset) *0x1000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011800C00000B0ull + (offset) *0x1000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011800C10000B0ull + (offset) *0x1000000ull -16777216 *1 ; +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000130ull + (offset) *0x1000000ull ; + } +return 0x00011800C00000B0ull + (offset) *0x1000000ull ; +} + +static inline u64 CVMX_PEMX_BAR_CTL (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00011800C00000A8ull + (offset) *0x1000000ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x00011800C00000A8ull + (offset) *0x1000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011800C00000A8ull + (offset) *0x1000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011800C00000A8ull + (offset) *0x1000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011800C10000A8ull + (offset) *0x1000000ull -16777216 *1 ; +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000128ull + (offset) *0x1000000ull ; + } +return 0x00011800C00000A8ull + (offset) *0x1000000ull ; +} + +static inline u64 CVMX_PEMX_BIST_STATUS (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000018ull + (offset) *0x1000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000018ull + (offset) *0x1000000ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000440ull + (offset) *0x1000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011800C0000440ull + (offset) *0x1000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011800C0000440ull + (offset) *0x1000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011800C1000440ull + (offset) *0x1000000ull -16777216 *1 ; + } +return 0x00011800C0000440ull + (offset) *0x1000000ull ; +} + +static inline u64 CVMX_PEMX_BIST_STATUS2 (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000420ull + (offset) *0x1000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000440ull + (offset) *0x1000000ull ; + } +return 0x00011800C0000420ull + (offset) *0x1000000ull ; +} + +#define CVMX_PEMX_CFG (offset) (0x00011800C0000410ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_CFG_RD (offset) (0x00011800C0000030ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_CFG_WR (offset) (0x00011800C0000028ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_CLK_EN (offset) (0x00011800C0000400ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_CPL_LUT_VALID (offset) (0x00011800C0000098ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_CTL_STATUS (offset) (0x00011800C0000000ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_CTL_STATUS2 (offset) (0x00011800C0000008ull + ((offset) & 3) * 0x1000000ull) +static inline u64 CVMX_PEMX_DBG_INFO (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00011800C00000D0ull + (offset) *0x1000000ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x00011800C00000D0ull + (offset) *0x1000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011800C00000D0ull + (offset) *0x1000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011800C00000D0ull + (offset) *0x1000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011800C10000D0ull + (offset) *0x1000000ull -16777216 *1 ; +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000008ull + (offset) *0x1000000ull ; + } +return 0x00011800C00000D0ull + (offset) *0x1000000ull ; +} + +#define CVMX_PEMX_DBG_INFO_EN (offset) (0x00011800C00000A0ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_DIAG_STATUS (offset) (0x00011800C0000020ull + ((offset) & 3) * 0x1000000ull) +static inline u64 CVMX_PEMX_ECC_ENA (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000448ull + (offset) *0x1000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011800C0000448ull + (offset) *0x1000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011800C0000448ull + (offset) *0x1000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011800C1000448ull + (offset) *0x1000000ull -16777216 *1 ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00011800C00000C0ull + (offset) *0x1000000ull ; + } +return 0x00011800C0000448ull + (offset) *0x1000000ull ; +} + +static inline u64 CVMX_PEMX_ECC_SYND_CTRL (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000450ull + (offset) *0x1000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011800C0000450ull + (offset) *0x1000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011800C0000450ull + (offset) *0x1000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011800C1000450ull + (offset) *0x1000000ull -16777216 *1 ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00011800C00000C8ull + (offset) *0x1000000ull ; + } +return 0x00011800C0000450ull + (offset) *0x1000000ull ; +} + +#define CVMX_PEMX_ECO (offset) (0x00011800C0000010ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_FLR_GLBLCNT_CTL (offset) (0x00011800C0000210ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_FLR_PF0_VF_STOPREQ (offset) (0x00011800C0000220ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_FLR_PF_STOPREQ (offset) (0x00011800C0000218ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_FLR_STOPREQ_CTL (offset) (0x00011800C0000238ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_FLR_ZOMBIE_CTL (offset) (0x00011800C0000230ull + ((offset) & 3) * 0x1000000ull) +static inline u64 CVMX_PEMX_INB_READ_CREDITS (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00011800C00000B8ull + (offset) *0x1000000ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x00011800C00000B8ull + (offset) *0x1000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011800C00000B8ull + (offset) *0x1000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011800C00000B8ull + (offset) *0x1000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011800C10000B8ull + (offset) *0x1000000ull -16777216 *1 ; +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000138ull + (offset) *0x1000000ull ; + } +return 0x00011800C00000B8ull + (offset) *0x1000000ull ; +} + +static inline u64 CVMX_PEMX_INT_ENB (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000410ull + (offset) *0x1000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000430ull + (offset) *0x1000000ull ; + } +return 0x00011800C0000410ull + (offset) *0x1000000ull ; +} + +static inline u64 CVMX_PEMX_INT_ENB_INT (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000418ull + (offset) *0x1000000ull ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000438ull + (offset) *0x1000000ull ; + } +return 0x00011800C0000418ull + (offset) *0x1000000ull ; +} + +static inline u64 CVMX_PEMX_INT_SUM (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000428ull + (offset) *0x1000000ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000428ull + (offset) *0x1000000ull ; +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011800C0000428ull + (offset) *0x1000000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011800C0000428ull + (offset) *0x1000000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011800C1000428ull + (offset) *0x1000000ull -16777216 *1 ; +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011800C0000408ull + (offset) *0x1000000ull ; + } +return 0x00011800C0000428ull + (offset) *0x1000000ull ; +} + +#define CVMX_PEMX_ON (offset) (0x00011800C0000420ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_P2N_BAR0_START (offset) (0x00011800C0000080ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_P2N_BAR1_START (offset) (0x00011800C0000088ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_P2N_BAR2_START (offset) (0x00011800C0000090ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_P2P_BARX_END (offset, block_id) \ + (0x00011800C0000048ull + (((offset) & 3) + ((block_id) & 3) * 0x100000ull) * 16) +#define CVMX_PEMX_P2P_BARX_START (offset, block_id) \ + (0x00011800C0000040ull + (((offset) & 3) + ((block_id) & 3) * 0x100000ull) * 16) +#define CVMX_PEMX_QLM (offset) (0x00011800C0000418ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_SPI_CTL (offset) (0x00011800C0000180ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_SPI_DATA (offset) (0x00011800C0000188ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_STRAP (offset) (0x00011800C0000408ull + ((offset) & 3) * 0x1000000ull) +#define CVMX_PEMX_TLP_CREDITS (offset) (0x00011800C0000038ull + ((offset) & 3) * 0x1000000ull) + +/** +* cvmx_pem#_bar1_index# +* +* This register contains the address index and control bits for access to memory ranges of BAR1. +* The index is built from supplied address [25:22]. +*/ +union cvmx_pemx_bar1_indexx { +u64 u64; +struct cvmx_pemx_bar1_indexx_s { +u64 reserved_24_63 :40 ; +u64 addr_idx :20 ; +u64 ca :1 ; +u64 end_swp :2 ; +u64 addr_v :1 ; + } s; +struct cvmx_pemx_bar1_indexx_cn61xx { +u64 reserved_20_63 :44 ; +u64 addr_idx :16 ; +u64 ca :1 ; +u64 end_swp :2 ; +u64 addr_v :1 ; + } cn61xx; +struct cvmx_pemx_bar1_indexx_cn61xx cn63xx; +struct cvmx_pemx_bar1_indexx_cn61xx cn63xxp1; +struct cvmx_pemx_bar1_indexx_cn61xx cn66xx; +struct cvmx_pemx_bar1_indexx_cn61xx cn68xx; +struct cvmx_pemx_bar1_indexx_cn61xx cn68xxp1; +struct cvmx_pemx_bar1_indexx_s cn70xx; +struct cvmx_pemx_bar1_indexx_s cn70xxp1; +struct cvmx_pemx_bar1_indexx_s cn73xx; +struct cvmx_pemx_bar1_indexx_s cn78xx; +struct cvmx_pemx_bar1_indexx_s cn78xxp1; +struct cvmx_pemx_bar1_indexx_cn61xx cnf71xx; +struct cvmx_pemx_bar1_indexx_s cnf75xx; +}; + +typedef union cvmx_pemx_bar1_indexx cvmx_pemx_bar1_indexx_t ; + +/** +* cvmx_pem#_bar2_mask +* +* This register contains the mask pattern that is ANDed with the address from the PCIe core for +* BAR2 hits. This allows the effective size of RC BAR2 to be shrunk. Must not be changed +* from its reset value in EP mode. +*/ +union cvmx_pemx_bar2_mask { +u64 u64; +struct cvmx_pemx_bar2_mask_s { +u64 reserved_45_63 :19 ; +u64 mask :42 ; +u64 reserved_0_2 :3 ; + } s; +struct cvmx_pemx_bar2_mask_cn61xx { +u64 reserved_38_63 :26 ; +u64 mask :35 ; +u64 reserved_0_2 :3 ; + } cn61xx; +struct cvmx_pemx_bar2_mask_cn61xx cn66xx; +struct cvmx_pemx_bar2_mask_cn61xx cn68xx; +struct cvmx_pemx_bar2_mask_cn61xx cn68xxp1; +struct cvmx_pemx_bar2_mask_cn61xx cn70xx; +struct cvmx_pemx_bar2_mask_cn61xx cn70xxp1; +struct cvmx_pemx_bar2_mask_cn73xx { +u64 reserved_42_63 :22 ; +u64 mask :39 ; +u64 reserved_0_2 :3 ; + } cn73xx; +struct cvmx_pemx_bar2_mask_s cn78xx; +struct cvmx_pemx_bar2_mask_cn73xx cn78xxp1; +struct cvmx_pemx_bar2_mask_cn61xx cnf71xx; +struct cvmx_pemx_bar2_mask_cn73xx cnf75xx; +}; + +typedef union cvmx_pemx_bar2_mask cvmx_pemx_bar2_mask_t ; + +/** +* cvmx_pem#_bar_ctl +* +* This register contains control for BAR accesses. +* +*/ +union cvmx_pemx_bar_ctl { +u64 u64; +struct cvmx_pemx_bar_ctl_s { +u64 reserved_7_63 :57 ; +u64 bar1_siz :3 ; +u64 bar2_enb :1 ; +u64 bar2_esx :2 ; +u64 bar2_cax :1 ; + } s; +struct cvmx_pemx_bar_ctl_s cn61xx; +struct cvmx_pemx_bar_ctl_s cn63xx; +struct cvmx_pemx_bar_ctl_s cn63xxp1; +struct cvmx_pemx_bar_ctl_s cn66xx; +struct cvmx_pemx_bar_ctl_s cn68xx; +struct cvmx_pemx_bar_ctl_s cn68xxp1; +struct cvmx_pemx_bar_ctl_s cn70xx; +struct cvmx_pemx_bar_ctl_s cn70xxp1; +struct cvmx_pemx_bar_ctl_s cn73xx; +struct cvmx_pemx_bar_ctl_s cn78xx; +struct cvmx_pemx_bar_ctl_s cn78xxp1; +struct cvmx_pemx_bar_ctl_s cnf71xx; +struct cvmx_pemx_bar_ctl_s cnf75xx; +}; + +typedef union cvmx_pemx_bar_ctl cvmx_pemx_bar_ctl_t ; + +/** +* cvmx_pem#_bist_status +* +* This register contains results from BIST runs of PEM's memories. +* +*/ +union cvmx_pemx_bist_status { +u64 u64; +struct cvmx_pemx_bist_status_s { +u64 reserved_16_63 :48 ; +u64 retryc :1 ; +u64 reserved_14_14 :1 ; +u64 rqhdrb0 :1 ; +u64 rqhdrb1 :1 ; +u64 rqdatab0 :1 ; +u64 rqdatab1 :1 ; +u64 tlpn_d0 :1 ; +u64 tlpn_d1 :1 ; +u64 reserved_0_7 :8 ; + } s; +struct cvmx_pemx_bist_status_cn61xx { +u64 reserved_8_63 :56 ; +u64 retry :1 ; +u64 rqdata0 :1 ; +u64 rqdata1 :1 ; +u64 rqdata2 :1 ; +u64 rqdata3 :1 ; +u64 rqhdr1 :1 ; +u64 rqhdr0 :1 ; +u64 sot :1 ; + } cn61xx; +struct cvmx_pemx_bist_status_cn61xx cn63xx; +struct cvmx_pemx_bist_status_cn61xx cn63xxp1; +struct cvmx_pemx_bist_status_cn61xx cn66xx; +struct cvmx_pemx_bist_status_cn61xx cn68xx; +struct cvmx_pemx_bist_status_cn61xx cn68xxp1; +struct cvmx_pemx_bist_status_cn70xx { +u64 reserved_6_63 :58 ; +u64 retry :1 ; +u64 sot :1 ; +u64 rqhdr0 :1 ; +u64 rqhdr1 :1 ; +u64 rqdata0 :1 ; +u64 rqdata1 :1 ; + } cn70xx; +struct cvmx_pemx_bist_status_cn70xx cn70xxp1; +struct cvmx_pemx_bist_status_cn73xx { +u64 reserved_16_63 :48 ; +u64 retryc :1 ; +u64 sot :1 ; +u64 rqhdrb0 :1 ; +u64 rqhdrb1 :1 ; +u64 rqdatab0 :1 ; +u64 rqdatab1 :1 ; +u64 tlpn_d0 :1 ; +u64 tlpn_d1 :1 ; +u64 tlpn_ctl :1 ; +u64 tlpp_d0 :1 ; +u64 tlpp_d1 :1 ; +u64 tlpp_ctl :1 ; +u64 tlpc_d0 :1 ; +u64 tlpc_d1 :1 ; +u64 tlpc_ctl :1 ; +u64 m2s :1 ; + } cn73xx; +struct cvmx_pemx_bist_status_cn73xx cn78xx; +struct cvmx_pemx_bist_status_cn73xx cn78xxp1; +struct cvmx_pemx_bist_status_cn61xx cnf71xx; +struct cvmx_pemx_bist_status_cn73xx cnf75xx; +}; + +typedef union cvmx_pemx_bist_status cvmx_pemx_bist_status_t ; + +/** +* cvmx_pem#_bist_status2 +* +* "PEM#_BIST_STATUS2 = PEM BIST Status Register +* Results from BIST runs of PEM's memories." +*/ +union cvmx_pemx_bist_status2 { +u64 u64; +struct cvmx_pemx_bist_status2_s { +u64 reserved_13_63 :51 ; +u64 tlpn_d :1 ; +u64 tlpn_ctl :1 ; +u64 tlpp_d :1 ; +u64 reserved_0_9 :10 ; + } s; +struct cvmx_pemx_bist_status2_cn61xx { +u64 reserved_10_63 :54 ; +u64 e2p_cpl :1 ; +u64 e2p_n :1 ; +u64 e2p_p :1 ; +u64 peai_p2e :1 ; +u64 pef_tpf1 :1 ; +u64 pef_tpf0 :1 ; +u64 pef_tnf :1 ; +u64 pef_tcf1 :1 ; +u64 pef_tc0 :1 ; +u64 ppf :1 ; + } cn61xx; +struct cvmx_pemx_bist_status2_cn61xx cn63xx; +struct cvmx_pemx_bist_status2_cn61xx cn63xxp1; +struct cvmx_pemx_bist_status2_cn61xx cn66xx; +struct cvmx_pemx_bist_status2_cn61xx cn68xx; +struct cvmx_pemx_bist_status2_cn61xx cn68xxp1; +struct cvmx_pemx_bist_status2_cn70xx { +u64 reserved_14_63 :50 ; +u64 peai_p2e :1 ; +u64 tlpn_d :1 ; +u64 tlpn_ctl :1 ; +u64 tlpp_d :1 ; +u64 tlpp_ctl :1 ; +u64 tlpc_d :1 ; +u64 tlpc_ctl :1 ; +u64 tlpan_d :1 ; +u64 tlpan_ctl :1 ; +u64 tlpap_d :1 ; +u64 tlpap_ctl :1 ; +u64 tlpac_d :1 ; +u64 tlpac_ctl :1 ; +u64 m2s :1 ; + } cn70xx; +struct cvmx_pemx_bist_status2_cn70xx cn70xxp1; +struct cvmx_pemx_bist_status2_cn61xx cnf71xx; +}; + +typedef union cvmx_pemx_bist_status2 cvmx_pemx_bist_status2_t ; + +/** +* cvmx_pem#_cfg +* +* Configuration of the PCIe Application. +* +*/ +union cvmx_pemx_cfg { +u64 u64; +struct cvmx_pemx_cfg_s { +u64 reserved_5_63 :59 ; +u64 laneswap :1 ; +u64 reserved_2_3 :2 ; +u64 md :2 ; + } s; +struct cvmx_pemx_cfg_cn70xx { +u64 reserved_5_63 :59 ; +u64 laneswap :1 ; +u64 hostmd :1 ; +u64 md :3 ; + } cn70xx; +struct cvmx_pemx_cfg_cn70xx cn70xxp1; +struct cvmx_pemx_cfg_cn73xx { +u64 reserved_5_63 :59 ; +u64 laneswap :1 ; +u64 lanes8 :1 ; +u64 hostmd :1 ; +u64 md :2 ; + } cn73xx; +struct cvmx_pemx_cfg_cn73xx cn78xx; +struct cvmx_pemx_cfg_cn73xx cn78xxp1; +struct cvmx_pemx_cfg_cn73xx cnf75xx; +}; + +typedef union cvmx_pemx_cfg cvmx_pemx_cfg_t ; + +/** +* cvmx_pem#_cfg_rd +* +* This register allows read access to the configuration in the PCIe core. +* +*/ +union cvmx_pemx_cfg_rd { +u64 u64; +struct cvmx_pemx_cfg_rd_s { +u64 data :32 ; +u64 addr :32 ; + } s; +struct cvmx_pemx_cfg_rd_s cn61xx; +struct cvmx_pemx_cfg_rd_s cn63xx; +struct cvmx_pemx_cfg_rd_s cn63xxp1; +struct cvmx_pemx_cfg_rd_s cn66xx; +struct cvmx_pemx_cfg_rd_s cn68xx; +struct cvmx_pemx_cfg_rd_s cn68xxp1; +struct cvmx_pemx_cfg_rd_s cn70xx; +struct cvmx_pemx_cfg_rd_s cn70xxp1; +struct cvmx_pemx_cfg_rd_s cn73xx; +struct cvmx_pemx_cfg_rd_s cn78xx; +struct cvmx_pemx_cfg_rd_s cn78xxp1; +struct cvmx_pemx_cfg_rd_s cnf71xx; +struct cvmx_pemx_cfg_rd_s cnf75xx; +}; + +typedef union cvmx_pemx_cfg_rd cvmx_pemx_cfg_rd_t ; + +/** +* cvmx_pem#_cfg_wr +* +* This register allows write access to the configuration in the PCIe core. +* +*/ +union cvmx_pemx_cfg_wr { +u64 u64; +struct cvmx_pemx_cfg_wr_s { +u64 data :32 ; +u64 addr :32 ; + } s; +struct cvmx_pemx_cfg_wr_s cn61xx; +struct cvmx_pemx_cfg_wr_s cn63xx; +struct cvmx_pemx_cfg_wr_s cn63xxp1; +struct cvmx_pemx_cfg_wr_s cn66xx; +struct cvmx_pemx_cfg_wr_s cn68xx; +struct cvmx_pemx_cfg_wr_s cn68xxp1; +struct cvmx_pemx_cfg_wr_s cn70xx; +struct cvmx_pemx_cfg_wr_s cn70xxp1; +struct cvmx_pemx_cfg_wr_s cn73xx; +struct cvmx_pemx_cfg_wr_s cn78xx; +struct cvmx_pemx_cfg_wr_s cn78xxp1; +struct cvmx_pemx_cfg_wr_s cnf71xx; +struct cvmx_pemx_cfg_wr_s cnf75xx; +}; + +typedef union cvmx_pemx_cfg_wr cvmx_pemx_cfg_wr_t ; + +/** +* cvmx_pem#_clk_en +* +* This register contains the clock enable for ECLK and PCE_CLK. +* +*/ +union cvmx_pemx_clk_en { +u64 u64; +struct cvmx_pemx_clk_en_s { +u64 reserved_2_63 :62 ; +u64 pceclk_gate :1 ; +u64 csclk_gate :1 ; + } s; +struct cvmx_pemx_clk_en_s cn70xx; +struct cvmx_pemx_clk_en_s cn70xxp1; +struct cvmx_pemx_clk_en_s cn73xx; +struct cvmx_pemx_clk_en_s cn78xx; +struct cvmx_pemx_clk_en_s cn78xxp1; +struct cvmx_pemx_clk_en_s cnf75xx; +}; + +typedef union cvmx_pemx_clk_en cvmx_pemx_clk_en_t ; + +/** +* cvmx_pem#_cpl_lut_valid +* +* This register specifies the bit set for an outstanding tag read. +* +*/ +union cvmx_pemx_cpl_lut_valid { +u64 u64; +struct cvmx_pemx_cpl_lut_valid_s { +u64 tag :64 ; + } s; +struct cvmx_pemx_cpl_lut_valid_cn61xx { +u64 reserved_32_63 :32 ; +u64 tag :32 ; + } cn61xx; +struct cvmx_pemx_cpl_lut_valid_cn61xx cn63xx; +struct cvmx_pemx_cpl_lut_valid_cn61xx cn63xxp1; +struct cvmx_pemx_cpl_lut_valid_cn61xx cn66xx; +struct cvmx_pemx_cpl_lut_valid_cn61xx cn68xx; +struct cvmx_pemx_cpl_lut_valid_cn61xx cn68xxp1; +struct cvmx_pemx_cpl_lut_valid_cn61xx cn70xx; +struct cvmx_pemx_cpl_lut_valid_cn61xx cn70xxp1; +struct cvmx_pemx_cpl_lut_valid_s cn73xx; +struct cvmx_pemx_cpl_lut_valid_s cn78xx; +struct cvmx_pemx_cpl_lut_valid_s cn78xxp1; +struct cvmx_pemx_cpl_lut_valid_cn61xx cnf71xx; +struct cvmx_pemx_cpl_lut_valid_s cnf75xx; +}; + +typedef union cvmx_pemx_cpl_lut_valid cvmx_pemx_cpl_lut_valid_t ; + +/** +* cvmx_pem#_ctl_status +* +* This is a general control and status register of the PEM. +* +*/ +union cvmx_pemx_ctl_status { +u64 u64; +struct cvmx_pemx_ctl_status_s { +u64 reserved_51_63 :13 ; +u64 inv_dpar :1 ; +u64 inv_hpar :1 ; +u64 inv_rpar :1 ; +u64 auto_sd :1 ; +u64 dnum :5 ; +u64 pbus :8 ; +u64 reserved_32_33 :2 ; +u64 cfg_rtry :16 ; +u64 reserved_12_15 :4 ; +u64 pm_xtoff :1 ; +u64 pm_xpme :1 ; +u64 ob_p_cmd :1 ; +u64 reserved_7_8 :2 ; +u64 nf_ecrc :1 ; +u64 dly_one :1 ; +u64 lnk_enb :1 ; +u64 ro_ctlp :1 ; +u64 fast_lm :1 ; +u64 inv_ecrc :1 ; +u64 inv_lcrc :1 ; + } s; +struct cvmx_pemx_ctl_status_cn61xx { +u64 reserved_48_63 :16 ; +u64 auto_sd :1 ; +u64 dnum :5 ; +u64 pbus :8 ; +u64 reserved_32_33 :2 ; +u64 cfg_rtry :16 ; +u64 reserved_12_15 :4 ; +u64 pm_xtoff :1 ; +u64 pm_xpme :1 ; +u64 ob_p_cmd :1 ; +u64 reserved_7_8 :2 ; +u64 nf_ecrc :1 ; +u64 dly_one :1 ; +u64 lnk_enb :1 ; +u64 ro_ctlp :1 ; +u64 fast_lm :1 ; +u64 inv_ecrc :1 ; +u64 inv_lcrc :1 ; + } cn61xx; +struct cvmx_pemx_ctl_status_cn61xx cn63xx; +struct cvmx_pemx_ctl_status_cn61xx cn63xxp1; +struct cvmx_pemx_ctl_status_cn61xx cn66xx; +struct cvmx_pemx_ctl_status_cn61xx cn68xx; +struct cvmx_pemx_ctl_status_cn61xx cn68xxp1; +struct cvmx_pemx_ctl_status_s cn70xx; +struct cvmx_pemx_ctl_status_s cn70xxp1; +struct cvmx_pemx_ctl_status_cn73xx { +u64 reserved_51_63 :13 ; +u64 inv_dpar :1 ; +u64 reserved_48_49 :2 ; +u64 auto_sd :1 ; +u64 dnum :5 ; +u64 pbus :8 ; +u64 reserved_32_33 :2 ; +u64 cfg_rtry :16 ; +u64 reserved_12_15 :4 ; +u64 pm_xtoff :1 ; +u64 pm_xpme :1 ; +u64 ob_p_cmd :1 ; +u64 reserved_7_8 :2 ; +u64 nf_ecrc :1 ; +u64 dly_one :1 ; +u64 lnk_enb :1 ; +u64 ro_ctlp :1 ; +u64 fast_lm :1 ; +u64 inv_ecrc :1 ; +u64 inv_lcrc :1 ; + } cn73xx; +struct cvmx_pemx_ctl_status_cn73xx cn78xx; +struct cvmx_pemx_ctl_status_cn73xx cn78xxp1; +struct cvmx_pemx_ctl_status_cn61xx cnf71xx; +struct cvmx_pemx_ctl_status_cn73xx cnf75xx; +}; + +typedef union cvmx_pemx_ctl_status cvmx_pemx_ctl_status_t ; + +/** +* cvmx_pem#_ctl_status2 +* +* This register contains additional general control and status of the PEM. +* +*/ +union cvmx_pemx_ctl_status2 { +u64 u64; +struct cvmx_pemx_ctl_status2_s { +u64 reserved_16_63 :48 ; +u64 no_fwd_prg :16 ; + } s; +struct cvmx_pemx_ctl_status2_s cn73xx; +struct cvmx_pemx_ctl_status2_s cn78xx; +struct cvmx_pemx_ctl_status2_s cn78xxp1; +struct cvmx_pemx_ctl_status2_s cnf75xx; +}; + +typedef union cvmx_pemx_ctl_status2 cvmx_pemx_ctl_status2_t ; + +/** +* cvmx_pem#_dbg_info +* +* This is a debug information register of the PEM. +* +*/ +union cvmx_pemx_dbg_info { +u64 u64; +struct cvmx_pemx_dbg_info_s { +u64 reserved_62_63 :2 ; +u64 m2s_c_dbe :1 ; +u64 m2s_c_sbe :1 ; +u64 m2s_d_dbe :1 ; +u64 m2s_d_sbe :1 ; +u64 qhdr_b1_dbe :1 ; +u64 qhdr_b1_sbe :1 ; +u64 qhdr_b0_dbe :1 ; +u64 qhdr_b0_sbe :1 ; +u64 rtry_dbe :1 ; +u64 rtry_sbe :1 ; +u64 reserved_50_51 :2 ; +u64 c_d1_dbe :1 ; +u64 c_d1_sbe :1 ; +u64 c_d0_dbe :1 ; +u64 c_d0_sbe :1 ; +u64 reserved_34_45 :12 ; +u64 datq_pe :1 ; +u64 reserved_31_32 :2 ; +u64 ecrc_e :1 ; +u64 rawwpp :1 ; +u64 racpp :1 ; +u64 ramtlp :1 ; +u64 rarwdns :1 ; +u64 caar :1 ; +u64 racca :1 ; +u64 racur :1 ; +u64 rauc :1 ; +u64 rqo :1 ; +u64 fcuv :1 ; +u64 rpe :1 ; +u64 fcpvwt :1 ; +u64 dpeoosd :1 ; +u64 rtwdle :1 ; +u64 rdwdle :1 ; +u64 mre :1 ; +u64 rte :1 ; +u64 acto :1 ; +u64 rvdm :1 ; +u64 rumep :1 ; +u64 rptamrc :1 ; +u64 rpmerc :1 ; +u64 rfemrc :1 ; +u64 rnfemrc :1 ; +u64 rcemrc :1 ; +u64 rpoison :1 ; +u64 recrce :1 ; +u64 rtlplle :1 ; +u64 rtlpmal :1 ; +u64 spoison :1 ; + } s; +struct cvmx_pemx_dbg_info_cn61xx { +u64 reserved_31_63 :33 ; +u64 ecrc_e :1 ; +u64 rawwpp :1 ; +u64 racpp :1 ; +u64 ramtlp :1 ; +u64 rarwdns :1 ; +u64 caar :1 ; +u64 racca :1 ; +u64 racur :1 ; +u64 rauc :1 ; +u64 rqo :1 ; +u64 fcuv :1 ; +u64 rpe :1 ; +u64 fcpvwt :1 ; +u64 dpeoosd :1 ; +u64 rtwdle :1 ; +u64 rdwdle :1 ; +u64 mre :1 ; +u64 rte :1 ; +u64 acto :1 ; +u64 rvdm :1 ; +u64 rumep :1 ; +u64 rptamrc :1 ; +u64 rpmerc :1 ; +u64 rfemrc :1 ; +u64 rnfemrc :1 ; +u64 rcemrc :1 ; +u64 rpoison :1 ; +u64 recrce :1 ; +u64 rtlplle :1 ; +u64 rtlpmal :1 ; +u64 spoison :1 ; + } cn61xx; +struct cvmx_pemx_dbg_info_cn61xx cn63xx; +struct cvmx_pemx_dbg_info_cn61xx cn63xxp1; +struct cvmx_pemx_dbg_info_cn61xx cn66xx; +struct cvmx_pemx_dbg_info_cn61xx cn68xx; +struct cvmx_pemx_dbg_info_cn61xx cn68xxp1; +struct cvmx_pemx_dbg_info_cn70xx { +u64 reserved_46_63 :18 ; +u64 c_c_dbe :1 ; +u64 c_c_sbe :1 ; +u64 c_d_dbe :1 ; +u64 c_d_sbe :1 ; +u64 n_c_dbe :1 ; +u64 n_c_sbe :1 ; +u64 n_d_dbe :1 ; +u64 n_d_sbe :1 ; +u64 p_c_dbe :1 ; +u64 p_c_sbe :1 ; +u64 p_d_dbe :1 ; +u64 p_d_sbe :1 ; +u64 datq_pe :1 ; +u64 hdrq_pe :1 ; +u64 rtry_pe :1 ; +u64 ecrc_e :1 ; +u64 rawwpp :1 ; +u64 racpp :1 ; +u64 ramtlp :1 ; +u64 rarwdns :1 ; +u64 caar :1 ; +u64 racca :1 ; +u64 racur :1 ; +u64 rauc :1 ; +u64 rqo :1 ; +u64 fcuv :1 ; +u64 rpe :1 ; +u64 fcpvwt :1 ; +u64 dpeoosd :1 ; +u64 rtwdle :1 ; +u64 rdwdle :1 ; +u64 mre :1 ; +u64 rte :1 ; +u64 acto :1 ; +u64 rvdm :1 ; +u64 rumep :1 ; +u64 rptamrc :1 ; +u64 rpmerc :1 ; +u64 rfemrc :1 ; +u64 rnfemrc :1 ; +u64 rcemrc :1 ; +u64 rpoison :1 ; +u64 recrce :1 ; +u64 rtlplle :1 ; +u64 rtlpmal :1 ; +u64 spoison :1 ; + } cn70xx; +struct cvmx_pemx_dbg_info_cn70xx cn70xxp1; +struct cvmx_pemx_dbg_info_cn73xx { +u64 reserved_62_63 :2 ; +u64 m2s_c_dbe :1 ; +u64 m2s_c_sbe :1 ; +u64 m2s_d_dbe :1 ; +u64 m2s_d_sbe :1 ; +u64 qhdr_b1_dbe :1 ; +u64 qhdr_b1_sbe :1 ; +u64 qhdr_b0_dbe :1 ; +u64 qhdr_b0_sbe :1 ; +u64 rtry_dbe :1 ; +u64 rtry_sbe :1 ; +u64 c_c_dbe :1 ; +u64 c_c_sbe :1 ; +u64 c_d1_dbe :1 ; +u64 c_d1_sbe :1 ; +u64 c_d0_dbe :1 ; +u64 c_d0_sbe :1 ; +u64 n_c_dbe :1 ; +u64 n_c_sbe :1 ; +u64 n_d1_dbe :1 ; +u64 n_d1_sbe :1 ; +u64 n_d0_dbe :1 ; +u64 n_d0_sbe :1 ; +u64 p_c_dbe :1 ; +u64 p_c_sbe :1 ; +u64 p_d1_dbe :1 ; +u64 p_d1_sbe :1 ; +u64 p_d0_dbe :1 ; +u64 p_d0_sbe :1 ; +u64 datq_pe :1 ; +u64 bmd_e :1 ; +u64 lofp :1 ; +u64 ecrc_e :1 ; +u64 rawwpp :1 ; +u64 racpp :1 ; +u64 ramtlp :1 ; +u64 rarwdns :1 ; +u64 caar :1 ; +u64 racca :1 ; +u64 racur :1 ; +u64 rauc :1 ; +u64 rqo :1 ; +u64 fcuv :1 ; +u64 rpe :1 ; +u64 fcpvwt :1 ; +u64 dpeoosd :1 ; +u64 rtwdle :1 ; +u64 rdwdle :1 ; +u64 mre :1 ; +u64 rte :1 ; +u64 acto :1 ; +u64 rvdm :1 ; +u64 rumep :1 ; +u64 rptamrc :1 ; +u64 rpmerc :1 ; +u64 rfemrc :1 ; +u64 rnfemrc :1 ; +u64 rcemrc :1 ; +u64 rpoison :1 ; +u64 recrce :1 ; +u64 rtlplle :1 ; +u64 rtlpmal :1 ; +u64 spoison :1 ; + } cn73xx; +struct cvmx_pemx_dbg_info_cn73xx cn78xx; +struct cvmx_pemx_dbg_info_cn78xxp1 { +u64 reserved_58_63 :6 ; +u64 qhdr_b1_dbe :1 ; +u64 qhdr_b1_sbe :1 ; +u64 qhdr_b0_dbe :1 ; +u64 qhdr_b0_sbe :1 ; +u64 rtry_dbe :1 ; +u64 rtry_sbe :1 ; +u64 c_c_dbe :1 ; +u64 c_c_sbe :1 ; +u64 c_d1_dbe :1 ; +u64 c_d1_sbe :1 ; +u64 c_d0_dbe :1 ; +u64 c_d0_sbe :1 ; +u64 n_c_dbe :1 ; +u64 n_c_sbe :1 ; +u64 n_d1_dbe :1 ; +u64 n_d1_sbe :1 ; +u64 n_d0_dbe :1 ; +u64 n_d0_sbe :1 ; +u64 p_c_dbe :1 ; +u64 p_c_sbe :1 ; +u64 p_d1_dbe :1 ; +u64 p_d1_sbe :1 ; +u64 p_d0_dbe :1 ; +u64 p_d0_sbe :1 ; +u64 datq_pe :1 ; +u64 reserved_32_32 :1 ; +u64 lofp :1 ; +u64 ecrc_e :1 ; +u64 rawwpp :1 ; +u64 racpp :1 ; +u64 ramtlp :1 ; +u64 rarwdns :1 ; +u64 caar :1 ; +u64 racca :1 ; +u64 racur :1 ; +u64 rauc :1 ; +u64 rqo :1 ; +u64 fcuv :1 ; +u64 rpe :1 ; +u64 fcpvwt :1 ; +u64 dpeoosd :1 ; +u64 rtwdle :1 ; +u64 rdwdle :1 ; +u64 mre :1 ; +u64 rte :1 ; +u64 acto :1 ; +u64 rvdm :1 ; +u64 rumep :1 ; +u64 rptamrc :1 ; +u64 rpmerc :1 ; +u64 rfemrc :1 ; +u64 rnfemrc :1 ; +u64 rcemrc :1 ; +u64 rpoison :1 ; +u64 recrce :1 ; +u64 rtlplle :1 ; +u64 rtlpmal :1 ; +u64 spoison :1 ; + } cn78xxp1; +struct cvmx_pemx_dbg_info_cn61xx cnf71xx; +struct cvmx_pemx_dbg_info_cn73xx cnf75xx; +}; + +typedef union cvmx_pemx_dbg_info cvmx_pemx_dbg_info_t ; + +/** +* cvmx_pem#_dbg_info_en +* +* "PEM#_DBG_INFO_EN = PEM Debug Information Enable +* Allows PEM_DBG_INFO to generate interrupts when cooresponding enable bit is set." +*/ +union cvmx_pemx_dbg_info_en { +u64 u64; +struct cvmx_pemx_dbg_info_en_s { +u64 reserved_46_63 :18 ; +u64 tpcdbe1 :1 ; +u64 tpcsbe1 :1 ; +u64 tpcdbe0 :1 ; +u64 tpcsbe0 :1 ; +u64 tnfdbe1 :1 ; +u64 tnfsbe1 :1 ; +u64 tnfdbe0 :1 ; +u64 tnfsbe0 :1 ; +u64 tpfdbe1 :1 ; +u64 tpfsbe1 :1 ; +u64 tpfdbe0 :1 ; +u64 tpfsbe0 :1 ; +u64 datq_pe :1 ; +u64 hdrq_pe :1 ; +u64 rtry_pe :1 ; +u64 ecrc_e :1 ; +u64 rawwpp :1 ; +u64 racpp :1 ; +u64 ramtlp :1 ; +u64 rarwdns :1 ; +u64 caar :1 ; +u64 racca :1 ; +u64 racur :1 ; +u64 rauc :1 ; +u64 rqo :1 ; +u64 fcuv :1 ; +u64 rpe :1 ; +u64 fcpvwt :1 ; +u64 dpeoosd :1 ; +u64 rtwdle :1 ; +u64 rdwdle :1 ; +u64 mre :1 ; +u64 rte :1 ; +u64 acto :1 ; +u64 rvdm :1 ; +u64 rumep :1 ; +u64 rptamrc :1 ; +u64 rpmerc :1 ; +u64 rfemrc :1 ; +u64 rnfemrc :1 ; +u64 rcemrc :1 ; +u64 rpoison :1 ; +u64 recrce :1 ; +u64 rtlplle :1 ; +u64 rtlpmal :1 ; +u64 spoison :1 ; + } s; +struct cvmx_pemx_dbg_info_en_cn61xx { +u64 reserved_31_63 :33 ; +u64 ecrc_e :1 ; +u64 rawwpp :1 ; +u64 racpp :1 ; +u64 ramtlp :1 ; +u64 rarwdns :1 ; +u64 caar :1 ; +u64 racca :1 ; +u64 racur :1 ; +u64 rauc :1 ; +u64 rqo :1 ; +u64 fcuv :1 ; +u64 rpe :1 ; +u64 fcpvwt :1 ; +u64 dpeoosd :1 ; +u64 rtwdle :1 ; +u64 rdwdle :1 ; +u64 mre :1 ; +u64 rte :1 ; +u64 acto :1 ; +u64 rvdm :1 ; +u64 rumep :1 ; +u64 rptamrc :1 ; +u64 rpmerc :1 ; +u64 rfemrc :1 ; +u64 rnfemrc :1 ; +u64 rcemrc :1 ; +u64 rpoison :1 ; +u64 recrce :1 ; +u64 rtlplle :1 ; +u64 rtlpmal :1 ; +u64 spoison :1 ; + } cn61xx; +struct cvmx_pemx_dbg_info_en_cn61xx cn63xx; +struct cvmx_pemx_dbg_info_en_cn61xx cn63xxp1; +struct cvmx_pemx_dbg_info_en_cn61xx cn66xx; +struct cvmx_pemx_dbg_info_en_cn61xx cn68xx; +struct cvmx_pemx_dbg_info_en_cn61xx cn68xxp1; +struct cvmx_pemx_dbg_info_en_s cn70xx; +struct cvmx_pemx_dbg_info_en_s cn70xxp1; +struct cvmx_pemx_dbg_info_en_cn61xx cnf71xx; +}; + +typedef union cvmx_pemx_dbg_info_en cvmx_pemx_dbg_info_en_t ; + +/** +* cvmx_pem#_diag_status +* +* This register contains selection control for the core diagnostic bus. +* +*/ +union cvmx_pemx_diag_status { +u64 u64; +struct cvmx_pemx_diag_status_s { +u64 reserved_9_63 :55 ; +u64 pwrdwn :3 ; +u64 pm_dst :3 ; +u64 pm_stat :1 ; +u64 pm_en :1 ; +u64 aux_en :1 ; + } s; +struct cvmx_pemx_diag_status_cn61xx { +u64 reserved_4_63 :60 ; +u64 pm_dst :1 ; +u64 pm_stat :1 ; +u64 pm_en :1 ; +u64 aux_en :1 ; + } cn61xx; +struct cvmx_pemx_diag_status_cn61xx cn63xx; +struct cvmx_pemx_diag_status_cn61xx cn63xxp1; +struct cvmx_pemx_diag_status_cn61xx cn66xx; +struct cvmx_pemx_diag_status_cn61xx cn68xx; +struct cvmx_pemx_diag_status_cn61xx cn68xxp1; +struct cvmx_pemx_diag_status_cn70xx { +u64 reserved_63_6 :58 ; +u64 pm_dst :3 ; +u64 pm_stat :1 ; +u64 pm_en :1 ; +u64 aux_en :1 ; + } cn70xx; +struct cvmx_pemx_diag_status_cn70xx cn70xxp1; +struct cvmx_pemx_diag_status_cn73xx { +u64 reserved_63_9 :55 ; +u64 pwrdwn :3 ; +u64 pm_dst :3 ; +u64 pm_stat :1 ; +u64 pm_en :1 ; +u64 aux_en :1 ; + } cn73xx; +struct cvmx_pemx_diag_status_cn73xx cn78xx; +struct cvmx_pemx_diag_status_cn73xx cn78xxp1; +struct cvmx_pemx_diag_status_cn61xx cnf71xx; +struct cvmx_pemx_diag_status_cn73xx cnf75xx; +}; + +typedef union cvmx_pemx_diag_status cvmx_pemx_diag_status_t ; + +/** +* cvmx_pem#_ecc_ena +* +* Contains enables for TLP FIFO ECC RAMs. +* +*/ +union cvmx_pemx_ecc_ena { +u64 u64; +struct cvmx_pemx_ecc_ena_s { +u64 reserved_35_63 :29 ; +u64 qhdr_b1_ena :1 ; +u64 qhdr_b0_ena :1 ; +u64 rtry_ena :1 ; +u64 reserved_11_31 :21 ; +u64 m2s_c_ena :1 ; +u64 m2s_d_ena :1 ; +u64 c_c_ena :1 ; +u64 c_d1_ena :1 ; +u64 c_d0_ena :1 ; +u64 reserved_0_5 :6 ; + } s; +struct cvmx_pemx_ecc_ena_cn70xx { +u64 reserved_6_63 :58 ; +u64 tlp_nc_ena :1 ; +u64 tlp_nd_ena :1 ; +u64 tlp_pc_ena :1 ; +u64 tlp_pd_ena :1 ; +u64 tlp_cc_ena :1 ; +u64 tlp_cd_ena :1 ; + } cn70xx; +struct cvmx_pemx_ecc_ena_cn70xx cn70xxp1; +struct cvmx_pemx_ecc_ena_cn73xx { +u64 reserved_35_63 :29 ; +u64 qhdr_b1_ena :1 ; +u64 qhdr_b0_ena :1 ; +u64 rtry_ena :1 ; +u64 reserved_11_31 :21 ; +u64 m2s_c_ena :1 ; +u64 m2s_d_ena :1 ; +u64 c_c_ena :1 ; +u64 c_d1_ena :1 ; +u64 c_d0_ena :1 ; +u64 n_c_ena :1 ; +u64 n_d1_ena :1 ; +u64 n_d0_ena :1 ; +u64 p_c_ena :1 ; +u64 p_d1_ena :1 ; +u64 p_d0_ena :1 ; + } cn73xx; +struct cvmx_pemx_ecc_ena_cn73xx cn78xx; +struct cvmx_pemx_ecc_ena_cn78xxp1 { +u64 reserved_35_63 :29 ; +u64 qhdr_b1_ena :1 ; +u64 qhdr_b0_ena :1 ; +u64 rtry_ena :1 ; +u64 reserved_9_31 :23 ; +u64 c_c_ena :1 ; +u64 c_d1_ena :1 ; +u64 c_d0_ena :1 ; +u64 n_c_ena :1 ; +u64 n_d1_ena :1 ; +u64 n_d0_ena :1 ; +u64 p_c_ena :1 ; +u64 p_d1_ena :1 ; +u64 p_d0_ena :1 ; + } cn78xxp1; +struct cvmx_pemx_ecc_ena_cn73xx cnf75xx; +}; + +typedef union cvmx_pemx_ecc_ena cvmx_pemx_ecc_ena_t ; + +/** +* cvmx_pem#_ecc_synd_ctrl +* +* This register contains syndrome control for TLP FIFO ECC RAMs. +* +*/ +union cvmx_pemx_ecc_synd_ctrl { +u64 u64; +struct cvmx_pemx_ecc_synd_ctrl_s { +u64 reserved_38_63 :26 ; +u64 qhdr_b1_syn :2 ; +u64 qhdr_b0_syn :2 ; +u64 rtry_syn :2 ; +u64 reserved_22_31 :10 ; +u64 m2s_c_syn :2 ; +u64 m2s_d_syn :2 ; +u64 c_c_syn :2 ; +u64 c_d1_syn :2 ; +u64 c_d0_syn :2 ; +u64 reserved_0_11 :12 ; + } s; +struct cvmx_pemx_ecc_synd_ctrl_cn70xx { +u64 reserved_12_63 :52 ; +u64 tlp_nc_syn :2 ; +u64 tlp_nd_syn :2 ; +u64 tlp_pc_syn :2 ; +u64 tlp_pd_syn :2 ; +u64 tlp_cc_syn :2 ; +u64 tlp_cd_syn :2 ; + } cn70xx; +struct cvmx_pemx_ecc_synd_ctrl_cn70xx cn70xxp1; +struct cvmx_pemx_ecc_synd_ctrl_cn73xx { +u64 reserved_38_63 :26 ; +u64 qhdr_b1_syn :2 ; +u64 qhdr_b0_syn :2 ; +u64 rtry_syn :2 ; +u64 reserved_22_31 :10 ; +u64 m2s_c_syn :2 ; +u64 m2s_d_syn :2 ; +u64 c_c_syn :2 ; +u64 c_d1_syn :2 ; +u64 c_d0_syn :2 ; +u64 n_c_syn :2 ; +u64 n_d1_syn :2 ; +u64 n_d0_syn :2 ; +u64 p_c_syn :2 ; +u64 p_d1_syn :2 ; +u64 p_d0_syn :2 ; + } cn73xx; +struct cvmx_pemx_ecc_synd_ctrl_cn73xx cn78xx; +struct cvmx_pemx_ecc_synd_ctrl_cn78xxp1 { +u64 reserved_38_63 :26 ; +u64 qhdr_b1_syn :2 ; +u64 qhdr_b0_syn :2 ; +u64 rtry_syn :2 ; +u64 reserved_18_31 :14 ; +u64 c_c_syn :2 ; +u64 c_d1_syn :2 ; +u64 c_d0_syn :2 ; +u64 n_c_syn :2 ; +u64 n_d1_syn :2 ; +u64 n_d0_syn :2 ; +u64 p_c_syn :2 ; +u64 p_d1_syn :2 ; +u64 p_d0_syn :2 ; + } cn78xxp1; +struct cvmx_pemx_ecc_synd_ctrl_cn73xx cnf75xx; +}; + +typedef union cvmx_pemx_ecc_synd_ctrl cvmx_pemx_ecc_synd_ctrl_t ; + +/** +* cvmx_pem#_eco +*/ +union cvmx_pemx_eco { +u64 u64; +struct cvmx_pemx_eco_s { +u64 reserved_8_63 :56 ; +u64 eco_rw :8 ; + } s; +struct cvmx_pemx_eco_s cn73xx; +struct cvmx_pemx_eco_s cn78xx; +struct cvmx_pemx_eco_s cnf75xx; +}; + +typedef union cvmx_pemx_eco cvmx_pemx_eco_t ; + +/** +* cvmx_pem#_flr_glblcnt_ctl +*/ +union cvmx_pemx_flr_glblcnt_ctl { +u64 u64; +struct cvmx_pemx_flr_glblcnt_ctl_s { +u64 reserved_4_63 :60 ; +u64 chge :1 ; +u64 inc :1 ; +u64 delta :2 ; + } s; +struct cvmx_pemx_flr_glblcnt_ctl_s cn73xx; +struct cvmx_pemx_flr_glblcnt_ctl_s cn78xx; +struct cvmx_pemx_flr_glblcnt_ctl_s cnf75xx; +}; + +typedef union cvmx_pemx_flr_glblcnt_ctl cvmx_pemx_flr_glblcnt_ctl_t ; + +/** +* cvmx_pem#_flr_pf0_vf_stopreq +* +* Hardware automatically sets the STOPREQ bit for the VF when it enters a +* Function Level Reset (FLR). Software is responsible for clearing the STOPREQ +* bit but must not do so prior to hardware taking down the FLR, which could be +* as long as 100ms. It may be appropriate for software to wait longer before clearing +* STOPREQ, software may need to drain deep DPI queues for example. +* Whenever PEM receives a request mastered by CNXXXX over S2M (i.e. P or NP), +* when STOPREQ is set for the function, PEM will discard the outgoing request +* before sending it to the PCIe core. If a NP, PEM will schedule an immediate +* SWI_RSP_ERROR completion for the request - no timeout is required. +* +* STOPREQ mimics the behavior of PCIEEPVF()_CFG001[ME] for outbound requests that will +* master the PCIe bus (P and NP). +* +* Note that STOPREQ will have no effect on completions returned by CNXXXX over the S2M, +* nor on M2S traffic. +*/ +union cvmx_pemx_flr_pf0_vf_stopreq { +u64 u64; +struct cvmx_pemx_flr_pf0_vf_stopreq_s { +u64 vf_stopreq :64 ; + } s; +struct cvmx_pemx_flr_pf0_vf_stopreq_s cn73xx; +struct cvmx_pemx_flr_pf0_vf_stopreq_s cn78xx; +struct cvmx_pemx_flr_pf0_vf_stopreq_s cnf75xx; +}; + +typedef union cvmx_pemx_flr_pf0_vf_stopreq cvmx_pemx_flr_pf0_vf_stopreq_t ; + +/** +* cvmx_pem#_flr_pf_stopreq +* +* Hardware automatically sets the STOPREQ bit for the PF when it enters a +* Function Level Reset (FLR). Software is responsible for clearing the STOPREQ +* bit but must not do so prior to hardware taking down the FLR, which could be +* as long as 100ms. It may be appropriate for software to wait longer before clearing +* STOPREQ, software may need to drain deep DPI queues for example. +* Whenever PEM receives a PF or child VF request mastered by CNXXXX over S2M (i.e. P or NP), +* when STOPREQ is set for the function, PEM will discard the outgoing request +* before sending it to the PCIe core. If a NP, PEM will schedule an immediate +* SWI_RSP_ERROR completion for the request - no timeout is required. +* +* STOPREQ mimics the behavior of PCIEEP()_CFG001[ME] for outbound requests that will +* master the PCIe bus (P and NP). +* +* STOPREQ will have no effect on completions returned by CNXXXX over the S2M, +* nor on M2S traffic. +* +* When a PF()_STOPREQ is set, none of the associated +* PEM()_FLR_PF()_VF_STOPREQ[VF_STOPREQ] will be set. +* +* STOPREQ is reset when the MAC is reset, and is not reset after a chip soft reset. +*/ +union cvmx_pemx_flr_pf_stopreq { +u64 u64; +struct cvmx_pemx_flr_pf_stopreq_s { +u64 reserved_1_63 :63 ; +u64 pf0_stopreq :1 ; + } s; +struct cvmx_pemx_flr_pf_stopreq_s cn73xx; +struct cvmx_pemx_flr_pf_stopreq_s cn78xx; +struct cvmx_pemx_flr_pf_stopreq_s cnf75xx; +}; + +typedef union cvmx_pemx_flr_pf_stopreq cvmx_pemx_flr_pf_stopreq_t ; + +/** +* cvmx_pem#_flr_stopreq_ctl +*/ +union cvmx_pemx_flr_stopreq_ctl { +u64 u64; +struct cvmx_pemx_flr_stopreq_ctl_s { +u64 reserved_1_63 :63 ; +u64 stopreqclr :1 ; + } s; +struct cvmx_pemx_flr_stopreq_ctl_s cn78xx; +struct cvmx_pemx_flr_stopreq_ctl_s cnf75xx; +}; + +typedef union cvmx_pemx_flr_stopreq_ctl cvmx_pemx_flr_stopreq_ctl_t ; + +/** +* cvmx_pem#_flr_zombie_ctl +*/ +union cvmx_pemx_flr_zombie_ctl { +u64 u64; +struct cvmx_pemx_flr_zombie_ctl_s { +u64 reserved_10_63 :54 ; +u64 exp :10 ; + } s; +struct cvmx_pemx_flr_zombie_ctl_s cn73xx; +struct cvmx_pemx_flr_zombie_ctl_s cn78xx; +struct cvmx_pemx_flr_zombie_ctl_s cnf75xx; +}; + +typedef union cvmx_pemx_flr_zombie_ctl cvmx_pemx_flr_zombie_ctl_t ; + +/** +* cvmx_pem#_inb_read_credits +* +* This register contains the number of in-flight read operations from PCIe core to SLI. +* +*/ +union cvmx_pemx_inb_read_credits { +u64 u64; +struct cvmx_pemx_inb_read_credits_s { +u64 reserved_7_63 :57 ; +u64 num :7 ; + } s; +struct cvmx_pemx_inb_read_credits_cn61xx { +u64 reserved_6_63 :58 ; +u64 num :6 ; + } cn61xx; +struct cvmx_pemx_inb_read_credits_cn61xx cn66xx; +struct cvmx_pemx_inb_read_credits_cn61xx cn68xx; +struct cvmx_pemx_inb_read_credits_cn61xx cn70xx; +struct cvmx_pemx_inb_read_credits_cn61xx cn70xxp1; +struct cvmx_pemx_inb_read_credits_s cn73xx; +struct cvmx_pemx_inb_read_credits_s cn78xx; +struct cvmx_pemx_inb_read_credits_s cn78xxp1; +struct cvmx_pemx_inb_read_credits_cn61xx cnf71xx; +struct cvmx_pemx_inb_read_credits_s cnf75xx; +}; + +typedef union cvmx_pemx_inb_read_credits cvmx_pemx_inb_read_credits_t ; + +/** +* cvmx_pem#_int_enb +* +* "PEM#_INT_ENB = PEM Interrupt Enable +* Enables interrupt conditions for the PEM to generate an RSL interrupt." +*/ +union cvmx_pemx_int_enb { +u64 u64; +struct cvmx_pemx_int_enb_s { +u64 reserved_14_63 :50 ; +u64 crs_dr :1 ; +u64 crs_er :1 ; +u64 rdlk :1 ; +u64 exc :1 ; +u64 un_bx :1 ; +u64 un_b2 :1 ; +u64 un_b1 :1 ; +u64 up_bx :1 ; +u64 up_b2 :1 ; +u64 up_b1 :1 ; +u64 pmem :1 ; +u64 pmei :1 ; +u64 se :1 ; +u64 aeri :1 ; + } s; +struct cvmx_pemx_int_enb_s cn61xx; +struct cvmx_pemx_int_enb_s cn63xx; +struct cvmx_pemx_int_enb_s cn63xxp1; +struct cvmx_pemx_int_enb_s cn66xx; +struct cvmx_pemx_int_enb_s cn68xx; +struct cvmx_pemx_int_enb_s cn68xxp1; +struct cvmx_pemx_int_enb_s cn70xx; +struct cvmx_pemx_int_enb_s cn70xxp1; +struct cvmx_pemx_int_enb_s cnf71xx; +}; + +typedef union cvmx_pemx_int_enb cvmx_pemx_int_enb_t ; + +/** +* cvmx_pem#_int_enb_int +* +* "PEM#_INT_ENB_INT = PEM Interrupt Enable +* Enables interrupt conditions for the PEM to generate an RSL interrupt." +*/ +union cvmx_pemx_int_enb_int { +u64 u64; +struct cvmx_pemx_int_enb_int_s { +u64 reserved_14_63 :50 ; +u64 crs_dr :1 ; +u64 crs_er :1 ; +u64 rdlk :1 ; +u64 exc :1 ; +u64 un_bx :1 ; +u64 un_b2 :1 ; +u64 un_b1 :1 ; +u64 up_bx :1 ; +u64 up_b2 :1 ; +u64 up_b1 :1 ; +u64 pmem :1 ; +u64 pmei :1 ; +u64 se :1 ; +u64 aeri :1 ; + } s; +struct cvmx_pemx_int_enb_int_s cn61xx; +struct cvmx_pemx_int_enb_int_s cn63xx; +struct cvmx_pemx_int_enb_int_s cn63xxp1; +struct cvmx_pemx_int_enb_int_s cn66xx; +struct cvmx_pemx_int_enb_int_s cn68xx; +struct cvmx_pemx_int_enb_int_s cn68xxp1; +struct cvmx_pemx_int_enb_int_s cn70xx; +struct cvmx_pemx_int_enb_int_s cn70xxp1; +struct cvmx_pemx_int_enb_int_s cnf71xx; +}; + +typedef union cvmx_pemx_int_enb_int cvmx_pemx_int_enb_int_t ; + +/** +* cvmx_pem#_int_sum +* +* This register contains the different interrupt summary bits of the PEM. +* +*/ +union cvmx_pemx_int_sum { +u64 u64; +struct cvmx_pemx_int_sum_s { +u64 intd :1 ; +u64 intc :1 ; +u64 intb :1 ; +u64 inta :1 ; +u64 reserved_14_59 :46 ; +u64 crs_dr :1 ; +u64 crs_er :1 ; +u64 rdlk :1 ; +u64 exc :1 ; +u64 un_bx :1 ; +u64 un_b2 :1 ; +u64 un_b1 :1 ; +u64 up_bx :1 ; +u64 up_b2 :1 ; +u64 up_b1 :1 ; +u64 pmem :1 ; +u64 pmei :1 ; +u64 se :1 ; +u64 aeri :1 ; + } s; +struct cvmx_pemx_int_sum_cn61xx { +u64 reserved_14_63 :50 ; +u64 crs_dr :1 ; +u64 crs_er :1 ; +u64 rdlk :1 ; +u64 exc :1 ; +u64 un_bx :1 ; +u64 un_b2 :1 ; +u64 un_b1 :1 ; +u64 up_bx :1 ; +u64 up_b2 :1 ; +u64 up_b1 :1 ; +u64 pmem :1 ; +u64 pmei :1 ; +u64 se :1 ; +u64 aeri :1 ; + } cn61xx; +struct cvmx_pemx_int_sum_cn61xx cn63xx; +struct cvmx_pemx_int_sum_cn61xx cn63xxp1; +struct cvmx_pemx_int_sum_cn61xx cn66xx; +struct cvmx_pemx_int_sum_cn61xx cn68xx; +struct cvmx_pemx_int_sum_cn61xx cn68xxp1; +struct cvmx_pemx_int_sum_cn61xx cn70xx; +struct cvmx_pemx_int_sum_cn61xx cn70xxp1; +struct cvmx_pemx_int_sum_cn73xx { +u64 intd :1 ; +u64 intc :1 ; +u64 intb :1 ; +u64 inta :1 ; +u64 reserved_14_59 :46 ; +u64 crs_dr :1 ; +u64 crs_er :1 ; +u64 rdlk :1 ; +u64 reserved_10_10 :1 ; +u64 un_bx :1 ; +u64 un_b2 :1 ; +u64 un_b1 :1 ; +u64 up_bx :1 ; +u64 up_b2 :1 ; +u64 up_b1 :1 ; +u64 reserved_3_3 :1 ; +u64 pmei :1 ; +u64 se :1 ; +u64 aeri :1 ; + } cn73xx; +struct cvmx_pemx_int_sum_cn73xx cn78xx; +struct cvmx_pemx_int_sum_cn73xx cn78xxp1; +struct cvmx_pemx_int_sum_cn61xx cnf71xx; +struct cvmx_pemx_int_sum_cn73xx cnf75xx; +}; + +typedef union cvmx_pemx_int_sum cvmx_pemx_int_sum_t ; + +/** +* cvmx_pem#_on +* +* This register indicates that PEM is configured and ready. +* +*/ +union cvmx_pemx_on { +u64 u64; +struct cvmx_pemx_on_s { +u64 reserved_2_63 :62 ; +u64 pemoor :1 ; +u64 pemon :1 ; + } s; +struct cvmx_pemx_on_s cn70xx; +struct cvmx_pemx_on_s cn70xxp1; +struct cvmx_pemx_on_s cn73xx; +struct cvmx_pemx_on_s cn78xx; +struct cvmx_pemx_on_s cn78xxp1; +struct cvmx_pemx_on_s cnf75xx; +}; + +typedef union cvmx_pemx_on cvmx_pemx_on_t ; + +/** +* cvmx_pem#_p2n_bar0_start +* +* This register specifies the starting address for memory requests that are to be forwarded to +* the SLI in RC mode. +*/ +union cvmx_pemx_p2n_bar0_start { +u64 u64; +struct cvmx_pemx_p2n_bar0_start_s { +u64 reserved_0_63 :64 ; + } s; +struct cvmx_pemx_p2n_bar0_start_cn61xx { +u64 addr :50 ; +u64 reserved_0_13 :14 ; + } cn61xx; +struct cvmx_pemx_p2n_bar0_start_cn61xx cn63xx; +struct cvmx_pemx_p2n_bar0_start_cn61xx cn63xxp1; +struct cvmx_pemx_p2n_bar0_start_cn61xx cn66xx; +struct cvmx_pemx_p2n_bar0_start_cn61xx cn68xx; +struct cvmx_pemx_p2n_bar0_start_cn61xx cn68xxp1; +struct cvmx_pemx_p2n_bar0_start_cn61xx cn70xx; +struct cvmx_pemx_p2n_bar0_start_cn61xx cn70xxp1; +struct cvmx_pemx_p2n_bar0_start_cn73xx { +u64 addr :41 ; +u64 reserved_0_22 :23 ; + } cn73xx; +struct cvmx_pemx_p2n_bar0_start_cn73xx cn78xx; +struct cvmx_pemx_p2n_bar0_start_cn78xxp1 { +u64 addr :49 ; +u64 reserved_0_14 :15 ; + } cn78xxp1; +struct cvmx_pemx_p2n_bar0_start_cn61xx cnf71xx; +struct cvmx_pemx_p2n_bar0_start_cn73xx cnf75xx; +}; + +typedef union cvmx_pemx_p2n_bar0_start cvmx_pemx_p2n_bar0_start_t ; + +/** +* cvmx_pem#_p2n_bar1_start +* +* This register specifies the starting address for memory requests that are to be forwarded to +* the SLI in RC mode. +*/ +union cvmx_pemx_p2n_bar1_start { +u64 u64; +struct cvmx_pemx_p2n_bar1_start_s { +u64 addr :38 ; +u64 reserved_0_25 :26 ; + } s; +struct cvmx_pemx_p2n_bar1_start_s cn61xx; +struct cvmx_pemx_p2n_bar1_start_s cn63xx; +struct cvmx_pemx_p2n_bar1_start_s cn63xxp1; +struct cvmx_pemx_p2n_bar1_start_s cn66xx; +struct cvmx_pemx_p2n_bar1_start_s cn68xx; +struct cvmx_pemx_p2n_bar1_start_s cn68xxp1; +struct cvmx_pemx_p2n_bar1_start_s cn70xx; +struct cvmx_pemx_p2n_bar1_start_s cn70xxp1; +struct cvmx_pemx_p2n_bar1_start_s cn73xx; +struct cvmx_pemx_p2n_bar1_start_s cn78xx; +struct cvmx_pemx_p2n_bar1_start_s cn78xxp1; +struct cvmx_pemx_p2n_bar1_start_s cnf71xx; +struct cvmx_pemx_p2n_bar1_start_s cnf75xx; +}; + +typedef union cvmx_pemx_p2n_bar1_start cvmx_pemx_p2n_bar1_start_t ; + +/** +* cvmx_pem#_p2n_bar2_start +* +* This register specifies the starting address for memory requests that are to be forwarded to +* the SLI in RC mode. +*/ +union cvmx_pemx_p2n_bar2_start { +u64 u64; +struct cvmx_pemx_p2n_bar2_start_s { +u64 reserved_0_63 :64 ; + } s; +struct cvmx_pemx_p2n_bar2_start_cn61xx { +u64 addr :23 ; +u64 reserved_0_40 :41 ; + } cn61xx; +struct cvmx_pemx_p2n_bar2_start_cn61xx cn63xx; +struct cvmx_pemx_p2n_bar2_start_cn61xx cn63xxp1; +struct cvmx_pemx_p2n_bar2_start_cn61xx cn66xx; +struct cvmx_pemx_p2n_bar2_start_cn61xx cn68xx; +struct cvmx_pemx_p2n_bar2_start_cn61xx cn68xxp1; +struct cvmx_pemx_p2n_bar2_start_cn61xx cn70xx; +struct cvmx_pemx_p2n_bar2_start_cn61xx cn70xxp1; +struct cvmx_pemx_p2n_bar2_start_cn73xx { +u64 addr :19 ; +u64 reserved_0_44 :45 ; + } cn73xx; +struct cvmx_pemx_p2n_bar2_start_cn73xx cn78xx; +struct cvmx_pemx_p2n_bar2_start_cn73xx cn78xxp1; +struct cvmx_pemx_p2n_bar2_start_cn61xx cnf71xx; +struct cvmx_pemx_p2n_bar2_start_cn73xx cnf75xx; +}; + +typedef union cvmx_pemx_p2n_bar2_start cvmx_pemx_p2n_bar2_start_t ; + +/** +* cvmx_pem#_p2p_bar#_end +* +* This register specifies the ending address for memory requests that are to be forwarded to the +* PCIe peer port. +*/ +union cvmx_pemx_p2p_barx_end { +u64 u64; +struct cvmx_pemx_p2p_barx_end_s { +u64 addr :52 ; +u64 reserved_0_11 :12 ; + } s; +struct cvmx_pemx_p2p_barx_end_s cn63xx; +struct cvmx_pemx_p2p_barx_end_s cn63xxp1; +struct cvmx_pemx_p2p_barx_end_s cn66xx; +struct cvmx_pemx_p2p_barx_end_s cn68xx; +struct cvmx_pemx_p2p_barx_end_s cn68xxp1; +struct cvmx_pemx_p2p_barx_end_s cn73xx; +struct cvmx_pemx_p2p_barx_end_s cn78xx; +struct cvmx_pemx_p2p_barx_end_s cn78xxp1; +struct cvmx_pemx_p2p_barx_end_s cnf75xx; +}; + +typedef union cvmx_pemx_p2p_barx_end cvmx_pemx_p2p_barx_end_t ; + +/** +* cvmx_pem#_p2p_bar#_start +* +* This register specifies the starting address for memory requests that are to be forwarded to +* the PCIe peer port. +*/ +union cvmx_pemx_p2p_barx_start { +u64 u64; +struct cvmx_pemx_p2p_barx_start_s { +u64 addr :52 ; +u64 reserved_2_11 :10 ; +u64 dst :2 ; + } s; +struct cvmx_pemx_p2p_barx_start_cn63xx { +u64 addr :52 ; +u64 reserved_0_11 :12 ; + } cn63xx; +struct cvmx_pemx_p2p_barx_start_cn63xx cn63xxp1; +struct cvmx_pemx_p2p_barx_start_cn63xx cn66xx; +struct cvmx_pemx_p2p_barx_start_cn63xx cn68xx; +struct cvmx_pemx_p2p_barx_start_cn63xx cn68xxp1; +struct cvmx_pemx_p2p_barx_start_s cn73xx; +struct cvmx_pemx_p2p_barx_start_s cn78xx; +struct cvmx_pemx_p2p_barx_start_s cn78xxp1; +struct cvmx_pemx_p2p_barx_start_s cnf75xx; +}; + +typedef union cvmx_pemx_p2p_barx_start cvmx_pemx_p2p_barx_start_t ; + +/** +* cvmx_pem#_qlm +* +* This register configures the PEM3 QLM. +* +*/ +union cvmx_pemx_qlm { +u64 u64; +struct cvmx_pemx_qlm_s { +u64 reserved_0_63 :64 ; + } s; +struct cvmx_pemx_qlm_cn73xx { +u64 reserved_1_63 :63 ; +u64 pemdlmsel :1 ; + } cn73xx; +struct cvmx_pemx_qlm_cn78xx { +u64 reserved_1_63 :63 ; +u64 pem3qlm :1 ; + } cn78xx; +struct cvmx_pemx_qlm_cn78xx cn78xxp1; +struct cvmx_pemx_qlm_cn73xx cnf75xx; +}; + +typedef union cvmx_pemx_qlm cvmx_pemx_qlm_t ; + +/** +* cvmx_pem#_spi_ctl +* +* PEM#_SPI_CTL register. +* +*/ +union cvmx_pemx_spi_ctl { +u64 u64; +struct cvmx_pemx_spi_ctl_s { +u64 reserved_14_63 :50 ; +u64 start_busy :1 ; +u64 tvalid :1 ; +u64 cmd :3 ; +u64 adr :9 ; + } s; +struct cvmx_pemx_spi_ctl_s cn70xx; +struct cvmx_pemx_spi_ctl_s cn70xxp1; +struct cvmx_pemx_spi_ctl_s cn73xx; +struct cvmx_pemx_spi_ctl_s cn78xx; +struct cvmx_pemx_spi_ctl_s cn78xxp1; +struct cvmx_pemx_spi_ctl_s cnf75xx; +}; + +typedef union cvmx_pemx_spi_ctl cvmx_pemx_spi_ctl_t ; + +/** +* cvmx_pem#_spi_data +* +* This register contains the most recently read or written SPI data and is unpredictable upon +* power-up. Is valid after a PEM()_SPI_CTL[CMD]=READ/RDSR when hardware clears +* PEM()_SPI_CTL[START_BUSY]. Is written after a PEM()_SPI_CTL[CMD]=WRITE/WRSR +* when hardware clears PEM()_SPI_CTL[START_BUSY]. +*/ +union cvmx_pemx_spi_data { +u64 u64; +struct cvmx_pemx_spi_data_s { +u64 preamble :16 ; +u64 reserved_45_47 :3 ; +u64 cs2 :1 ; +u64 adr :12 ; +u64 data :32 ; + } s; +struct cvmx_pemx_spi_data_s cn70xx; +struct cvmx_pemx_spi_data_s cn70xxp1; +struct cvmx_pemx_spi_data_s cn73xx; +struct cvmx_pemx_spi_data_s cn78xx; +struct cvmx_pemx_spi_data_s cn78xxp1; +struct cvmx_pemx_spi_data_s cnf75xx; +}; + +typedef union cvmx_pemx_spi_data cvmx_pemx_spi_data_t ; + +/** +* cvmx_pem#_strap +* +* "Below are in pesc_csr +* The input strapping pins" +*/ +union cvmx_pemx_strap { +u64 u64; +struct cvmx_pemx_strap_s { +u64 reserved_5_63 :59 ; +u64 miopem2dlm5sel :1 ; +u64 pilaneswap :1 ; +u64 reserved_0_2 :3 ; + } s; +struct cvmx_pemx_strap_cn70xx { +u64 reserved_4_63 :60 ; +u64 pilaneswap :1 ; +u64 pimode :3 ; + } cn70xx; +struct cvmx_pemx_strap_cn70xx cn70xxp1; +struct cvmx_pemx_strap_cn73xx { +u64 reserved_5_63 :59 ; +u64 miopem2dlm5sel :1 ; +u64 pilaneswap :1 ; +u64 pilanes8 :1 ; +u64 pimode :2 ; + } cn73xx; +struct cvmx_pemx_strap_cn78xx { +u64 reserved_4_63 :60 ; +u64 pilaneswap :1 ; +u64 pilanes8 :1 ; +u64 pimode :2 ; + } cn78xx; +struct cvmx_pemx_strap_cn78xx cn78xxp1; +struct cvmx_pemx_strap_cnf75xx { +u64 reserved_5_63 :59 ; +u64 miopem2dlm5sel :1 ; +u64 pilaneswap :1 ; +u64 pilanes4 :1 ; +u64 pimode :2 ; + } cnf75xx; +}; + +typedef union cvmx_pemx_strap cvmx_pemx_strap_t ; + +/** +* cvmx_pem#_tlp_credits +* +* This register specifies the number of credits for use in moving TLPs. When this register is +* written, the credit values are reset to the register value. A write to this register should +* take place before traffic flow starts. +*/ +union cvmx_pemx_tlp_credits { +u64 u64; +struct cvmx_pemx_tlp_credits_s { +u64 reserved_56_63 :8 ; +u64 peai_ppf :8 ; +u64 pem_cpl :8 ; +u64 pem_np :8 ; +u64 pem_p :8 ; +u64 sli_cpl :8 ; +u64 sli_np :8 ; +u64 sli_p :8 ; + } s; +struct cvmx_pemx_tlp_credits_cn61xx { +u64 reserved_56_63 :8 ; +u64 peai_ppf :8 ; +u64 reserved_24_47 :24 ; +u64 sli_cpl :8 ; +u64 sli_np :8 ; +u64 sli_p :8 ; + } cn61xx; +struct cvmx_pemx_tlp_credits_s cn63xx; +struct cvmx_pemx_tlp_credits_s cn63xxp1; +struct cvmx_pemx_tlp_credits_s cn66xx; +struct cvmx_pemx_tlp_credits_s cn68xx; +struct cvmx_pemx_tlp_credits_s cn68xxp1; +struct cvmx_pemx_tlp_credits_cn61xx cn70xx; +struct cvmx_pemx_tlp_credits_cn61xx cn70xxp1; +struct cvmx_pemx_tlp_credits_cn73xx { +u64 reserved_48_63 :16 ; +u64 pem_cpl :8 ; +u64 pem_np :8 ; +u64 pem_p :8 ; +u64 sli_cpl :8 ; +u64 sli_np :8 ; +u64 sli_p :8 ; + } cn73xx; +struct cvmx_pemx_tlp_credits_cn73xx cn78xx; +struct cvmx_pemx_tlp_credits_cn73xx cn78xxp1; +struct cvmx_pemx_tlp_credits_cn61xx cnf71xx; +struct cvmx_pemx_tlp_credits_cn73xx cnf75xx; +}; + +typedef union cvmx_pemx_tlp_credits cvmx_pemx_tlp_credits_t ; + +#endif
Signature · 1 line
2.29.2
PATCH 21/50 mips: octeon: Add cvmx-pepx-defs.h header file
In reply to Stefan RoeseFrom: Aaron Williams <[email protected]>
Import cvmx-pepx-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support PCIe and networking on the MIPS Octeon II / III platforms.
---
.../mach-octeon/include/mach/cvmx-pexp-defs.h | 1382 +++++++++++++++++ 1 file changed, 1382 insertions(+) create mode 100644 arch/mips/mach-octeon/include/mach/cvmx-pexp-defs.h
arch/mips/mach-octeon/include/mach/cvmx-pexp-defs.h new file +1382 -0
@@ -0,0 +1,1382 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (C) 2020 Marvell International Ltd. +* +* Configuration and status register (CSR) definitions for +* OCTEON PEXP. +*/ + +#ifndef __CVMX_PEXP_DEFS_H__ +#define __CVMX_PEXP_DEFS_H__ + +#define CVMX_PEXP_NPEI_BAR1_INDEXX (offset) (0x00011F0000008000ull + ((offset) & 31) * 16) +#define CVMX_PEXP_NPEI_BIST_STATUS (0x00011F0000008580ull) +#define CVMX_PEXP_NPEI_BIST_STATUS2 (0x00011F0000008680ull) +#define CVMX_PEXP_NPEI_CTL_PORT0 (0x00011F0000008250ull) +#define CVMX_PEXP_NPEI_CTL_PORT1 (0x00011F0000008260ull) +#define CVMX_PEXP_NPEI_CTL_STATUS (0x00011F0000008570ull) +#define CVMX_PEXP_NPEI_CTL_STATUS2 (0x00011F000000BC00ull) +#define CVMX_PEXP_NPEI_DATA_OUT_CNT (0x00011F00000085F0ull) +#define CVMX_PEXP_NPEI_DBG_DATA (0x00011F0000008510ull) +#define CVMX_PEXP_NPEI_DBG_SELECT (0x00011F0000008500ull) +#define CVMX_PEXP_NPEI_DMA0_INT_LEVEL (0x00011F00000085C0ull) +#define CVMX_PEXP_NPEI_DMA1_INT_LEVEL (0x00011F00000085D0ull) +#define CVMX_PEXP_NPEI_DMAX_COUNTS (offset) (0x00011F0000008450ull + ((offset) & 7) * 16) +#define CVMX_PEXP_NPEI_DMAX_DBELL (offset) (0x00011F00000083B0ull + ((offset) & 7) * 16) +#define CVMX_PEXP_NPEI_DMAX_IBUFF_SADDR (offset) (0x00011F0000008400ull + ((offset) & 7) * 16) +#define CVMX_PEXP_NPEI_DMAX_NADDR (offset) (0x00011F00000084A0ull + ((offset) & 7) * 16) +#define CVMX_PEXP_NPEI_DMA_CNTS (0x00011F00000085E0ull) +#define CVMX_PEXP_NPEI_DMA_CONTROL (0x00011F00000083A0ull) +#define CVMX_PEXP_NPEI_DMA_PCIE_REQ_NUM (0x00011F00000085B0ull) +#define CVMX_PEXP_NPEI_DMA_STATE1 (0x00011F00000086C0ull) +#define CVMX_PEXP_NPEI_DMA_STATE1_P1 (0x00011F0000008680ull) +#define CVMX_PEXP_NPEI_DMA_STATE2 (0x00011F00000086D0ull) +#define CVMX_PEXP_NPEI_DMA_STATE2_P1 (0x00011F0000008690ull) +#define CVMX_PEXP_NPEI_DMA_STATE3_P1 (0x00011F00000086A0ull) +#define CVMX_PEXP_NPEI_DMA_STATE4_P1 (0x00011F00000086B0ull) +#define CVMX_PEXP_NPEI_DMA_STATE5_P1 (0x00011F00000086C0ull) +#define CVMX_PEXP_NPEI_INT_A_ENB (0x00011F0000008560ull) +#define CVMX_PEXP_NPEI_INT_A_ENB2 (0x00011F000000BCE0ull) +#define CVMX_PEXP_NPEI_INT_A_SUM (0x00011F0000008550ull) +#define CVMX_PEXP_NPEI_INT_ENB (0x00011F0000008540ull) +#define CVMX_PEXP_NPEI_INT_ENB2 (0x00011F000000BCD0ull) +#define CVMX_PEXP_NPEI_INT_INFO (0x00011F0000008590ull) +#define CVMX_PEXP_NPEI_INT_SUM (0x00011F0000008530ull) +#define CVMX_PEXP_NPEI_INT_SUM2 (0x00011F000000BCC0ull) +#define CVMX_PEXP_NPEI_LAST_WIN_RDATA0 (0x00011F0000008600ull) +#define CVMX_PEXP_NPEI_LAST_WIN_RDATA1 (0x00011F0000008610ull) +#define CVMX_PEXP_NPEI_MEM_ACCESS_CTL (0x00011F00000084F0ull) +#define CVMX_PEXP_NPEI_MEM_ACCESS_SUBIDX (offset) \ + (0x00011F0000008280ull + ((offset) & 31) * 16 - 16 * 12) +#define CVMX_PEXP_NPEI_MSI_ENB0 (0x00011F000000BC50ull) +#define CVMX_PEXP_NPEI_MSI_ENB1 (0x00011F000000BC60ull) +#define CVMX_PEXP_NPEI_MSI_ENB2 (0x00011F000000BC70ull) +#define CVMX_PEXP_NPEI_MSI_ENB3 (0x00011F000000BC80ull) +#define CVMX_PEXP_NPEI_MSI_RCV0 (0x00011F000000BC10ull) +#define CVMX_PEXP_NPEI_MSI_RCV1 (0x00011F000000BC20ull) +#define CVMX_PEXP_NPEI_MSI_RCV2 (0x00011F000000BC30ull) +#define CVMX_PEXP_NPEI_MSI_RCV3 (0x00011F000000BC40ull) +#define CVMX_PEXP_NPEI_MSI_RD_MAP (0x00011F000000BCA0ull) +#define CVMX_PEXP_NPEI_MSI_W1C_ENB0 (0x00011F000000BCF0ull) +#define CVMX_PEXP_NPEI_MSI_W1C_ENB1 (0x00011F000000BD00ull) +#define CVMX_PEXP_NPEI_MSI_W1C_ENB2 (0x00011F000000BD10ull) +#define CVMX_PEXP_NPEI_MSI_W1C_ENB3 (0x00011F000000BD20ull) +#define CVMX_PEXP_NPEI_MSI_W1S_ENB0 (0x00011F000000BD30ull) +#define CVMX_PEXP_NPEI_MSI_W1S_ENB1 (0x00011F000000BD40ull) +#define CVMX_PEXP_NPEI_MSI_W1S_ENB2 (0x00011F000000BD50ull) +#define CVMX_PEXP_NPEI_MSI_W1S_ENB3 (0x00011F000000BD60ull) +#define CVMX_PEXP_NPEI_MSI_WR_MAP (0x00011F000000BC90ull) +#define CVMX_PEXP_NPEI_PCIE_CREDIT_CNT (0x00011F000000BD70ull) +#define CVMX_PEXP_NPEI_PCIE_MSI_RCV (0x00011F000000BCB0ull) +#define CVMX_PEXP_NPEI_PCIE_MSI_RCV_B1 (0x00011F0000008650ull) +#define CVMX_PEXP_NPEI_PCIE_MSI_RCV_B2 (0x00011F0000008660ull) +#define CVMX_PEXP_NPEI_PCIE_MSI_RCV_B3 (0x00011F0000008670ull) +#define CVMX_PEXP_NPEI_PKTX_CNTS (offset) (0x00011F000000A400ull + ((offset) & 31) * 16) +#define CVMX_PEXP_NPEI_PKTX_INSTR_BADDR (offset) (0x00011F000000A800ull + ((offset) & 31) * 16) +#define CVMX_PEXP_NPEI_PKTX_INSTR_BAOFF_DBELL (offset) (0x00011F000000AC00ull + ((offset) & 31) * 16) +#define CVMX_PEXP_NPEI_PKTX_INSTR_FIFO_RSIZE (offset) (0x00011F000000B000ull + ((offset) & 31) * 16) +#define CVMX_PEXP_NPEI_PKTX_INSTR_HEADER (offset) (0x00011F000000B400ull + ((offset) & 31) * 16) +#define CVMX_PEXP_NPEI_PKTX_IN_BP (offset) (0x00011F000000B800ull + ((offset) & 31) * 16) +#define CVMX_PEXP_NPEI_PKTX_SLIST_BADDR (offset) (0x00011F0000009400ull + ((offset) & 31) * 16) +#define CVMX_PEXP_NPEI_PKTX_SLIST_BAOFF_DBELL (offset) (0x00011F0000009800ull + ((offset) & 31) * 16) +#define CVMX_PEXP_NPEI_PKTX_SLIST_FIFO_RSIZE (offset) (0x00011F0000009C00ull + ((offset) & 31) * 16) +#define CVMX_PEXP_NPEI_PKT_CNT_INT (0x00011F0000009110ull) +#define CVMX_PEXP_NPEI_PKT_CNT_INT_ENB (0x00011F0000009130ull) +#define CVMX_PEXP_NPEI_PKT_DATA_OUT_ES (0x00011F00000090B0ull) +#define CVMX_PEXP_NPEI_PKT_DATA_OUT_NS (0x00011F00000090A0ull) +#define CVMX_PEXP_NPEI_PKT_DATA_OUT_ROR (0x00011F0000009090ull) +#define CVMX_PEXP_NPEI_PKT_DPADDR (0x00011F0000009080ull) +#define CVMX_PEXP_NPEI_PKT_INPUT_CONTROL (0x00011F0000009150ull) +#define CVMX_PEXP_NPEI_PKT_INSTR_ENB (0x00011F0000009000ull) +#define CVMX_PEXP_NPEI_PKT_INSTR_RD_SIZE (0x00011F0000009190ull) +#define CVMX_PEXP_NPEI_PKT_INSTR_SIZE (0x00011F0000009020ull) +#define CVMX_PEXP_NPEI_PKT_INT_LEVELS (0x00011F0000009100ull) +#define CVMX_PEXP_NPEI_PKT_IN_BP (0x00011F00000086B0ull) +#define CVMX_PEXP_NPEI_PKT_IN_DONEX_CNTS (offset) (0x00011F000000A000ull + ((offset) & 31) * 16) +#define CVMX_PEXP_NPEI_PKT_IN_INSTR_COUNTS (0x00011F00000086A0ull) +#define CVMX_PEXP_NPEI_PKT_IN_PCIE_PORT (0x00011F00000091A0ull) +#define CVMX_PEXP_NPEI_PKT_IPTR (0x00011F0000009070ull) +#define CVMX_PEXP_NPEI_PKT_OUTPUT_WMARK (0x00011F0000009160ull) +#define CVMX_PEXP_NPEI_PKT_OUT_BMODE (0x00011F00000090D0ull) +#define CVMX_PEXP_NPEI_PKT_OUT_ENB (0x00011F0000009010ull) +#define CVMX_PEXP_NPEI_PKT_PCIE_PORT (0x00011F00000090E0ull) +#define CVMX_PEXP_NPEI_PKT_PORT_IN_RST (0x00011F0000008690ull) +#define CVMX_PEXP_NPEI_PKT_SLIST_ES (0x00011F0000009050ull) +#define CVMX_PEXP_NPEI_PKT_SLIST_ID_SIZE (0x00011F0000009180ull) +#define CVMX_PEXP_NPEI_PKT_SLIST_NS (0x00011F0000009040ull) +#define CVMX_PEXP_NPEI_PKT_SLIST_ROR (0x00011F0000009030ull) +#define CVMX_PEXP_NPEI_PKT_TIME_INT (0x00011F0000009120ull) +#define CVMX_PEXP_NPEI_PKT_TIME_INT_ENB (0x00011F0000009140ull) +#define CVMX_PEXP_NPEI_RSL_INT_BLOCKS (0x00011F0000008520ull) +#define CVMX_PEXP_NPEI_SCRATCH_1 (0x00011F0000008270ull) +#define CVMX_PEXP_NPEI_STATE1 (0x00011F0000008620ull) +#define CVMX_PEXP_NPEI_STATE2 (0x00011F0000008630ull) +#define CVMX_PEXP_NPEI_STATE3 (0x00011F0000008640ull) +#define CVMX_PEXP_NPEI_WINDOW_CTL (0x00011F0000008380ull) +#define CVMX_PEXP_NQM_VFX_ACQ (offset) (0x0001450000000030ull + ((offset) & 2047) * 0x20000ull) +#define CVMX_PEXP_NQM_VFX_AQA (offset) (0x0001450000000024ull + ((offset) & 2047) * 0x20000ull) +#define CVMX_PEXP_NQM_VFX_ASQ (offset) (0x0001450000000028ull + ((offset) & 2047) * 0x20000ull) +#define CVMX_PEXP_NQM_VFX_CAP (offset) (0x0001450000000000ull + ((offset) & 2047) * 0x20000ull) +#define CVMX_PEXP_NQM_VFX_CC (offset) (0x0001450000000014ull + ((offset) & 2047) * 0x20000ull) +#define CVMX_PEXP_NQM_VFX_CQX_HDBL (offset, block_id) \ + (0x0001450000001004ull + (((offset) & 31) + ((block_id) & 2047) * 0x4000ull) * 8) +#define CVMX_PEXP_NQM_VFX_CSTS (offset) (0x000145000000001Cull + ((offset) & 2047) * 0x20000ull) +#define CVMX_PEXP_NQM_VFX_INTMC (offset) (0x0001450000000010ull + ((offset) & 2047) * 0x20000ull) +#define CVMX_PEXP_NQM_VFX_INTMS (offset) (0x000145000000000Cull + ((offset) & 2047) * 0x20000ull) +#define CVMX_PEXP_NQM_VFX_MSIX_PBA (offset) (0x0001450000010200ull + ((offset) & 2047) * 0x20000ull) +#define CVMX_PEXP_NQM_VFX_NSSR (offset) (0x0001450000000020ull + ((offset) & 2047) * 0x20000ull) +#define CVMX_PEXP_NQM_VFX_SQX_TDBL (offset, block_id) \ + (0x0001450000001000ull + (((offset) & 31) + ((block_id) & 2047) * 0x4000ull) * 8) +#define CVMX_PEXP_NQM_VFX_VECX_MSIX_ADDR (offset, block_id) \ + (0x0001450000010000ull + (((offset) & 31) + ((block_id) & 2047) * 0x2000ull) * 16) +#define CVMX_PEXP_NQM_VFX_VECX_MSIX_CTL (offset, block_id) \ + (0x0001450000010008ull + (((offset) & 31) + ((block_id) & 2047) * 0x2000ull) * 16) +#define CVMX_PEXP_NQM_VFX_VS (offset) (0x0001450000000008ull + ((offset) & 2047) * 0x20000ull) +#define CVMX_PEXP_SLITB_MSIXX_TABLE_ADDR (offset) (0x00011F0000004000ull + ((offset) & 127) * 16) +#define CVMX_PEXP_SLITB_MSIXX_TABLE_DATA (offset) (0x00011F0000004008ull + ((offset) & 127) * 16) +#define CVMX_PEXP_SLITB_MSIX_MACX_PFX_TABLE_ADDR (offset, block_id) \ + (0x00011F0000002000ull + ((offset) & 1) * 4096 + ((block_id) & 3) * 0x10ull) +#define CVMX_PEXP_SLITB_MSIX_MACX_PFX_TABLE_DATA (offset, block_id) \ + (0x00011F0000002008ull + ((offset) & 1) * 4096 + ((block_id) & 3) * 0x10ull) +#define CVMX_PEXP_SLITB_PFX_PKT_CNT_INT (offset) (0x00011F0000008000ull + ((offset) & 7) * 16) +#define CVMX_PEXP_SLITB_PFX_PKT_INT (offset) (0x00011F0000008300ull + ((offset) & 7) * 16) +#define CVMX_PEXP_SLITB_PFX_PKT_IN_INT (offset) (0x00011F0000008200ull + ((offset) & 7) * 16) +#define CVMX_PEXP_SLITB_PFX_PKT_RING_RST (offset) (0x00011F0000008400ull + ((offset) & 7) * 16) +#define CVMX_PEXP_SLITB_PFX_PKT_TIME_INT (offset) (0x00011F0000008100ull + ((offset) & 7) * 16) +#define CVMX_PEXP_SLITB_PKTX_PF_VF_MBOX_SIGX (offset, block_id) \ + (0x00011F0000011000ull + (((offset) & 1) + ((block_id) & 127) * 0x4000ull) * 8) +#define CVMX_PEXP_SLI_BIST_STATUS CVMX_PEXP_SLI_BIST_STATUS_FUNC() +static inline u64 CVMX_PEXP_SLI_BIST_STATUS_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010580ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000010580ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000028580ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000028580ull ; + } +return 0x00011F0000028580ull ; +} + +static inline u64 CVMX_PEXP_SLI_CTL_PORTX (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010050ull + (offset) *16 ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010050ull + (offset) *16 ; +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010050ull + (offset) *16 ; + +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F00000106E0ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F00000286E0ull + (offset) *16 ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F00000286E0ull + (offset) *16 ; + } +return 0x00011F00000286E0ull + (offset) *16 ; +} + +#define CVMX_PEXP_SLI_CTL_STATUS CVMX_PEXP_SLI_CTL_STATUS_FUNC() +static inline u64 CVMX_PEXP_SLI_CTL_STATUS_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010570ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000010570ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000028570ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000028570ull ; + } +return 0x00011F0000028570ull ; +} + +#define CVMX_PEXP_SLI_DATA_OUT_CNT CVMX_PEXP_SLI_DATA_OUT_CNT_FUNC() +static inline u64 CVMX_PEXP_SLI_DATA_OUT_CNT_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F00000105F0ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F00000105F0ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F00000285F0ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F00000285F0ull ; + } +return 0x00011F00000285F0ull ; +} + +#define CVMX_PEXP_SLI_DBG_DATA (0x00011F0000010310ull) +#define CVMX_PEXP_SLI_DBG_SELECT (0x00011F0000010300ull) +static inline u64 CVMX_PEXP_SLI_DMAX_CNT (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010400ull + (offset) *16 ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000010400ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000028400ull + (offset) *16 ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000028400ull + (offset) *16 ; + } +return 0x00011F0000028400ull + (offset) *16 ; +} + +static inline u64 CVMX_PEXP_SLI_DMAX_INT_LEVEL (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F00000103E0ull + (offset) *16 ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F00000103E0ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F00000283E0ull + (offset) *16 ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F00000283E0ull + (offset) *16 ; + } +return 0x00011F00000283E0ull + (offset) *16 ; +} + +static inline u64 CVMX_PEXP_SLI_DMAX_TIM (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010420ull + (offset) *16 ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000010420ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000028420ull + (offset) *16 ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000028420ull + (offset) *16 ; + } +return 0x00011F0000028420ull + (offset) *16 ; +} + +#define CVMX_PEXP_SLI_INT_ENB_CIU (0x00011F0000013CD0ull) +#define CVMX_PEXP_SLI_INT_ENB_PORTX (offset) (0x00011F0000010340ull + ((offset) & 3) * 16) +#define CVMX_PEXP_SLI_INT_SUM (0x00011F0000010330ull) +#define CVMX_PEXP_SLI_LAST_WIN_RDATA0 (0x00011F0000010600ull) +#define CVMX_PEXP_SLI_LAST_WIN_RDATA1 (0x00011F0000010610ull) +#define CVMX_PEXP_SLI_LAST_WIN_RDATA2 (0x00011F00000106C0ull) +#define CVMX_PEXP_SLI_LAST_WIN_RDATA3 (0x00011F00000106D0ull) +#define CVMX_PEXP_SLI_MACX_PFX_DMA_VF_INT (offset, block_id) \ + (0x00011F0000027280ull + (((offset) & 1) + ((block_id) & 3) * 0x2ull) * 16) +#define CVMX_PEXP_SLI_MACX_PFX_DMA_VF_INT_ENB (offset, block_id) \ + (0x00011F0000027500ull + (((offset) & 1) + ((block_id) & 3) * 0x2ull) * 16) +#define CVMX_PEXP_SLI_MACX_PFX_FLR_VF_INT (offset, block_id) \ + (0x00011F0000027400ull + (((offset) & 1) + ((block_id) & 3) * 0x2ull) * 16) +#define CVMX_PEXP_SLI_MACX_PFX_INT_ENB (offset, block_id) \ + (0x00011F0000027080ull + (((offset) & 1) + ((block_id) & 3) * 0x2ull) * 16) +#define CVMX_PEXP_SLI_MACX_PFX_INT_SUM (offset, block_id) \ + (0x00011F0000027000ull + (((offset) & 1) + ((block_id) & 3) * 0x2ull) * 16) +#define CVMX_PEXP_SLI_MACX_PFX_MBOX_INT (offset, block_id) \ + (0x00011F0000027380ull + (((offset) & 1) + ((block_id) & 3) * 0x2ull) * 16) +#define CVMX_PEXP_SLI_MACX_PFX_PKT_VF_INT (offset, block_id) \ + (0x00011F0000027300ull + (((offset) & 1) + ((block_id) & 3) * 0x2ull) * 16) +#define CVMX_PEXP_SLI_MACX_PFX_PKT_VF_INT_ENB (offset, block_id) \ + (0x00011F0000027580ull + (((offset) & 1) + ((block_id) & 3) * 0x2ull) * 16) +#define CVMX_PEXP_SLI_MACX_PFX_PP_VF_INT (offset, block_id) \ + (0x00011F0000027200ull + (((offset) & 1) + ((block_id) & 3) * 0x2ull) * 16) +#define CVMX_PEXP_SLI_MACX_PFX_PP_VF_INT_ENB (offset, block_id) \ + (0x00011F0000027480ull + (((offset) & 1) + ((block_id) & 3) * 0x2ull) * 16) +#define CVMX_PEXP_SLI_MAC_CREDIT_CNT CVMX_PEXP_SLI_MAC_CREDIT_CNT_FUNC() +static inline u64 CVMX_PEXP_SLI_MAC_CREDIT_CNT_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000013D70ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000013D70ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000023D70ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000023D70ull ; + } +return 0x00011F0000023D70ull ; +} + +#define CVMX_PEXP_SLI_MAC_CREDIT_CNT2 CVMX_PEXP_SLI_MAC_CREDIT_CNT2_FUNC() +static inline u64 CVMX_PEXP_SLI_MAC_CREDIT_CNT2_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +return 0x00011F0000013E10ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000013E10ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000023E10ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000023E10ull ; + } +return 0x00011F0000023E10ull ; +} + +#define CVMX_PEXP_SLI_MEM_ACCESS_CTL CVMX_PEXP_SLI_MEM_ACCESS_CTL_FUNC() +static inline u64 CVMX_PEXP_SLI_MEM_ACCESS_CTL_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F00000102F0ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F00000102F0ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F00000282F0ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F00000282F0ull ; + } +return 0x00011F00000282F0ull ; +} + +static inline u64 CVMX_PEXP_SLI_MEM_ACCESS_SUBIDX (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F00000100E0ull + (offset) *16 -16 *12 ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F00000100E0ull + (offset) *16 -16 *12 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F00000280E0ull + (offset) *16 -16 *12 ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F00000280E0ull + (offset) *16 -16 *12 ; + } +return 0x00011F00000280E0ull + (offset) *16 -16 *12 ; +} + +#define CVMX_PEXP_SLI_MEM_CTL CVMX_PEXP_SLI_MEM_CTL_FUNC() +static inline u64 CVMX_PEXP_SLI_MEM_CTL_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F00000105E0ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F00000285E0ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F00000285E0ull ; + } +return 0x00011F00000285E0ull ; +} + +#define CVMX_PEXP_SLI_MEM_INT_SUM CVMX_PEXP_SLI_MEM_INT_SUM_FUNC() +static inline u64 CVMX_PEXP_SLI_MEM_INT_SUM_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F00000105D0ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F00000285D0ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F00000285D0ull ; + } +return 0x00011F00000285D0ull ; +} + +static inline u64 CVMX_PEXP_SLI_MSIXX_TABLE_ADDR (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000016000ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000000000ull + (offset) *16 ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000000000ull + (offset) *16 ; + } +return 0x00011F0000000000ull + (offset) *16 ; +} + +static inline u64 CVMX_PEXP_SLI_MSIXX_TABLE_DATA (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000016008ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000000008ull + (offset) *16 ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000000008ull + (offset) *16 ; + } +return 0x00011F0000000008ull + (offset) *16 ; +} + +#define CVMX_PEXP_SLI_MSIX_MACX_PF_TABLE_ADDR (offset) (0x00011F0000017C00ull + ((offset) & 3) * 16) +#define CVMX_PEXP_SLI_MSIX_MACX_PF_TABLE_DATA (offset) (0x00011F0000017C08ull + ((offset) & 3) * 16) +#define CVMX_PEXP_SLI_MSIX_PBA0 CVMX_PEXP_SLI_MSIX_PBA0_FUNC() +static inline u64 CVMX_PEXP_SLI_MSIX_PBA0_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000017000ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000001000ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000001000ull ; + } +return 0x00011F0000001000ull ; +} + +#define CVMX_PEXP_SLI_MSIX_PBA1 CVMX_PEXP_SLI_MSIX_PBA1_FUNC() +static inline u64 CVMX_PEXP_SLI_MSIX_PBA1_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000017010ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000001008ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000001008ull ; + } +return 0x00011F0000001008ull ; +} + +#define CVMX_PEXP_SLI_MSI_ENB0 (0x00011F0000013C50ull) +#define CVMX_PEXP_SLI_MSI_ENB1 (0x00011F0000013C60ull) +#define CVMX_PEXP_SLI_MSI_ENB2 (0x00011F0000013C70ull) +#define CVMX_PEXP_SLI_MSI_ENB3 (0x00011F0000013C80ull) +#define CVMX_PEXP_SLI_MSI_RCV0 CVMX_PEXP_SLI_MSI_RCV0_FUNC() +static inline u64 CVMX_PEXP_SLI_MSI_RCV0_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000013C10ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000013C10ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000023C10ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000023C10ull ; + } +return 0x00011F0000023C10ull ; +} + +#define CVMX_PEXP_SLI_MSI_RCV1 CVMX_PEXP_SLI_MSI_RCV1_FUNC() +static inline u64 CVMX_PEXP_SLI_MSI_RCV1_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000013C20ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000013C20ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000023C20ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000023C20ull ; + } +return 0x00011F0000023C20ull ; +} + +#define CVMX_PEXP_SLI_MSI_RCV2 CVMX_PEXP_SLI_MSI_RCV2_FUNC() +static inline u64 CVMX_PEXP_SLI_MSI_RCV2_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000013C30ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000013C30ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000023C30ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000023C30ull ; + } +return 0x00011F0000023C30ull ; +} + +#define CVMX_PEXP_SLI_MSI_RCV3 CVMX_PEXP_SLI_MSI_RCV3_FUNC() +static inline u64 CVMX_PEXP_SLI_MSI_RCV3_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000013C40ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000013C40ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000023C40ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000023C40ull ; + } +return 0x00011F0000023C40ull ; +} + +#define CVMX_PEXP_SLI_MSI_RD_MAP CVMX_PEXP_SLI_MSI_RD_MAP_FUNC() +static inline u64 CVMX_PEXP_SLI_MSI_RD_MAP_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000013CA0ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000013CA0ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000023CA0ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000023CA0ull ; + } +return 0x00011F0000023CA0ull ; +} + +#define CVMX_PEXP_SLI_MSI_W1C_ENB0 (0x00011F0000013CF0ull) +#define CVMX_PEXP_SLI_MSI_W1C_ENB1 (0x00011F0000013D00ull) +#define CVMX_PEXP_SLI_MSI_W1C_ENB2 (0x00011F0000013D10ull) +#define CVMX_PEXP_SLI_MSI_W1C_ENB3 (0x00011F0000013D20ull) +#define CVMX_PEXP_SLI_MSI_W1S_ENB0 (0x00011F0000013D30ull) +#define CVMX_PEXP_SLI_MSI_W1S_ENB1 (0x00011F0000013D40ull) +#define CVMX_PEXP_SLI_MSI_W1S_ENB2 (0x00011F0000013D50ull) +#define CVMX_PEXP_SLI_MSI_W1S_ENB3 (0x00011F0000013D60ull) +#define CVMX_PEXP_SLI_MSI_WR_MAP CVMX_PEXP_SLI_MSI_WR_MAP_FUNC() +static inline u64 CVMX_PEXP_SLI_MSI_WR_MAP_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000013C90ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000013C90ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000023C90ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000023C90ull ; + } +return 0x00011F0000023C90ull ; +} + +#define CVMX_PEXP_SLI_PCIE_MSI_RCV CVMX_PEXP_SLI_PCIE_MSI_RCV_FUNC() +static inline u64 CVMX_PEXP_SLI_PCIE_MSI_RCV_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000013CB0ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000013CB0ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000023CB0ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000023CB0ull ; + } +return 0x00011F0000023CB0ull ; +} + +#define CVMX_PEXP_SLI_PCIE_MSI_RCV_B1 CVMX_PEXP_SLI_PCIE_MSI_RCV_B1_FUNC() +static inline u64 CVMX_PEXP_SLI_PCIE_MSI_RCV_B1_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010650ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000010650ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000028650ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000028650ull ; + } +return 0x00011F0000028650ull ; +} + +#define CVMX_PEXP_SLI_PCIE_MSI_RCV_B2 CVMX_PEXP_SLI_PCIE_MSI_RCV_B2_FUNC() +static inline u64 CVMX_PEXP_SLI_PCIE_MSI_RCV_B2_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010660ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000010660ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000028660ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000028660ull ; + } +return 0x00011F0000028660ull ; +} + +#define CVMX_PEXP_SLI_PCIE_MSI_RCV_B3 CVMX_PEXP_SLI_PCIE_MSI_RCV_B3_FUNC() +static inline u64 CVMX_PEXP_SLI_PCIE_MSI_RCV_B3_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010670ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000010670ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000028670ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000028670ull ; + } +return 0x00011F0000028670ull ; +} + +static inline u64 CVMX_PEXP_SLI_PKTX_CNTS (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000012400ull + (offset) *16 ; + +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000012400ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F00000100B0ull + (offset) *0x20000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F00000100B0ull + (offset) *0x20000ull ; + } +return 0x00011F00000100B0ull + (offset) *0x20000ull ; +} + +#define CVMX_PEXP_SLI_PKTX_ERROR_INFO (offset) (0x00011F00000100C0ull + ((offset) & 63) * 0x20000ull) +static inline u64 CVMX_PEXP_SLI_PKTX_INPUT_CONTROL (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000014000ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000010000ull + (offset) *0x20000ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010000ull + (offset) *0x20000ull ; + } +return 0x00011F0000010000ull + (offset) *0x20000ull ; +} + +static inline u64 CVMX_PEXP_SLI_PKTX_INSTR_BADDR (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000012800ull + (offset) *16 ; + +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000012800ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000010010ull + (offset) *0x20000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010010ull + (offset) *0x20000ull ; + } +return 0x00011F0000010010ull + (offset) *0x20000ull ; +} + +static inline u64 CVMX_PEXP_SLI_PKTX_INSTR_BAOFF_DBELL (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000012C00ull + (offset) *16 ; + +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000012C00ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000010020ull + (offset) *0x20000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010020ull + (offset) *0x20000ull ; + } +return 0x00011F0000010020ull + (offset) *0x20000ull ; +} + +static inline u64 CVMX_PEXP_SLI_PKTX_INSTR_FIFO_RSIZE (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000013000ull + (offset) *16 ; + +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000013000ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000010030ull + (offset) *0x20000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010030ull + (offset) *0x20000ull ; + } +return 0x00011F0000010030ull + (offset) *0x20000ull ; +} + +#define CVMX_PEXP_SLI_PKTX_INSTR_HEADER (offset) (0x00011F0000013400ull + ((offset) & 31) * 16) +static inline u64 CVMX_PEXP_SLI_PKTX_INT_LEVELS (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000014400ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F00000100A0ull + (offset) *0x20000ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F00000100A0ull + (offset) *0x20000ull ; + } +return 0x00011F00000100A0ull + (offset) *0x20000ull ; +} + +#define CVMX_PEXP_SLI_PKTX_IN_BP (offset) (0x00011F0000013800ull + ((offset) & 31) * 16) +#define CVMX_PEXP_SLI_PKTX_MBOX_INT (offset) (0x00011F0000010210ull + ((offset) & 63) * 0x20000ull) +static inline u64 CVMX_PEXP_SLI_PKTX_OUTPUT_CONTROL (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000014800ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000010050ull + (offset) *0x20000ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010050ull + (offset) *0x20000ull ; + } +return 0x00011F0000010050ull + (offset) *0x20000ull ; +} + +static inline u64 CVMX_PEXP_SLI_PKTX_OUT_SIZE (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010C00ull + (offset) *16 ; + +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000010C00ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000010060ull + (offset) *0x20000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010060ull + (offset) *0x20000ull ; + } +return 0x00011F0000010060ull + (offset) *0x20000ull ; +} + +#define CVMX_PEXP_SLI_PKTX_PF_VF_MBOX_SIGX (offset, block_id) \ + (0x00011F0000010200ull + (((offset) & 1) + ((block_id) & 63) * 0x4000ull) * 8) +static inline u64 CVMX_PEXP_SLI_PKTX_SLIST_BADDR (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000011400ull + (offset) *16 ; + +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000011400ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000010070ull + (offset) *0x20000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010070ull + (offset) *0x20000ull ; + } +return 0x00011F0000010070ull + (offset) *0x20000ull ; +} + +static inline u64 CVMX_PEXP_SLI_PKTX_SLIST_BAOFF_DBELL (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000011800ull + (offset) *16 ; + +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000011800ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000010080ull + (offset) *0x20000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010080ull + (offset) *0x20000ull ; + } +return 0x00011F0000010080ull + (offset) *0x20000ull ; +} + +static inline u64 CVMX_PEXP_SLI_PKTX_SLIST_FIFO_RSIZE (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000011C00ull + (offset) *16 ; + +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000011C00ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000010090ull + (offset) *0x20000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010090ull + (offset) *0x20000ull ; + } +return 0x00011F0000010090ull + (offset) *0x20000ull ; +} + +#define CVMX_PEXP_SLI_PKTX_VF_INT_SUM (offset) (0x00011F00000100D0ull + ((offset) & 63) * 0x20000ull) +#define CVMX_PEXP_SLI_PKTX_VF_SIG (offset) (0x00011F0000014C00ull + ((offset) & 63) * 16) +#define CVMX_PEXP_SLI_PKT_BIST_STATUS (0x00011F0000029220ull) +#define CVMX_PEXP_SLI_PKT_CNT_INT CVMX_PEXP_SLI_PKT_CNT_INT_FUNC() +static inline u64 CVMX_PEXP_SLI_PKT_CNT_INT_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000011130ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000011130ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000029130ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000029130ull ; + } +return 0x00011F0000029130ull ; +} + +#define CVMX_PEXP_SLI_PKT_CNT_INT_ENB (0x00011F0000011150ull) +#define CVMX_PEXP_SLI_PKT_CTL (0x00011F0000011220ull) +#define CVMX_PEXP_SLI_PKT_DATA_OUT_ES (0x00011F00000110B0ull) +#define CVMX_PEXP_SLI_PKT_DATA_OUT_NS (0x00011F00000110A0ull) +#define CVMX_PEXP_SLI_PKT_DATA_OUT_ROR (0x00011F0000011090ull) +#define CVMX_PEXP_SLI_PKT_DPADDR (0x00011F0000011080ull) +#define CVMX_PEXP_SLI_PKT_GBL_CONTROL (0x00011F0000029210ull) +#define CVMX_PEXP_SLI_PKT_INPUT_CONTROL (0x00011F0000011170ull) +#define CVMX_PEXP_SLI_PKT_INSTR_ENB (0x00011F0000011000ull) +#define CVMX_PEXP_SLI_PKT_INSTR_RD_SIZE (0x00011F00000111A0ull) +#define CVMX_PEXP_SLI_PKT_INSTR_SIZE (0x00011F0000011020ull) +#define CVMX_PEXP_SLI_PKT_INT CVMX_PEXP_SLI_PKT_INT_FUNC() +static inline u64 CVMX_PEXP_SLI_PKT_INT_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000011160ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000029160ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000029160ull ; + } +return 0x00011F0000029160ull ; +} + +#define CVMX_PEXP_SLI_PKT_INT_LEVELS (0x00011F0000011120ull) +#define CVMX_PEXP_SLI_PKT_IN_BP (0x00011F0000011210ull) +static inline u64 CVMX_PEXP_SLI_PKT_IN_DONEX_CNTS (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000012000ull + (offset) *16 ; + +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000012000ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000010040ull + (offset) *0x20000ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010040ull + (offset) *0x20000ull ; + } +return 0x00011F0000010040ull + (offset) *0x20000ull ; +} + +#define CVMX_PEXP_SLI_PKT_IN_INSTR_COUNTS CVMX_PEXP_SLI_PKT_IN_INSTR_COUNTS_FUNC() +static inline u64 CVMX_PEXP_SLI_PKT_IN_INSTR_COUNTS_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000011200ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000011200ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000029200ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000029200ull ; + } +return 0x00011F0000029200ull ; +} + +#define CVMX_PEXP_SLI_PKT_IN_INT CVMX_PEXP_SLI_PKT_IN_INT_FUNC() +static inline u64 CVMX_PEXP_SLI_PKT_IN_INT_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000011150ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000029150ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000029150ull ; + } +return 0x00011F0000029150ull ; +} + +#define CVMX_PEXP_SLI_PKT_IN_JABBER (0x00011F0000029170ull) +#define CVMX_PEXP_SLI_PKT_IN_PCIE_PORT (0x00011F00000111B0ull) +#define CVMX_PEXP_SLI_PKT_IPTR (0x00011F0000011070ull) +#define CVMX_PEXP_SLI_PKT_MAC0_SIG0 (0x00011F0000011300ull) +#define CVMX_PEXP_SLI_PKT_MAC0_SIG1 (0x00011F0000011310ull) +#define CVMX_PEXP_SLI_PKT_MAC1_SIG0 (0x00011F0000011320ull) +#define CVMX_PEXP_SLI_PKT_MAC1_SIG1 (0x00011F0000011330ull) +#define CVMX_PEXP_SLI_PKT_MACX_PFX_RINFO (offset, block_id) \ + (0x00011F0000029030ull + (((offset) & 1) + ((block_id) & 3) * 0x2ull) * 16) +#define CVMX_PEXP_SLI_PKT_MACX_RINFO (offset) (0x00011F0000011030ull + ((offset) & 3) * 16) +#define CVMX_PEXP_SLI_PKT_MEM_CTL CVMX_PEXP_SLI_PKT_MEM_CTL_FUNC() +static inline u64 CVMX_PEXP_SLI_PKT_MEM_CTL_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000011120ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000029120ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000029120ull ; + } +return 0x00011F0000029120ull ; +} + +#define CVMX_PEXP_SLI_PKT_OUTPUT_WMARK CVMX_PEXP_SLI_PKT_OUTPUT_WMARK_FUNC() +static inline u64 CVMX_PEXP_SLI_PKT_OUTPUT_WMARK_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000011180ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000011180ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000029180ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000029180ull ; + } +return 0x00011F0000029180ull ; +} + +#define CVMX_PEXP_SLI_PKT_OUT_BMODE (0x00011F00000110D0ull) +#define CVMX_PEXP_SLI_PKT_OUT_BP_EN (0x00011F0000011240ull) +#define CVMX_PEXP_SLI_PKT_OUT_BP_EN2_W1C (0x00011F0000029290ull) +#define CVMX_PEXP_SLI_PKT_OUT_BP_EN2_W1S (0x00011F0000029270ull) +#define CVMX_PEXP_SLI_PKT_OUT_BP_EN_W1C (0x00011F0000029280ull) +#define CVMX_PEXP_SLI_PKT_OUT_BP_EN_W1S (0x00011F0000029260ull) +#define CVMX_PEXP_SLI_PKT_OUT_ENB (0x00011F0000011010ull) +#define CVMX_PEXP_SLI_PKT_PCIE_PORT (0x00011F00000110E0ull) +#define CVMX_PEXP_SLI_PKT_PKIND_VALID (0x00011F0000029190ull) +#define CVMX_PEXP_SLI_PKT_PORT_IN_RST (0x00011F00000111F0ull) +#define CVMX_PEXP_SLI_PKT_RING_RST CVMX_PEXP_SLI_PKT_RING_RST_FUNC() +static inline u64 CVMX_PEXP_SLI_PKT_RING_RST_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F00000111E0ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F00000291E0ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F00000291E0ull ; + } +return 0x00011F00000291E0ull ; +} + +#define CVMX_PEXP_SLI_PKT_SLIST_ES (0x00011F0000011050ull) +#define CVMX_PEXP_SLI_PKT_SLIST_NS (0x00011F0000011040ull) +#define CVMX_PEXP_SLI_PKT_SLIST_ROR (0x00011F0000011030ull) +#define CVMX_PEXP_SLI_PKT_TIME_INT CVMX_PEXP_SLI_PKT_TIME_INT_FUNC() +static inline u64 CVMX_PEXP_SLI_PKT_TIME_INT_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000011140ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000011140ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000029140ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000029140ull ; + } +return 0x00011F0000029140ull ; +} + +#define CVMX_PEXP_SLI_PKT_TIME_INT_ENB (0x00011F0000011160ull) +#define CVMX_PEXP_SLI_PORTX_PKIND (offset) (0x00011F0000010800ull + ((offset) & 31) * 16) +static inline u64 CVMX_PEXP_SLI_S2M_PORTX_CTL (unsigned long offset) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000013D80ull + (offset) *16 ; +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +return 0x00011F0000013D80ull + (offset) *16 ; +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +return 0x00011F0000013D80ull + (offset) *16 ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000013D80ull + (offset) *16 ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000023D80ull + (offset) *16 ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000023D80ull + (offset) *16 ; + } +return 0x00011F0000023D80ull + (offset) *16 ; +} + +#define CVMX_PEXP_SLI_SCRATCH_1 CVMX_PEXP_SLI_SCRATCH_1_FUNC() +static inline u64 CVMX_PEXP_SLI_SCRATCH_1_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F00000103C0ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F00000103C0ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F00000283C0ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F00000283C0ull ; + } +return 0x00011F00000283C0ull ; +} + +#define CVMX_PEXP_SLI_SCRATCH_2 CVMX_PEXP_SLI_SCRATCH_2_FUNC() +static inline u64 CVMX_PEXP_SLI_SCRATCH_2_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F00000103D0ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F00000103D0ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F00000283D0ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F00000283D0ull ; + } +return 0x00011F00000283D0ull ; +} + +#define CVMX_PEXP_SLI_STATE1 CVMX_PEXP_SLI_STATE1_FUNC() +static inline u64 CVMX_PEXP_SLI_STATE1_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010620ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000010620ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000028620ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000028620ull ; + } +return 0x00011F0000028620ull ; +} + +#define CVMX_PEXP_SLI_STATE2 CVMX_PEXP_SLI_STATE2_FUNC() +static inline u64 CVMX_PEXP_SLI_STATE2_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010630ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000010630ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000028630ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000028630ull ; + } +return 0x00011F0000028630ull ; +} + +#define CVMX_PEXP_SLI_STATE3 CVMX_PEXP_SLI_STATE3_FUNC() +static inline u64 CVMX_PEXP_SLI_STATE3_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F0000010640ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F0000010640ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F0000028640ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F0000028640ull ; + } +return 0x00011F0000028640ull ; +} + +#define CVMX_PEXP_SLI_TX_PIPE (0x00011F0000011230ull) +#define CVMX_PEXP_SLI_WINDOW_CTL CVMX_PEXP_SLI_WINDOW_CTL_FUNC() +static inline u64 CVMX_PEXP_SLI_WINDOW_CTL_FUNC (void ) +{ +switch (cvmx_get_octeon_family ()) { +case OCTEON_CNF71XX &OCTEON_FAMILY_MASK : +case OCTEON_CN61XX &OCTEON_FAMILY_MASK : +case OCTEON_CN70XX &OCTEON_FAMILY_MASK : +case OCTEON_CN66XX &OCTEON_FAMILY_MASK : +case OCTEON_CN63XX &OCTEON_FAMILY_MASK : +case OCTEON_CN68XX &OCTEON_FAMILY_MASK : +return 0x00011F00000102E0ull ; +case OCTEON_CNF75XX &OCTEON_FAMILY_MASK : +case OCTEON_CN78XX &OCTEON_FAMILY_MASK : +if (OCTEON_IS_MODEL (OCTEON_CN78XX_PASS1_X )) +return 0x00011F00000102E0ull ; +if (OCTEON_IS_MODEL (OCTEON_CN78XX )) +return 0x00011F00000282E0ull ; +case OCTEON_CN73XX &OCTEON_FAMILY_MASK : +return 0x00011F00000282E0ull ; + } +return 0x00011F00000282E0ull ; +} + +#endif
Signature · 1 line
2.29.2
PATCH 22/50 mips: octeon: Add cvmx-pip-defs.h header file
In reply to Stefan RoeseFrom: Aaron Williams <[email protected]>
Import cvmx-pip-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support PCIe and networking on the MIPS Octeon II / III platforms.
---
.../mach-octeon/include/mach/cvmx-pip-defs.h | 3040 +++++++++++++++++ 1 file changed, 3040 insertions(+) create mode 100644 arch/mips/mach-octeon/include/mach/cvmx-pip-defs.h
arch/mips/mach-octeon/include/mach/cvmx-pip-defs.h new file +3040 -0
@@ -0,0 +1,3040 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (C) 2020 Marvell International Ltd. +* +* Configuration and status register (CSR) type definitions for +* Octeon pip. +*/ + +#ifndef __CVMX_PIP_DEFS_H__ +#define __CVMX_PIP_DEFS_H__ + +#define CVMX_PIP_ALT_SKIP_CFGX (offset) (0x00011800A0002A00ull + ((offset) & 3) * 8) +#define CVMX_PIP_BCK_PRS (0x00011800A0000038ull) +#define CVMX_PIP_BIST_STATUS (0x00011800A0000000ull) +#define CVMX_PIP_BSEL_EXT_CFGX (offset) (0x00011800A0002800ull + ((offset) & 3) * 16) +#define CVMX_PIP_BSEL_EXT_POSX (offset) (0x00011800A0002808ull + ((offset) & 3) * 16) +#define CVMX_PIP_BSEL_TBL_ENTX (offset) (0x00011800A0003000ull + ((offset) & 511) * 8) +#define CVMX_PIP_CLKEN (0x00011800A0000040ull) +#define CVMX_PIP_CRC_CTLX (offset) (0x00011800A0000040ull + ((offset) & 1) * 8) +#define CVMX_PIP_CRC_IVX (offset) (0x00011800A0000050ull + ((offset) & 1) * 8) +#define CVMX_PIP_DEC_IPSECX (offset) (0x00011800A0000080ull + ((offset) & 3) * 8) +#define CVMX_PIP_DSA_SRC_GRP (0x00011800A0000190ull) +#define CVMX_PIP_DSA_VID_GRP (0x00011800A0000198ull) +#define CVMX_PIP_FRM_LEN_CHKX (offset) (0x00011800A0000180ull + ((offset) & 1) * 8) +#define CVMX_PIP_GBL_CFG (0x00011800A0000028ull) +#define CVMX_PIP_GBL_CTL (0x00011800A0000020ull) +#define CVMX_PIP_HG_PRI_QOS (0x00011800A00001A0ull) +#define CVMX_PIP_INT_EN (0x00011800A0000010ull) +#define CVMX_PIP_INT_REG (0x00011800A0000008ull) +#define CVMX_PIP_IP_OFFSET (0x00011800A0000060ull) +#define CVMX_PIP_PRI_TBLX (offset) (0x00011800A0004000ull + ((offset) & 255) * 8) +#define CVMX_PIP_PRT_CFGBX (offset) (0x00011800A0008000ull + ((offset) & 63) * 8) +#define CVMX_PIP_PRT_CFGX (offset) (0x00011800A0000200ull + ((offset) & 63) * 8) +#define CVMX_PIP_PRT_TAGX (offset) (0x00011800A0000400ull + ((offset) & 63) * 8) +#define CVMX_PIP_QOS_DIFFX (offset) (0x00011800A0000600ull + ((offset) & 63) * 8) +#define CVMX_PIP_QOS_VLANX (offset) (0x00011800A00000C0ull + ((offset) & 7) * 8) +#define CVMX_PIP_QOS_WATCHX (offset) (0x00011800A0000100ull + ((offset) & 7) * 8) +#define CVMX_PIP_RAW_WORD (0x00011800A00000B0ull) +#define CVMX_PIP_SFT_RST (0x00011800A0000030ull) +#define CVMX_PIP_STAT0_PRTX (offset) (0x00011800A0000800ull + ((offset) & 63) * 80) +#define CVMX_PIP_STAT0_X (offset) (0x00011800A0040000ull + ((offset) & 63) * 128) +#define CVMX_PIP_STAT10_PRTX (offset) (0x00011800A0001480ull + ((offset) & 63) * 16) +#define CVMX_PIP_STAT10_X (offset) (0x00011800A0040050ull + ((offset) & 63) * 128) +#define CVMX_PIP_STAT11_PRTX (offset) (0x00011800A0001488ull + ((offset) & 63) * 16) +#define CVMX_PIP_STAT11_X (offset) (0x00011800A0040058ull + ((offset) & 63) * 128) +#define CVMX_PIP_STAT1_PRTX (offset) (0x00011800A0000808ull + ((offset) & 63) * 80) +#define CVMX_PIP_STAT1_X (offset) (0x00011800A0040008ull + ((offset) & 63) * 128) +#define CVMX_PIP_STAT2_PRTX (offset) (0x00011800A0000810ull + ((offset) & 63) * 80) +#define CVMX_PIP_STAT2_X (offset) (0x00011800A0040010ull + ((offset) & 63) * 128) +#define CVMX_PIP_STAT3_PRTX (offset) (0x00011800A0000818ull + ((offset) & 63) * 80) +#define CVMX_PIP_STAT3_X (offset) (0x00011800A0040018ull + ((offset) & 63) * 128) +#define CVMX_PIP_STAT4_PRTX (offset) (0x00011800A0000820ull + ((offset) & 63) * 80) +#define CVMX_PIP_STAT4_X (offset) (0x00011800A0040020ull + ((offset) & 63) * 128) +#define CVMX_PIP_STAT5_PRTX (offset) (0x00011800A0000828ull + ((offset) & 63) * 80) +#define CVMX_PIP_STAT5_X (offset) (0x00011800A0040028ull + ((offset) & 63) * 128) +#define CVMX_PIP_STAT6_PRTX (offset) (0x00011800A0000830ull + ((offset) & 63) * 80) +#define CVMX_PIP_STAT6_X (offset) (0x00011800A0040030ull + ((offset) & 63) * 128) +#define CVMX_PIP_STAT7_PRTX (offset) (0x00011800A0000838ull + ((offset) & 63) * 80) +#define CVMX_PIP_STAT7_X (offset) (0x00011800A0040038ull + ((offset) & 63) * 128) +#define CVMX_PIP_STAT8_PRTX (offset) (0x00011800A0000840ull + ((offset) & 63) * 80) +#define CVMX_PIP_STAT8_X (offset) (0x00011800A0040040ull + ((offset) & 63) * 128) +#define CVMX_PIP_STAT9_PRTX (offset) (0x00011800A0000848ull + ((offset) & 63) * 80) +#define CVMX_PIP_STAT9_X (offset) (0x00011800A0040048ull + ((offset) & 63) * 128) +#define CVMX_PIP_STAT_CTL (0x00011800A0000018ull) +#define CVMX_PIP_STAT_INB_ERRSX (offset) (0x00011800A0001A10ull + ((offset) & 63) * 32) +#define CVMX_PIP_STAT_INB_ERRS_PKNDX (offset) (0x00011800A0020010ull + ((offset) & 63) * 32) +#define CVMX_PIP_STAT_INB_OCTSX (offset) (0x00011800A0001A08ull + ((offset) & 63) * 32) +#define CVMX_PIP_STAT_INB_OCTS_PKNDX (offset) (0x00011800A0020008ull + ((offset) & 63) * 32) +#define CVMX_PIP_STAT_INB_PKTSX (offset) (0x00011800A0001A00ull + ((offset) & 63) * 32) +#define CVMX_PIP_STAT_INB_PKTS_PKNDX (offset) (0x00011800A0020000ull + ((offset) & 63) * 32) +#define CVMX_PIP_SUB_PKIND_FCSX (offset) (0x00011800A0080000ull) +#define CVMX_PIP_TAG_INCX (offset) (0x00011800A0001800ull + ((offset) & 63) * 8) +#define CVMX_PIP_TAG_MASK (0x00011800A0000070ull) +#define CVMX_PIP_TAG_SECRET (0x00011800A0000068ull) +#define CVMX_PIP_TODO_ENTRY (0x00011800A0000078ull) +#define CVMX_PIP_VLAN_ETYPESX (offset) (0x00011800A00001C0ull + ((offset) & 1) * 8) +#define CVMX_PIP_XSTAT0_PRTX (offset) (0x00011800A0002000ull + ((offset) & 63) * 80 - 80 * 40) +#define CVMX_PIP_XSTAT10_PRTX (offset) (0x00011800A0001700ull + ((offset) & 63) * 16 - 16 * 40) +#define CVMX_PIP_XSTAT11_PRTX (offset) (0x00011800A0001708ull + ((offset) & 63) * 16 - 16 * 40) +#define CVMX_PIP_XSTAT1_PRTX (offset) (0x00011800A0002008ull + ((offset) & 63) * 80 - 80 * 40) +#define CVMX_PIP_XSTAT2_PRTX (offset) (0x00011800A0002010ull + ((offset) & 63) * 80 - 80 * 40) +#define CVMX_PIP_XSTAT3_PRTX (offset) (0x00011800A0002018ull + ((offset) & 63) * 80 - 80 * 40) +#define CVMX_PIP_XSTAT4_PRTX (offset) (0x00011800A0002020ull + ((offset) & 63) * 80 - 80 * 40) +#define CVMX_PIP_XSTAT5_PRTX (offset) (0x00011800A0002028ull + ((offset) & 63) * 80 - 80 * 40) +#define CVMX_PIP_XSTAT6_PRTX (offset) (0x00011800A0002030ull + ((offset) & 63) * 80 - 80 * 40) +#define CVMX_PIP_XSTAT7_PRTX (offset) (0x00011800A0002038ull + ((offset) & 63) * 80 - 80 * 40) +#define CVMX_PIP_XSTAT8_PRTX (offset) (0x00011800A0002040ull + ((offset) & 63) * 80 - 80 * 40) +#define CVMX_PIP_XSTAT9_PRTX (offset) (0x00011800A0002048ull + ((offset) & 63) * 80 - 80 * 40) + +/** +* cvmx_pip_alt_skip_cfg# +* +* Notes: +* The actual SKIP I determined by HW is based on the packet contents. BIT0 and +* BIT1 make up a two value value that the selects the skip value as follows. +* +* lookup_value = LEN ? ( packet_in_bits[BIT1], packet_in_bits[BIT0] ) : ( 0, packet_in_bits[BIT0] ); +* SKIP I = lookup_value == 3 ? SKIP3 : +* lookup_value == 2 ? SKIP2 : +* lookup_value == 1 ? SKIP1 : +* PIP_PRT_CFG<pknd>[SKIP]; +*/ +union cvmx_pip_alt_skip_cfgx { +u64 u64; +struct cvmx_pip_alt_skip_cfgx_s { +u64 reserved_57_63 :7 ; +u64 len :1 ; +u64 reserved_46_55 :10 ; +u64 bit1 :6 ; +u64 reserved_38_39 :2 ; +u64 bit0 :6 ; +u64 reserved_23_31 :9 ; +u64 skip3 :7 ; +u64 reserved_15_15 :1 ; +u64 skip2 :7 ; +u64 reserved_7_7 :1 ; +u64 skip1 :7 ; + } s; +struct cvmx_pip_alt_skip_cfgx_s cn61xx; +struct cvmx_pip_alt_skip_cfgx_s cn66xx; +struct cvmx_pip_alt_skip_cfgx_s cn68xx; +struct cvmx_pip_alt_skip_cfgx_s cn70xx; +struct cvmx_pip_alt_skip_cfgx_s cn70xxp1; +struct cvmx_pip_alt_skip_cfgx_s cnf71xx; +}; + +typedef union cvmx_pip_alt_skip_cfgx cvmx_pip_alt_skip_cfgx_t ; + +/** +* cvmx_pip_bck_prs +* +* When to assert backpressure based on the todo list filling up +* +*/ +union cvmx_pip_bck_prs { +u64 u64; +struct cvmx_pip_bck_prs_s { +u64 bckprs :1 ; +u64 reserved_13_62 :50 ; +u64 hiwater :5 ; +u64 reserved_5_7 :3 ; +u64 lowater :5 ; + } s; +struct cvmx_pip_bck_prs_s cn38xx; +struct cvmx_pip_bck_prs_s cn38xxp2; +struct cvmx_pip_bck_prs_s cn56xx; +struct cvmx_pip_bck_prs_s cn56xxp1; +struct cvmx_pip_bck_prs_s cn58xx; +struct cvmx_pip_bck_prs_s cn58xxp1; +struct cvmx_pip_bck_prs_s cn61xx; +struct cvmx_pip_bck_prs_s cn63xx; +struct cvmx_pip_bck_prs_s cn63xxp1; +struct cvmx_pip_bck_prs_s cn66xx; +struct cvmx_pip_bck_prs_s cn68xx; +struct cvmx_pip_bck_prs_s cn68xxp1; +struct cvmx_pip_bck_prs_s cn70xx; +struct cvmx_pip_bck_prs_s cn70xxp1; +struct cvmx_pip_bck_prs_s cnf71xx; +}; + +typedef union cvmx_pip_bck_prs cvmx_pip_bck_prs_t ; + +/** +* cvmx_pip_bist_status +* +* PIP_BIST_STATUS = PIP's BIST Results +* +*/ +union cvmx_pip_bist_status { +u64 u64; +struct cvmx_pip_bist_status_s { +u64 reserved_22_63 :42 ; +u64 bist :22 ; + } s; +struct cvmx_pip_bist_status_cn30xx { +u64 reserved_18_63 :46 ; +u64 bist :18 ; + } cn30xx; +struct cvmx_pip_bist_status_cn30xx cn31xx; +struct cvmx_pip_bist_status_cn30xx cn38xx; +struct cvmx_pip_bist_status_cn30xx cn38xxp2; +struct cvmx_pip_bist_status_cn50xx { +u64 reserved_17_63 :47 ; +u64 bist :17 ; + } cn50xx; +struct cvmx_pip_bist_status_cn30xx cn52xx; +struct cvmx_pip_bist_status_cn30xx cn52xxp1; +struct cvmx_pip_bist_status_cn30xx cn56xx; +struct cvmx_pip_bist_status_cn30xx cn56xxp1; +struct cvmx_pip_bist_status_cn30xx cn58xx; +struct cvmx_pip_bist_status_cn30xx cn58xxp1; +struct cvmx_pip_bist_status_cn61xx { +u64 reserved_20_63 :44 ; +u64 bist :20 ; + } cn61xx; +struct cvmx_pip_bist_status_cn30xx cn63xx; +struct cvmx_pip_bist_status_cn30xx cn63xxp1; +struct cvmx_pip_bist_status_cn61xx cn66xx; +struct cvmx_pip_bist_status_s cn68xx; +struct cvmx_pip_bist_status_cn61xx cn68xxp1; +struct cvmx_pip_bist_status_cn61xx cn70xx; +struct cvmx_pip_bist_status_cn61xx cn70xxp1; +struct cvmx_pip_bist_status_cn61xx cnf71xx; +}; + +typedef union cvmx_pip_bist_status cvmx_pip_bist_status_t ; + +/** +* cvmx_pip_bsel_ext_cfg# +* +* tag, offset, and skip values to be used when using the corresponding extractor. +* +*/ +union cvmx_pip_bsel_ext_cfgx { +u64 u64; +struct cvmx_pip_bsel_ext_cfgx_s { +u64 reserved_56_63 :8 ; +u64 upper_tag :16 ; +u64 tag :8 ; +u64 reserved_25_31 :7 ; +u64 offset :9 ; +u64 reserved_7_15 :9 ; +u64 skip :7 ; + } s; +struct cvmx_pip_bsel_ext_cfgx_s cn61xx; +struct cvmx_pip_bsel_ext_cfgx_s cn68xx; +struct cvmx_pip_bsel_ext_cfgx_s cn70xx; +struct cvmx_pip_bsel_ext_cfgx_s cn70xxp1; +struct cvmx_pip_bsel_ext_cfgx_s cnf71xx; +}; + +typedef union cvmx_pip_bsel_ext_cfgx cvmx_pip_bsel_ext_cfgx_t ; + +/** +* cvmx_pip_bsel_ext_pos# +* +* bit positions and valids to be used when using the corresponding extractor. +* +*/ +union cvmx_pip_bsel_ext_posx { +u64 u64; +struct cvmx_pip_bsel_ext_posx_s { +u64 pos7_val :1 ; +u64 pos7 :7 ; +u64 pos6_val :1 ; +u64 pos6 :7 ; +u64 pos5_val :1 ; +u64 pos5 :7 ; +u64 pos4_val :1 ; +u64 pos4 :7 ; +u64 pos3_val :1 ; +u64 pos3 :7 ; +u64 pos2_val :1 ; +u64 pos2 :7 ; +u64 pos1_val :1 ; +u64 pos1 :7 ; +u64 pos0_val :1 ; +u64 pos0 :7 ; + } s; +struct cvmx_pip_bsel_ext_posx_s cn61xx; +struct cvmx_pip_bsel_ext_posx_s cn68xx; +struct cvmx_pip_bsel_ext_posx_s cn70xx; +struct cvmx_pip_bsel_ext_posx_s cn70xxp1; +struct cvmx_pip_bsel_ext_posx_s cnf71xx; +}; + +typedef union cvmx_pip_bsel_ext_posx cvmx_pip_bsel_ext_posx_t ; + +/** +* cvmx_pip_bsel_tbl_ent# +* +* PIP_BSEL_TBL_ENTX = Entry for the extractor table +* +*/ +union cvmx_pip_bsel_tbl_entx { +u64 u64; +struct cvmx_pip_bsel_tbl_entx_s { +u64 tag_en :1 ; +u64 grp_en :1 ; +u64 tt_en :1 ; +u64 qos_en :1 ; +u64 reserved_40_59 :20 ; +u64 tag :8 ; +u64 reserved_22_31 :10 ; +u64 grp :6 ; +u64 reserved_10_15 :6 ; +u64 tt :2 ; +u64 reserved_3_7 :5 ; +u64 qos :3 ; + } s; +struct cvmx_pip_bsel_tbl_entx_cn61xx { +u64 tag_en :1 ; +u64 grp_en :1 ; +u64 tt_en :1 ; +u64 qos_en :1 ; +u64 reserved_40_59 :20 ; +u64 tag :8 ; +u64 reserved_20_31 :12 ; +u64 grp :4 ; +u64 reserved_10_15 :6 ; +u64 tt :2 ; +u64 reserved_3_7 :5 ; +u64 qos :3 ; + } cn61xx; +struct cvmx_pip_bsel_tbl_entx_s cn68xx; +struct cvmx_pip_bsel_tbl_entx_cn61xx cn70xx; +struct cvmx_pip_bsel_tbl_entx_cn61xx cn70xxp1; +struct cvmx_pip_bsel_tbl_entx_cn61xx cnf71xx; +}; + +typedef union cvmx_pip_bsel_tbl_entx cvmx_pip_bsel_tbl_entx_t ; + +/** +* cvmx_pip_clken +*/ +union cvmx_pip_clken { +u64 u64; +struct cvmx_pip_clken_s { +u64 reserved_1_63 :63 ; +u64 clken :1 ; + } s; +struct cvmx_pip_clken_s cn61xx; +struct cvmx_pip_clken_s cn63xx; +struct cvmx_pip_clken_s cn63xxp1; +struct cvmx_pip_clken_s cn66xx; +struct cvmx_pip_clken_s cn68xx; +struct cvmx_pip_clken_s cn68xxp1; +struct cvmx_pip_clken_s cn70xx; +struct cvmx_pip_clken_s cn70xxp1; +struct cvmx_pip_clken_s cnf71xx; +}; + +typedef union cvmx_pip_clken cvmx_pip_clken_t ; + +/** +* cvmx_pip_crc_ctl# +* +* PIP_CRC_CTL = PIP CRC Control Register +* +* Controls datapath reflection when calculating CRC +*/ +union cvmx_pip_crc_ctlx { +u64 u64; +struct cvmx_pip_crc_ctlx_s { +u64 reserved_2_63 :62 ; +u64 invres :1 ; +u64 reflect :1 ; + } s; +struct cvmx_pip_crc_ctlx_s cn38xx; +struct cvmx_pip_crc_ctlx_s cn38xxp2; +struct cvmx_pip_crc_ctlx_s cn58xx; +struct cvmx_pip_crc_ctlx_s cn58xxp1; +}; + +typedef union cvmx_pip_crc_ctlx cvmx_pip_crc_ctlx_t ; + +/** +* cvmx_pip_crc_iv# +* +* PIP_CRC_IV = PIP CRC IV Register +* +* Determines the IV used by the CRC algorithm +* +* Notes: +* * PIP_CRC_IV +* PIP_CRC_IV controls the initial state of the CRC algorithm. Octane can +* support a wide range of CRC algorithms and as such, the IV must be +* carefully constructed to meet the specific algorithm. The code below +* determines the value to program into Octane based on the algorthim's IV +* and width. In the case of Octane, the width should always be 32. +* +* PIP_CRC_IV0 sets the IV for ports 0-15 while PIP_CRC_IV1 sets the IV for +* ports 16-31. +* +* unsigned octane_crc_iv(unsigned algorithm_iv, unsigned poly, unsigned w) +* [ +* int i; +* int doit; +* unsigned int current_val = algorithm_iv; +* +* for(i = 0; i < w; i++) [ +* doit = current_val & 0x1; +* +* if(doit) current_val ^= poly; +* assert(!(current_val & 0x1)); +* +* current_val = (current_val >> 1) | (doit << (w-1)); +* ] +* +* return current_val; +* ] +*/ +union cvmx_pip_crc_ivx { +u64 u64; +struct cvmx_pip_crc_ivx_s { +u64 reserved_32_63 :32 ; +u64 iv :32 ; + } s; +struct cvmx_pip_crc_ivx_s cn38xx; +struct cvmx_pip_crc_ivx_s cn38xxp2; +struct cvmx_pip_crc_ivx_s cn58xx; +struct cvmx_pip_crc_ivx_s cn58xxp1; +}; + +typedef union cvmx_pip_crc_ivx cvmx_pip_crc_ivx_t ; + +/** +* cvmx_pip_dec_ipsec# +* +* PIP sets the dec_ipsec based on TCP or UDP destination port. +* +*/ +union cvmx_pip_dec_ipsecx { +u64 u64; +struct cvmx_pip_dec_ipsecx_s { +u64 reserved_18_63 :46 ; +u64 tcp :1 ; +u64 udp :1 ; +u64 dprt :16 ; + } s; +struct cvmx_pip_dec_ipsecx_s cn30xx; +struct cvmx_pip_dec_ipsecx_s cn31xx; +struct cvmx_pip_dec_ipsecx_s cn38xx; +struct cvmx_pip_dec_ipsecx_s cn38xxp2; +struct cvmx_pip_dec_ipsecx_s cn50xx; +struct cvmx_pip_dec_ipsecx_s cn52xx; +struct cvmx_pip_dec_ipsecx_s cn52xxp1; +struct cvmx_pip_dec_ipsecx_s cn56xx; +struct cvmx_pip_dec_ipsecx_s cn56xxp1; +struct cvmx_pip_dec_ipsecx_s cn58xx; +struct cvmx_pip_dec_ipsecx_s cn58xxp1; +struct cvmx_pip_dec_ipsecx_s cn61xx; +struct cvmx_pip_dec_ipsecx_s cn63xx; +struct cvmx_pip_dec_ipsecx_s cn63xxp1; +struct cvmx_pip_dec_ipsecx_s cn66xx; +struct cvmx_pip_dec_ipsecx_s cn68xx; +struct cvmx_pip_dec_ipsecx_s cn68xxp1; +struct cvmx_pip_dec_ipsecx_s cn70xx; +struct cvmx_pip_dec_ipsecx_s cn70xxp1; +struct cvmx_pip_dec_ipsecx_s cnf71xx; +}; + +typedef union cvmx_pip_dec_ipsecx cvmx_pip_dec_ipsecx_t ; + +/** +* cvmx_pip_dsa_src_grp +*/ +union cvmx_pip_dsa_src_grp { +u64 u64; +struct cvmx_pip_dsa_src_grp_s { +u64 map15 :4 ; +u64 map14 :4 ; +u64 map13 :4 ; +u64 map12 :4 ; +u64 map11 :4 ; +u64 map10 :4 ; +u64 map9 :4 ; +u64 map8 :4 ; +u64 map7 :4 ; +u64 map6 :4 ; +u64 map5 :4 ; +u64 map4 :4 ; +u64 map3 :4 ; +u64 map2 :4 ; +u64 map1 :4 ; +u64 map0 :4 ; + } s; +struct cvmx_pip_dsa_src_grp_s cn52xx; +struct cvmx_pip_dsa_src_grp_s cn52xxp1; +struct cvmx_pip_dsa_src_grp_s cn56xx; +struct cvmx_pip_dsa_src_grp_s cn61xx; +struct cvmx_pip_dsa_src_grp_s cn63xx; +struct cvmx_pip_dsa_src_grp_s cn63xxp1; +struct cvmx_pip_dsa_src_grp_s cn66xx; +struct cvmx_pip_dsa_src_grp_s cn68xx; +struct cvmx_pip_dsa_src_grp_s cn68xxp1; +struct cvmx_pip_dsa_src_grp_s cn70xx; +struct cvmx_pip_dsa_src_grp_s cn70xxp1; +struct cvmx_pip_dsa_src_grp_s cnf71xx; +}; + +typedef union cvmx_pip_dsa_src_grp cvmx_pip_dsa_src_grp_t ; + +/** +* cvmx_pip_dsa_vid_grp +*/ +union cvmx_pip_dsa_vid_grp { +u64 u64; +struct cvmx_pip_dsa_vid_grp_s { +u64 map15 :4 ; +u64 map14 :4 ; +u64 map13 :4 ; +u64 map12 :4 ; +u64 map11 :4 ; +u64 map10 :4 ; +u64 map9 :4 ; +u64 map8 :4 ; +u64 map7 :4 ; +u64 map6 :4 ; +u64 map5 :4 ; +u64 map4 :4 ; +u64 map3 :4 ; +u64 map2 :4 ; +u64 map1 :4 ; +u64 map0 :4 ; + } s; +struct cvmx_pip_dsa_vid_grp_s cn52xx; +struct cvmx_pip_dsa_vid_grp_s cn52xxp1; +struct cvmx_pip_dsa_vid_grp_s cn56xx; +struct cvmx_pip_dsa_vid_grp_s cn61xx; +struct cvmx_pip_dsa_vid_grp_s cn63xx; +struct cvmx_pip_dsa_vid_grp_s cn63xxp1; +struct cvmx_pip_dsa_vid_grp_s cn66xx; +struct cvmx_pip_dsa_vid_grp_s cn68xx; +struct cvmx_pip_dsa_vid_grp_s cn68xxp1; +struct cvmx_pip_dsa_vid_grp_s cn70xx; +struct cvmx_pip_dsa_vid_grp_s cn70xxp1; +struct cvmx_pip_dsa_vid_grp_s cnf71xx; +}; + +typedef union cvmx_pip_dsa_vid_grp cvmx_pip_dsa_vid_grp_t ; + +/** +* cvmx_pip_frm_len_chk# +* +* Notes: +* PIP_FRM_LEN_CHK0 is used for packets on packet interface0, PCI, PCI RAW, and PKO loopback ports. +* PIP_FRM_LEN_CHK1 is unused. +*/ +union cvmx_pip_frm_len_chkx { +u64 u64; +struct cvmx_pip_frm_len_chkx_s { +u64 reserved_32_63 :32 ; +u64 maxlen :16 ; +u64 minlen :16 ; + } s; +struct cvmx_pip_frm_len_chkx_s cn50xx; +struct cvmx_pip_frm_len_chkx_s cn52xx; +struct cvmx_pip_frm_len_chkx_s cn52xxp1; +struct cvmx_pip_frm_len_chkx_s cn56xx; +struct cvmx_pip_frm_len_chkx_s cn56xxp1; +struct cvmx_pip_frm_len_chkx_s cn61xx; +struct cvmx_pip_frm_len_chkx_s cn63xx; +struct cvmx_pip_frm_len_chkx_s cn63xxp1; +struct cvmx_pip_frm_len_chkx_s cn66xx; +struct cvmx_pip_frm_len_chkx_s cn68xx; +struct cvmx_pip_frm_len_chkx_s cn68xxp1; +struct cvmx_pip_frm_len_chkx_s cn70xx; +struct cvmx_pip_frm_len_chkx_s cn70xxp1; +struct cvmx_pip_frm_len_chkx_s cnf71xx; +}; + +typedef union cvmx_pip_frm_len_chkx cvmx_pip_frm_len_chkx_t ; + +/** +* cvmx_pip_gbl_cfg +* +* Global config information that applies to all ports. +* +*/ +union cvmx_pip_gbl_cfg { +u64 u64; +struct cvmx_pip_gbl_cfg_s { +u64 reserved_19_63 :45 ; +u64 tag_syn :1 ; +u64 ip6_udp :1 ; +u64 max_l2 :1 ; +u64 reserved_11_15 :5 ; +u64 raw_shf :3 ; +u64 reserved_3_7 :5 ; +u64 nip_shf :3 ; + } s; +struct cvmx_pip_gbl_cfg_s cn30xx; +struct cvmx_pip_gbl_cfg_s cn31xx; +struct cvmx_pip_gbl_cfg_s cn38xx; +struct cvmx_pip_gbl_cfg_s cn38xxp2; +struct cvmx_pip_gbl_cfg_s cn50xx; +struct cvmx_pip_gbl_cfg_s cn52xx; +struct cvmx_pip_gbl_cfg_s cn52xxp1; +struct cvmx_pip_gbl_cfg_s cn56xx; +struct cvmx_pip_gbl_cfg_s cn56xxp1; +struct cvmx_pip_gbl_cfg_s cn58xx; +struct cvmx_pip_gbl_cfg_s cn58xxp1; +struct cvmx_pip_gbl_cfg_s cn61xx; +struct cvmx_pip_gbl_cfg_s cn63xx; +struct cvmx_pip_gbl_cfg_s cn63xxp1; +struct cvmx_pip_gbl_cfg_s cn66xx; +struct cvmx_pip_gbl_cfg_s cn68xx; +struct cvmx_pip_gbl_cfg_s cn68xxp1; +struct cvmx_pip_gbl_cfg_s cn70xx; +struct cvmx_pip_gbl_cfg_s cn70xxp1; +struct cvmx_pip_gbl_cfg_s cnf71xx; +}; + +typedef union cvmx_pip_gbl_cfg cvmx_pip_gbl_cfg_t ; + +/** +* cvmx_pip_gbl_ctl +* +* Global control information. These are the global checker enables for +* IPv4/IPv6 and TCP/UDP parsing. The enables effect all ports. +*/ +union cvmx_pip_gbl_ctl { +u64 u64; +struct cvmx_pip_gbl_ctl_s { +u64 reserved_29_63 :35 ; +u64 egrp_dis :1 ; +u64 ihmsk_dis :1 ; +u64 dsa_grp_tvid :1 ; +u64 dsa_grp_scmd :1 ; +u64 dsa_grp_sid :1 ; +u64 reserved_21_23 :3 ; +u64 ring_en :1 ; +u64 reserved_17_19 :3 ; +u64 ignrs :1 ; +u64 vs_wqe :1 ; +u64 vs_qos :1 ; +u64 l2_mal :1 ; +u64 tcp_flag :1 ; +u64 l4_len :1 ; +u64 l4_chk :1 ; +u64 l4_prt :1 ; +u64 l4_mal :1 ; +u64 reserved_6_7 :2 ; +u64 ip6_eext :2 ; +u64 ip4_opts :1 ; +u64 ip_hop :1 ; +u64 ip_mal :1 ; +u64 ip_chk :1 ; + } s; +struct cvmx_pip_gbl_ctl_cn30xx { +u64 reserved_17_63 :47 ; +u64 ignrs :1 ; +u64 vs_wqe :1 ; +u64 vs_qos :1 ; +u64 l2_mal :1 ; +u64 tcp_flag :1 ; +u64 l4_len :1 ; +u64 l4_chk :1 ; +u64 l4_prt :1 ; +u64 l4_mal :1 ; +u64 reserved_6_7 :2 ; +u64 ip6_eext :2 ; +u64 ip4_opts :1 ; +u64 ip_hop :1 ; +u64 ip_mal :1 ; +u64 ip_chk :1 ; + } cn30xx; +struct cvmx_pip_gbl_ctl_cn30xx cn31xx; +struct cvmx_pip_gbl_ctl_cn30xx cn38xx; +struct cvmx_pip_gbl_ctl_cn30xx cn38xxp2; +struct cvmx_pip_gbl_ctl_cn30xx cn50xx; +struct cvmx_pip_gbl_ctl_cn52xx { +u64 reserved_27_63 :37 ; +u64 dsa_grp_tvid :1 ; +u64 dsa_grp_scmd :1 ; +u64 dsa_grp_sid :1 ; +u64 reserved_21_23 :3 ; +u64 ring_en :1 ; +u64 reserved_17_19 :3 ; +u64 ignrs :1 ; +u64 vs_wqe :1 ; +u64 vs_qos :1 ; +u64 l2_mal :1 ; +u64 tcp_flag :1 ; +u64 l4_len :1 ; +u64 l4_chk :1 ; +u64 l4_prt :1 ; +u64 l4_mal :1 ; +u64 reserved_6_7 :2 ; +u64 ip6_eext :2 ; +u64 ip4_opts :1 ; +u64 ip_hop :1 ; +u64 ip_mal :1 ; +u64 ip_chk :1 ; + } cn52xx; +struct cvmx_pip_gbl_ctl_cn52xx cn52xxp1; +struct cvmx_pip_gbl_ctl_cn52xx cn56xx; +struct cvmx_pip_gbl_ctl_cn56xxp1 { +u64 reserved_21_63 :43 ; +u64 ring_en :1 ; +u64 reserved_17_19 :3 ; +u64 ignrs :1 ; +u64 vs_wqe :1 ; +u64 vs_qos :1 ; +u64 l2_mal :1 ; +u64 tcp_flag :1 ; +u64 l4_len :1 ; +u64 l4_chk :1 ; +u64 l4_prt :1 ; +u64 l4_mal :1 ; +u64 reserved_6_7 :2 ; +u64 ip6_eext :2 ; +u64 ip4_opts :1 ; +u64 ip_hop :1 ; +u64 ip_mal :1 ; +u64 ip_chk :1 ; + } cn56xxp1; +struct cvmx_pip_gbl_ctl_cn30xx cn58xx; +struct cvmx_pip_gbl_ctl_cn30xx cn58xxp1; +struct cvmx_pip_gbl_ctl_cn61xx { +u64 reserved_28_63 :36 ; +u64 ihmsk_dis :1 ; +u64 dsa_grp_tvid :1 ; +u64 dsa_grp_scmd :1 ; +u64 dsa_grp_sid :1 ; +u64 reserved_21_23 :3 ; +u64 ring_en :1 ; +u64 reserved_17_19 :3 ; +u64 ignrs :1 ; +u64 vs_wqe :1 ; +u64 vs_qos :1 ; +u64 l2_mal :1 ; +u64 tcp_flag :1 ; +u64 l4_len :1 ; +u64 l4_chk :1 ; +u64 l4_prt :1 ; +u64 l4_mal :1 ; +u64 reserved_6_7 :2 ; +u64 ip6_eext :2 ; +u64 ip4_opts :1 ; +u64 ip_hop :1 ; +u64 ip_mal :1 ; +u64 ip_chk :1 ; + } cn61xx; +struct cvmx_pip_gbl_ctl_cn61xx cn63xx; +struct cvmx_pip_gbl_ctl_cn61xx cn63xxp1; +struct cvmx_pip_gbl_ctl_cn61xx cn66xx; +struct cvmx_pip_gbl_ctl_cn68xx { +u64 reserved_29_63 :35 ; +u64 egrp_dis :1 ; +u64 ihmsk_dis :1 ; +u64 dsa_grp_tvid :1 ; +u64 dsa_grp_scmd :1 ; +u64 dsa_grp_sid :1 ; +u64 reserved_17_23 :7 ; +u64 ignrs :1 ; +u64 vs_wqe :1 ; +u64 vs_qos :1 ; +u64 l2_mal :1 ; +u64 tcp_flag :1 ; +u64 l4_len :1 ; +u64 l4_chk :1 ; +u64 l4_prt :1 ; +u64 l4_mal :1 ; +u64 reserved_6_7 :2 ; +u64 ip6_eext :2 ; +u64 ip4_opts :1 ; +u64 ip_hop :1 ; +u64 ip_mal :1 ; +u64 ip_chk :1 ; + } cn68xx; +struct cvmx_pip_gbl_ctl_cn68xxp1 { +u64 reserved_28_63 :36 ; +u64 ihmsk_dis :1 ; +u64 dsa_grp_tvid :1 ; +u64 dsa_grp_scmd :1 ; +u64 dsa_grp_sid :1 ; +u64 reserved_17_23 :7 ; +u64 ignrs :1 ; +u64 vs_wqe :1 ; +u64 vs_qos :1 ; +u64 l2_mal :1 ; +u64 tcp_flag :1 ; +u64 l4_len :1 ; +u64 l4_chk :1 ; +u64 l4_prt :1 ; +u64 l4_mal :1 ; +u64 reserved_6_7 :2 ; +u64 ip6_eext :2 ; +u64 ip4_opts :1 ; +u64 ip_hop :1 ; +u64 ip_mal :1 ; +u64 ip_chk :1 ; + } cn68xxp1; +struct cvmx_pip_gbl_ctl_cn61xx cn70xx; +struct cvmx_pip_gbl_ctl_cn61xx cn70xxp1; +struct cvmx_pip_gbl_ctl_cn61xx cnf71xx; +}; + +typedef union cvmx_pip_gbl_ctl cvmx_pip_gbl_ctl_t ; + +/** +* cvmx_pip_hg_pri_qos +* +* Notes: +* This register controls accesses to the HG_QOS_TABLE. To write an entry of +* the table, write PIP_HG_PRI_QOS with PRI=table address, QOS=priority level, +* UP_QOS=1. To read an entry of the table, write PIP_HG_PRI_QOS with +* PRI=table address, QOS=dont_carepriority level, UP_QOS=0 and then read +* PIP_HG_PRI_QOS. The table data will be in PIP_HG_PRI_QOS[QOS]. +*/ +union cvmx_pip_hg_pri_qos { +u64 u64; +struct cvmx_pip_hg_pri_qos_s { +u64 reserved_13_63 :51 ; +u64 up_qos :1 ; +u64 reserved_11_11 :1 ; +u64 qos :3 ; +u64 reserved_6_7 :2 ; +u64 pri :6 ; + } s; +struct cvmx_pip_hg_pri_qos_s cn52xx; +struct cvmx_pip_hg_pri_qos_s cn52xxp1; +struct cvmx_pip_hg_pri_qos_s cn56xx; +struct cvmx_pip_hg_pri_qos_s cn61xx; +struct cvmx_pip_hg_pri_qos_s cn63xx; +struct cvmx_pip_hg_pri_qos_s cn63xxp1; +struct cvmx_pip_hg_pri_qos_s cn66xx; +struct cvmx_pip_hg_pri_qos_s cn70xx; +struct cvmx_pip_hg_pri_qos_s cn70xxp1; +struct cvmx_pip_hg_pri_qos_s cnf71xx; +}; + +typedef union cvmx_pip_hg_pri_qos cvmx_pip_hg_pri_qos_t ; + +/** +* cvmx_pip_int_en +* +* Determines if hardward should raise an interrupt to software +* when an exception event occurs. +*/ +union cvmx_pip_int_en { +u64 u64; +struct cvmx_pip_int_en_s { +u64 reserved_13_63 :51 ; +u64 punyerr :1 ; +u64 lenerr :1 ; +u64 maxerr :1 ; +u64 minerr :1 ; +u64 beperr :1 ; +u64 feperr :1 ; +u64 todoovr :1 ; +u64 skprunt :1 ; +u64 badtag :1 ; +u64 prtnxa :1 ; +u64 bckprs :1 ; +u64 crcerr :1 ; +u64 pktdrp :1 ; + } s; +struct cvmx_pip_int_en_cn30xx { +u64 reserved_9_63 :55 ; +u64 beperr :1 ; +u64 feperr :1 ; +u64 todoovr :1 ; +u64 skprunt :1 ; +u64 badtag :1 ; +u64 prtnxa :1 ; +u64 bckprs :1 ; +u64 crcerr :1 ; +u64 pktdrp :1 ; + } cn30xx; +struct cvmx_pip_int_en_cn30xx cn31xx; +struct cvmx_pip_int_en_cn30xx cn38xx; +struct cvmx_pip_int_en_cn30xx cn38xxp2; +struct cvmx_pip_int_en_cn50xx { +u64 reserved_12_63 :52 ; +u64 lenerr :1 ; +u64 maxerr :1 ; +u64 minerr :1 ; +u64 beperr :1 ; +u64 feperr :1 ; +u64 todoovr :1 ; +u64 skprunt :1 ; +u64 badtag :1 ; +u64 prtnxa :1 ; +u64 bckprs :1 ; +u64 reserved_1_1 :1 ; +u64 pktdrp :1 ; + } cn50xx; +struct cvmx_pip_int_en_cn52xx { +u64 reserved_13_63 :51 ; +u64 punyerr :1 ; +u64 lenerr :1 ; +u64 maxerr :1 ; +u64 minerr :1 ; +u64 beperr :1 ; +u64 feperr :1 ; +u64 todoovr :1 ; +u64 skprunt :1 ; +u64 badtag :1 ; +u64 prtnxa :1 ; +u64 bckprs :1 ; +u64 reserved_1_1 :1 ; +u64 pktdrp :1 ; + } cn52xx; +struct cvmx_pip_int_en_cn52xx cn52xxp1; +struct cvmx_pip_int_en_s cn56xx; +struct cvmx_pip_int_en_cn56xxp1 { +u64 reserved_12_63 :52 ; +u64 lenerr :1 ; +u64 maxerr :1 ; +u64 minerr :1 ; +u64 beperr :1 ; +u64 feperr :1 ; +u64 todoovr :1 ; +u64 skprunt :1 ; +u64 badtag :1 ; +u64 prtnxa :1 ; +u64 bckprs :1 ; +u64 crcerr :1 ; +u64 pktdrp :1 ; + } cn56xxp1; +struct cvmx_pip_int_en_cn58xx { +u64 reserved_13_63 :51 ; +u64 punyerr :1 ; +u64 reserved_9_11 :3 ; +u64 beperr :1 ; +u64 feperr :1 ; +u64 todoovr :1 ; +u64 skprunt :1 ; +u64 badtag :1 ; +u64 prtnxa :1 ; +u64 bckprs :1 ; +u64 crcerr :1 ; +u64 pktdrp :1 ; + } cn58xx; +struct cvmx_pip_int_en_cn30xx cn58xxp1; +struct cvmx_pip_int_en_s cn61xx; +struct cvmx_pip_int_en_s cn63xx; +struct cvmx_pip_int_en_s cn63xxp1; +struct cvmx_pip_int_en_s cn66xx; +struct cvmx_pip_int_en_s cn68xx; +struct cvmx_pip_int_en_s cn68xxp1; +struct cvmx_pip_int_en_s cn70xx; +struct cvmx_pip_int_en_s cn70xxp1; +struct cvmx_pip_int_en_s cnf71xx; +}; + +typedef union cvmx_pip_int_en cvmx_pip_int_en_t ; + +/** +* cvmx_pip_int_reg +* +* Any exception event that occurs is captured in the PIP_INT_REG. +* PIP_INT_REG will set the exception bit regardless of the value +* of PIP_INT_EN. PIP_INT_EN only controls if an interrupt is +* raised to software. +*/ +union cvmx_pip_int_reg { +u64 u64; +struct cvmx_pip_int_reg_s { +u64 reserved_13_63 :51 ; +u64 punyerr :1 ; +u64 lenerr :1 ; +u64 maxerr :1 ; +u64 minerr :1 ; +u64 beperr :1 ; +u64 feperr :1 ; +u64 todoovr :1 ; +u64 skprunt :1 ; +u64 badtag :1 ; +u64 prtnxa :1 ; +u64 bckprs :1 ; +u64 crcerr :1 ; +u64 pktdrp :1 ; + } s; +struct cvmx_pip_int_reg_cn30xx { +u64 reserved_9_63 :55 ; +u64 beperr :1 ; +u64 feperr :1 ; +u64 todoovr :1 ; +u64 skprunt :1 ; +u64 badtag :1 ; +u64 prtnxa :1 ; +u64 bckprs :1 ; +u64 crcerr :1 ; +u64 pktdrp :1 ; + } cn30xx; +struct cvmx_pip_int_reg_cn30xx cn31xx; +struct cvmx_pip_int_reg_cn30xx cn38xx; +struct cvmx_pip_int_reg_cn30xx cn38xxp2; +struct cvmx_pip_int_reg_cn50xx { +u64 reserved_12_63 :52 ; +u64 lenerr :1 ; +u64 maxerr :1 ; +u64 minerr :1 ; +u64 beperr :1 ; +u64 feperr :1 ; +u64 todoovr :1 ; +u64 skprunt :1 ; +u64 badtag :1 ; +u64 prtnxa :1 ; +u64 bckprs :1 ; +u64 reserved_1_1 :1 ; +u64 pktdrp :1 ; + } cn50xx; +struct cvmx_pip_int_reg_cn52xx { +u64 reserved_13_63 :51 ; +u64 punyerr :1 ; +u64 lenerr :1 ; +u64 maxerr :1 ; +u64 minerr :1 ; +u64 beperr :1 ; +u64 feperr :1 ; +u64 todoovr :1 ; +u64 skprunt :1 ; +u64 badtag :1 ; +u64 prtnxa :1 ; +u64 bckprs :1 ; +u64 reserved_1_1 :1 ; +u64 pktdrp :1 ; + } cn52xx; +struct cvmx_pip_int_reg_cn52xx cn52xxp1; +struct cvmx_pip_int_reg_s cn56xx; +struct cvmx_pip_int_reg_cn56xxp1 { +u64 reserved_12_63 :52 ; +u64 lenerr :1 ; +u64 maxerr :1 ; +u64 minerr :1 ; +u64 beperr :1 ; +u64 feperr :1 ; +u64 todoovr :1 ; +u64 skprunt :1 ; +u64 badtag :1 ; +u64 prtnxa :1 ; +u64 bckprs :1 ; +u64 crcerr :1 ; +u64 pktdrp :1 ; + } cn56xxp1; +struct cvmx_pip_int_reg_cn58xx { +u64 reserved_13_63 :51 ; +u64 punyerr :1 ; +u64 reserved_9_11 :3 ; +u64 beperr :1 ; +u64 feperr :1 ; +u64 todoovr :1 ; +u64 skprunt :1 ; +u64 badtag :1 ; +u64 prtnxa :1 ; +u64 bckprs :1 ; +u64 crcerr :1 ; +u64 pktdrp :1 ; + } cn58xx; +struct cvmx_pip_int_reg_cn30xx cn58xxp1; +struct cvmx_pip_int_reg_s cn61xx; +struct cvmx_pip_int_reg_s cn63xx; +struct cvmx_pip_int_reg_s cn63xxp1; +struct cvmx_pip_int_reg_s cn66xx; +struct cvmx_pip_int_reg_s cn68xx; +struct cvmx_pip_int_reg_s cn68xxp1; +struct cvmx_pip_int_reg_s cn70xx; +struct cvmx_pip_int_reg_s cn70xxp1; +struct cvmx_pip_int_reg_s cnf71xx; +}; + +typedef union cvmx_pip_int_reg cvmx_pip_int_reg_t ; + +/** +* cvmx_pip_ip_offset +* +* An 8-byte offset to find the start of the IP header in the data portion of IP workQ entires +* +*/ +union cvmx_pip_ip_offset { +u64 u64; +struct cvmx_pip_ip_offset_s { +u64 reserved_3_63 :61 ; +u64 offset :3 ; + } s; +struct cvmx_pip_ip_offset_s cn30xx; +struct cvmx_pip_ip_offset_s cn31xx; +struct cvmx_pip_ip_offset_s cn38xx; +struct cvmx_pip_ip_offset_s cn38xxp2; +struct cvmx_pip_ip_offset_s cn50xx; +struct cvmx_pip_ip_offset_s cn52xx; +struct cvmx_pip_ip_offset_s cn52xxp1; +struct cvmx_pip_ip_offset_s cn56xx; +struct cvmx_pip_ip_offset_s cn56xxp1; +struct cvmx_pip_ip_offset_s cn58xx; +struct cvmx_pip_ip_offset_s cn58xxp1; +struct cvmx_pip_ip_offset_s cn61xx; +struct cvmx_pip_ip_offset_s cn63xx; +struct cvmx_pip_ip_offset_s cn63xxp1; +struct cvmx_pip_ip_offset_s cn66xx; +struct cvmx_pip_ip_offset_s cn68xx; +struct cvmx_pip_ip_offset_s cn68xxp1; +struct cvmx_pip_ip_offset_s cn70xx; +struct cvmx_pip_ip_offset_s cn70xxp1; +struct cvmx_pip_ip_offset_s cnf71xx; +}; + +typedef union cvmx_pip_ip_offset cvmx_pip_ip_offset_t ; + +/** +* cvmx_pip_pri_tbl# +* +* Notes: +* The priority level from HiGig header is as follows +* +* HiGig/HiGig+ PRI = [1'b0, CNG[1:0], COS[2:0]] +* HiGig2 PRI = [DP[1:0], TC[3:0]] +* +* DSA PRI = WORD0[15:13] +* +* VLAN PRI = VLAN[15:13] +* +* DIFFSERV = IP.TOS/CLASS<7:2> +*/ +union cvmx_pip_pri_tblx { +u64 u64; +struct cvmx_pip_pri_tblx_s { +u64 diff2_padd :8 ; +u64 hg2_padd :8 ; +u64 vlan2_padd :8 ; +u64 reserved_38_39 :2 ; +u64 diff2_bpid :6 ; +u64 reserved_30_31 :2 ; +u64 hg2_bpid :6 ; +u64 reserved_22_23 :2 ; +u64 vlan2_bpid :6 ; +u64 reserved_11_15 :5 ; +u64 diff2_qos :3 ; +u64 reserved_7_7 :1 ; +u64 hg2_qos :3 ; +u64 reserved_3_3 :1 ; +u64 vlan2_qos :3 ; + } s; +struct cvmx_pip_pri_tblx_s cn68xx; +struct cvmx_pip_pri_tblx_s cn68xxp1; +}; + +typedef union cvmx_pip_pri_tblx cvmx_pip_pri_tblx_t ; + +/** +* cvmx_pip_prt_cfg# +* +* PIP_PRT_CFGX = Per port config information +* +*/ +union cvmx_pip_prt_cfgx { +u64 u64; +struct cvmx_pip_prt_cfgx_s { +u64 reserved_55_63 :9 ; +u64 ih_pri :1 ; +u64 len_chk_sel :1 ; +u64 pad_len :1 ; +u64 vlan_len :1 ; +u64 lenerr_en :1 ; +u64 maxerr_en :1 ; +u64 minerr_en :1 ; +u64 grp_wat_47 :4 ; +u64 qos_wat_47 :4 ; +u64 reserved_37_39 :3 ; +u64 rawdrp :1 ; +u64 tag_inc :2 ; +u64 dyn_rs :1 ; +u64 inst_hdr :1 ; +u64 grp_wat :4 ; +u64 hg_qos :1 ; +u64 qos :3 ; +u64 qos_wat :4 ; +u64 qos_vsel :1 ; +u64 qos_vod :1 ; +u64 qos_diff :1 ; +u64 qos_vlan :1 ; +u64 reserved_13_15 :3 ; +u64 crc_en :1 ; +u64 higig_en :1 ; +u64 dsa_en :1 ; +cvmx_pip_port_parse_mode_t mode :2 ; +u64 reserved_7_7 :1 ; +u64 skip :7 ; + } s; +struct cvmx_pip_prt_cfgx_cn30xx { +u64 reserved_37_63 :27 ; +u64 rawdrp :1 ; +u64 tag_inc :2 ; +u64 dyn_rs :1 ; +u64 inst_hdr :1 ; +u64 grp_wat :4 ; +u64 reserved_27_27 :1 ; +u64 qos :3 ; +u64 qos_wat :4 ; +u64 reserved_18_19 :2 ; +u64 qos_diff :1 ; +u64 qos_vlan :1 ; +u64 reserved_10_15 :6 ; +cvmx_pip_port_parse_mode_t mode :2 ; +u64 reserved_7_7 :1 ; +u64 skip :7 ; + } cn30xx; +struct cvmx_pip_prt_cfgx_cn30xx cn31xx; +struct cvmx_pip_prt_cfgx_cn38xx { +u64 reserved_37_63 :27 ; +u64 rawdrp :1 ; +u64 tag_inc :2 ; +u64 dyn_rs :1 ; +u64 inst_hdr :1 ; +u64 grp_wat :4 ; +u64 reserved_27_27 :1 ; +u64 qos :3 ; +u64 qos_wat :4 ; +u64 reserved_18_19 :2 ; +u64 qos_diff :1 ; +u64 qos_vlan :1 ; +u64 reserved_13_15 :3 ; +u64 crc_en :1 ; +u64 reserved_10_11 :2 ; +cvmx_pip_port_parse_mode_t mode :2 ; +u64 reserved_7_7 :1 ; +u64 skip :7 ; + } cn38xx; +struct cvmx_pip_prt_cfgx_cn38xx cn38xxp2; +struct cvmx_pip_prt_cfgx_cn50xx { +u64 reserved_53_63 :11 ; +u64 pad_len :1 ; +u64 vlan_len :1 ; +u64 lenerr_en :1 ; +u64 maxerr_en :1 ; +u64 minerr_en :1 ; +u64 grp_wat_47 :4 ; +u64 qos_wat_47 :4 ; +u64 reserved_37_39 :3 ; +u64 rawdrp :1 ; +u64 tag_inc :2 ; +u64 dyn_rs :1 ; +u64 inst_hdr :1 ; +u64 grp_wat :4 ; +u64 reserved_27_27 :1 ; +u64 qos :3 ; +u64 qos_wat :4 ; +u64 reserved_19_19 :1 ; +u64 qos_vod :1 ; +u64 qos_diff :1 ; +u64 qos_vlan :1 ; +u64 reserved_13_15 :3 ; +u64 crc_en :1 ; +u64 reserved_10_11 :2 ; +cvmx_pip_port_parse_mode_t mode :2 ; +u64 reserved_7_7 :1 ; +u64 skip :7 ; + } cn50xx; +struct cvmx_pip_prt_cfgx_cn52xx { +u64 reserved_53_63 :11 ; +u64 pad_len :1 ; +u64 vlan_len :1 ; +u64 lenerr_en :1 ; +u64 maxerr_en :1 ; +u64 minerr_en :1 ; +u64 grp_wat_47 :4 ; +u64 qos_wat_47 :4 ; +u64 reserved_37_39 :3 ; +u64 rawdrp :1 ; +u64 tag_inc :2 ; +u64 dyn_rs :1 ; +u64 inst_hdr :1 ; +u64 grp_wat :4 ; +u64 hg_qos :1 ; +u64 qos :3 ; +u64 qos_wat :4 ; +u64 qos_vsel :1 ; +u64 qos_vod :1 ; +u64 qos_diff :1 ; +u64 qos_vlan :1 ; +u64 reserved_13_15 :3 ; +u64 crc_en :1 ; +u64 higig_en :1 ; +u64 dsa_en :1 ; +cvmx_pip_port_parse_mode_t mode :2 ; +u64 reserved_7_7 :1 ; +u64 skip :7 ; + } cn52xx; +struct cvmx_pip_prt_cfgx_cn52xx cn52xxp1; +struct cvmx_pip_prt_cfgx_cn52xx cn56xx; +struct cvmx_pip_prt_cfgx_cn50xx cn56xxp1; +struct cvmx_pip_prt_cfgx_cn58xx { +u64 reserved_37_63 :27 ; +u64 rawdrp :1 ; +u64 tag_inc :2 ; +u64 dyn_rs :1 ; +u64 inst_hdr :1 ; +u64 grp_wat :4 ; +u64 reserved_27_27 :1 ; +u64 qos :3 ; +u64 qos_wat :4 ; +u64 reserved_19_19 :1 ; +u64 qos_vod :1 ; +u64 qos_diff :1 ; +u64 qos_vlan :1 ; +u64 reserved_13_15 :3 ; +u64 crc_en :1 ; +u64 reserved_10_11 :2 ; +cvmx_pip_port_parse_mode_t mode :2 ; +u64 reserved_7_7 :1 ; +u64 skip :7 ; + } cn58xx; +struct cvmx_pip_prt_cfgx_cn58xx cn58xxp1; +struct cvmx_pip_prt_cfgx_cn52xx cn61xx; +struct cvmx_pip_prt_cfgx_cn52xx cn63xx; +struct cvmx_pip_prt_cfgx_cn52xx cn63xxp1; +struct cvmx_pip_prt_cfgx_cn52xx cn66xx; +struct cvmx_pip_prt_cfgx_cn68xx { +u64 reserved_55_63 :9 ; +u64 ih_pri :1 ; +u64 len_chk_sel :1 ; +u64 pad_len :1 ; +u64 vlan_len :1 ; +u64 lenerr_en :1 ; +u64 maxerr_en :1 ; +u64 minerr_en :1 ; +u64 grp_wat_47 :4 ; +u64 qos_wat_47 :4 ; +u64 reserved_37_39 :3 ; +u64 rawdrp :1 ; +u64 tag_inc :2 ; +u64 dyn_rs :1 ; +u64 inst_hdr :1 ; +u64 grp_wat :4 ; +u64 hg_qos :1 ; +u64 qos :3 ; +u64 qos_wat :4 ; +u64 reserved_19_19 :1 ; +u64 qos_vod :1 ; +u64 qos_diff :1 ; +u64 qos_vlan :1 ; +u64 reserved_13_15 :3 ; +u64 crc_en :1 ; +u64 higig_en :1 ; +u64 dsa_en :1 ; +cvmx_pip_port_parse_mode_t mode :2 ; +u64 reserved_7_7 :1 ; +u64 skip :7 ; + } cn68xx; +struct cvmx_pip_prt_cfgx_cn68xx cn68xxp1; +struct cvmx_pip_prt_cfgx_cn52xx cn70xx; +struct cvmx_pip_prt_cfgx_cn52xx cn70xxp1; +struct cvmx_pip_prt_cfgx_cn52xx cnf71xx; +}; + +typedef union cvmx_pip_prt_cfgx cvmx_pip_prt_cfgx_t ; + +/** +* cvmx_pip_prt_cfgb# +* +* Notes: +* PIP_PRT_CFGB* does not exist prior to pass 1.2. +* +*/ +union cvmx_pip_prt_cfgbx { +u64 u64; +struct cvmx_pip_prt_cfgbx_s { +u64 reserved_39_63 :25 ; +u64 alt_skp_sel :2 ; +u64 alt_skp_en :1 ; +u64 reserved_35_35 :1 ; +u64 bsel_num :2 ; +u64 bsel_en :1 ; +u64 reserved_24_31 :8 ; +u64 base :8 ; +u64 reserved_6_15 :10 ; +u64 bpid :6 ; + } s; +struct cvmx_pip_prt_cfgbx_cn61xx { +u64 reserved_39_63 :25 ; +u64 alt_skp_sel :2 ; +u64 alt_skp_en :1 ; +u64 reserved_35_35 :1 ; +u64 bsel_num :2 ; +u64 bsel_en :1 ; +u64 reserved_0_31 :32 ; + } cn61xx; +struct cvmx_pip_prt_cfgbx_cn66xx { +u64 reserved_39_63 :25 ; +u64 alt_skp_sel :2 ; +u64 alt_skp_en :1 ; +u64 reserved_0_35 :36 ; + } cn66xx; +struct cvmx_pip_prt_cfgbx_s cn68xx; +struct cvmx_pip_prt_cfgbx_cn68xxp1 { +u64 reserved_24_63 :40 ; +u64 base :8 ; +u64 reserved_6_15 :10 ; +u64 bpid :6 ; + } cn68xxp1; +struct cvmx_pip_prt_cfgbx_cn61xx cn70xx; +struct cvmx_pip_prt_cfgbx_cn61xx cn70xxp1; +struct cvmx_pip_prt_cfgbx_cn61xx cnf71xx; +}; + +typedef union cvmx_pip_prt_cfgbx cvmx_pip_prt_cfgbx_t ; + +/** +* cvmx_pip_prt_tag# +* +* PIP_PRT_TAGX = Per port config information +* +*/ +union cvmx_pip_prt_tagx { +u64 u64; +struct cvmx_pip_prt_tagx_s { +u64 reserved_54_63 :10 ; +u64 portadd_en :1 ; +u64 inc_hwchk :1 ; +u64 reserved_50_51 :2 ; +u64 grptagbase_msb :2 ; +u64 reserved_46_47 :2 ; +u64 grptagmask_msb :2 ; +u64 reserved_42_43 :2 ; +u64 grp_msb :2 ; +u64 grptagbase :4 ; +u64 grptagmask :4 ; +u64 grptag :1 ; +u64 grptag_mskip :1 ; +u64 tag_mode :2 ; +u64 inc_vs :2 ; +u64 inc_vlan :1 ; +u64 inc_prt_flag :1 ; +u64 ip6_dprt_flag :1 ; +u64 ip4_dprt_flag :1 ; +u64 ip6_sprt_flag :1 ; +u64 ip4_sprt_flag :1 ; +u64 ip6_nxth_flag :1 ; +u64 ip4_pctl_flag :1 ; +u64 ip6_dst_flag :1 ; +u64 ip4_dst_flag :1 ; +u64 ip6_src_flag :1 ; +u64 ip4_src_flag :1 ; +cvmx_pow_tag_type_t tcp6_tag_type :2 ; +cvmx_pow_tag_type_t tcp4_tag_type :2 ; +cvmx_pow_tag_type_t ip6_tag_type :2 ; +cvmx_pow_tag_type_t ip4_tag_type :2 ; +cvmx_pow_tag_type_t non_tag_type :2 ; +u64 grp :4 ; + } s; +struct cvmx_pip_prt_tagx_cn30xx { +u64 reserved_40_63 :24 ; +u64 grptagbase :4 ; +u64 grptagmask :4 ; +u64 grptag :1 ; +u64 reserved_30_30 :1 ; +u64 tag_mode :2 ; +u64 inc_vs :2 ; +u64 inc_vlan :1 ; +u64 inc_prt_flag :1 ; +u64 ip6_dprt_flag :1 ; +u64 ip4_dprt_flag :1 ; +u64 ip6_sprt_flag :1 ; +u64 ip4_sprt_flag :1 ; +u64 ip6_nxth_flag :1 ; +u64 ip4_pctl_flag :1 ; +u64 ip6_dst_flag :1 ; +u64 ip4_dst_flag :1 ; +u64 ip6_src_flag :1 ; +u64 ip4_src_flag :1 ; +cvmx_pow_tag_type_t tcp6_tag_type :2 ; +cvmx_pow_tag_type_t tcp4_tag_type :2 ; +cvmx_pow_tag_type_t ip6_tag_type :2 ; +cvmx_pow_tag_type_t ip4_tag_type :2 ; +cvmx_pow_tag_type_t non_tag_type :2 ; +u64 grp :4 ; + } cn30xx; +struct cvmx_pip_prt_tagx_cn30xx cn31xx; +struct cvmx_pip_prt_tagx_cn30xx cn38xx; +struct cvmx_pip_prt_tagx_cn30xx cn38xxp2; +struct cvmx_pip_prt_tagx_cn50xx { +u64 reserved_40_63 :24 ; +u64 grptagbase :4 ; +u64 grptagmask :4 ; +u64 grptag :1 ; +u64 grptag_mskip :1 ; +u64 tag_mode :2 ; +u64 inc_vs :2 ; +u64 inc_vlan :1 ; +u64 inc_prt_flag :1 ; +u64 ip6_dprt_flag :1 ; +u64 ip4_dprt_flag :1 ; +u64 ip6_sprt_flag :1 ; +u64 ip4_sprt_flag :1 ; +u64 ip6_nxth_flag :1 ; +u64 ip4_pctl_flag :1 ; +u64 ip6_dst_flag :1 ; +u64 ip4_dst_flag :1 ; +u64 ip6_src_flag :1 ; +u64 ip4_src_flag :1 ; +cvmx_pow_tag_type_t tcp6_tag_type :2 ; +cvmx_pow_tag_type_t tcp4_tag_type :2 ; +cvmx_pow_tag_type_t ip6_tag_type :2 ; +cvmx_pow_tag_type_t ip4_tag_type :2 ; +cvmx_pow_tag_type_t non_tag_type :2 ; +u64 grp :4 ; + } cn50xx; +struct cvmx_pip_prt_tagx_cn50xx cn52xx; +struct cvmx_pip_prt_tagx_cn50xx cn52xxp1; +struct cvmx_pip_prt_tagx_cn50xx cn56xx; +struct cvmx_pip_prt_tagx_cn50xx cn56xxp1; +struct cvmx_pip_prt_tagx_cn30xx cn58xx; +struct cvmx_pip_prt_tagx_cn30xx cn58xxp1; +struct cvmx_pip_prt_tagx_cn50xx cn61xx; +struct cvmx_pip_prt_tagx_cn50xx cn63xx; +struct cvmx_pip_prt_tagx_cn50xx cn63xxp1; +struct cvmx_pip_prt_tagx_cn50xx cn66xx; +struct cvmx_pip_prt_tagx_s cn68xx; +struct cvmx_pip_prt_tagx_s cn68xxp1; +struct cvmx_pip_prt_tagx_cn50xx cn70xx; +struct cvmx_pip_prt_tagx_cn50xx cn70xxp1; +struct cvmx_pip_prt_tagx_cn50xx cnf71xx; +}; + +typedef union cvmx_pip_prt_tagx cvmx_pip_prt_tagx_t ; + +/** +* cvmx_pip_qos_diff# +* +* PIP_QOS_DIFFX = QOS Diffserv Tables +* +*/ +union cvmx_pip_qos_diffx { +u64 u64; +struct cvmx_pip_qos_diffx_s { +u64 reserved_3_63 :61 ; +u64 qos :3 ; + } s; +struct cvmx_pip_qos_diffx_s cn30xx; +struct cvmx_pip_qos_diffx_s cn31xx; +struct cvmx_pip_qos_diffx_s cn38xx; +struct cvmx_pip_qos_diffx_s cn38xxp2; +struct cvmx_pip_qos_diffx_s cn50xx; +struct cvmx_pip_qos_diffx_s cn52xx; +struct cvmx_pip_qos_diffx_s cn52xxp1; +struct cvmx_pip_qos_diffx_s cn56xx; +struct cvmx_pip_qos_diffx_s cn56xxp1; +struct cvmx_pip_qos_diffx_s cn58xx; +struct cvmx_pip_qos_diffx_s cn58xxp1; +struct cvmx_pip_qos_diffx_s cn61xx; +struct cvmx_pip_qos_diffx_s cn63xx; +struct cvmx_pip_qos_diffx_s cn63xxp1; +struct cvmx_pip_qos_diffx_s cn66xx; +struct cvmx_pip_qos_diffx_s cn70xx; +struct cvmx_pip_qos_diffx_s cn70xxp1; +struct cvmx_pip_qos_diffx_s cnf71xx; +}; + +typedef union cvmx_pip_qos_diffx cvmx_pip_qos_diffx_t ; + +/** +* cvmx_pip_qos_vlan# +* +* If the PIP indentifies a packet is DSA/VLAN tagged, then the QOS +* can be set based on the DSA/VLAN user priority. These eight register +* comprise the QOS values for all DSA/VLAN user priority values. +*/ +union cvmx_pip_qos_vlanx { +u64 u64; +struct cvmx_pip_qos_vlanx_s { +u64 reserved_7_63 :57 ; +u64 qos1 :3 ; +u64 reserved_3_3 :1 ; +u64 qos :3 ; + } s; +struct cvmx_pip_qos_vlanx_cn30xx { +u64 reserved_3_63 :61 ; +u64 qos :3 ; + } cn30xx; +struct cvmx_pip_qos_vlanx_cn30xx cn31xx; +struct cvmx_pip_qos_vlanx_cn30xx cn38xx; +struct cvmx_pip_qos_vlanx_cn30xx cn38xxp2; +struct cvmx_pip_qos_vlanx_cn30xx cn50xx; +struct cvmx_pip_qos_vlanx_s cn52xx; +struct cvmx_pip_qos_vlanx_s cn52xxp1; +struct cvmx_pip_qos_vlanx_s cn56xx; +struct cvmx_pip_qos_vlanx_cn30xx cn56xxp1; +struct cvmx_pip_qos_vlanx_cn30xx cn58xx; +struct cvmx_pip_qos_vlanx_cn30xx cn58xxp1; +struct cvmx_pip_qos_vlanx_s cn61xx; +struct cvmx_pip_qos_vlanx_s cn63xx; +struct cvmx_pip_qos_vlanx_s cn63xxp1; +struct cvmx_pip_qos_vlanx_s cn66xx; +struct cvmx_pip_qos_vlanx_s cn70xx; +struct cvmx_pip_qos_vlanx_s cn70xxp1; +struct cvmx_pip_qos_vlanx_s cnf71xx; +}; + +typedef union cvmx_pip_qos_vlanx cvmx_pip_qos_vlanx_t ; + +/** +* cvmx_pip_qos_watch# +* +* Sets up the Configuration CSRs for the four QOS Watchers. +* Each Watcher can be set to look for a specific protocol, +* TCP/UDP destination port, or Ethertype to override the +* default QOS value. +*/ +union cvmx_pip_qos_watchx { +u64 u64; +struct cvmx_pip_qos_watchx_s { +u64 reserved_48_63 :16 ; +u64 mask :16 ; +u64 reserved_30_31 :2 ; +u64 grp :6 ; +u64 reserved_23_23 :1 ; +u64 qos :3 ; +u64 reserved_16_19 :4 ; +u64 match_value :16 ; + } s; +struct cvmx_pip_qos_watchx_cn30xx { +u64 reserved_48_63 :16 ; +u64 mask :16 ; +u64 reserved_28_31 :4 ; +u64 grp :4 ; +u64 reserved_23_23 :1 ; +u64 qos :3 ; +u64 reserved_18_19 :2 ; + +cvmx_pip_qos_watch_types match_type :2 ; +u64 match_value :16 ; + } cn30xx; +struct cvmx_pip_qos_watchx_cn30xx cn31xx; +struct cvmx_pip_qos_watchx_cn30xx cn38xx; +struct cvmx_pip_qos_watchx_cn30xx cn38xxp2; +struct cvmx_pip_qos_watchx_cn50xx { +u64 reserved_48_63 :16 ; +u64 mask :16 ; +u64 reserved_28_31 :4 ; +u64 grp :4 ; +u64 reserved_23_23 :1 ; +u64 qos :3 ; +u64 reserved_19_19 :1 ; + +cvmx_pip_qos_watch_types match_type :3 ; +u64 match_value :16 ; + } cn50xx; +struct cvmx_pip_qos_watchx_cn50xx cn52xx; +struct cvmx_pip_qos_watchx_cn50xx cn52xxp1; +struct cvmx_pip_qos_watchx_cn50xx cn56xx; +struct cvmx_pip_qos_watchx_cn50xx cn56xxp1; +struct cvmx_pip_qos_watchx_cn30xx cn58xx; +struct cvmx_pip_qos_watchx_cn30xx cn58xxp1; +struct cvmx_pip_qos_watchx_cn50xx cn61xx; +struct cvmx_pip_qos_watchx_cn50xx cn63xx; +struct cvmx_pip_qos_watchx_cn50xx cn63xxp1; +struct cvmx_pip_qos_watchx_cn50xx cn66xx; +struct cvmx_pip_qos_watchx_cn68xx { +u64 reserved_48_63 :16 ; +u64 mask :16 ; +u64 reserved_30_31 :2 ; +u64 grp :6 ; +u64 reserved_23_23 :1 ; +u64 qos :3 ; +u64 reserved_19_19 :1 ; + +cvmx_pip_qos_watch_types match_type :3 ; +u64 match_value :16 ; + } cn68xx; +struct cvmx_pip_qos_watchx_cn68xx cn68xxp1; +struct cvmx_pip_qos_watchx_cn70xx { +u64 reserved_48_63 :16 ; +u64 mask :16 ; +u64 reserved_28_31 :4 ; +u64 grp :4 ; +u64 reserved_23_23 :1 ; +u64 qos :3 ; +u64 reserved_19_19 :1 ; +u64 typ :3 ; +u64 match_value :16 ; + } cn70xx; +struct cvmx_pip_qos_watchx_cn70xx cn70xxp1; +struct cvmx_pip_qos_watchx_cn50xx cnf71xx; +}; + +typedef union cvmx_pip_qos_watchx cvmx_pip_qos_watchx_t ; + +/** +* cvmx_pip_raw_word +* +* The RAW Word2 to be inserted into the workQ entry of RAWFULL packets. +* +*/ +union cvmx_pip_raw_word { +u64 u64; +struct cvmx_pip_raw_word_s { +u64 reserved_56_63 :8 ; +u64 word :56 ; + } s; +struct cvmx_pip_raw_word_s cn30xx; +struct cvmx_pip_raw_word_s cn31xx; +struct cvmx_pip_raw_word_s cn38xx; +struct cvmx_pip_raw_word_s cn38xxp2; +struct cvmx_pip_raw_word_s cn50xx; +struct cvmx_pip_raw_word_s cn52xx; +struct cvmx_pip_raw_word_s cn52xxp1; +struct cvmx_pip_raw_word_s cn56xx; +struct cvmx_pip_raw_word_s cn56xxp1; +struct cvmx_pip_raw_word_s cn58xx; +struct cvmx_pip_raw_word_s cn58xxp1; +struct cvmx_pip_raw_word_s cn61xx; +struct cvmx_pip_raw_word_s cn63xx; +struct cvmx_pip_raw_word_s cn63xxp1; +struct cvmx_pip_raw_word_s cn66xx; +struct cvmx_pip_raw_word_s cn68xx; +struct cvmx_pip_raw_word_s cn68xxp1; +struct cvmx_pip_raw_word_s cn70xx; +struct cvmx_pip_raw_word_s cn70xxp1; +struct cvmx_pip_raw_word_s cnf71xx; +}; + +typedef union cvmx_pip_raw_word cvmx_pip_raw_word_t ; + +/** +* cvmx_pip_sft_rst +* +* When written to a '1', resets the pip block +* +*/ +union cvmx_pip_sft_rst { +u64 u64; +struct cvmx_pip_sft_rst_s { +u64 reserved_1_63 :63 ; +u64 rst :1 ; + } s; +struct cvmx_pip_sft_rst_s cn30xx; +struct cvmx_pip_sft_rst_s cn31xx; +struct cvmx_pip_sft_rst_s cn38xx; +struct cvmx_pip_sft_rst_s cn50xx; +struct cvmx_pip_sft_rst_s cn52xx; +struct cvmx_pip_sft_rst_s cn52xxp1; +struct cvmx_pip_sft_rst_s cn56xx; +struct cvmx_pip_sft_rst_s cn56xxp1; +struct cvmx_pip_sft_rst_s cn58xx; +struct cvmx_pip_sft_rst_s cn58xxp1; +struct cvmx_pip_sft_rst_s cn61xx; +struct cvmx_pip_sft_rst_s cn63xx; +struct cvmx_pip_sft_rst_s cn63xxp1; +struct cvmx_pip_sft_rst_s cn66xx; +struct cvmx_pip_sft_rst_s cn68xx; +struct cvmx_pip_sft_rst_s cn68xxp1; +struct cvmx_pip_sft_rst_s cn70xx; +struct cvmx_pip_sft_rst_s cn70xxp1; +struct cvmx_pip_sft_rst_s cnf71xx; +}; + +typedef union cvmx_pip_sft_rst cvmx_pip_sft_rst_t ; + +/** +* cvmx_pip_stat0_# +* +* PIP Statistics Counters +* +* Note: special stat counter behavior +* +* 1) Read and write operations must arbitrate for the statistics resources +* along with the packet engines which are incrementing the counters. +* In order to not drop packet information, the packet HW is always a +* higher priority and the CSR requests will only be satisified when +* there are idle cycles. This can potentially cause long delays if the +* system becomes full. +* +* 2) stat counters can be cleared in two ways. If PIP_STAT_CTL[RDCLR] is +* set, then all read accesses will clear the register. In addition, +* any write to a stats register will also reset the register to zero. +* Please note that the clearing operations must obey rule \#1 above. +* +* 3) all counters are wrapping - software must ensure they are read periodically +* +* 4) The counters accumulate statistics for packets that are sent to PKI. If +* PTP_MODE is enabled, the 8B timestamp is prepended to the packet. This +* additional 8B of data is captured in the octet counts. +* +* 5) X represents either the packet's port-kind or backpressure ID as +* determined by PIP_STAT_CTL[MODE] +* PIP_STAT0_X = PIP_STAT_DRP_PKTS / PIP_STAT_DRP_OCTS +*/ +union cvmx_pip_stat0_x { +u64 u64; +struct cvmx_pip_stat0_x_s { +u64 drp_pkts :32 ; +u64 drp_octs :32 ; + } s; +struct cvmx_pip_stat0_x_s cn68xx; +struct cvmx_pip_stat0_x_s cn68xxp1; +}; + +typedef union cvmx_pip_stat0_x cvmx_pip_stat0_x_t ; + +/** +* cvmx_pip_stat0_prt# +* +* "PIP Statistics Counters +* Note: special stat counter behavior +* 1) Read and write operations must arbitrate for the statistics resources +* along with the packet engines which are incrementing the counters. +* In order to not drop packet information, the packet HW is always a +* higher priority and the CSR requests will only be satisified when +* there are idle cycles. This can potentially cause long delays if the +* system becomes full. +* 2) stat counters can be cleared in two ways. If PIP_STAT_CTL[RDCLR] is +* set, then all read accesses will clear the register. In addition, +* any write to a stats register will also reset the register to zero. +* Please note that the clearing operations must obey rule \#1 above. +* 3) all counters are wrapping - software must ensure they are read periodically +* 4) The counters accumulate statistics for packets that are sent to PKI. If +* PTP_MODE is enabled, the 8B timestamp is prepended to the packet. This +* additional 8B of data is captured in the octet counts. +* PIP_STAT0_PRT = PIP_STAT_DRP_PKTS / PIP_STAT_DRP_OCTS" +*/ +union cvmx_pip_stat0_prtx { +u64 u64; +struct cvmx_pip_stat0_prtx_s { +u64 drp_pkts :32 ; +u64 drp_octs :32 ; + } s; +struct cvmx_pip_stat0_prtx_s cn30xx; +struct cvmx_pip_stat0_prtx_s cn31xx; +struct cvmx_pip_stat0_prtx_s cn38xx; +struct cvmx_pip_stat0_prtx_s cn38xxp2; +struct cvmx_pip_stat0_prtx_s cn50xx; +struct cvmx_pip_stat0_prtx_s cn52xx; +struct cvmx_pip_stat0_prtx_s cn52xxp1; +struct cvmx_pip_stat0_prtx_s cn56xx; +struct cvmx_pip_stat0_prtx_s cn56xxp1; +struct cvmx_pip_stat0_prtx_s cn58xx; +struct cvmx_pip_stat0_prtx_s cn58xxp1; +struct cvmx_pip_stat0_prtx_s cn61xx; +struct cvmx_pip_stat0_prtx_s cn63xx; +struct cvmx_pip_stat0_prtx_s cn63xxp1; +struct cvmx_pip_stat0_prtx_s cn66xx; +struct cvmx_pip_stat0_prtx_s cn70xx; +struct cvmx_pip_stat0_prtx_s cn70xxp1; +struct cvmx_pip_stat0_prtx_s cnf71xx; +}; + +typedef union cvmx_pip_stat0_prtx cvmx_pip_stat0_prtx_t ; + +/** +* cvmx_pip_stat10_# +* +* PIP_STAT10_X = PIP_STAT_L2_MCAST / PIP_STAT_L2_BCAST +* +*/ +union cvmx_pip_stat10_x { +u64 u64; +struct cvmx_pip_stat10_x_s { +u64 bcast :32 ; +u64 mcast :32 ; + } s; +struct cvmx_pip_stat10_x_s cn68xx; +struct cvmx_pip_stat10_x_s cn68xxp1; +}; + +typedef union cvmx_pip_stat10_x cvmx_pip_stat10_x_t ; + +/** +* cvmx_pip_stat10_prt# +* +* PIP_STAT10_PRTX = PIP_STAT_L2_MCAST / PIP_STAT_L2_BCAST +* +*/ +union cvmx_pip_stat10_prtx { +u64 u64; +struct cvmx_pip_stat10_prtx_s { +u64 bcast :32 ; +u64 mcast :32 ; + } s; +struct cvmx_pip_stat10_prtx_s cn52xx; +struct cvmx_pip_stat10_prtx_s cn52xxp1; +struct cvmx_pip_stat10_prtx_s cn56xx; +struct cvmx_pip_stat10_prtx_s cn56xxp1; +struct cvmx_pip_stat10_prtx_s cn61xx; +struct cvmx_pip_stat10_prtx_s cn63xx; +struct cvmx_pip_stat10_prtx_s cn63xxp1; +struct cvmx_pip_stat10_prtx_s cn66xx; +struct cvmx_pip_stat10_prtx_s cn70xx; +struct cvmx_pip_stat10_prtx_s cn70xxp1; +struct cvmx_pip_stat10_prtx_s cnf71xx; +}; + +typedef union cvmx_pip_stat10_prtx cvmx_pip_stat10_prtx_t ; + +/** +* cvmx_pip_stat11_# +* +* PIP_STAT11_X = PIP_STAT_L3_MCAST / PIP_STAT_L3_BCAST +* +*/ +union cvmx_pip_stat11_x { +u64 u64; +struct cvmx_pip_stat11_x_s { +u64 bcast :32 ; +u64 mcast :32 ; + } s; +struct cvmx_pip_stat11_x_s cn68xx; +struct cvmx_pip_stat11_x_s cn68xxp1; +}; + +typedef union cvmx_pip_stat11_x cvmx_pip_stat11_x_t ; + +/** +* cvmx_pip_stat11_prt# +* +* PIP_STAT11_PRTX = PIP_STAT_L3_MCAST / PIP_STAT_L3_BCAST +* +*/ +union cvmx_pip_stat11_prtx { +u64 u64; +struct cvmx_pip_stat11_prtx_s { +u64 bcast :32 ; +u64 mcast :32 ; + } s; +struct cvmx_pip_stat11_prtx_s cn52xx; +struct cvmx_pip_stat11_prtx_s cn52xxp1; +struct cvmx_pip_stat11_prtx_s cn56xx; +struct cvmx_pip_stat11_prtx_s cn56xxp1; +struct cvmx_pip_stat11_prtx_s cn61xx; +struct cvmx_pip_stat11_prtx_s cn63xx; +struct cvmx_pip_stat11_prtx_s cn63xxp1; +struct cvmx_pip_stat11_prtx_s cn66xx; +struct cvmx_pip_stat11_prtx_s cn70xx; +struct cvmx_pip_stat11_prtx_s cn70xxp1; +struct cvmx_pip_stat11_prtx_s cnf71xx; +}; + +typedef union cvmx_pip_stat11_prtx cvmx_pip_stat11_prtx_t ; + +/** +* cvmx_pip_stat1_# +* +* PIP_STAT1_X = PIP_STAT_OCTS +* +*/ +union cvmx_pip_stat1_x { +u64 u64; +struct cvmx_pip_stat1_x_s { +u64 reserved_48_63 :16 ; +u64 octs :48 ; + } s; +struct cvmx_pip_stat1_x_s cn68xx; +struct cvmx_pip_stat1_x_s cn68xxp1; +}; + +typedef union cvmx_pip_stat1_x cvmx_pip_stat1_x_t ; + +/** +* cvmx_pip_stat1_prt# +* +* PIP_STAT1_PRTX = PIP_STAT_OCTS +* +*/ +union cvmx_pip_stat1_prtx { +u64 u64; +struct cvmx_pip_stat1_prtx_s { +u64 reserved_48_63 :16 ; +u64 octs :48 ; + } s; +struct cvmx_pip_stat1_prtx_s cn30xx; +struct cvmx_pip_stat1_prtx_s cn31xx; +struct cvmx_pip_stat1_prtx_s cn38xx; +struct cvmx_pip_stat1_prtx_s cn38xxp2; +struct cvmx_pip_stat1_prtx_s cn50xx; +struct cvmx_pip_stat1_prtx_s cn52xx; +struct cvmx_pip_stat1_prtx_s cn52xxp1; +struct cvmx_pip_stat1_prtx_s cn56xx; +struct cvmx_pip_stat1_prtx_s cn56xxp1; +struct cvmx_pip_stat1_prtx_s cn58xx; +struct cvmx_pip_stat1_prtx_s cn58xxp1; +struct cvmx_pip_stat1_prtx_s cn61xx; +struct cvmx_pip_stat1_prtx_s cn63xx; +struct cvmx_pip_stat1_prtx_s cn63xxp1; +struct cvmx_pip_stat1_prtx_s cn66xx; +struct cvmx_pip_stat1_prtx_s cn70xx; +struct cvmx_pip_stat1_prtx_s cn70xxp1; +struct cvmx_pip_stat1_prtx_s cnf71xx; +}; + +typedef union cvmx_pip_stat1_prtx cvmx_pip_stat1_prtx_t ; + +/** +* cvmx_pip_stat2_# +* +* PIP_STAT2_X = PIP_STAT_PKTS / PIP_STAT_RAW +* +*/ +union cvmx_pip_stat2_x { +u64 u64; +struct cvmx_pip_stat2_x_s { +u64 pkts :32 ; +u64 raw :32 ; + } s; +struct cvmx_pip_stat2_x_s cn68xx; +struct cvmx_pip_stat2_x_s cn68xxp1; +}; + +typedef union cvmx_pip_stat2_x cvmx_pip_stat2_x_t ; + +/** +* cvmx_pip_stat2_prt# +* +* PIP_STAT2_PRTX = PIP_STAT_PKTS / PIP_STAT_RAW +* +*/ +union cvmx_pip_stat2_prtx { +u64 u64; +struct cvmx_pip_stat2_prtx_s { +u64 pkts :32 ; +u64 raw :32 ; + } s; +struct cvmx_pip_stat2_prtx_s cn30xx; +struct cvmx_pip_stat2_prtx_s cn31xx; +struct cvmx_pip_stat2_prtx_s cn38xx; +struct cvmx_pip_stat2_prtx_s cn38xxp2; +struct cvmx_pip_stat2_prtx_s cn50xx; +struct cvmx_pip_stat2_prtx_s cn52xx; +struct cvmx_pip_stat2_prtx_s cn52xxp1; +struct cvmx_pip_stat2_prtx_s cn56xx; +struct cvmx_pip_stat2_prtx_s cn56xxp1; +struct cvmx_pip_stat2_prtx_s cn58xx; +struct cvmx_pip_stat2_prtx_s cn58xxp1; +struct cvmx_pip_stat2_prtx_s cn61xx; +struct cvmx_pip_stat2_prtx_s cn63xx; +struct cvmx_pip_stat2_prtx_s cn63xxp1; +struct cvmx_pip_stat2_prtx_s cn66xx; +struct cvmx_pip_stat2_prtx_s cn70xx; +struct cvmx_pip_stat2_prtx_s cn70xxp1; +struct cvmx_pip_stat2_prtx_s cnf71xx; +}; + +typedef union cvmx_pip_stat2_prtx cvmx_pip_stat2_prtx_t ; + +/** +* cvmx_pip_stat3_# +* +* PIP_STAT3_X = PIP_STAT_BCST / PIP_STAT_MCST +* +*/ +union cvmx_pip_stat3_x { +u64 u64; +struct cvmx_pip_stat3_x_s { +u64 bcst :32 ; +u64 mcst :32 ; + } s; +struct cvmx_pip_stat3_x_s cn68xx; +struct cvmx_pip_stat3_x_s cn68xxp1; +}; + +typedef union cvmx_pip_stat3_x cvmx_pip_stat3_x_t ; + +/** +* cvmx_pip_stat3_prt# +* +* PIP_STAT3_PRTX = PIP_STAT_BCST / PIP_STAT_MCST +* +*/ +union cvmx_pip_stat3_prtx { +u64 u64; +struct cvmx_pip_stat3_prtx_s { +u64 bcst :32 ; +u64 mcst :32 ; + } s; +struct cvmx_pip_stat3_prtx_s cn30xx; +struct cvmx_pip_stat3_prtx_s cn31xx; +struct cvmx_pip_stat3_prtx_s cn38xx; +struct cvmx_pip_stat3_prtx_s cn38xxp2; +struct cvmx_pip_stat3_prtx_s cn50xx; +struct cvmx_pip_stat3_prtx_s cn52xx; +struct cvmx_pip_stat3_prtx_s cn52xxp1; +struct cvmx_pip_stat3_prtx_s cn56xx; +struct cvmx_pip_stat3_prtx_s cn56xxp1; +struct cvmx_pip_stat3_prtx_s cn58xx; +struct cvmx_pip_stat3_prtx_s cn58xxp1; +struct cvmx_pip_stat3_prtx_s cn61xx; +struct cvmx_pip_stat3_prtx_s cn63xx; +struct cvmx_pip_stat3_prtx_s cn63xxp1; +struct cvmx_pip_stat3_prtx_s cn66xx; +struct cvmx_pip_stat3_prtx_s cn70xx; +struct cvmx_pip_stat3_prtx_s cn70xxp1; +struct cvmx_pip_stat3_prtx_s cnf71xx; +}; + +typedef union cvmx_pip_stat3_prtx cvmx_pip_stat3_prtx_t ; + +/** +* cvmx_pip_stat4_# +* +* PIP_STAT4_X = PIP_STAT_HIST1 / PIP_STAT_HIST0 +* +*/ +union cvmx_pip_stat4_x { +u64 u64; +struct cvmx_pip_stat4_x_s { +u64 h65to127 :32 ; +u64 h64 :32 ; + } s; +struct cvmx_pip_stat4_x_s cn68xx; +struct cvmx_pip_stat4_x_s cn68xxp1; +}; + +typedef union cvmx_pip_stat4_x cvmx_pip_stat4_x_t ; + +/** +* cvmx_pip_stat4_prt# +* +* PIP_STAT4_PRTX = PIP_STAT_HIST1 / PIP_STAT_HIST0 +* +*/ +union cvmx_pip_stat4_prtx { +u64 u64; +struct cvmx_pip_stat4_prtx_s { +u64 h65to127 :32 ; +u64 h64 :32 ; + } s; +struct cvmx_pip_stat4_prtx_s cn30xx; +struct cvmx_pip_stat4_prtx_s cn31xx; +struct cvmx_pip_stat4_prtx_s cn38xx; +struct cvmx_pip_stat4_prtx_s cn38xxp2; +struct cvmx_pip_stat4_prtx_s cn50xx; +struct cvmx_pip_stat4_prtx_s cn52xx; +struct cvmx_pip_stat4_prtx_s cn52xxp1; +struct cvmx_pip_stat4_prtx_s cn56xx; +struct cvmx_pip_stat4_prtx_s cn56xxp1; +struct cvmx_pip_stat4_prtx_s cn58xx; +struct cvmx_pip_stat4_prtx_s cn58xxp1; +struct cvmx_pip_stat4_prtx_s cn61xx; +struct cvmx_pip_stat4_prtx_s cn63xx; +struct cvmx_pip_stat4_prtx_s cn63xxp1; +struct cvmx_pip_stat4_prtx_s cn66xx; +struct cvmx_pip_stat4_prtx_s cn70xx; +struct cvmx_pip_stat4_prtx_s cn70xxp1; +struct cvmx_pip_stat4_prtx_s cnf71xx; +}; + +typedef union cvmx_pip_stat4_prtx cvmx_pip_stat4_prtx_t ; + +/** +* cvmx_pip_stat5_# +* +* PIP_STAT5_X = PIP_STAT_HIST3 / PIP_STAT_HIST2 +* +*/ +union cvmx_pip_stat5_x { +u64 u64; +struct cvmx_pip_stat5_x_s { +u64 h256to511 :32 ; +u64 h128to255 :32 ; + } s; +struct cvmx_pip_stat5_x_s cn68xx; +struct cvmx_pip_stat5_x_s cn68xxp1; +}; + +typedef union cvmx_pip_stat5_x cvmx_pip_stat5_x_t ; + +/** +* cvmx_pip_stat5_prt# +* +* PIP_STAT5_PRTX = PIP_STAT_HIST3 / PIP_STAT_HIST2 +* +*/ +union cvmx_pip_stat5_prtx { +u64 u64; +struct cvmx_pip_stat5_prtx_s { +u64 h256to511 :32 ; +u64 h128to255 :32 ; + } s; +struct cvmx_pip_stat5_prtx_s cn30xx; +struct cvmx_pip_stat5_prtx_s cn31xx; +struct cvmx_pip_stat5_prtx_s cn38xx; +struct cvmx_pip_stat5_prtx_s cn38xxp2; +struct cvmx_pip_stat5_prtx_s cn50xx; +struct cvmx_pip_stat5_prtx_s cn52xx; +struct cvmx_pip_stat5_prtx_s cn52xxp1; +struct cvmx_pip_stat5_prtx_s cn56xx; +struct cvmx_pip_stat5_prtx_s cn56xxp1; +struct cvmx_pip_stat5_prtx_s cn58xx; +struct cvmx_pip_stat5_prtx_s cn58xxp1; +struct cvmx_pip_stat5_prtx_s cn61xx; +struct cvmx_pip_stat5_prtx_s cn63xx; +struct cvmx_pip_stat5_prtx_s cn63xxp1; +struct cvmx_pip_stat5_prtx_s cn66xx; +struct cvmx_pip_stat5_prtx_s cn70xx; +struct cvmx_pip_stat5_prtx_s cn70xxp1; +struct cvmx_pip_stat5_prtx_s cnf71xx; +}; + +typedef union cvmx_pip_stat5_prtx cvmx_pip_stat5_prtx_t ; + +/** +* cvmx_pip_stat6_# +* +* PIP_STAT6_X = PIP_STAT_HIST5 / PIP_STAT_HIST4 +* +*/ +union cvmx_pip_stat6_x { +u64 u64; +struct cvmx_pip_stat6_x_s { +u64 h1024to1518 :32 ; +u64 h512to1023 :32 ; + } s; +struct cvmx_pip_stat6_x_s cn68xx; +struct cvmx_pip_stat6_x_s cn68xxp1; +}; + +typedef union cvmx_pip_stat6_x cvmx_pip_stat6_x_t ; + +/** +* cvmx_pip_stat6_prt# +* +* PIP_STAT6_PRTX = PIP_STAT_HIST5 / PIP_STAT_HIST4 +* +*/ +union cvmx_pip_stat6_prtx { +u64 u64; +struct cvmx_pip_stat6_prtx_s { +u64 h1024to1518 :32 ; +u64 h512to1023 :32 ; + } s; +struct cvmx_pip_stat6_prtx_s cn30xx; +struct cvmx_pip_stat6_prtx_s cn31xx; +struct cvmx_pip_stat6_prtx_s cn38xx; +struct cvmx_pip_stat6_prtx_s cn38xxp2; +struct cvmx_pip_stat6_prtx_s cn50xx; +struct cvmx_pip_stat6_prtx_s cn52xx; +struct cvmx_pip_stat6_prtx_s cn52xxp1; +struct cvmx_pip_stat6_prtx_s cn56xx; +struct cvmx_pip_stat6_prtx_s cn56xxp1; +struct cvmx_pip_stat6_prtx_s cn58xx; +struct cvmx_pip_stat6_prtx_s cn58xxp1; +struct cvmx_pip_stat6_prtx_s cn61xx; +struct cvmx_pip_stat6_prtx_s cn63xx; +struct cvmx_pip_stat6_prtx_s cn63xxp1; +struct cvmx_pip_stat6_prtx_s cn66xx; +struct cvmx_pip_stat6_prtx_s cn70xx; +struct cvmx_pip_stat6_prtx_s cn70xxp1; +struct cvmx_pip_stat6_prtx_s cnf71xx; +}; + +typedef union cvmx_pip_stat6_prtx cvmx_pip_stat6_prtx_t ; + +/** +* cvmx_pip_stat7_# +* +* PIP_STAT7_X = PIP_STAT_FCS / PIP_STAT_HIST6 +* +*/ +union cvmx_pip_stat7_x { +u64 u64; +struct cvmx_pip_stat7_x_s { +u64 fcs :32 ; +u64 h1519 :32 ; + } s; +struct cvmx_pip_stat7_x_s cn68xx; +struct cvmx_pip_stat7_x_s cn68xxp1; +}; + +typedef union cvmx_pip_stat7_x cvmx_pip_stat7_x_t ; + +/** +* cvmx_pip_stat7_prt# +* +* PIP_STAT7_PRTX = PIP_STAT_FCS / PIP_STAT_HIST6 +* +* +* Notes: +* DPI does not check FCS, therefore FCS will never increment on DPI ports 32-35 +* sRIO does not check FCS, therefore FCS will never increment on sRIO ports 40-47 +*/ +union cvmx_pip_stat7_prtx { +u64 u64; +struct cvmx_pip_stat7_prtx_s { +u64 fcs :32 ; +u64 h1519 :32 ; + } s; +struct cvmx_pip_stat7_prtx_s cn30xx; +struct cvmx_pip_stat7_prtx_s cn31xx; +struct cvmx_pip_stat7_prtx_s cn38xx; +struct cvmx_pip_stat7_prtx_s cn38xxp2; +struct cvmx_pip_stat7_prtx_s cn50xx; +struct cvmx_pip_stat7_prtx_s cn52xx; +struct cvmx_pip_stat7_prtx_s cn52xxp1; +struct cvmx_pip_stat7_prtx_s cn56xx; +struct cvmx_pip_stat7_prtx_s cn56xxp1; +struct cvmx_pip_stat7_prtx_s cn58xx; +struct cvmx_pip_stat7_prtx_s cn58xxp1; +struct cvmx_pip_stat7_prtx_s cn61xx; +struct cvmx_pip_stat7_prtx_s cn63xx; +struct cvmx_pip_stat7_prtx_s cn63xxp1; +struct cvmx_pip_stat7_prtx_s cn66xx; +struct cvmx_pip_stat7_prtx_s cn70xx; +struct cvmx_pip_stat7_prtx_s cn70xxp1; +struct cvmx_pip_stat7_prtx_s cnf71xx; +}; + +typedef union cvmx_pip_stat7_prtx cvmx_pip_stat7_prtx_t ; + +/** +* cvmx_pip_stat8_# +* +* PIP_STAT8_X = PIP_STAT_FRAG / PIP_STAT_UNDER +* +*/ +union cvmx_pip_stat8_x { +u64 u64; +struct cvmx_pip_stat8_x_s { +u64 frag :32 ; +u64 undersz :32 ; + } s; +struct cvmx_pip_stat8_x_s cn68xx; +struct cvmx_pip_stat8_x_s cn68xxp1; +}; + +typedef union cvmx_pip_stat8_x cvmx_pip_stat8_x_t ; + +/** +* cvmx_pip_stat8_prt# +* +* PIP_STAT8_PRTX = PIP_STAT_FRAG / PIP_STAT_UNDER +* +* +* Notes: +* DPI does not check FCS, therefore FRAG will never increment on DPI ports 32-35 +* sRIO does not check FCS, therefore FRAG will never increment on sRIO ports 40-47 +*/ +union cvmx_pip_stat8_prtx { +u64 u64; +struct cvmx_pip_stat8_prtx_s { +u64 frag :32 ; +u64 undersz :32 ; + } s; +struct cvmx_pip_stat8_prtx_s cn30xx; +struct cvmx_pip_stat8_prtx_s cn31xx; +struct cvmx_pip_stat8_prtx_s cn38xx; +struct cvmx_pip_stat8_prtx_s cn38xxp2; +struct cvmx_pip_stat8_prtx_s cn50xx; +struct cvmx_pip_stat8_prtx_s cn52xx; +struct cvmx_pip_stat8_prtx_s cn52xxp1; +struct cvmx_pip_stat8_prtx_s cn56xx; +struct cvmx_pip_stat8_prtx_s cn56xxp1; +struct cvmx_pip_stat8_prtx_s cn58xx; +struct cvmx_pip_stat8_prtx_s cn58xxp1; +struct cvmx_pip_stat8_prtx_s cn61xx; +struct cvmx_pip_stat8_prtx_s cn63xx; +struct cvmx_pip_stat8_prtx_s cn63xxp1; +struct cvmx_pip_stat8_prtx_s cn66xx; +struct cvmx_pip_stat8_prtx_s cn70xx; +struct cvmx_pip_stat8_prtx_s cn70xxp1; +struct cvmx_pip_stat8_prtx_s cnf71xx; +}; + +typedef union cvmx_pip_stat8_prtx cvmx_pip_stat8_prtx_t ; + +/** +* cvmx_pip_stat9_# +* +* PIP_STAT9_X = PIP_STAT_JABBER / PIP_STAT_OVER +* +*/ +union cvmx_pip_stat9_x { +u64 u64; +struct cvmx_pip_stat9_x_s { +u64 jabber :32 ; +u64 oversz :32 ; + } s; +struct cvmx_pip_stat9_x_s cn68xx; +struct cvmx_pip_stat9_x_s cn68xxp1; +}; + +typedef union cvmx_pip_stat9_x cvmx_pip_stat9_x_t ; + +/** +* cvmx_pip_stat9_prt# +* +* PIP_STAT9_PRTX = PIP_STAT_JABBER / PIP_STAT_OVER +* +* +* Notes: +* DPI does not check FCS, therefore JABBER will never increment on DPI ports 32-35 +* sRIO does not check FCS, therefore JABBER will never increment on sRIO ports 40-47 due to FCS errors +* sRIO does use the JABBER opcode to communicate sRIO error, therefore JABBER can increment under the sRIO error conditions +*/ +union cvmx_pip_stat9_prtx { +u64 u64; +struct cvmx_pip_stat9_prtx_s { +u64 jabber :32 ; +u64 oversz :32 ; + } s; +struct cvmx_pip_stat9_prtx_s cn30xx; +struct cvmx_pip_stat9_prtx_s cn31xx; +struct cvmx_pip_stat9_prtx_s cn38xx; +struct cvmx_pip_stat9_prtx_s cn38xxp2; +struct cvmx_pip_stat9_prtx_s cn50xx; +struct cvmx_pip_stat9_prtx_s cn52xx; +struct cvmx_pip_stat9_prtx_s cn52xxp1; +struct cvmx_pip_stat9_prtx_s cn56xx; +struct cvmx_pip_stat9_prtx_s cn56xxp1; +struct cvmx_pip_stat9_prtx_s cn58xx; +struct cvmx_pip_stat9_prtx_s cn58xxp1; +struct cvmx_pip_stat9_prtx_s cn61xx; +struct cvmx_pip_stat9_prtx_s cn63xx; +struct cvmx_pip_stat9_prtx_s cn63xxp1; +struct cvmx_pip_stat9_prtx_s cn66xx; +struct cvmx_pip_stat9_prtx_s cn70xx; +struct cvmx_pip_stat9_prtx_s cn70xxp1; +struct cvmx_pip_stat9_prtx_s cnf71xx; +}; + +typedef union cvmx_pip_stat9_prtx cvmx_pip_stat9_prtx_t ; + +/** +* cvmx_pip_stat_ctl +* +* Controls how the PIP statistics counters are handled. +* +*/ +union cvmx_pip_stat_ctl { +u64 u64; +struct cvmx_pip_stat_ctl_s { +u64 reserved_9_63 :55 ; +u64 mode :1 ; +u64 reserved_1_7 :7 ; +u64 rdclr :1 ; + } s; +struct cvmx_pip_stat_ctl_cn30xx { +u64 reserved_1_63 :63 ; +u64 rdclr :1 ; + } cn30xx; +struct cvmx_pip_stat_ctl_cn30xx cn31xx; +struct cvmx_pip_stat_ctl_cn30xx cn38xx; +struct cvmx_pip_stat_ctl_cn30xx cn38xxp2; +struct cvmx_pip_stat_ctl_cn30xx cn50xx; +struct cvmx_pip_stat_ctl_cn30xx cn52xx; +struct cvmx_pip_stat_ctl_cn30xx cn52xxp1; +struct cvmx_pip_stat_ctl_cn30xx cn56xx; +struct cvmx_pip_stat_ctl_cn30xx cn56xxp1; +struct cvmx_pip_stat_ctl_cn30xx cn58xx; +struct cvmx_pip_stat_ctl_cn30xx cn58xxp1; +struct cvmx_pip_stat_ctl_cn30xx cn61xx; +struct cvmx_pip_stat_ctl_cn30xx cn63xx; +struct cvmx_pip_stat_ctl_cn30xx cn63xxp1; +struct cvmx_pip_stat_ctl_cn30xx cn66xx; +struct cvmx_pip_stat_ctl_s cn68xx; +struct cvmx_pip_stat_ctl_s cn68xxp1; +struct cvmx_pip_stat_ctl_cn30xx cn70xx; +struct cvmx_pip_stat_ctl_cn30xx cn70xxp1; +struct cvmx_pip_stat_ctl_cn30xx cnf71xx; +}; + +typedef union cvmx_pip_stat_ctl cvmx_pip_stat_ctl_t ; + +/** +* cvmx_pip_stat_inb_errs# +* +* Inbound stats collect all data sent to PIP from all packet interfaces. +* Its the raw counts of everything that comes into the block. The counts +* will reflect all error packets and packets dropped by the PKI RED engine. +* These counts are intended for system debug, but could convey useful +* information in production systems. +*/ +union cvmx_pip_stat_inb_errsx { +u64 u64; +struct cvmx_pip_stat_inb_errsx_s { +u64 reserved_16_63 :48 ; +u64 errs :16 ; + } s; +struct cvmx_pip_stat_inb_errsx_s cn30xx; +struct cvmx_pip_stat_inb_errsx_s cn31xx; +struct cvmx_pip_stat_inb_errsx_s cn38xx; +struct cvmx_pip_stat_inb_errsx_s cn38xxp2; +struct cvmx_pip_stat_inb_errsx_s cn50xx; +struct cvmx_pip_stat_inb_errsx_s cn52xx; +struct cvmx_pip_stat_inb_errsx_s cn52xxp1; +struct cvmx_pip_stat_inb_errsx_s cn56xx; +struct cvmx_pip_stat_inb_errsx_s cn56xxp1; +struct cvmx_pip_stat_inb_errsx_s cn58xx; +struct cvmx_pip_stat_inb_errsx_s cn58xxp1; +struct cvmx_pip_stat_inb_errsx_s cn61xx; +struct cvmx_pip_stat_inb_errsx_s cn63xx; +struct cvmx_pip_stat_inb_errsx_s cn63xxp1; +struct cvmx_pip_stat_inb_errsx_s cn66xx; +struct cvmx_pip_stat_inb_errsx_s cn70xx; +struct cvmx_pip_stat_inb_errsx_s cn70xxp1; +struct cvmx_pip_stat_inb_errsx_s cnf71xx; +}; + +typedef union cvmx_pip_stat_inb_errsx cvmx_pip_stat_inb_errsx_t ; + +/** +* cvmx_pip_stat_inb_errs_pknd# +* +* PIP_STAT_INB_ERRS_PKNDX = Inbound error packets received by PIP per pkind +* +* Inbound stats collect all data sent to PIP from all packet interfaces. +* Its the raw counts of everything that comes into the block. The counts +* will reflect all error packets and packets dropped by the PKI RED engine. +* These counts are intended for system debug, but could convey useful +* information in production systems. +*/ +union cvmx_pip_stat_inb_errs_pkndx { +u64 u64; +struct cvmx_pip_stat_inb_errs_pkndx_s { +u64 reserved_16_63 :48 ; +u64 errs :16 ; + } s; +struct cvmx_pip_stat_inb_errs_pkndx_s cn68xx; +struct cvmx_pip_stat_inb_errs_pkndx_s cn68xxp1; +}; + +typedef union cvmx_pip_stat_inb_errs_pkndx cvmx_pip_stat_inb_errs_pkndx_t ; + +/** +* cvmx_pip_stat_inb_octs# +* +* Inbound stats collect all data sent to PIP from all packet interfaces. +* Its the raw counts of everything that comes into the block. The counts +* will reflect all error packets and packets dropped by the PKI RED engine. +* These counts are intended for system debug, but could convey useful +* information in production systems. The OCTS will include the bytes from +* timestamp fields in PTP_MODE. +*/ +union cvmx_pip_stat_inb_octsx { +u64 u64; +struct cvmx_pip_stat_inb_octsx_s { +u64 reserved_48_63 :16 ; +u64 octs :48 ; + } s; +struct cvmx_pip_stat_inb_octsx_s cn30xx; +struct cvmx_pip_stat_inb_octsx_s cn31xx; +struct cvmx_pip_stat_inb_octsx_s cn38xx; +struct cvmx_pip_stat_inb_octsx_s cn38xxp2; +struct cvmx_pip_stat_inb_octsx_s cn50xx; +struct cvmx_pip_stat_inb_octsx_s cn52xx; +struct cvmx_pip_stat_inb_octsx_s cn52xxp1; +struct cvmx_pip_stat_inb_octsx_s cn56xx; +struct cvmx_pip_stat_inb_octsx_s cn56xxp1; +struct cvmx_pip_stat_inb_octsx_s cn58xx; +struct cvmx_pip_stat_inb_octsx_s cn58xxp1; +struct cvmx_pip_stat_inb_octsx_s cn61xx; +struct cvmx_pip_stat_inb_octsx_s cn63xx; +struct cvmx_pip_stat_inb_octsx_s cn63xxp1; +struct cvmx_pip_stat_inb_octsx_s cn66xx; +struct cvmx_pip_stat_inb_octsx_s cn70xx; +struct cvmx_pip_stat_inb_octsx_s cn70xxp1; +struct cvmx_pip_stat_inb_octsx_s cnf71xx; +}; + +typedef union cvmx_pip_stat_inb_octsx cvmx_pip_stat_inb_octsx_t ; + +/** +* cvmx_pip_stat_inb_octs_pknd# +* +* PIP_STAT_INB_OCTS_PKNDX = Inbound octets received by PIP per pkind +* +* Inbound stats collect all data sent to PIP from all packet interfaces. +* Its the raw counts of everything that comes into the block. The counts +* will reflect all error packets and packets dropped by the PKI RED engine. +* These counts are intended for system debug, but could convey useful +* information in production systems. The OCTS will include the bytes from +* timestamp fields in PTP_MODE. +*/ +union cvmx_pip_stat_inb_octs_pkndx { +u64 u64; +struct cvmx_pip_stat_inb_octs_pkndx_s { +u64 reserved_48_63 :16 ; +u64 octs :48 ; + } s; +struct cvmx_pip_stat_inb_octs_pkndx_s cn68xx; +struct cvmx_pip_stat_inb_octs_pkndx_s cn68xxp1; +}; + +typedef union cvmx_pip_stat_inb_octs_pkndx cvmx_pip_stat_inb_octs_pkndx_t ; + +/** +* cvmx_pip_stat_inb_pkts# +* +* Inbound stats collect all data sent to PIP from all packet interfaces. +* Its the raw counts of everything that comes into the block. The counts +* will reflect all error packets and packets dropped by the PKI RED engine. +* These counts are intended for system debug, but could convey useful +* information in production systems. +*/ +union cvmx_pip_stat_inb_pktsx { +u64 u64; +struct cvmx_pip_stat_inb_pktsx_s { +u64 reserved_32_63 :32 ; +u64 pkts :32 ; + } s; +struct cvmx_pip_stat_inb_pktsx_s cn30xx; +struct cvmx_pip_stat_inb_pktsx_s cn31xx; +struct cvmx_pip_stat_inb_pktsx_s cn38xx; +struct cvmx_pip_stat_inb_pktsx_s cn38xxp2; +struct cvmx_pip_stat_inb_pktsx_s cn50xx; +struct cvmx_pip_stat_inb_pktsx_s cn52xx; +struct cvmx_pip_stat_inb_pktsx_s cn52xxp1; +struct cvmx_pip_stat_inb_pktsx_s cn56xx; +struct cvmx_pip_stat_inb_pktsx_s cn56xxp1; +struct cvmx_pip_stat_inb_pktsx_s cn58xx; +struct cvmx_pip_stat_inb_pktsx_s cn58xxp1; +struct cvmx_pip_stat_inb_pktsx_s cn61xx; +struct cvmx_pip_stat_inb_pktsx_s cn63xx; +struct cvmx_pip_stat_inb_pktsx_s cn63xxp1; +struct cvmx_pip_stat_inb_pktsx_s cn66xx; +struct cvmx_pip_stat_inb_pktsx_s cn70xx; +struct cvmx_pip_stat_inb_pktsx_s cn70xxp1; +struct cvmx_pip_stat_inb_pktsx_s cnf71xx; +}; + +typedef union cvmx_pip_stat_inb_pktsx cvmx_pip_stat_inb_pktsx_t ; + +/** +* cvmx_pip_stat_inb_pkts_pknd# +* +* PIP_STAT_INB_PKTS_PKNDX = Inbound packets received by PIP per pkind +* +* Inbound stats collect all data sent to PIP from all packet interfaces. +* Its the raw counts of everything that comes into the block. The counts +* will reflect all error packets and packets dropped by the PKI RED engine. +* These counts are intended for system debug, but could convey useful +* information in production systems. +*/ +union cvmx_pip_stat_inb_pkts_pkndx { +u64 u64; +struct cvmx_pip_stat_inb_pkts_pkndx_s { +u64 reserved_32_63 :32 ; +u64 pkts :32 ; + } s; +struct cvmx_pip_stat_inb_pkts_pkndx_s cn68xx; +struct cvmx_pip_stat_inb_pkts_pkndx_s cn68xxp1; +}; + +typedef union cvmx_pip_stat_inb_pkts_pkndx cvmx_pip_stat_inb_pkts_pkndx_t ; + +/** +* cvmx_pip_sub_pkind_fcs# +*/ +union cvmx_pip_sub_pkind_fcsx { +u64 u64; +struct cvmx_pip_sub_pkind_fcsx_s { +u64 port_bit :64 ; + } s; +struct cvmx_pip_sub_pkind_fcsx_s cn68xx; +struct cvmx_pip_sub_pkind_fcsx_s cn68xxp1; +}; + +typedef union cvmx_pip_sub_pkind_fcsx cvmx_pip_sub_pkind_fcsx_t ; + +/** +* cvmx_pip_tag_inc# +* +* # $PIP_TAG_INCX = 0x300+X X=(0..63) RegType=(RSL) RtlReg=(pip_tag_inc_csr_direct_TestbuilderTask) +* +*/ +union cvmx_pip_tag_incx { +u64 u64; +struct cvmx_pip_tag_incx_s { +u64 reserved_8_63 :56 ; +u64 en :8 ; + } s; +struct cvmx_pip_tag_incx_s cn30xx; +struct cvmx_pip_tag_incx_s cn31xx; +struct cvmx_pip_tag_incx_s cn38xx; +struct cvmx_pip_tag_incx_s cn38xxp2; +struct cvmx_pip_tag_incx_s cn50xx; +struct cvmx_pip_tag_incx_s cn52xx; +struct cvmx_pip_tag_incx_s cn52xxp1; +struct cvmx_pip_tag_incx_s cn56xx; +struct cvmx_pip_tag_incx_s cn56xxp1; +struct cvmx_pip_tag_incx_s cn58xx; +struct cvmx_pip_tag_incx_s cn58xxp1; +struct cvmx_pip_tag_incx_s cn61xx; +struct cvmx_pip_tag_incx_s cn63xx; +struct cvmx_pip_tag_incx_s cn63xxp1; +struct cvmx_pip_tag_incx_s cn66xx; +struct cvmx_pip_tag_incx_s cn68xx; +struct cvmx_pip_tag_incx_s cn68xxp1; +struct cvmx_pip_tag_incx_s cn70xx; +struct cvmx_pip_tag_incx_s cn70xxp1; +struct cvmx_pip_tag_incx_s cnf71xx; +}; + +typedef union cvmx_pip_tag_incx cvmx_pip_tag_incx_t ; + +/** +* cvmx_pip_tag_mask +* +* PIP_TAG_MASK = Mask bit in the tag generation +* +*/ +union cvmx_pip_tag_mask { +u64 u64; +struct cvmx_pip_tag_mask_s { +u64 reserved_16_63 :48 ; +u64 mask :16 ; + } s; +struct cvmx_pip_tag_mask_s cn30xx; +struct cvmx_pip_tag_mask_s cn31xx; +struct cvmx_pip_tag_mask_s cn38xx; +struct cvmx_pip_tag_mask_s cn38xxp2; +struct cvmx_pip_tag_mask_s cn50xx; +struct cvmx_pip_tag_mask_s cn52xx; +struct cvmx_pip_tag_mask_s cn52xxp1; +struct cvmx_pip_tag_mask_s cn56xx; +struct cvmx_pip_tag_mask_s cn56xxp1; +struct cvmx_pip_tag_mask_s cn58xx; +struct cvmx_pip_tag_mask_s cn58xxp1; +struct cvmx_pip_tag_mask_s cn61xx; +struct cvmx_pip_tag_mask_s cn63xx; +struct cvmx_pip_tag_mask_s cn63xxp1; +struct cvmx_pip_tag_mask_s cn66xx; +struct cvmx_pip_tag_mask_s cn68xx; +struct cvmx_pip_tag_mask_s cn68xxp1; +struct cvmx_pip_tag_mask_s cn70xx; +struct cvmx_pip_tag_mask_s cn70xxp1; +struct cvmx_pip_tag_mask_s cnf71xx; +}; + +typedef union cvmx_pip_tag_mask cvmx_pip_tag_mask_t ; + +/** +* cvmx_pip_tag_secret +* +* The source and destination IV's provide a mechanism for each Octeon to be unique. +* +*/ +union cvmx_pip_tag_secret { +u64 u64; +struct cvmx_pip_tag_secret_s { +u64 reserved_32_63 :32 ; +u64 dst :16 ; +u64 src :16 ; + } s; +struct cvmx_pip_tag_secret_s cn30xx; +struct cvmx_pip_tag_secret_s cn31xx; +struct cvmx_pip_tag_secret_s cn38xx; +struct cvmx_pip_tag_secret_s cn38xxp2; +struct cvmx_pip_tag_secret_s cn50xx; +struct cvmx_pip_tag_secret_s cn52xx; +struct cvmx_pip_tag_secret_s cn52xxp1; +struct cvmx_pip_tag_secret_s cn56xx; +struct cvmx_pip_tag_secret_s cn56xxp1; +struct cvmx_pip_tag_secret_s cn58xx; +struct cvmx_pip_tag_secret_s cn58xxp1; +struct cvmx_pip_tag_secret_s cn61xx; +struct cvmx_pip_tag_secret_s cn63xx; +struct cvmx_pip_tag_secret_s cn63xxp1; +struct cvmx_pip_tag_secret_s cn66xx; +struct cvmx_pip_tag_secret_s cn68xx; +struct cvmx_pip_tag_secret_s cn68xxp1; +struct cvmx_pip_tag_secret_s cn70xx; +struct cvmx_pip_tag_secret_s cn70xxp1; +struct cvmx_pip_tag_secret_s cnf71xx; +}; + +typedef union cvmx_pip_tag_secret cvmx_pip_tag_secret_t ; + +/** +* cvmx_pip_todo_entry +* +* Summary of the current packet that has completed and waiting to be processed +* +*/ +union cvmx_pip_todo_entry { +u64 u64; +struct cvmx_pip_todo_entry_s { +u64 val :1 ; +u64 reserved_62_62 :1 ; +u64 entry :62 ; + } s; +struct cvmx_pip_todo_entry_s cn30xx; +struct cvmx_pip_todo_entry_s cn31xx; +struct cvmx_pip_todo_entry_s cn38xx; +struct cvmx_pip_todo_entry_s cn38xxp2; +struct cvmx_pip_todo_entry_s cn50xx; +struct cvmx_pip_todo_entry_s cn52xx; +struct cvmx_pip_todo_entry_s cn52xxp1; +struct cvmx_pip_todo_entry_s cn56xx; +struct cvmx_pip_todo_entry_s cn56xxp1; +struct cvmx_pip_todo_entry_s cn58xx; +struct cvmx_pip_todo_entry_s cn58xxp1; +struct cvmx_pip_todo_entry_s cn61xx; +struct cvmx_pip_todo_entry_s cn63xx; +struct cvmx_pip_todo_entry_s cn63xxp1; +struct cvmx_pip_todo_entry_s cn66xx; +struct cvmx_pip_todo_entry_s cn68xx; +struct cvmx_pip_todo_entry_s cn68xxp1; +struct cvmx_pip_todo_entry_s cn70xx; +struct cvmx_pip_todo_entry_s cn70xxp1; +struct cvmx_pip_todo_entry_s cnf71xx; +}; + +typedef union cvmx_pip_todo_entry cvmx_pip_todo_entry_t ; + +/** +* cvmx_pip_vlan_etypes# +*/ +union cvmx_pip_vlan_etypesx { +u64 u64; +struct cvmx_pip_vlan_etypesx_s { +u64 type3 :16 ; +u64 type2 :16 ; +u64 type1 :16 ; +u64 type0 :16 ; + } s; +struct cvmx_pip_vlan_etypesx_s cn61xx; +struct cvmx_pip_vlan_etypesx_s cn66xx; +struct cvmx_pip_vlan_etypesx_s cn68xx; +struct cvmx_pip_vlan_etypesx_s cn70xx; +struct cvmx_pip_vlan_etypesx_s cn70xxp1; +struct cvmx_pip_vlan_etypesx_s cnf71xx; +}; + +typedef union cvmx_pip_vlan_etypesx cvmx_pip_vlan_etypesx_t ; + +/** +* cvmx_pip_xstat0_prt# +* +* PIP_XSTAT0_PRT = PIP_XSTAT_DRP_PKTS / PIP_XSTAT_DRP_OCTS +* +*/ +union cvmx_pip_xstat0_prtx { +u64 u64; +struct cvmx_pip_xstat0_prtx_s { +u64 drp_pkts :32 ; +u64 drp_octs :32 ; + } s; +struct cvmx_pip_xstat0_prtx_s cn63xx; +struct cvmx_pip_xstat0_prtx_s cn63xxp1; +struct cvmx_pip_xstat0_prtx_s cn66xx; +}; + +typedef union cvmx_pip_xstat0_prtx cvmx_pip_xstat0_prtx_t ; + +/** +* cvmx_pip_xstat10_prt# +* +* PIP_XSTAT10_PRTX = PIP_XSTAT_L2_MCAST / PIP_XSTAT_L2_BCAST +* +*/ +union cvmx_pip_xstat10_prtx { +u64 u64; +struct cvmx_pip_xstat10_prtx_s { +u64 bcast :32 ; +u64 mcast :32 ; + } s; +struct cvmx_pip_xstat10_prtx_s cn63xx; +struct cvmx_pip_xstat10_prtx_s cn63xxp1; +struct cvmx_pip_xstat10_prtx_s cn66xx; +}; + +typedef union cvmx_pip_xstat10_prtx cvmx_pip_xstat10_prtx_t ; + +/** +* cvmx_pip_xstat11_prt# +* +* PIP_XSTAT11_PRTX = PIP_XSTAT_L3_MCAST / PIP_XSTAT_L3_BCAST +* +*/ +union cvmx_pip_xstat11_prtx { +u64 u64; +struct cvmx_pip_xstat11_prtx_s { +u64 bcast :32 ; +u64 mcast :32 ; + } s; +struct cvmx_pip_xstat11_prtx_s cn63xx; +struct cvmx_pip_xstat11_prtx_s cn63xxp1; +struct cvmx_pip_xstat11_prtx_s cn66xx; +}; + +typedef union cvmx_pip_xstat11_prtx cvmx_pip_xstat11_prtx_t ; + +/** +* cvmx_pip_xstat1_prt# +* +* PIP_XSTAT1_PRTX = PIP_XSTAT_OCTS +* +*/ +union cvmx_pip_xstat1_prtx { +u64 u64; +struct cvmx_pip_xstat1_prtx_s { +u64 reserved_48_63 :16 ; +u64 octs :48 ; + } s; +struct cvmx_pip_xstat1_prtx_s cn63xx; +struct cvmx_pip_xstat1_prtx_s cn63xxp1; +struct cvmx_pip_xstat1_prtx_s cn66xx; +}; + +typedef union cvmx_pip_xstat1_prtx cvmx_pip_xstat1_prtx_t ; + +/** +* cvmx_pip_xstat2_prt# +* +* PIP_XSTAT2_PRTX = PIP_XSTAT_PKTS / PIP_XSTAT_RAW +* +*/ +union cvmx_pip_xstat2_prtx { +u64 u64; +struct cvmx_pip_xstat2_prtx_s { +u64 pkts :32 ; +u64 raw :32 ; + } s; +struct cvmx_pip_xstat2_prtx_s cn63xx; +struct cvmx_pip_xstat2_prtx_s cn63xxp1; +struct cvmx_pip_xstat2_prtx_s cn66xx; +}; + +typedef union cvmx_pip_xstat2_prtx cvmx_pip_xstat2_prtx_t ; + +/** +* cvmx_pip_xstat3_prt# +* +* PIP_XSTAT3_PRTX = PIP_XSTAT_BCST / PIP_XSTAT_MCST +* +*/ +union cvmx_pip_xstat3_prtx { +u64 u64; +struct cvmx_pip_xstat3_prtx_s { +u64 bcst :32 ; +u64 mcst :32 ; + } s; +struct cvmx_pip_xstat3_prtx_s cn63xx; +struct cvmx_pip_xstat3_prtx_s cn63xxp1; +struct cvmx_pip_xstat3_prtx_s cn66xx; +}; + +typedef union cvmx_pip_xstat3_prtx cvmx_pip_xstat3_prtx_t ; + +/** +* cvmx_pip_xstat4_prt# +* +* PIP_XSTAT4_PRTX = PIP_XSTAT_HIST1 / PIP_XSTAT_HIST0 +* +*/ +union cvmx_pip_xstat4_prtx { +u64 u64; +struct cvmx_pip_xstat4_prtx_s { +u64 h65to127 :32 ; +u64 h64 :32 ; + } s; +struct cvmx_pip_xstat4_prtx_s cn63xx; +struct cvmx_pip_xstat4_prtx_s cn63xxp1; +struct cvmx_pip_xstat4_prtx_s cn66xx; +}; + +typedef union cvmx_pip_xstat4_prtx cvmx_pip_xstat4_prtx_t ; + +/** +* cvmx_pip_xstat5_prt# +* +* PIP_XSTAT5_PRTX = PIP_XSTAT_HIST3 / PIP_XSTAT_HIST2 +* +*/ +union cvmx_pip_xstat5_prtx { +u64 u64; +struct cvmx_pip_xstat5_prtx_s { +u64 h256to511 :32 ; +u64 h128to255 :32 ; + } s; +struct cvmx_pip_xstat5_prtx_s cn63xx; +struct cvmx_pip_xstat5_prtx_s cn63xxp1; +struct cvmx_pip_xstat5_prtx_s cn66xx; +}; + +typedef union cvmx_pip_xstat5_prtx cvmx_pip_xstat5_prtx_t ; + +/** +* cvmx_pip_xstat6_prt# +* +* PIP_XSTAT6_PRTX = PIP_XSTAT_HIST5 / PIP_XSTAT_HIST4 +* +*/ +union cvmx_pip_xstat6_prtx { +u64 u64; +struct cvmx_pip_xstat6_prtx_s { +u64 h1024to1518 :32 ; +u64 h512to1023 :32 ; + } s; +struct cvmx_pip_xstat6_prtx_s cn63xx; +struct cvmx_pip_xstat6_prtx_s cn63xxp1; +struct cvmx_pip_xstat6_prtx_s cn66xx; +}; + +typedef union cvmx_pip_xstat6_prtx cvmx_pip_xstat6_prtx_t ; + +/** +* cvmx_pip_xstat7_prt# +* +* PIP_XSTAT7_PRTX = PIP_XSTAT_FCS / PIP_XSTAT_HIST6 +* +* +* Notes: +* DPI does not check FCS, therefore FCS will never increment on DPI ports 32-35 +* sRIO does not check FCS, therefore FCS will never increment on sRIO ports 40-47 +*/ +union cvmx_pip_xstat7_prtx { +u64 u64; +struct cvmx_pip_xstat7_prtx_s { +u64 fcs :32 ; +u64 h1519 :32 ; + } s; +struct cvmx_pip_xstat7_prtx_s cn63xx; +struct cvmx_pip_xstat7_prtx_s cn63xxp1; +struct cvmx_pip_xstat7_prtx_s cn66xx; +}; + +typedef union cvmx_pip_xstat7_prtx cvmx_pip_xstat7_prtx_t ; + +/** +* cvmx_pip_xstat8_prt# +* +* PIP_XSTAT8_PRTX = PIP_XSTAT_FRAG / PIP_XSTAT_UNDER +* +* +* Notes: +* DPI does not check FCS, therefore FRAG will never increment on DPI ports 32-35
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.29.2
Part of the diff is not shown here. View the raw message.
PATCH 23/50 mips: octeon: Add cvmx-pki-defs.h header file
In reply to Stefan RoeseFrom: Aaron Williams <[email protected]>
Import cvmx-pki-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support PCIe and networking on the MIPS Octeon II / III platforms.
---
.../mach-octeon/include/mach/cvmx-pki-defs.h | 2353 +++++++++++++++++ 1 file changed, 2353 insertions(+) create mode 100644 arch/mips/mach-octeon/include/mach/cvmx-pki-defs.h
arch/mips/mach-octeon/include/mach/cvmx-pki-defs.h new file +2353 -0
@@ -0,0 +1,2353 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (C) 2020 Marvell International Ltd. +* +* Configuration and status register (CSR) type definitions for +* Octeon pki. +*/ + +#ifndef __CVMX_PKI_DEFS_H__ +#define __CVMX_PKI_DEFS_H__ + +#define CVMX_PKI_ACTIVE0 (0x0001180044000220ull) +#define CVMX_PKI_ACTIVE1 (0x0001180044000230ull) +#define CVMX_PKI_ACTIVE2 (0x0001180044000240ull) +#define CVMX_PKI_AURAX_CFG (offset) (0x0001180044900000ull + ((offset) & 1023) * 8) +#define CVMX_PKI_BIST_STATUS0 (0x0001180044000080ull) +#define CVMX_PKI_BIST_STATUS1 (0x0001180044000088ull) +#define CVMX_PKI_BIST_STATUS2 (0x0001180044000090ull) +#define CVMX_PKI_BPIDX_STATE (offset) (0x0001180044B00000ull + ((offset) & 1023) * 8) +#define CVMX_PKI_BUF_CTL (0x0001180044000100ull) +#define CVMX_PKI_CHANX_CFG (offset) (0x0001180044A00000ull + ((offset) & 4095) * 8) +#define CVMX_PKI_CLKEN (0x0001180044000410ull) +#define CVMX_PKI_CLX_ECC_CTL (offset) (0x000118004400C020ull + ((offset) & 3) * 0x10000ull) +#define CVMX_PKI_CLX_ECC_INT (offset) (0x000118004400C010ull + ((offset) & 3) * 0x10000ull) +#define CVMX_PKI_CLX_INT (offset) (0x000118004400C000ull + ((offset) & 3) * 0x10000ull) +#define CVMX_PKI_CLX_PCAMX_ACTIONX (a, b, c) \ + (0x0001180044708000ull + ((a) << 16) + ((b) << 12) + ((c) << 3)) +#define CVMX_PKI_CLX_PCAMX_MATCHX (a, b, c) \ + (0x0001180044704000ull + ((a) << 16) + ((b) << 12) + ((c) << 3)) +#define CVMX_PKI_CLX_PCAMX_TERMX (a, b, c) \ + (0x0001180044700000ull + ((a) << 16) + ((b) << 12) + ((c) << 3)) +#define CVMX_PKI_CLX_PKINDX_CFG (offset, block_id) \ + (0x0001180044300040ull + (((offset) & 63) + ((block_id) & 3) * 0x100ull) * 256) +#define CVMX_PKI_CLX_PKINDX_KMEMX (a, b, c) \ + (0x0001180044200000ull + ((a) << 16) + ((b) << 8) + ((c) << 3)) +#define CVMX_PKI_CLX_PKINDX_L2_CUSTOM (offset, block_id) \ + (0x0001180044300058ull + (((offset) & 63) + ((block_id) & 3) * 0x100ull) * 256) +#define CVMX_PKI_CLX_PKINDX_LG_CUSTOM (offset, block_id) \ + (0x0001180044300060ull + (((offset) & 63) + ((block_id) & 3) * 0x100ull) * 256) +#define CVMX_PKI_CLX_PKINDX_SKIP (offset, block_id) \ + (0x0001180044300050ull + (((offset) & 63) + ((block_id) & 3) * 0x100ull) * 256) +#define CVMX_PKI_CLX_PKINDX_STYLE (offset, block_id) \ + (0x0001180044300048ull + (((offset) & 63) + ((block_id) & 3) * 0x100ull) * 256) +#define CVMX_PKI_CLX_SMEMX (offset, block_id) \ + (0x0001180044400000ull + (((offset) & 2047) + ((block_id) & 3) * 0x2000ull) * 8) +#define CVMX_PKI_CLX_START (offset) (0x000118004400C030ull + ((offset) & 3) * 0x10000ull) +#define CVMX_PKI_CLX_STYLEX_ALG (offset, block_id) \ + (0x0001180044501000ull + (((offset) & 63) + ((block_id) & 3) * 0x2000ull) * 8) +#define CVMX_PKI_CLX_STYLEX_CFG (offset, block_id) \ + (0x0001180044500000ull + (((offset) & 63) + ((block_id) & 3) * 0x2000ull) * 8) +#define CVMX_PKI_CLX_STYLEX_CFG2 (offset, block_id) \ + (0x0001180044500800ull + (((offset) & 63) + ((block_id) & 3) * 0x2000ull) * 8) +#define CVMX_PKI_DSTATX_STAT0 (offset) (0x0001180044C00000ull + ((offset) & 1023) * 64) +#define CVMX_PKI_DSTATX_STAT1 (offset) (0x0001180044C00008ull + ((offset) & 1023) * 64) +#define CVMX_PKI_DSTATX_STAT2 (offset) (0x0001180044C00010ull + ((offset) & 1023) * 64) +#define CVMX_PKI_DSTATX_STAT3 (offset) (0x0001180044C00018ull + ((offset) & 1023) * 64) +#define CVMX_PKI_DSTATX_STAT4 (offset) (0x0001180044C00020ull + ((offset) & 1023) * 64) +#define CVMX_PKI_ECC_CTL0 (0x0001180044000060ull) +#define CVMX_PKI_ECC_CTL1 (0x0001180044000068ull) +#define CVMX_PKI_ECC_CTL2 (0x0001180044000070ull) +#define CVMX_PKI_ECC_INT0 (0x0001180044000040ull) +#define CVMX_PKI_ECC_INT1 (0x0001180044000048ull) +#define CVMX_PKI_ECC_INT2 (0x0001180044000050ull) +#define CVMX_PKI_FRM_LEN_CHKX (offset) (0x0001180044004000ull + ((offset) & 1) * 8) +#define CVMX_PKI_GBL_PEN (0x0001180044000200ull) +#define CVMX_PKI_GEN_INT (0x0001180044000020ull) +#define CVMX_PKI_ICGX_CFG (offset) (0x000118004400A000ull) +#define CVMX_PKI_IMEMX (offset) (0x0001180044100000ull + ((offset) & 2047) * 8) +#define CVMX_PKI_LTYPEX_MAP (offset) (0x0001180044005000ull + ((offset) & 31) * 8) +#define CVMX_PKI_PBE_ECO (0x0001180044000710ull) +#define CVMX_PKI_PCAM_LOOKUP (0x0001180044000500ull) +#define CVMX_PKI_PCAM_RESULT (0x0001180044000510ull) +#define CVMX_PKI_PFE_DIAG (0x0001180044000560ull) +#define CVMX_PKI_PFE_ECO (0x0001180044000720ull) +#define CVMX_PKI_PIX_CLKEN (0x0001180044000600ull) +#define CVMX_PKI_PIX_DIAG (0x0001180044000580ull) +#define CVMX_PKI_PIX_ECO (0x0001180044000700ull) +#define CVMX_PKI_PKINDX_ICGSEL (offset) (0x0001180044010000ull + ((offset) & 63) * 8) +#define CVMX_PKI_PKNDX_INB_STAT0 (offset) (0x0001180044F00000ull + ((offset) & 63) * 256) +#define CVMX_PKI_PKNDX_INB_STAT1 (offset) (0x0001180044F00008ull + ((offset) & 63) * 256) +#define CVMX_PKI_PKNDX_INB_STAT2 (offset) (0x0001180044F00010ull + ((offset) & 63) * 256) +#define CVMX_PKI_PKT_ERR (0x0001180044000030ull) +#define CVMX_PKI_PTAG_AVAIL (0x0001180044000130ull) +#define CVMX_PKI_QPG_TBLBX (offset) (0x0001180044820000ull + ((offset) & 2047) * 8) +#define CVMX_PKI_QPG_TBLX (offset) (0x0001180044800000ull + ((offset) & 2047) * 8) +#define CVMX_PKI_REASM_SOPX (offset) (0x0001180044006000ull + ((offset) & 1) * 8) +#define CVMX_PKI_REQ_WGT (0x0001180044000120ull) +#define CVMX_PKI_SFT_RST (0x0001180044000010ull) +#define CVMX_PKI_STATX_HIST0 (offset) (0x0001180044E00000ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_HIST1 (offset) (0x0001180044E00008ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_HIST2 (offset) (0x0001180044E00010ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_HIST3 (offset) (0x0001180044E00018ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_HIST4 (offset) (0x0001180044E00020ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_HIST5 (offset) (0x0001180044E00028ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_HIST6 (offset) (0x0001180044E00030ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT0 (offset) (0x0001180044E00038ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT1 (offset) (0x0001180044E00040ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT10 (offset) (0x0001180044E00088ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT11 (offset) (0x0001180044E00090ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT12 (offset) (0x0001180044E00098ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT13 (offset) (0x0001180044E000A0ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT14 (offset) (0x0001180044E000A8ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT15 (offset) (0x0001180044E000B0ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT16 (offset) (0x0001180044E000B8ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT17 (offset) (0x0001180044E000C0ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT18 (offset) (0x0001180044E000C8ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT2 (offset) (0x0001180044E00048ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT3 (offset) (0x0001180044E00050ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT4 (offset) (0x0001180044E00058ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT5 (offset) (0x0001180044E00060ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT6 (offset) (0x0001180044E00068ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT7 (offset) (0x0001180044E00070ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT8 (offset) (0x0001180044E00078ull + ((offset) & 63) * 256) +#define CVMX_PKI_STATX_STAT9 (offset) (0x0001180044E00080ull + ((offset) & 63) * 256) +#define CVMX_PKI_STAT_CTL (0x0001180044000110ull) +#define CVMX_PKI_STYLEX_BUF (offset) (0x0001180044024000ull + ((offset) & 63) * 8) +#define CVMX_PKI_STYLEX_TAG_MASK (offset) (0x0001180044021000ull + ((offset) & 63) * 8) +#define CVMX_PKI_STYLEX_TAG_SEL (offset) (0x0001180044020000ull + ((offset) & 63) * 8) +#define CVMX_PKI_STYLEX_WQ2 (offset) (0x0001180044022000ull + ((offset) & 63) * 8) +#define CVMX_PKI_STYLEX_WQ4 (offset) (0x0001180044023000ull + ((offset) & 63) * 8) +#define CVMX_PKI_TAG_INCX_CTL (offset) (0x0001180044007000ull + ((offset) & 31) * 8) +#define CVMX_PKI_TAG_INCX_MASK (offset) (0x0001180044008000ull + ((offset) & 31) * 8) +#define CVMX_PKI_TAG_SECRET (0x0001180044000430ull) +#define CVMX_PKI_X2P_REQ_OFL (0x0001180044000038ull) + +/** +* cvmx_pki_active0 +*/ +union cvmx_pki_active0 { +u64 u64; +struct cvmx_pki_active0_s { +u64 reserved_1_63 :63 ; +u64 pfe_active :1 ; + } s; +struct cvmx_pki_active0_s cn73xx; +struct cvmx_pki_active0_s cn78xx; +struct cvmx_pki_active0_s cn78xxp1; +struct cvmx_pki_active0_s cnf75xx; +}; + +typedef union cvmx_pki_active0 cvmx_pki_active0_t ; + +/** +* cvmx_pki_active1 +*/ +union cvmx_pki_active1 { +u64 u64; +struct cvmx_pki_active1_s { +u64 reserved_4_63 :60 ; +u64 fpc_active :1 ; +u64 iobp_active :1 ; +u64 sws_active :1 ; +u64 pbtag_active :1 ; + } s; +struct cvmx_pki_active1_s cn73xx; +struct cvmx_pki_active1_s cn78xx; +struct cvmx_pki_active1_s cn78xxp1; +struct cvmx_pki_active1_s cnf75xx; +}; + +typedef union cvmx_pki_active1 cvmx_pki_active1_t ; + +/** +* cvmx_pki_active2 +*/ +union cvmx_pki_active2 { +u64 u64; +struct cvmx_pki_active2_s { +u64 reserved_5_63 :59 ; +u64 pix_active :5 ; + } s; +struct cvmx_pki_active2_s cn73xx; +struct cvmx_pki_active2_s cn78xx; +struct cvmx_pki_active2_s cn78xxp1; +struct cvmx_pki_active2_s cnf75xx; +}; + +typedef union cvmx_pki_active2 cvmx_pki_active2_t ; + +/** +* cvmx_pki_aura#_cfg +* +* This register configures aura backpressure, etc. +* +*/ +union cvmx_pki_aurax_cfg { +u64 u64; +struct cvmx_pki_aurax_cfg_s { +u64 reserved_32_63 :32 ; +u64 pkt_add :2 ; +u64 reserved_19_29 :11 ; +u64 ena_red :1 ; +u64 ena_drop :1 ; +u64 ena_bp :1 ; +u64 reserved_10_15 :6 ; +u64 bpid :10 ; + } s; +struct cvmx_pki_aurax_cfg_s cn73xx; +struct cvmx_pki_aurax_cfg_s cn78xx; +struct cvmx_pki_aurax_cfg_s cn78xxp1; +struct cvmx_pki_aurax_cfg_s cnf75xx; +}; + +typedef union cvmx_pki_aurax_cfg cvmx_pki_aurax_cfg_t ; + +/** +* cvmx_pki_bist_status0 +* +* This register indicates BIST status. +* +*/ +union cvmx_pki_bist_status0 { +u64 u64; +struct cvmx_pki_bist_status0_s { +u64 reserved_31_63 :33 ; +u64 bist :31 ; + } s; +struct cvmx_pki_bist_status0_s cn73xx; +struct cvmx_pki_bist_status0_s cn78xx; +struct cvmx_pki_bist_status0_s cn78xxp1; +struct cvmx_pki_bist_status0_s cnf75xx; +}; + +typedef union cvmx_pki_bist_status0 cvmx_pki_bist_status0_t ; + +/** +* cvmx_pki_bist_status1 +* +* This register indicates BIST status. +* +*/ +union cvmx_pki_bist_status1 { +u64 u64; +struct cvmx_pki_bist_status1_s { +u64 reserved_26_63 :38 ; +u64 bist :26 ; + } s; +struct cvmx_pki_bist_status1_s cn73xx; +struct cvmx_pki_bist_status1_s cn78xx; +struct cvmx_pki_bist_status1_cn78xxp1 { +u64 reserved_21_63 :43 ; +u64 bist :21 ; + } cn78xxp1; +struct cvmx_pki_bist_status1_s cnf75xx; +}; + +typedef union cvmx_pki_bist_status1 cvmx_pki_bist_status1_t ; + +/** +* cvmx_pki_bist_status2 +* +* This register indicates BIST status. +* +*/ +union cvmx_pki_bist_status2 { +u64 u64; +struct cvmx_pki_bist_status2_s { +u64 reserved_25_63 :39 ; +u64 bist :25 ; + } s; +struct cvmx_pki_bist_status2_s cn73xx; +struct cvmx_pki_bist_status2_s cn78xx; +struct cvmx_pki_bist_status2_s cn78xxp1; +struct cvmx_pki_bist_status2_s cnf75xx; +}; + +typedef union cvmx_pki_bist_status2 cvmx_pki_bist_status2_t ; + +/** +* cvmx_pki_bpid#_state +* +* This register shows the current bpid state for diagnostics. +* +*/ +union cvmx_pki_bpidx_state { +u64 u64; +struct cvmx_pki_bpidx_state_s { +u64 reserved_1_63 :63 ; +u64 xoff :1 ; + } s; +struct cvmx_pki_bpidx_state_s cn73xx; +struct cvmx_pki_bpidx_state_s cn78xx; +struct cvmx_pki_bpidx_state_s cn78xxp1; +struct cvmx_pki_bpidx_state_s cnf75xx; +}; + +typedef union cvmx_pki_bpidx_state cvmx_pki_bpidx_state_t ; + +/** +* cvmx_pki_buf_ctl +*/ +union cvmx_pki_buf_ctl { +u64 u64; +struct cvmx_pki_buf_ctl_s { +u64 reserved_11_63 :53 ; +u64 fpa_wait :1 ; +u64 fpa_cac_dis :1 ; +u64 reserved_6_8 :3 ; +u64 pkt_off :1 ; +u64 reserved_3_4 :2 ; +u64 pbp_en :1 ; +u64 reserved_1_1 :1 ; +u64 pki_en :1 ; + } s; +struct cvmx_pki_buf_ctl_s cn73xx; +struct cvmx_pki_buf_ctl_s cn78xx; +struct cvmx_pki_buf_ctl_s cn78xxp1; +struct cvmx_pki_buf_ctl_s cnf75xx; +}; + +typedef union cvmx_pki_buf_ctl cvmx_pki_buf_ctl_t ; + +/** +* cvmx_pki_chan#_cfg +* +* This register configures each channel. +* +*/ +union cvmx_pki_chanx_cfg { +u64 u64; +struct cvmx_pki_chanx_cfg_s { +u64 reserved_17_63 :47 ; +u64 imp :1 ; +u64 reserved_10_15 :6 ; +u64 bpid :10 ; + } s; +struct cvmx_pki_chanx_cfg_s cn73xx; +struct cvmx_pki_chanx_cfg_s cn78xx; +struct cvmx_pki_chanx_cfg_s cn78xxp1; +struct cvmx_pki_chanx_cfg_s cnf75xx; +}; + +typedef union cvmx_pki_chanx_cfg cvmx_pki_chanx_cfg_t ; + +/** +* cvmx_pki_cl#_ecc_ctl +* +* This register configures ECC. All of PKI_CL()_ECC_CTL must be configured identically. +* +*/ +union cvmx_pki_clx_ecc_ctl { +u64 u64; +struct cvmx_pki_clx_ecc_ctl_s { +u64 pcam_en :1 ; +u64 reserved_24_62 :39 ; +u64 pcam1_flip :2 ; +u64 pcam0_flip :2 ; +u64 smem_flip :2 ; +u64 dmem_flip :1 ; +u64 rf_flip :1 ; +u64 reserved_5_15 :11 ; +u64 pcam1_cdis :1 ; +u64 pcam0_cdis :1 ; +u64 smem_cdis :1 ; +u64 dmem_cdis :1 ; +u64 rf_cdis :1 ; + } s; +struct cvmx_pki_clx_ecc_ctl_s cn73xx; +struct cvmx_pki_clx_ecc_ctl_s cn78xx; +struct cvmx_pki_clx_ecc_ctl_s cn78xxp1; +struct cvmx_pki_clx_ecc_ctl_s cnf75xx; +}; + +typedef union cvmx_pki_clx_ecc_ctl cvmx_pki_clx_ecc_ctl_t ; + +/** +* cvmx_pki_cl#_ecc_int +*/ +union cvmx_pki_clx_ecc_int { +u64 u64; +struct cvmx_pki_clx_ecc_int_s { +u64 reserved_8_63 :56 ; +u64 pcam1_dbe :1 ; +u64 pcam1_sbe :1 ; +u64 pcam0_dbe :1 ; +u64 pcam0_sbe :1 ; +u64 smem_dbe :1 ; +u64 smem_sbe :1 ; +u64 dmem_perr :1 ; +u64 rf_perr :1 ; + } s; +struct cvmx_pki_clx_ecc_int_s cn73xx; +struct cvmx_pki_clx_ecc_int_s cn78xx; +struct cvmx_pki_clx_ecc_int_s cn78xxp1; +struct cvmx_pki_clx_ecc_int_s cnf75xx; +}; + +typedef union cvmx_pki_clx_ecc_int cvmx_pki_clx_ecc_int_t ; + +/** +* cvmx_pki_cl#_int +*/ +union cvmx_pki_clx_int { +u64 u64; +struct cvmx_pki_clx_int_s { +u64 reserved_4_63 :60 ; +u64 iptint :1 ; +u64 sched_conf :1 ; +u64 pcam_conf :2 ; + } s; +struct cvmx_pki_clx_int_s cn73xx; +struct cvmx_pki_clx_int_s cn78xx; +struct cvmx_pki_clx_int_s cn78xxp1; +struct cvmx_pki_clx_int_s cnf75xx; +}; + +typedef union cvmx_pki_clx_int cvmx_pki_clx_int_t ; + +/** +* cvmx_pki_cl#_pcam#_action# +* +* This register configures the result side of the PCAM. PKI hardware is opaque as to the use +* of the 32 bits of CAM result. +* +* For each legal j and k, PKI_CL(i)_PCAM(j)_ACTION(k) must be configured identically for i=0..1. +* +* With the current parse engine code: +* +* Action performed based on PCAM lookup using the PKI_CL()_PCAM()_TERM() and +* PKI_CL()_PCAM()_MATCH() registers. +* +* If lookup data matches no PCAM entries, then no action takes place. No matches indicates +* normal parsing will continue. +* +* If data matches multiple PCAM entries, PKI_WQE_S[ERRLEV,OPCODE] of the processed packet may +* be set to PKI_ERRLEV_E::RE,PKI_OPCODE_E::RE_PKIPCAM and the PKI_CL()_INT[PCAM_CONF] error +* interrupt is signaled. Once a conflict is detected, the PCAM state is unpredictable and is +* required to be fully reconfigured before further valid processing can take place. +*/ +union cvmx_pki_clx_pcamx_actionx { +u64 u64; +struct cvmx_pki_clx_pcamx_actionx_s { +u64 reserved_31_63 :33 ; +u64 pmc :7 ; +u64 style_add :8 ; +u64 pf :3 ; +u64 setty :5 ; +u64 advance :8 ; + } s; +struct cvmx_pki_clx_pcamx_actionx_s cn73xx; +struct cvmx_pki_clx_pcamx_actionx_s cn78xx; +struct cvmx_pki_clx_pcamx_actionx_s cn78xxp1; +struct cvmx_pki_clx_pcamx_actionx_s cnf75xx; +}; + +typedef union cvmx_pki_clx_pcamx_actionx cvmx_pki_clx_pcamx_actionx_t ; + +/** +* cvmx_pki_cl#_pcam#_match# +* +* This register configures the match side of the PCAM. PKI hardware is opaque as to the use +* of the 32 bits of CAM data. +* +* For each legal j and k, PKI_CL(i)_PCAM(j)_MATCH(k) must be configured identically for i=0..1. +*/ +union cvmx_pki_clx_pcamx_matchx { +u64 u64; +struct cvmx_pki_clx_pcamx_matchx_s { +u64 data1 :32 ; +u64 data0 :32 ; + } s; +struct cvmx_pki_clx_pcamx_matchx_s cn73xx; +struct cvmx_pki_clx_pcamx_matchx_s cn78xx; +struct cvmx_pki_clx_pcamx_matchx_s cn78xxp1; +struct cvmx_pki_clx_pcamx_matchx_s cnf75xx; +}; + +typedef union cvmx_pki_clx_pcamx_matchx cvmx_pki_clx_pcamx_matchx_t ; + +/** +* cvmx_pki_cl#_pcam#_term# +* +* This register configures the match side of the PCAM. PKI hardware is opaque as to the use +* of the 16 bits of CAM data; the split between TERM and STYLE is defined by the +* parse engine. +* +* For each legal j and k, PKI_CL(i)_PCAM(j)_TERM(k) must be configured identically for i=0..1. +*/ +union cvmx_pki_clx_pcamx_termx { +u64 u64; +struct cvmx_pki_clx_pcamx_termx_s { +u64 valid :1 ; +u64 reserved_48_62 :15 ; +u64 term1 :8 ; +u64 style1 :8 ; +u64 reserved_16_31 :16 ; +u64 term0 :8 ; +u64 style0 :8 ; + } s; +struct cvmx_pki_clx_pcamx_termx_s cn73xx; +struct cvmx_pki_clx_pcamx_termx_s cn78xx; +struct cvmx_pki_clx_pcamx_termx_s cn78xxp1; +struct cvmx_pki_clx_pcamx_termx_s cnf75xx; +}; + +typedef union cvmx_pki_clx_pcamx_termx cvmx_pki_clx_pcamx_termx_t ; + +/** +* cvmx_pki_cl#_pkind#_cfg +* +* This register is inside PKI_CL()_PKIND()_KMEM(). These CSRs are used only by +* the PKI parse engine. +* +* For each legal j, PKI_CL(i)_PKIND(j)_CFG must be configured identically for i=0..1. +*/ +union cvmx_pki_clx_pkindx_cfg { +u64 u64; +struct cvmx_pki_clx_pkindx_cfg_s { +u64 reserved_11_63 :53 ; +u64 lg_custom_layer :3 ; +u64 fcs_pres :1 ; +u64 mpls_en :1 ; +u64 inst_hdr :1 ; +u64 lg_custom :1 ; +u64 fulc_en :1 ; +u64 dsa_en :1 ; +u64 hg2_en :1 ; +u64 hg_en :1 ; + } s; +struct cvmx_pki_clx_pkindx_cfg_s cn73xx; +struct cvmx_pki_clx_pkindx_cfg_s cn78xx; +struct cvmx_pki_clx_pkindx_cfg_s cn78xxp1; +struct cvmx_pki_clx_pkindx_cfg_s cnf75xx; +}; + +typedef union cvmx_pki_clx_pkindx_cfg cvmx_pki_clx_pkindx_cfg_t ; + +/** +* cvmx_pki_cl#_pkind#_kmem# +* +* This register initializes the KMEM, which initializes the parse engine state for each +* pkind. These CSRs are used only by the PKI parse engine. +* +* Inside the KMEM are the following parse engine registers. These registers are the +* preferred access method for software: +* * PKI_CL()_PKIND()_CFG. +* * PKI_CL()_PKIND()_STYLE. +* * PKI_CL()_PKIND()_SKIP. +* * PKI_CL()_PKIND()_L2_CUSTOM. +* * PKI_CL()_PKIND()_LG_CUSTOM. +* +* To avoid overlapping addresses, these aliases have address bit 20 set in contrast to +* this register; the PKI address decoder ignores bit 20 when accessing +* PKI_CL()_PKIND()_KMEM(). +* +* Software must reload the PKI_CL()_PKIND()_KMEM() registers upon the detection of +* PKI_ECC_INT0[KMEM_SBE] or PKI_ECC_INT0[KMEM_DBE]. +* +* For each legal j and k value, PKI_CL(i)_PKIND(j)_KMEM(k) must be configured +* identically for i=0..1. +*/ +union cvmx_pki_clx_pkindx_kmemx { +u64 u64; +struct cvmx_pki_clx_pkindx_kmemx_s { +u64 reserved_16_63 :48 ; +u64 data :16 ; + } s; +struct cvmx_pki_clx_pkindx_kmemx_s cn73xx; +struct cvmx_pki_clx_pkindx_kmemx_s cn78xx; +struct cvmx_pki_clx_pkindx_kmemx_s cn78xxp1; +struct cvmx_pki_clx_pkindx_kmemx_s cnf75xx; +}; + +typedef union cvmx_pki_clx_pkindx_kmemx cvmx_pki_clx_pkindx_kmemx_t ; + +/** +* cvmx_pki_cl#_pkind#_l2_custom +* +* This register is inside PKI_CL()_PKIND()_KMEM(). These CSRs are used only by +* the PKI parse engine. +* +* For each legal j, PKI_CL(i)_PKIND(j)_L2_CUSTOM must be configured identically for i=0..1. +*/ +union cvmx_pki_clx_pkindx_l2_custom { +u64 u64; +struct cvmx_pki_clx_pkindx_l2_custom_s { +u64 reserved_16_63 :48 ; +u64 valid :1 ; +u64 reserved_8_14 :7 ; +u64 offset :8 ; + } s; +struct cvmx_pki_clx_pkindx_l2_custom_s cn73xx; +struct cvmx_pki_clx_pkindx_l2_custom_s cn78xx; +struct cvmx_pki_clx_pkindx_l2_custom_s cn78xxp1; +struct cvmx_pki_clx_pkindx_l2_custom_s cnf75xx; +}; + +typedef union cvmx_pki_clx_pkindx_l2_custom cvmx_pki_clx_pkindx_l2_custom_t ; + +/** +* cvmx_pki_cl#_pkind#_lg_custom +* +* This register is inside PKI_CL()_PKIND()_KMEM(). These CSRs are used only by +* the PKI parse engine. +* +* For each legal j, PKI_CL(i)_PKIND(j)_LG_CUSTOM must be configured identically for i=0..1. +*/ +union cvmx_pki_clx_pkindx_lg_custom { +u64 u64; +struct cvmx_pki_clx_pkindx_lg_custom_s { +u64 reserved_8_63 :56 ; +u64 offset :8 ; + } s; +struct cvmx_pki_clx_pkindx_lg_custom_s cn73xx; +struct cvmx_pki_clx_pkindx_lg_custom_s cn78xx; +struct cvmx_pki_clx_pkindx_lg_custom_s cn78xxp1; +struct cvmx_pki_clx_pkindx_lg_custom_s cnf75xx; +}; + +typedef union cvmx_pki_clx_pkindx_lg_custom cvmx_pki_clx_pkindx_lg_custom_t ; + +/** +* cvmx_pki_cl#_pkind#_skip +* +* This register is inside PKI_CL()_PKIND()_KMEM(). These CSRs are used only by +* the PKI parse engine. +* +* For each legal j, PKI_CL(i)_PKIND(j)_SKIP must be configured identically for i=0..1. +*/ +union cvmx_pki_clx_pkindx_skip { +u64 u64; +struct cvmx_pki_clx_pkindx_skip_s { +u64 reserved_16_63 :48 ; +u64 fcs_skip :8 ; +u64 inst_skip :8 ; + } s; +struct cvmx_pki_clx_pkindx_skip_s cn73xx; +struct cvmx_pki_clx_pkindx_skip_s cn78xx; +struct cvmx_pki_clx_pkindx_skip_s cn78xxp1; +struct cvmx_pki_clx_pkindx_skip_s cnf75xx; +}; + +typedef union cvmx_pki_clx_pkindx_skip cvmx_pki_clx_pkindx_skip_t ; + +/** +* cvmx_pki_cl#_pkind#_style +* +* This register is inside PKI_CL()_PKIND()_KMEM(). These CSRs are used only by +* the PKI parse engine. +* +* For each legal j, PKI_CL(i)_PKIND(j)_STYLE must be configured identically for i=0..1. +*/ +union cvmx_pki_clx_pkindx_style { +u64 u64; +struct cvmx_pki_clx_pkindx_style_s { +u64 reserved_15_63 :49 ; +u64 pm :7 ; +u64 style :8 ; + } s; +struct cvmx_pki_clx_pkindx_style_s cn73xx; +struct cvmx_pki_clx_pkindx_style_s cn78xx; +struct cvmx_pki_clx_pkindx_style_s cn78xxp1; +struct cvmx_pki_clx_pkindx_style_s cnf75xx; +}; + +typedef union cvmx_pki_clx_pkindx_style cvmx_pki_clx_pkindx_style_t ; + +/** +* cvmx_pki_cl#_smem# +* +* This register initializes the SMEM, which configures the parse engine. These CSRs +* are used by the PKI parse engine and other PKI hardware. +* +* Inside the SMEM are the following parse engine registers. These registers are the +* preferred access method for software: +* * PKI_CL()_STYLE()_CFG +* * PKI_CL()_STYLE()_CFG2 +* * PKI_CL()_STYLE()_ALG +* +* To avoid overlapping addresses, these aliases have address bit 20 set in contrast to +* this register; the PKI address decoder ignores bit 20 when accessing +* PKI_CL()_SMEM(). +* +* Software must reload the PKI_CL()_SMEM() registers upon the detection of +* PKI_CL()_ECC_INT[SMEM_SBE] or PKI_CL()_ECC_INT[SMEM_DBE]. +* +* For each legal j, PKI_CL(i)_SMEM(j) must be configured identically for i=0..1. +*/ +union cvmx_pki_clx_smemx { +u64 u64; +struct cvmx_pki_clx_smemx_s { +u64 reserved_32_63 :32 ; +u64 data :32 ; + } s; +struct cvmx_pki_clx_smemx_s cn73xx; +struct cvmx_pki_clx_smemx_s cn78xx; +struct cvmx_pki_clx_smemx_s cn78xxp1; +struct cvmx_pki_clx_smemx_s cnf75xx; +}; + +typedef union cvmx_pki_clx_smemx cvmx_pki_clx_smemx_t ; + +/** +* cvmx_pki_cl#_start +* +* This register configures a cluster. All of PKI_CL()_START must be programmed identically. +* +*/ +union cvmx_pki_clx_start { +u64 u64; +struct cvmx_pki_clx_start_s { +u64 reserved_11_63 :53 ; +u64 start :11 ; + } s; +struct cvmx_pki_clx_start_s cn73xx; +struct cvmx_pki_clx_start_s cn78xx; +struct cvmx_pki_clx_start_s cn78xxp1; +struct cvmx_pki_clx_start_s cnf75xx; +}; + +typedef union cvmx_pki_clx_start cvmx_pki_clx_start_t ; + +/** +* cvmx_pki_cl#_style#_alg +* +* This register is inside PKI_CL()_SMEM(). These CSRs are used only by +* the PKI parse engine. +* +* For each legal j, PKI_CL(i)_STYLE(j)_ALG must be configured identically for i=0..1. +*/ +union cvmx_pki_clx_stylex_alg { +u64 u64; +struct cvmx_pki_clx_stylex_alg_s { +u64 reserved_32_63 :32 ; +u64 tt :2 ; +u64 apad_nip :3 ; +u64 qpg_qos :3 ; +u64 qpg_port_sh :3 ; +u64 qpg_port_msb :4 ; +u64 reserved_11_16 :6 ; +u64 tag_vni :1 ; +u64 tag_gtp :1 ; +u64 tag_spi :1 ; +u64 tag_syn :1 ; +u64 tag_pctl :1 ; +u64 tag_vs1 :1 ; +u64 tag_vs0 :1 ; +u64 tag_vlan :1 ; +u64 tag_mpls0 :1 ; +u64 tag_prt :1 ; +u64 wqe_vs :1 ; + } s; +struct cvmx_pki_clx_stylex_alg_s cn73xx; +struct cvmx_pki_clx_stylex_alg_s cn78xx; +struct cvmx_pki_clx_stylex_alg_s cn78xxp1; +struct cvmx_pki_clx_stylex_alg_s cnf75xx; +}; + +typedef union cvmx_pki_clx_stylex_alg cvmx_pki_clx_stylex_alg_t ; + +/** +* cvmx_pki_cl#_style#_cfg +* +* This register is inside PKI_CL()_SMEM(). These CSRs are used by +* the PKI parse engine and other PKI hardware. +* +* For each legal j, PKI_CL(i)_STYLE(j)_CFG must be configured identically for i=0..1. +*/ +union cvmx_pki_clx_stylex_cfg { +u64 u64; +struct cvmx_pki_clx_stylex_cfg_s { +u64 reserved_31_63 :33 ; +u64 ip6_udp_opt :1 ; +u64 lenerr_en :1 ; +u64 lenerr_eqpad :1 ; +u64 minmax_sel :1 ; +u64 maxerr_en :1 ; +u64 minerr_en :1 ; +u64 qpg_dis_grptag :1 ; +u64 fcs_strip :1 ; +u64 fcs_chk :1 ; +u64 rawdrp :1 ; +u64 drop :1 ; +u64 nodrop :1 ; +u64 qpg_dis_padd :1 ; +u64 qpg_dis_grp :1 ; +u64 qpg_dis_aura :1 ; +u64 reserved_11_15 :5 ; +u64 qpg_base :11 ; + } s; +struct cvmx_pki_clx_stylex_cfg_s cn73xx; +struct cvmx_pki_clx_stylex_cfg_s cn78xx; +struct cvmx_pki_clx_stylex_cfg_s cn78xxp1; +struct cvmx_pki_clx_stylex_cfg_s cnf75xx; +}; + +typedef union cvmx_pki_clx_stylex_cfg cvmx_pki_clx_stylex_cfg_t ; + +/** +* cvmx_pki_cl#_style#_cfg2 +* +* This register is inside PKI_CL()_SMEM(). These CSRs are used by +* the PKI parse engine and other PKI hardware. +* +* For each legal j, PKI_CL(i)_STYLE(j)_CFG2 must be configured identically for i=0..1. +*/ +union cvmx_pki_clx_stylex_cfg2 { +u64 u64; +struct cvmx_pki_clx_stylex_cfg2_s { +u64 reserved_32_63 :32 ; +u64 tag_inc :4 ; +u64 reserved_25_27 :3 ; +u64 tag_masken :1 ; +u64 tag_src_lg :1 ; +u64 tag_src_lf :1 ; +u64 tag_src_le :1 ; +u64 tag_src_ld :1 ; +u64 tag_src_lc :1 ; +u64 tag_src_lb :1 ; +u64 tag_dst_lg :1 ; +u64 tag_dst_lf :1 ; +u64 tag_dst_le :1 ; +u64 tag_dst_ld :1 ; +u64 tag_dst_lc :1 ; +u64 tag_dst_lb :1 ; +u64 len_lg :1 ; +u64 len_lf :1 ; +u64 len_le :1 ; +u64 len_ld :1 ; +u64 len_lc :1 ; +u64 len_lb :1 ; +u64 csum_lg :1 ; +u64 csum_lf :1 ; +u64 csum_le :1 ; +u64 csum_ld :1 ; +u64 csum_lc :1 ; +u64 csum_lb :1 ; + } s; +struct cvmx_pki_clx_stylex_cfg2_s cn73xx; +struct cvmx_pki_clx_stylex_cfg2_s cn78xx; +struct cvmx_pki_clx_stylex_cfg2_s cn78xxp1; +struct cvmx_pki_clx_stylex_cfg2_s cnf75xx; +}; + +typedef union cvmx_pki_clx_stylex_cfg2 cvmx_pki_clx_stylex_cfg2_t ; + +/** +* cvmx_pki_clken +*/ +union cvmx_pki_clken { +u64 u64; +struct cvmx_pki_clken_s { +u64 reserved_1_63 :63 ; +u64 clken :1 ; + } s; +struct cvmx_pki_clken_s cn73xx; +struct cvmx_pki_clken_s cn78xx; +struct cvmx_pki_clken_s cn78xxp1; +struct cvmx_pki_clken_s cnf75xx; +}; + +typedef union cvmx_pki_clken cvmx_pki_clken_t ; + +/** +* cvmx_pki_dstat#_stat0 +* +* This register contains statistics indexed by PKI_QPG_TBLB()[DSTAT_ID]. +* +*/ +union cvmx_pki_dstatx_stat0 { +u64 u64; +struct cvmx_pki_dstatx_stat0_s { +u64 reserved_32_63 :32 ; +u64 pkts :32 ; + } s; +struct cvmx_pki_dstatx_stat0_s cn73xx; +struct cvmx_pki_dstatx_stat0_s cn78xx; +struct cvmx_pki_dstatx_stat0_s cnf75xx; +}; + +typedef union cvmx_pki_dstatx_stat0 cvmx_pki_dstatx_stat0_t ; + +/** +* cvmx_pki_dstat#_stat1 +* +* This register contains statistics indexed by PKI_QPG_TBLB()[DSTAT_ID]. +* +*/ +union cvmx_pki_dstatx_stat1 { +u64 u64; +struct cvmx_pki_dstatx_stat1_s { +u64 reserved_40_63 :24 ; +u64 octs :40 ; + } s; +struct cvmx_pki_dstatx_stat1_s cn73xx; +struct cvmx_pki_dstatx_stat1_s cn78xx; +struct cvmx_pki_dstatx_stat1_s cnf75xx; +}; + +typedef union cvmx_pki_dstatx_stat1 cvmx_pki_dstatx_stat1_t ; + +/** +* cvmx_pki_dstat#_stat2 +* +* This register contains statistics indexed by PKI_QPG_TBLB()[DSTAT_ID]. +* +*/ +union cvmx_pki_dstatx_stat2 { +u64 u64; +struct cvmx_pki_dstatx_stat2_s { +u64 reserved_32_63 :32 ; +u64 err_pkts :32 ; + } s; +struct cvmx_pki_dstatx_stat2_s cn73xx; +struct cvmx_pki_dstatx_stat2_s cn78xx; +struct cvmx_pki_dstatx_stat2_s cnf75xx; +}; + +typedef union cvmx_pki_dstatx_stat2 cvmx_pki_dstatx_stat2_t ; + +/** +* cvmx_pki_dstat#_stat3 +* +* This register contains statistics indexed by PKI_QPG_TBLB()[DSTAT_ID]. +* +*/ +union cvmx_pki_dstatx_stat3 { +u64 u64; +struct cvmx_pki_dstatx_stat3_s { +u64 reserved_32_63 :32 ; +u64 drp_pkts :32 ; + } s; +struct cvmx_pki_dstatx_stat3_s cn73xx; +struct cvmx_pki_dstatx_stat3_s cn78xx; +struct cvmx_pki_dstatx_stat3_s cnf75xx; +}; + +typedef union cvmx_pki_dstatx_stat3 cvmx_pki_dstatx_stat3_t ; + +/** +* cvmx_pki_dstat#_stat4 +* +* This register contains statistics indexed by PKI_QPG_TBLB()[DSTAT_ID]. +* +*/ +union cvmx_pki_dstatx_stat4 { +u64 u64; +struct cvmx_pki_dstatx_stat4_s { +u64 reserved_40_63 :24 ; +u64 drp_octs :40 ; + } s; +struct cvmx_pki_dstatx_stat4_s cn73xx; +struct cvmx_pki_dstatx_stat4_s cn78xx; +struct cvmx_pki_dstatx_stat4_s cnf75xx; +}; + +typedef union cvmx_pki_dstatx_stat4 cvmx_pki_dstatx_stat4_t ; + +/** +* cvmx_pki_ecc_ctl0 +* +* This register allows inserting ECC errors for testing. +* +*/ +union cvmx_pki_ecc_ctl0 { +u64 u64; +struct cvmx_pki_ecc_ctl0_s { +u64 reserved_24_63 :40 ; +u64 ldfif_flip :2 ; +u64 ldfif_cdis :1 ; +u64 pbe_flip :2 ; +u64 pbe_cdis :1 ; +u64 wadr_flip :2 ; +u64 wadr_cdis :1 ; +u64 nxtptag_flip :2 ; +u64 nxtptag_cdis :1 ; +u64 curptag_flip :2 ; +u64 curptag_cdis :1 ; +u64 nxtblk_flip :2 ; +u64 nxtblk_cdis :1 ; +u64 kmem_flip :2 ; +u64 kmem_cdis :1 ; +u64 asm_flip :2 ; +u64 asm_cdis :1 ; + } s; +struct cvmx_pki_ecc_ctl0_s cn73xx; +struct cvmx_pki_ecc_ctl0_s cn78xx; +struct cvmx_pki_ecc_ctl0_s cn78xxp1; +struct cvmx_pki_ecc_ctl0_s cnf75xx; +}; + +typedef union cvmx_pki_ecc_ctl0 cvmx_pki_ecc_ctl0_t ; + +/** +* cvmx_pki_ecc_ctl1 +* +* This register allows inserting ECC errors for testing. +* +*/ +union cvmx_pki_ecc_ctl1 { +u64 u64; +struct cvmx_pki_ecc_ctl1_s { +u64 reserved_51_63 :13 ; +u64 sws_flip :2 ; +u64 sws_cdis :1 ; +u64 wqeout_flip :2 ; +u64 wqeout_cdis :1 ; +u64 doa_flip :2 ; +u64 doa_cdis :1 ; +u64 bpid_flip :2 ; +u64 bpid_cdis :1 ; +u64 reserved_30_38 :9 ; +u64 plc_flip :2 ; +u64 plc_cdis :1 ; +u64 pktwq_flip :2 ; +u64 pktwq_cdis :1 ; +u64 reserved_21_23 :3 ; +u64 stylewq2_flip :2 ; +u64 stylewq2_cdis :1 ; +u64 tag_flip :2 ; +u64 tag_cdis :1 ; +u64 aura_flip :2 ; +u64 aura_cdis :1 ; +u64 chan_flip :2 ; +u64 chan_cdis :1 ; +u64 pbtag_flip :2 ; +u64 pbtag_cdis :1 ; +u64 stylewq_flip :2 ; +u64 stylewq_cdis :1 ; +u64 qpg_flip :2 ; +u64 qpg_cdis :1 ; + } s; +struct cvmx_pki_ecc_ctl1_s cn73xx; +struct cvmx_pki_ecc_ctl1_s cn78xx; +struct cvmx_pki_ecc_ctl1_cn78xxp1 { +u64 reserved_51_63 :13 ; +u64 sws_flip :2 ; +u64 sws_cdis :1 ; +u64 wqeout_flip :2 ; +u64 wqeout_cdis :1 ; +u64 doa_flip :2 ; +u64 doa_cdis :1 ; +u64 bpid_flip :2 ; +u64 bpid_cdis :1 ; +u64 reserved_30_38 :9 ; +u64 plc_flip :2 ; +u64 plc_cdis :1 ; +u64 pktwq_flip :2 ; +u64 pktwq_cdis :1 ; +u64 reserved_18_23 :6 ; +u64 tag_flip :2 ; +u64 tag_cdis :1 ; +u64 aura_flip :2 ; +u64 aura_cdis :1 ; +u64 chan_flip :2 ; +u64 chan_cdis :1 ; +u64 pbtag_flip :2 ; +u64 pbtag_cdis :1 ; +u64 stylewq_flip :2 ; +u64 stylewq_cdis :1 ; +u64 qpg_flip :2 ; +u64 qpg_cdis :1 ; + } cn78xxp1; +struct cvmx_pki_ecc_ctl1_s cnf75xx; +}; + +typedef union cvmx_pki_ecc_ctl1 cvmx_pki_ecc_ctl1_t ; + +/** +* cvmx_pki_ecc_ctl2 +* +* This register allows inserting ECC errors for testing. +* +*/ +union cvmx_pki_ecc_ctl2 { +u64 u64; +struct cvmx_pki_ecc_ctl2_s { +u64 reserved_3_63 :61 ; +u64 imem_flip :2 ; +u64 imem_cdis :1 ; + } s; +struct cvmx_pki_ecc_ctl2_s cn73xx; +struct cvmx_pki_ecc_ctl2_s cn78xx; +struct cvmx_pki_ecc_ctl2_s cn78xxp1; +struct cvmx_pki_ecc_ctl2_s cnf75xx; +}; + +typedef union cvmx_pki_ecc_ctl2 cvmx_pki_ecc_ctl2_t ; + +/** +* cvmx_pki_ecc_int0 +*/ +union cvmx_pki_ecc_int0 { +u64 u64; +struct cvmx_pki_ecc_int0_s { +u64 reserved_16_63 :48 ; +u64 ldfif_dbe :1 ; +u64 ldfif_sbe :1 ; +u64 pbe_dbe :1 ; +u64 pbe_sbe :1 ; +u64 wadr_dbe :1 ; +u64 wadr_sbe :1 ; +u64 nxtptag_dbe :1 ; +u64 nxtptag_sbe :1 ; +u64 curptag_dbe :1 ; +u64 curptag_sbe :1 ; +u64 nxtblk_dbe :1 ; +u64 nxtblk_sbe :1 ; +u64 kmem_dbe :1 ; +u64 kmem_sbe :1 ; +u64 asm_dbe :1 ; +u64 asm_sbe :1 ; + } s; +struct cvmx_pki_ecc_int0_s cn73xx; +struct cvmx_pki_ecc_int0_s cn78xx; +struct cvmx_pki_ecc_int0_s cn78xxp1; +struct cvmx_pki_ecc_int0_s cnf75xx; +}; + +typedef union cvmx_pki_ecc_int0 cvmx_pki_ecc_int0_t ; + +/** +* cvmx_pki_ecc_int1 +*/ +union cvmx_pki_ecc_int1 { +u64 u64; +struct cvmx_pki_ecc_int1_s { +u64 reserved_34_63 :30 ; +u64 sws_dbe :1 ; +u64 sws_sbe :1 ; +u64 wqeout_dbe :1 ; +u64 wqeout_sbe :1 ; +u64 doa_dbe :1 ; +u64 doa_sbe :1 ; +u64 bpid_dbe :1 ; +u64 bpid_sbe :1 ; +u64 reserved_20_25 :6 ; +u64 plc_dbe :1 ; +u64 plc_sbe :1 ; +u64 pktwq_dbe :1 ; +u64 pktwq_sbe :1 ; +u64 reserved_12_15 :4 ; +u64 tag_dbe :1 ; +u64 tag_sbe :1 ; +u64 aura_dbe :1 ; +u64 aura_sbe :1 ; +u64 chan_dbe :1 ; +u64 chan_sbe :1 ; +u64 pbtag_dbe :1 ; +u64 pbtag_sbe :1 ; +u64 stylewq_dbe :1 ; +u64 stylewq_sbe :1 ; +u64 qpg_dbe :1 ; +u64 qpg_sbe :1 ; + } s; +struct cvmx_pki_ecc_int1_s cn73xx; +struct cvmx_pki_ecc_int1_s cn78xx; +struct cvmx_pki_ecc_int1_s cn78xxp1; +struct cvmx_pki_ecc_int1_s cnf75xx; +}; + +typedef union cvmx_pki_ecc_int1 cvmx_pki_ecc_int1_t ; + +/** +* cvmx_pki_ecc_int2 +*/ +union cvmx_pki_ecc_int2 { +u64 u64; +struct cvmx_pki_ecc_int2_s { +u64 reserved_2_63 :62 ; +u64 imem_dbe :1 ; +u64 imem_sbe :1 ; + } s; +struct cvmx_pki_ecc_int2_s cn73xx; +struct cvmx_pki_ecc_int2_s cn78xx; +struct cvmx_pki_ecc_int2_s cn78xxp1; +struct cvmx_pki_ecc_int2_s cnf75xx; +}; + +typedef union cvmx_pki_ecc_int2 cvmx_pki_ecc_int2_t ; + +/** +* cvmx_pki_frm_len_chk# +*/ +union cvmx_pki_frm_len_chkx { +u64 u64; +struct cvmx_pki_frm_len_chkx_s { +u64 reserved_32_63 :32 ; +u64 maxlen :16 ; +u64 minlen :16 ; + } s; +struct cvmx_pki_frm_len_chkx_s cn73xx; +struct cvmx_pki_frm_len_chkx_s cn78xx; +struct cvmx_pki_frm_len_chkx_s cn78xxp1; +struct cvmx_pki_frm_len_chkx_s cnf75xx; +}; + +typedef union cvmx_pki_frm_len_chkx cvmx_pki_frm_len_chkx_t ; + +/** +* cvmx_pki_gbl_pen +* +* This register contains global configuration information that applies to all +* pkinds. The values are opaque to PKI HW. +* +* This is intended for communication between the higher-level software SDK, and the +* SDK code that loads PKI_IMEM() with the parse engine code. This allows the loader to +* appropriately select the parse engine code with only those features required, so that +* performance will be optimized. +*/ +union cvmx_pki_gbl_pen { +u64 u64; +struct cvmx_pki_gbl_pen_s { +u64 reserved_10_63 :54 ; +u64 virt_pen :1 ; +u64 clg_pen :1 ; +u64 cl2_pen :1 ; +u64 l4_pen :1 ; +u64 il3_pen :1 ; +u64 l3_pen :1 ; +u64 mpls_pen :1 ; +u64 fulc_pen :1 ; +u64 dsa_pen :1 ; +u64 hg_pen :1 ; + } s; +struct cvmx_pki_gbl_pen_s cn73xx; +struct cvmx_pki_gbl_pen_s cn78xx; +struct cvmx_pki_gbl_pen_s cn78xxp1; +struct cvmx_pki_gbl_pen_s cnf75xx; +}; + +typedef union cvmx_pki_gbl_pen cvmx_pki_gbl_pen_t ; + +/** +* cvmx_pki_gen_int +*/ +union cvmx_pki_gen_int { +u64 u64; +struct cvmx_pki_gen_int_s { +u64 reserved_10_63 :54 ; +u64 bufs_oflow :1 ; +u64 pkt_size_oflow :1 ; +u64 x2p_req_ofl :1 ; +u64 drp_noavail :1 ; +u64 dat :1 ; +u64 eop :1 ; +u64 sop :1 ; +u64 bckprs :1 ; +u64 crcerr :1 ; +u64 pktdrp :1 ; + } s; +struct cvmx_pki_gen_int_s cn73xx; +struct cvmx_pki_gen_int_s cn78xx; +struct cvmx_pki_gen_int_cn78xxp1 { +u64 reserved_8_63 :56 ; +u64 x2p_req_ofl :1 ; +u64 drp_noavail :1 ; +u64 dat :1 ; +u64 eop :1 ; +u64 sop :1 ; +u64 bckprs :1 ; +u64 crcerr :1 ; +u64 pktdrp :1 ; + } cn78xxp1; +struct cvmx_pki_gen_int_s cnf75xx; +}; + +typedef union cvmx_pki_gen_int cvmx_pki_gen_int_t ; + +/** +* cvmx_pki_icg#_cfg +* +* This register configures the cluster group. +* +*/ +union cvmx_pki_icgx_cfg { +u64 u64; +struct cvmx_pki_icgx_cfg_s { +u64 reserved_53_63 :11 ; +u64 maxipe_use :5 ; +u64 reserved_36_47 :12 ; +u64 clusters :4 ; +u64 reserved_27_31 :5 ; +u64 release_rqd :1 ; +u64 mlo :1 ; +u64 pena :1 ; +u64 timer :12 ; +u64 delay :12 ; + } s; +struct cvmx_pki_icgx_cfg_s cn73xx; +struct cvmx_pki_icgx_cfg_s cn78xx; +struct cvmx_pki_icgx_cfg_s cn78xxp1; +struct cvmx_pki_icgx_cfg_s cnf75xx; +}; + +typedef union cvmx_pki_icgx_cfg cvmx_pki_icgx_cfg_t ; + +/** +* cvmx_pki_imem# +*/ +union cvmx_pki_imemx { +u64 u64; +struct cvmx_pki_imemx_s { +u64 data :64 ; + } s; +struct cvmx_pki_imemx_s cn73xx; +struct cvmx_pki_imemx_s cn78xx; +struct cvmx_pki_imemx_s cn78xxp1; +struct cvmx_pki_imemx_s cnf75xx; +}; + +typedef union cvmx_pki_imemx cvmx_pki_imemx_t ; + +/** +* cvmx_pki_ltype#_map +* +* This register is the layer type map, indexed by PKI_LTYPE_E. +* +*/ +union cvmx_pki_ltypex_map { +u64 u64; +struct cvmx_pki_ltypex_map_s { +u64 reserved_3_63 :61 ; +u64 beltype :3 ; + } s; +struct cvmx_pki_ltypex_map_s cn73xx; +struct cvmx_pki_ltypex_map_s cn78xx; +struct cvmx_pki_ltypex_map_s cn78xxp1; +struct cvmx_pki_ltypex_map_s cnf75xx; +}; + +typedef union cvmx_pki_ltypex_map cvmx_pki_ltypex_map_t ; + +/** +* cvmx_pki_pbe_eco +*/ +union cvmx_pki_pbe_eco { +u64 u64; +struct cvmx_pki_pbe_eco_s { +u64 reserved_32_63 :32 ; +u64 eco_rw :32 ; + } s; +struct cvmx_pki_pbe_eco_s cn73xx; +struct cvmx_pki_pbe_eco_s cn78xx; +struct cvmx_pki_pbe_eco_s cnf75xx; +}; + +typedef union cvmx_pki_pbe_eco cvmx_pki_pbe_eco_t ; + +/** +* cvmx_pki_pcam_lookup +* +* For diagnostic use only, this register performs a PCAM lookup against the provided +* cluster and PCAM instance and loads results into PKI_PCAM_RESULT. +*/ +union cvmx_pki_pcam_lookup { +u64 u64; +struct cvmx_pki_pcam_lookup_s { +u64 reserved_54_63 :10 ; +u64 cl :2 ; +u64 reserved_49_51 :3 ; +u64 pcam :1 ; +u64 term :8 ; +u64 style :8 ; +u64 data :32 ; + } s; +struct cvmx_pki_pcam_lookup_s cn73xx; +struct cvmx_pki_pcam_lookup_s cn78xx; +struct cvmx_pki_pcam_lookup_s cn78xxp1; +struct cvmx_pki_pcam_lookup_s cnf75xx; +}; + +typedef union cvmx_pki_pcam_lookup cvmx_pki_pcam_lookup_t ; + +/** +* cvmx_pki_pcam_result +* +* For diagnostic use only, this register returns PCAM results for the most recent write to +* PKI_PCAM_LOOKUP. The read will stall until the lookup is completed. +* PKI_CL()_ECC_CTL[PCAM_EN] must be clear before accessing this register. Read stall +* is implemented by delaying the PKI_PCAM_LOOKUP write acknowledge until the PCAM is +* free and the lookup can be issued. +*/ +union cvmx_pki_pcam_result { +u64 u64; +struct cvmx_pki_pcam_result_s { +u64 reserved_41_63 :23 ; +u64 match :1 ; +u64 entry :8 ; +u64 result :32 ; + } s; +struct cvmx_pki_pcam_result_cn73xx { +u64 conflict :1 ; +u64 reserved_41_62 :22 ; +u64 match :1 ; +u64 entry :8 ; +u64 result :32 ; + } cn73xx; +struct cvmx_pki_pcam_result_cn73xx cn78xx; +struct cvmx_pki_pcam_result_cn73xx cn78xxp1; +struct cvmx_pki_pcam_result_cn73xx cnf75xx; +}; + +typedef union cvmx_pki_pcam_result cvmx_pki_pcam_result_t ; + +/** +* cvmx_pki_pfe_diag +*/ +union cvmx_pki_pfe_diag { +u64 u64; +struct cvmx_pki_pfe_diag_s { +u64 reserved_1_63 :63 ; +u64 bad_rid :1 ; + } s; +struct cvmx_pki_pfe_diag_s cn73xx; +struct cvmx_pki_pfe_diag_s cn78xx; +struct cvmx_pki_pfe_diag_s cn78xxp1; +struct cvmx_pki_pfe_diag_s cnf75xx; +}; + +typedef union cvmx_pki_pfe_diag cvmx_pki_pfe_diag_t ; + +/** +* cvmx_pki_pfe_eco +*/ +union cvmx_pki_pfe_eco { +u64 u64; +struct cvmx_pki_pfe_eco_s { +u64 reserved_32_63 :32 ; +u64 eco_rw :32 ; + } s; +struct cvmx_pki_pfe_eco_s cn73xx; +struct cvmx_pki_pfe_eco_s cn78xx; +struct cvmx_pki_pfe_eco_s cnf75xx; +}; + +typedef union cvmx_pki_pfe_eco cvmx_pki_pfe_eco_t ; + +/** +* cvmx_pki_pix_clken +*/ +union cvmx_pki_pix_clken { +u64 u64; +struct cvmx_pki_pix_clken_s { +u64 reserved_17_63 :47 ; +u64 mech :1 ; +u64 reserved_4_15 :12 ; +u64 cls :4 ; + } s; +struct cvmx_pki_pix_clken_s cn73xx; +struct cvmx_pki_pix_clken_s cn78xx; +struct cvmx_pki_pix_clken_s cn78xxp1; +struct cvmx_pki_pix_clken_s cnf75xx; +}; + +typedef union cvmx_pki_pix_clken cvmx_pki_pix_clken_t ; + +/** +* cvmx_pki_pix_diag +*/ +union cvmx_pki_pix_diag { +u64 u64; +struct cvmx_pki_pix_diag_s { +u64 reserved_4_63 :60 ; +u64 nosched :4 ; + } s; +struct cvmx_pki_pix_diag_s cn73xx; +struct cvmx_pki_pix_diag_s cn78xx; +struct cvmx_pki_pix_diag_s cn78xxp1; +struct cvmx_pki_pix_diag_s cnf75xx; +}; + +typedef union cvmx_pki_pix_diag cvmx_pki_pix_diag_t ; + +/** +* cvmx_pki_pix_eco +*/ +union cvmx_pki_pix_eco { +u64 u64; +struct cvmx_pki_pix_eco_s { +u64 reserved_32_63 :32 ; +u64 eco_rw :32 ; + } s; +struct cvmx_pki_pix_eco_s cn73xx; +struct cvmx_pki_pix_eco_s cn78xx; +struct cvmx_pki_pix_eco_s cnf75xx; +}; + +typedef union cvmx_pki_pix_eco cvmx_pki_pix_eco_t ; + +/** +* cvmx_pki_pkind#_icgsel +*/ +union cvmx_pki_pkindx_icgsel { +u64 u64; +struct cvmx_pki_pkindx_icgsel_s { +u64 reserved_2_63 :62 ; +u64 icg :2 ; + } s; +struct cvmx_pki_pkindx_icgsel_s cn73xx; +struct cvmx_pki_pkindx_icgsel_s cn78xx; +struct cvmx_pki_pkindx_icgsel_s cn78xxp1; +struct cvmx_pki_pkindx_icgsel_s cnf75xx; +}; + +typedef union cvmx_pki_pkindx_icgsel cvmx_pki_pkindx_icgsel_t ; + +/** +* cvmx_pki_pknd#_inb_stat0 +* +* This register counts inbound statistics, indexed by pkind. +* +*/ +union cvmx_pki_pkndx_inb_stat0 { +u64 u64; +struct cvmx_pki_pkndx_inb_stat0_s { +u64 reserved_48_63 :16 ; +u64 pkts :48 ; + } s; +struct cvmx_pki_pkndx_inb_stat0_s cn73xx; +struct cvmx_pki_pkndx_inb_stat0_s cn78xx; +struct cvmx_pki_pkndx_inb_stat0_s cn78xxp1; +struct cvmx_pki_pkndx_inb_stat0_s cnf75xx; +}; + +typedef union cvmx_pki_pkndx_inb_stat0 cvmx_pki_pkndx_inb_stat0_t ; + +/** +* cvmx_pki_pknd#_inb_stat1 +* +* This register counts inbound statistics, indexed by pkind. +* +*/ +union cvmx_pki_pkndx_inb_stat1 { +u64 u64; +struct cvmx_pki_pkndx_inb_stat1_s { +u64 reserved_48_63 :16 ; +u64 octs :48 ; + } s; +struct cvmx_pki_pkndx_inb_stat1_s cn73xx; +struct cvmx_pki_pkndx_inb_stat1_s cn78xx; +struct cvmx_pki_pkndx_inb_stat1_s cn78xxp1; +struct cvmx_pki_pkndx_inb_stat1_s cnf75xx; +}; + +typedef union cvmx_pki_pkndx_inb_stat1 cvmx_pki_pkndx_inb_stat1_t ; + +/** +* cvmx_pki_pknd#_inb_stat2 +* +* This register counts inbound statistics, indexed by pkind. +* +*/ +union cvmx_pki_pkndx_inb_stat2 { +u64 u64; +struct cvmx_pki_pkndx_inb_stat2_s { +u64 reserved_48_63 :16 ; +u64 errs :48 ; + } s; +struct cvmx_pki_pkndx_inb_stat2_s cn73xx; +struct cvmx_pki_pkndx_inb_stat2_s cn78xx; +struct cvmx_pki_pkndx_inb_stat2_s cn78xxp1; +struct cvmx_pki_pkndx_inb_stat2_s cnf75xx; +}; + +typedef union cvmx_pki_pkndx_inb_stat2 cvmx_pki_pkndx_inb_stat2_t ; + +/** +* cvmx_pki_pkt_err +*/ +union cvmx_pki_pkt_err { +u64 u64; +struct cvmx_pki_pkt_err_s { +u64 reserved_7_63 :57 ; +u64 reasm :7 ; + } s; +struct cvmx_pki_pkt_err_s cn73xx; +struct cvmx_pki_pkt_err_s cn78xx; +struct cvmx_pki_pkt_err_s cn78xxp1; +struct cvmx_pki_pkt_err_s cnf75xx; +}; + +typedef union cvmx_pki_pkt_err cvmx_pki_pkt_err_t ; + +/** +* cvmx_pki_ptag_avail +* +* For diagnostic use only. +* +*/ +union cvmx_pki_ptag_avail { +u64 u64; +struct cvmx_pki_ptag_avail_s { +u64 reserved_8_63 :56 ; +u64 avail :8 ; + } s; +struct cvmx_pki_ptag_avail_s cn73xx; +struct cvmx_pki_ptag_avail_s cn78xx; +struct cvmx_pki_ptag_avail_s cnf75xx; +}; + +typedef union cvmx_pki_ptag_avail cvmx_pki_ptag_avail_t ; + +/** +* cvmx_pki_qpg_tbl# +* +* These registers are used by PKI BE to indirectly calculate the Portadd/Aura/Group +* from the Diffsrv, HiGig or VLAN information as described in QPG. See also +* PKI_QPG_TBLB(). +*/ +union cvmx_pki_qpg_tblx { +u64 u64; +struct cvmx_pki_qpg_tblx_s { +u64 reserved_60_63 :4 ; +u64 padd :12 ; +u64 grptag_ok :3 ; +u64 reserved_42_44 :3 ; +u64 grp_ok :10 ; +u64 grptag_bad :3 ; +u64 reserved_26_28 :3 ; +u64 grp_bad :10 ; +u64 reserved_12_15 :4 ; +u64 aura_node :2 ; +u64 laura :10 ; + } s; +struct cvmx_pki_qpg_tblx_s cn73xx; +struct cvmx_pki_qpg_tblx_s cn78xx; +struct cvmx_pki_qpg_tblx_s cn78xxp1; +struct cvmx_pki_qpg_tblx_s cnf75xx; +}; + +typedef union cvmx_pki_qpg_tblx cvmx_pki_qpg_tblx_t ; + +/** +* cvmx_pki_qpg_tblb# +* +* This register configures the QPG table. See also PKI_QPG_TBL(). +* +*/ +union cvmx_pki_qpg_tblbx { +u64 u64; +struct cvmx_pki_qpg_tblbx_s { +u64 reserved_10_63 :54 ; +u64 dstat_id :10 ; + } s; +struct cvmx_pki_qpg_tblbx_s cn73xx; +struct cvmx_pki_qpg_tblbx_s cn78xx; +struct cvmx_pki_qpg_tblbx_s cnf75xx; +}; + +typedef union cvmx_pki_qpg_tblbx cvmx_pki_qpg_tblbx_t ; + +/** +* cvmx_pki_reasm_sop# +*/ +union cvmx_pki_reasm_sopx { +u64 u64; +struct cvmx_pki_reasm_sopx_s { +u64 sop :64 ; + } s; +struct cvmx_pki_reasm_sopx_s cn73xx; +struct cvmx_pki_reasm_sopx_s cn78xx; +struct cvmx_pki_reasm_sopx_s cn78xxp1; +struct cvmx_pki_reasm_sopx_s cnf75xx; +}; + +typedef union cvmx_pki_reasm_sopx cvmx_pki_reasm_sopx_t ; + +/** +* cvmx_pki_req_wgt +* +* This register controls the round-robin weights between each PKI requestor. For diagnostic +* tuning only. +*/ +union cvmx_pki_req_wgt { +u64 u64; +struct cvmx_pki_req_wgt_s { +u64 reserved_36_63 :28 ; +u64 wgt8 :4 ; +u64 wgt7 :4 ; +u64 wgt6 :4 ; +u64 wgt5 :4 ; +u64 wgt4 :4 ; +u64 wgt3 :4 ; +u64 wgt2 :4 ; +u64 wgt1 :4 ; +u64 wgt0 :4 ; + } s; +struct cvmx_pki_req_wgt_s cn73xx; +struct cvmx_pki_req_wgt_s cn78xx; +struct cvmx_pki_req_wgt_s cn78xxp1; +struct cvmx_pki_req_wgt_s cnf75xx; +}; + +typedef union cvmx_pki_req_wgt cvmx_pki_req_wgt_t ; + +/** +* cvmx_pki_sft_rst +*/ +union cvmx_pki_sft_rst { +u64 u64; +struct cvmx_pki_sft_rst_s { +u64 busy :1 ; +u64 reserved_33_62 :30 ; +u64 active :1 ; +u64 reserved_1_31 :31 ; +u64 rst :1 ; + } s; +struct cvmx_pki_sft_rst_s cn73xx; +struct cvmx_pki_sft_rst_s cn78xx; +struct cvmx_pki_sft_rst_s cn78xxp1; +struct cvmx_pki_sft_rst_s cnf75xx; +}; + +typedef union cvmx_pki_sft_rst cvmx_pki_sft_rst_t ; + +/** +* cvmx_pki_stat#_hist0 +*/ +union cvmx_pki_statx_hist0 { +u64 u64; +struct cvmx_pki_statx_hist0_s { +u64 reserved_48_63 :16 ; +u64 h1to63 :48 ; + } s; +struct cvmx_pki_statx_hist0_s cn73xx; +struct cvmx_pki_statx_hist0_s cn78xx; +struct cvmx_pki_statx_hist0_s cn78xxp1; +struct cvmx_pki_statx_hist0_s cnf75xx; +}; + +typedef union cvmx_pki_statx_hist0 cvmx_pki_statx_hist0_t ; + +/** +* cvmx_pki_stat#_hist1 +*/ +union cvmx_pki_statx_hist1 { +u64 u64; +struct cvmx_pki_statx_hist1_s { +u64 reserved_48_63 :16 ; +u64 h64to127 :48 ; + } s; +struct cvmx_pki_statx_hist1_s cn73xx; +struct cvmx_pki_statx_hist1_s cn78xx; +struct cvmx_pki_statx_hist1_s cn78xxp1; +struct cvmx_pki_statx_hist1_s cnf75xx; +}; + +typedef union cvmx_pki_statx_hist1 cvmx_pki_statx_hist1_t ; + +/** +* cvmx_pki_stat#_hist2 +*/ +union cvmx_pki_statx_hist2 { +u64 u64; +struct cvmx_pki_statx_hist2_s { +u64 reserved_48_63 :16 ; +u64 h128to255 :48 ; + } s; +struct cvmx_pki_statx_hist2_s cn73xx; +struct cvmx_pki_statx_hist2_s cn78xx; +struct cvmx_pki_statx_hist2_s cn78xxp1; +struct cvmx_pki_statx_hist2_s cnf75xx; +}; + +typedef union cvmx_pki_statx_hist2 cvmx_pki_statx_hist2_t ; + +/** +* cvmx_pki_stat#_hist3 +*/ +union cvmx_pki_statx_hist3 { +u64 u64; +struct cvmx_pki_statx_hist3_s { +u64 reserved_48_63 :16 ; +u64 h256to511 :48 ; + } s; +struct cvmx_pki_statx_hist3_s cn73xx; +struct cvmx_pki_statx_hist3_s cn78xx; +struct cvmx_pki_statx_hist3_s cn78xxp1; +struct cvmx_pki_statx_hist3_s cnf75xx; +}; + +typedef union cvmx_pki_statx_hist3 cvmx_pki_statx_hist3_t ; + +/** +* cvmx_pki_stat#_hist4 +*/ +union cvmx_pki_statx_hist4 { +u64 u64; +struct cvmx_pki_statx_hist4_s { +u64 reserved_48_63 :16 ; +u64 h512to1023 :48 ; + } s; +struct cvmx_pki_statx_hist4_s cn73xx; +struct cvmx_pki_statx_hist4_s cn78xx; +struct cvmx_pki_statx_hist4_s cn78xxp1; +struct cvmx_pki_statx_hist4_s cnf75xx; +}; + +typedef union cvmx_pki_statx_hist4 cvmx_pki_statx_hist4_t ; + +/** +* cvmx_pki_stat#_hist5 +*/ +union cvmx_pki_statx_hist5 { +u64 u64; +struct cvmx_pki_statx_hist5_s { +u64 reserved_48_63 :16 ; +u64 h1024to1518 :48 ; + } s; +struct cvmx_pki_statx_hist5_s cn73xx; +struct cvmx_pki_statx_hist5_s cn78xx; +struct cvmx_pki_statx_hist5_s cn78xxp1; +struct cvmx_pki_statx_hist5_s cnf75xx; +}; + +typedef union cvmx_pki_statx_hist5 cvmx_pki_statx_hist5_t ; + +/** +* cvmx_pki_stat#_hist6 +*/ +union cvmx_pki_statx_hist6 { +u64 u64; +struct cvmx_pki_statx_hist6_s { +u64 reserved_48_63 :16 ; +u64 h1519 :48 ; + } s; +struct cvmx_pki_statx_hist6_s cn73xx; +struct cvmx_pki_statx_hist6_s cn78xx; +struct cvmx_pki_statx_hist6_s cn78xxp1; +struct cvmx_pki_statx_hist6_s cnf75xx; +}; + +typedef union cvmx_pki_statx_hist6 cvmx_pki_statx_hist6_t ; + +/** +* cvmx_pki_stat#_stat0 +*/ +union cvmx_pki_statx_stat0 { +u64 u64; +struct cvmx_pki_statx_stat0_s { +u64 reserved_48_63 :16 ; +u64 pkts :48 ; + } s; +struct cvmx_pki_statx_stat0_s cn73xx; +struct cvmx_pki_statx_stat0_s cn78xx; +struct cvmx_pki_statx_stat0_s cn78xxp1; +struct cvmx_pki_statx_stat0_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat0 cvmx_pki_statx_stat0_t ; + +/** +* cvmx_pki_stat#_stat1 +*/ +union cvmx_pki_statx_stat1 { +u64 u64; +struct cvmx_pki_statx_stat1_s { +u64 reserved_48_63 :16 ; +u64 octs :48 ; + } s; +struct cvmx_pki_statx_stat1_s cn73xx; +struct cvmx_pki_statx_stat1_s cn78xx; +struct cvmx_pki_statx_stat1_s cn78xxp1; +struct cvmx_pki_statx_stat1_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat1 cvmx_pki_statx_stat1_t ; + +/** +* cvmx_pki_stat#_stat10 +*/ +union cvmx_pki_statx_stat10 { +u64 u64; +struct cvmx_pki_statx_stat10_s { +u64 reserved_48_63 :16 ; +u64 jabber :48 ; + } s; +struct cvmx_pki_statx_stat10_s cn73xx; +struct cvmx_pki_statx_stat10_s cn78xx; +struct cvmx_pki_statx_stat10_s cn78xxp1; +struct cvmx_pki_statx_stat10_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat10 cvmx_pki_statx_stat10_t ; + +/** +* cvmx_pki_stat#_stat11 +*/ +union cvmx_pki_statx_stat11 { +u64 u64; +struct cvmx_pki_statx_stat11_s { +u64 reserved_48_63 :16 ; +u64 oversz :48 ; + } s; +struct cvmx_pki_statx_stat11_s cn73xx; +struct cvmx_pki_statx_stat11_s cn78xx; +struct cvmx_pki_statx_stat11_s cn78xxp1; +struct cvmx_pki_statx_stat11_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat11 cvmx_pki_statx_stat11_t ; + +/** +* cvmx_pki_stat#_stat12 +*/ +union cvmx_pki_statx_stat12 { +u64 u64; +struct cvmx_pki_statx_stat12_s { +u64 reserved_48_63 :16 ; +u64 l2err :48 ; + } s; +struct cvmx_pki_statx_stat12_s cn73xx; +struct cvmx_pki_statx_stat12_s cn78xx; +struct cvmx_pki_statx_stat12_s cn78xxp1; +struct cvmx_pki_statx_stat12_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat12 cvmx_pki_statx_stat12_t ; + +/** +* cvmx_pki_stat#_stat13 +*/ +union cvmx_pki_statx_stat13 { +u64 u64; +struct cvmx_pki_statx_stat13_s { +u64 reserved_48_63 :16 ; +u64 spec :48 ; + } s; +struct cvmx_pki_statx_stat13_s cn73xx; +struct cvmx_pki_statx_stat13_s cn78xx; +struct cvmx_pki_statx_stat13_s cn78xxp1; +struct cvmx_pki_statx_stat13_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat13 cvmx_pki_statx_stat13_t ; + +/** +* cvmx_pki_stat#_stat14 +*/ +union cvmx_pki_statx_stat14 { +u64 u64; +struct cvmx_pki_statx_stat14_s { +u64 reserved_48_63 :16 ; +u64 drp_bcast :48 ; + } s; +struct cvmx_pki_statx_stat14_s cn73xx; +struct cvmx_pki_statx_stat14_s cn78xx; +struct cvmx_pki_statx_stat14_s cn78xxp1; +struct cvmx_pki_statx_stat14_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat14 cvmx_pki_statx_stat14_t ; + +/** +* cvmx_pki_stat#_stat15 +*/ +union cvmx_pki_statx_stat15 { +u64 u64; +struct cvmx_pki_statx_stat15_s { +u64 reserved_48_63 :16 ; +u64 drp_mcast :48 ; + } s; +struct cvmx_pki_statx_stat15_s cn73xx; +struct cvmx_pki_statx_stat15_s cn78xx; +struct cvmx_pki_statx_stat15_s cn78xxp1; +struct cvmx_pki_statx_stat15_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat15 cvmx_pki_statx_stat15_t ; + +/** +* cvmx_pki_stat#_stat16 +*/ +union cvmx_pki_statx_stat16 { +u64 u64; +struct cvmx_pki_statx_stat16_s { +u64 reserved_48_63 :16 ; +u64 drp_bcast :48 ; + } s; +struct cvmx_pki_statx_stat16_s cn73xx; +struct cvmx_pki_statx_stat16_s cn78xx; +struct cvmx_pki_statx_stat16_s cn78xxp1; +struct cvmx_pki_statx_stat16_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat16 cvmx_pki_statx_stat16_t ; + +/** +* cvmx_pki_stat#_stat17 +*/ +union cvmx_pki_statx_stat17 { +u64 u64; +struct cvmx_pki_statx_stat17_s { +u64 reserved_48_63 :16 ; +u64 drp_mcast :48 ; + } s; +struct cvmx_pki_statx_stat17_s cn73xx; +struct cvmx_pki_statx_stat17_s cn78xx; +struct cvmx_pki_statx_stat17_s cn78xxp1; +struct cvmx_pki_statx_stat17_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat17 cvmx_pki_statx_stat17_t ; + +/** +* cvmx_pki_stat#_stat18 +*/ +union cvmx_pki_statx_stat18 { +u64 u64; +struct cvmx_pki_statx_stat18_s { +u64 reserved_48_63 :16 ; +u64 drp_spec :48 ; + } s; +struct cvmx_pki_statx_stat18_s cn73xx; +struct cvmx_pki_statx_stat18_s cn78xx; +struct cvmx_pki_statx_stat18_s cn78xxp1; +struct cvmx_pki_statx_stat18_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat18 cvmx_pki_statx_stat18_t ; + +/** +* cvmx_pki_stat#_stat2 +*/ +union cvmx_pki_statx_stat2 { +u64 u64; +struct cvmx_pki_statx_stat2_s { +u64 reserved_48_63 :16 ; +u64 raw :48 ; + } s; +struct cvmx_pki_statx_stat2_s cn73xx; +struct cvmx_pki_statx_stat2_s cn78xx; +struct cvmx_pki_statx_stat2_s cn78xxp1; +struct cvmx_pki_statx_stat2_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat2 cvmx_pki_statx_stat2_t ; + +/** +* cvmx_pki_stat#_stat3 +*/ +union cvmx_pki_statx_stat3 { +u64 u64; +struct cvmx_pki_statx_stat3_s { +u64 reserved_48_63 :16 ; +u64 drp_pkts :48 ; + } s; +struct cvmx_pki_statx_stat3_s cn73xx; +struct cvmx_pki_statx_stat3_s cn78xx; +struct cvmx_pki_statx_stat3_s cn78xxp1; +struct cvmx_pki_statx_stat3_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat3 cvmx_pki_statx_stat3_t ; + +/** +* cvmx_pki_stat#_stat4 +*/ +union cvmx_pki_statx_stat4 { +u64 u64; +struct cvmx_pki_statx_stat4_s { +u64 reserved_48_63 :16 ; +u64 drp_octs :48 ; + } s; +struct cvmx_pki_statx_stat4_s cn73xx; +struct cvmx_pki_statx_stat4_s cn78xx; +struct cvmx_pki_statx_stat4_s cn78xxp1; +struct cvmx_pki_statx_stat4_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat4 cvmx_pki_statx_stat4_t ; + +/** +* cvmx_pki_stat#_stat5 +*/ +union cvmx_pki_statx_stat5 { +u64 u64; +struct cvmx_pki_statx_stat5_s { +u64 reserved_48_63 :16 ; +u64 bcast :48 ; + } s; +struct cvmx_pki_statx_stat5_s cn73xx; +struct cvmx_pki_statx_stat5_s cn78xx; +struct cvmx_pki_statx_stat5_s cn78xxp1; +struct cvmx_pki_statx_stat5_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat5 cvmx_pki_statx_stat5_t ; + +/** +* cvmx_pki_stat#_stat6 +*/ +union cvmx_pki_statx_stat6 { +u64 u64; +struct cvmx_pki_statx_stat6_s { +u64 reserved_48_63 :16 ; +u64 mcast :48 ; + } s; +struct cvmx_pki_statx_stat6_s cn73xx; +struct cvmx_pki_statx_stat6_s cn78xx; +struct cvmx_pki_statx_stat6_s cn78xxp1; +struct cvmx_pki_statx_stat6_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat6 cvmx_pki_statx_stat6_t ; + +/** +* cvmx_pki_stat#_stat7 +*/ +union cvmx_pki_statx_stat7 { +u64 u64; +struct cvmx_pki_statx_stat7_s { +u64 reserved_48_63 :16 ; +u64 fcs :48 ; + } s; +struct cvmx_pki_statx_stat7_s cn73xx; +struct cvmx_pki_statx_stat7_s cn78xx; +struct cvmx_pki_statx_stat7_s cn78xxp1; +struct cvmx_pki_statx_stat7_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat7 cvmx_pki_statx_stat7_t ; + +/** +* cvmx_pki_stat#_stat8 +*/ +union cvmx_pki_statx_stat8 { +u64 u64; +struct cvmx_pki_statx_stat8_s { +u64 reserved_48_63 :16 ; +u64 frag :48 ; + } s; +struct cvmx_pki_statx_stat8_s cn73xx; +struct cvmx_pki_statx_stat8_s cn78xx; +struct cvmx_pki_statx_stat8_s cn78xxp1; +struct cvmx_pki_statx_stat8_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat8 cvmx_pki_statx_stat8_t ; + +/** +* cvmx_pki_stat#_stat9 +*/ +union cvmx_pki_statx_stat9 { +u64 u64; +struct cvmx_pki_statx_stat9_s { +u64 reserved_48_63 :16 ; +u64 undersz :48 ; + } s; +struct cvmx_pki_statx_stat9_s cn73xx; +struct cvmx_pki_statx_stat9_s cn78xx; +struct cvmx_pki_statx_stat9_s cn78xxp1; +struct cvmx_pki_statx_stat9_s cnf75xx; +}; + +typedef union cvmx_pki_statx_stat9 cvmx_pki_statx_stat9_t ; + +/** +* cvmx_pki_stat_ctl +* +* This register controls how the PKI statistics counters are handled. +* +*/ +union cvmx_pki_stat_ctl { +u64 u64; +struct cvmx_pki_stat_ctl_s { +u64 reserved_2_63 :62 ; +u64 mode :2 ; + } s; +struct cvmx_pki_stat_ctl_s cn73xx; +struct cvmx_pki_stat_ctl_s cn78xx; +struct cvmx_pki_stat_ctl_s cn78xxp1; +struct cvmx_pki_stat_ctl_s cnf75xx; +}; + +typedef union cvmx_pki_stat_ctl cvmx_pki_stat_ctl_t ; + +/** +* cvmx_pki_style#_buf +* +* This register configures the PKI BE skip amounts and other information. +* It is indexed by final style, PKI_WQE_S[STYLE]<5:0>. +*/ +union cvmx_pki_stylex_buf { +u64 u64; +struct cvmx_pki_stylex_buf_s { +u64 reserved_33_63 :31 ; +u64 pkt_lend :1 ; +u64 wqe_hsz :2 ; +u64 wqe_skip :2 ; +u64 first_skip :6 ; +u64 later_skip :6 ; +u64 opc_mode :2 ; +u64 dis_wq_dat :1 ; +u64 mb_size :13 ; + } s; +struct cvmx_pki_stylex_buf_s cn73xx; +struct cvmx_pki_stylex_buf_s cn78xx; +struct cvmx_pki_stylex_buf_s cn78xxp1; +struct cvmx_pki_stylex_buf_s cnf75xx; +}; + +typedef union cvmx_pki_stylex_buf cvmx_pki_stylex_buf_t ; + +/** +* cvmx_pki_style#_tag_mask +* +* This register configures the PKI BE tag algorithm. +* It is indexed by final style, PKI_WQE_S[STYLE]<5:0>. +*/ +union cvmx_pki_stylex_tag_mask { +u64 u64; +struct cvmx_pki_stylex_tag_mask_s { +u64 reserved_16_63 :48 ; +u64 mask :16 ; + } s; +struct cvmx_pki_stylex_tag_mask_s cn73xx; +struct cvmx_pki_stylex_tag_mask_s cn78xx; +struct cvmx_pki_stylex_tag_mask_s cn78xxp1; +struct cvmx_pki_stylex_tag_mask_s cnf75xx; +}; + +typedef union cvmx_pki_stylex_tag_mask cvmx_pki_stylex_tag_mask_t ; + +/** +* cvmx_pki_style#_tag_sel +* +* This register configures the PKI BE tag algorithm. +* It is indexed by final style, PKI_WQE_S[STYLE]<5:0>. +*/ +union cvmx_pki_stylex_tag_sel { +u64 u64; +struct cvmx_pki_stylex_tag_sel_s { +u64 reserved_27_63 :37 ; +u64 tag_idx3 :3 ; +u64 reserved_19_23 :5 ; +u64 tag_idx2 :3 ; +u64 reserved_11_15 :5 ; +u64 tag_idx1 :3 ; +u64 reserved_3_7 :5 ; +u64 tag_idx0 :3 ; + } s; +struct cvmx_pki_stylex_tag_sel_s cn73xx; +struct cvmx_pki_stylex_tag_sel_s cn78xx; +struct cvmx_pki_stylex_tag_sel_s cn78xxp1; +struct cvmx_pki_stylex_tag_sel_s cnf75xx; +}; + +typedef union cvmx_pki_stylex_tag_sel cvmx_pki_stylex_tag_sel_t ; + +/** +* cvmx_pki_style#_wq2 +* +* This register configures the PKI BE WQE generation. +* It is indexed by final style, PKI_WQE_S[STYLE]<5:0>. +*/ +union cvmx_pki_stylex_wq2 { +u64 u64; +struct cvmx_pki_stylex_wq2_s { +u64 data :64 ; + } s; +struct cvmx_pki_stylex_wq2_s cn73xx; +struct cvmx_pki_stylex_wq2_s cn78xx; +struct cvmx_pki_stylex_wq2_s cn78xxp1; +struct cvmx_pki_stylex_wq2_s cnf75xx; +}; + +typedef union cvmx_pki_stylex_wq2 cvmx_pki_stylex_wq2_t ; + +/** +* cvmx_pki_style#_wq4 +* +* This register configures the PKI BE WQE generation. +* It is indexed by final style, PKI_WQE_S[STYLE]<5:0>. +*/ +union cvmx_pki_stylex_wq4 { +u64 u64; +struct cvmx_pki_stylex_wq4_s { +u64 data :64 ; + } s; +struct cvmx_pki_stylex_wq4_s cn73xx; +struct cvmx_pki_stylex_wq4_s cn78xx; +struct cvmx_pki_stylex_wq4_s cn78xxp1; +struct cvmx_pki_stylex_wq4_s cnf75xx; +}; + +typedef union cvmx_pki_stylex_wq4 cvmx_pki_stylex_wq4_t ; + +/** +* cvmx_pki_tag_inc#_ctl +*/ +union cvmx_pki_tag_incx_ctl { +u64 u64; +struct cvmx_pki_tag_incx_ctl_s { +u64 reserved_12_63 :52 ; +u64 ptr_sel :4 ; +u64 offset :8 ; + } s; +struct cvmx_pki_tag_incx_ctl_s cn73xx; +struct cvmx_pki_tag_incx_ctl_s cn78xx; +struct cvmx_pki_tag_incx_ctl_s cn78xxp1; +struct cvmx_pki_tag_incx_ctl_s cnf75xx; +}; + +typedef union cvmx_pki_tag_incx_ctl cvmx_pki_tag_incx_ctl_t ; + +/** +* cvmx_pki_tag_inc#_mask +*/ +union cvmx_pki_tag_incx_mask { +u64 u64; +struct cvmx_pki_tag_incx_mask_s { +u64 en :64 ; + } s; +struct cvmx_pki_tag_incx_mask_s cn73xx; +struct cvmx_pki_tag_incx_mask_s cn78xx; +struct cvmx_pki_tag_incx_mask_s cn78xxp1; +struct cvmx_pki_tag_incx_mask_s cnf75xx; +}; + +typedef union cvmx_pki_tag_incx_mask cvmx_pki_tag_incx_mask_t ; + +/** +* cvmx_pki_tag_secret +* +* The source and destination initial values (IVs) in tag generation provide a mechanism for +* seeding with a random initialization value to reduce cache collision attacks. +*/ +union cvmx_pki_tag_secret { +u64 u64; +struct cvmx_pki_tag_secret_s { +u64 dst6 :16 ; +u64 src6 :16 ; +u64 dst :16 ; +u64 src :16 ; + } s; +struct cvmx_pki_tag_secret_s cn73xx; +struct cvmx_pki_tag_secret_s cn78xx; +struct cvmx_pki_tag_secret_s cn78xxp1; +struct cvmx_pki_tag_secret_s cnf75xx; +}; + +typedef union cvmx_pki_tag_secret cvmx_pki_tag_secret_t ; + +/** +* cvmx_pki_x2p_req_ofl +*/ +union cvmx_pki_x2p_req_ofl { +u64 u64; +struct cvmx_pki_x2p_req_ofl_s { +u64 reserved_4_63 :60 ; +u64 x2p_did :4 ; + } s; +struct cvmx_pki_x2p_req_ofl_s cn73xx; +struct cvmx_pki_x2p_req_ofl_s cn78xx; +struct cvmx_pki_x2p_req_ofl_s cn78xxp1; +struct cvmx_pki_x2p_req_ofl_s cnf75xx; +}; + +typedef union cvmx_pki_x2p_req_ofl cvmx_pki_x2p_req_ofl_t ; + +#endif
Signature · 1 line
2.29.2
PATCH 24/50 mips: octeon: Add cvmx-pko-defs.h header file
In reply to Stefan RoeseFrom: Aaron Williams <[email protected]>
Import cvmx-pko-defs.h header file from 2013 U-Boot. It will be used by the later added drivers to support PCIe and networking on the MIPS Octeon II / III platforms.
---
.../mach-octeon/include/mach/cvmx-pko-defs.h | 9388 +++++++++++++++++ 1 file changed, 9388 insertions(+) create mode 100644 arch/mips/mach-octeon/include/mach/cvmx-pko-defs.h
arch/mips/mach-octeon/include/mach/cvmx-pko-defs.h new file +9388 -0
@@ -0,0 +1,9388 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (C) 2020 Marvell International Ltd. +* +* Configuration and status register (CSR) type definitions for +* Octeon pko. +*/ + +#ifndef __CVMX_PKO_DEFS_H__ +#define __CVMX_PKO_DEFS_H__ + +#define CVMX_PKO_CHANNEL_LEVEL (0x00015400000800F0ull) +#define CVMX_PKO_DPFI_ENA (0x0001540000C00018ull) +#define CVMX_PKO_DPFI_FLUSH (0x0001540000C00008ull) +#define CVMX_PKO_DPFI_FPA_AURA (0x0001540000C00010ull) +#define CVMX_PKO_DPFI_STATUS (0x0001540000C00000ull) +#define CVMX_PKO_DQX_BYTES(offset) (0x00015400000000D8ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_CIR(offset) (0x0001540000280018ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_DROPPED_BYTES(offset) (0x00015400000000C8ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_DROPPED_PACKETS(offset) (0x00015400000000C0ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_FIFO(offset) (0x0001540000300078ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_PACKETS(offset) (0x00015400000000D0ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_PICK(offset) (0x0001540000300070ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_PIR(offset) (0x0001540000280020ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_POINTERS(offset) (0x0001540000280078ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_SCHEDULE(offset) (0x0001540000280008ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_SCHED_STATE(offset) (0x0001540000280028ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_SHAPE(offset) (0x0001540000280010ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_SHAPE_STATE(offset) (0x0001540000280030ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_SW_XOFF(offset) (0x00015400002800E0ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_TOPOLOGY(offset) (0x0001540000300000ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_WM_BUF_CNT(offset) (0x00015400008000E8ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_WM_BUF_CTL(offset) (0x00015400008000F0ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_WM_BUF_CTL_W1C(offset) (0x00015400008000F8ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_WM_CNT(offset) (0x0001540000000050ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_WM_CTL(offset) (0x0001540000000040ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQX_WM_CTL_W1C(offset) (0x0001540000000048ull + ((offset) & 1023) * 512) +#define CVMX_PKO_DQ_CSR_BUS_DEBUG (0x00015400003001F8ull) +#define CVMX_PKO_DQ_DEBUG (0x0001540000300128ull) +#define CVMX_PKO_DRAIN_IRQ (0x0001540000000140ull) +#define CVMX_PKO_ENABLE (0x0001540000D00008ull) +#define CVMX_PKO_FORMATX_CTL(offset) (0x0001540000900800ull + ((offset) & 127) * 8) +#define CVMX_PKO_L1_SQA_DEBUG (0x0001540000080128ull) +#define CVMX_PKO_L1_SQB_DEBUG (0x0001540000080130ull) +#define CVMX_PKO_L1_SQX_CIR(offset) (0x0001540000000018ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_DROPPED_BYTES(offset) (0x0001540000000088ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_DROPPED_PACKETS(offset) (0x0001540000000080ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_GREEN(offset) (0x0001540000080058ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_GREEN_BYTES(offset) (0x00015400000000B8ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_GREEN_PACKETS(offset) (0x00015400000000B0ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_LINK(offset) (0x0001540000000038ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_PICK(offset) (0x0001540000080070ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_RED(offset) (0x0001540000080068ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_RED_BYTES(offset) (0x0001540000000098ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_RED_PACKETS(offset) (0x0001540000000090ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_SCHEDULE(offset) (0x0001540000000008ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_SHAPE(offset) (0x0001540000000010ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_SHAPE_STATE(offset) (0x0001540000000030ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_SW_XOFF(offset) (0x00015400000000E0ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_TOPOLOGY(offset) (0x0001540000080000ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_YELLOW(offset) (0x0001540000080060ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_YELLOW_BYTES(offset) (0x00015400000000A8ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQX_YELLOW_PACKETS(offset) (0x00015400000000A0ull + ((offset) & 31) * 512) +#define CVMX_PKO_L1_SQ_CSR_BUS_DEBUG (0x00015400000801F8ull) +#define CVMX_PKO_L2_SQA_DEBUG (0x0001540000100128ull) +#define CVMX_PKO_L2_SQB_DEBUG (0x0001540000100130ull) +#define CVMX_PKO_L2_SQX_CIR(offset) (0x0001540000080018ull + ((offset) & 511) * 512) +#define CVMX_PKO_L2_SQX_GREEN(offset) (0x0001540000100058ull + ((offset) & 511) * 512) +#define CVMX_PKO_L2_SQX_PICK(offset) (0x0001540000100070ull + ((offset) & 511) * 512) +#define CVMX_PKO_L2_SQX_PIR(offset) (0x0001540000080020ull + ((offset) & 511) * 512) +#define CVMX_PKO_L2_SQX_POINTERS(offset) (0x0001540000080078ull + ((offset) & 511) * 512) +#define CVMX_PKO_L2_SQX_RED(offset) (0x0001540000100068ull + ((offset) & 511) * 512) +#define CVMX_PKO_L2_SQX_SCHEDULE(offset) (0x0001540000080008ull + ((offset) & 511) * 512) +#define CVMX_PKO_L2_SQX_SCHED_STATE(offset) (0x0001540000080028ull + ((offset) & 511) * 512) +#define CVMX_PKO_L2_SQX_SHAPE(offset) (0x0001540000080010ull + ((offset) & 511) * 512) +#define CVMX_PKO_L2_SQX_SHAPE_STATE(offset) (0x0001540000080030ull + ((offset) & 511) * 512) +#define CVMX_PKO_L2_SQX_SW_XOFF(offset) (0x00015400000800E0ull + ((offset) & 511) * 512) +#define CVMX_PKO_L2_SQX_TOPOLOGY(offset) (0x0001540000100000ull + ((offset) & 511) * 512) +#define CVMX_PKO_L2_SQX_YELLOW(offset) (0x0001540000100060ull + ((offset) & 511) * 512) +#define CVMX_PKO_L2_SQ_CSR_BUS_DEBUG (0x00015400001001F8ull) +#define CVMX_PKO_L3_L2_SQX_CHANNEL(offset) (0x0001540000080038ull + ((offset) & 511) * 512) +#define CVMX_PKO_L3_SQA_DEBUG (0x0001540000180128ull) +#define CVMX_PKO_L3_SQB_DEBUG (0x0001540000180130ull) +#define CVMX_PKO_L3_SQX_CIR(offset) (0x0001540000100018ull + ((offset) & 511) * 512) +#define CVMX_PKO_L3_SQX_GREEN(offset) (0x0001540000180058ull + ((offset) & 511) * 512) +#define CVMX_PKO_L3_SQX_PICK(offset) (0x0001540000180070ull + ((offset) & 511) * 512) +#define CVMX_PKO_L3_SQX_PIR(offset) (0x0001540000100020ull + ((offset) & 511) * 512) +#define CVMX_PKO_L3_SQX_POINTERS(offset) (0x0001540000100078ull + ((offset) & 511) * 512) +#define CVMX_PKO_L3_SQX_RED(offset) (0x0001540000180068ull + ((offset) & 511) * 512) +#define CVMX_PKO_L3_SQX_SCHEDULE(offset) (0x0001540000100008ull + ((offset) & 511) * 512) +#define CVMX_PKO_L3_SQX_SCHED_STATE(offset) (0x0001540000100028ull + ((offset) & 511) * 512) +#define CVMX_PKO_L3_SQX_SHAPE(offset) (0x0001540000100010ull + ((offset) & 511) * 512) +#define CVMX_PKO_L3_SQX_SHAPE_STATE(offset) (0x0001540000100030ull + ((offset) & 511) * 512) +#define CVMX_PKO_L3_SQX_SW_XOFF(offset) (0x00015400001000E0ull + ((offset) & 511) * 512) +#define CVMX_PKO_L3_SQX_TOPOLOGY(offset) (0x0001540000180000ull + ((offset) & 511) * 512) +#define CVMX_PKO_L3_SQX_YELLOW(offset) (0x0001540000180060ull + ((offset) & 511) * 512) +#define CVMX_PKO_L3_SQ_CSR_BUS_DEBUG (0x00015400001801F8ull) +#define CVMX_PKO_L4_SQA_DEBUG (0x0001540000200128ull) +#define CVMX_PKO_L4_SQB_DEBUG (0x0001540000200130ull) +#define CVMX_PKO_L4_SQX_CIR(offset) (0x0001540000180018ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L4_SQX_GREEN(offset) (0x0001540000200058ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L4_SQX_PICK(offset) (0x0001540000200070ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L4_SQX_PIR(offset) (0x0001540000180020ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L4_SQX_POINTERS(offset) (0x0001540000180078ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L4_SQX_RED(offset) (0x0001540000200068ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L4_SQX_SCHEDULE(offset) (0x0001540000180008ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L4_SQX_SCHED_STATE(offset) (0x0001540000180028ull + ((offset) & 511) * 512) +#define CVMX_PKO_L4_SQX_SHAPE(offset) (0x0001540000180010ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L4_SQX_SHAPE_STATE(offset) (0x0001540000180030ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L4_SQX_SW_XOFF(offset) (0x00015400001800E0ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L4_SQX_TOPOLOGY(offset) (0x0001540000200000ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L4_SQX_YELLOW(offset) (0x0001540000200060ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L4_SQ_CSR_BUS_DEBUG (0x00015400002001F8ull) +#define CVMX_PKO_L5_SQA_DEBUG (0x0001540000280128ull) +#define CVMX_PKO_L5_SQB_DEBUG (0x0001540000280130ull) +#define CVMX_PKO_L5_SQX_CIR(offset) (0x0001540000200018ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L5_SQX_GREEN(offset) (0x0001540000280058ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L5_SQX_PICK(offset) (0x0001540000280070ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L5_SQX_PIR(offset) (0x0001540000200020ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L5_SQX_POINTERS(offset) (0x0001540000200078ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L5_SQX_RED(offset) (0x0001540000280068ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L5_SQX_SCHEDULE(offset) (0x0001540000200008ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L5_SQX_SCHED_STATE(offset) (0x0001540000200028ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L5_SQX_SHAPE(offset) (0x0001540000200010ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L5_SQX_SHAPE_STATE(offset) (0x0001540000200030ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L5_SQX_SW_XOFF(offset) (0x00015400002000E0ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L5_SQX_TOPOLOGY(offset) (0x0001540000280000ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L5_SQX_YELLOW(offset) (0x0001540000280060ull + ((offset) & 1023) * 512) +#define CVMX_PKO_L5_SQ_CSR_BUS_DEBUG (0x00015400002801F8ull) +#define CVMX_PKO_LUTX(offset) (0x0001540000B00000ull + ((offset) & 1023) * 8) +#define CVMX_PKO_LUT_BIST_STATUS (0x0001540000B02018ull) +#define CVMX_PKO_LUT_ECC_CTL0 (0x0001540000BFFFD0ull) +#define CVMX_PKO_LUT_ECC_DBE_STS0 (0x0001540000BFFFF0ull) +#define CVMX_PKO_LUT_ECC_DBE_STS_CMB0 (0x0001540000BFFFD8ull) +#define CVMX_PKO_LUT_ECC_SBE_STS0 (0x0001540000BFFFF8ull) +#define CVMX_PKO_LUT_ECC_SBE_STS_CMB0 (0x0001540000BFFFE8ull) +#define CVMX_PKO_MACX_CFG(offset) (0x0001540000900000ull + ((offset) & 31) * 8) +#define CVMX_PKO_MCI0_CRED_CNTX(offset) (0x0001540000A40000ull + ((offset) & 31) * 8) +#define CVMX_PKO_MCI0_MAX_CREDX(offset) (0x0001540000A00000ull + ((offset) & 31) * 8) +#define CVMX_PKO_MCI1_CRED_CNTX(offset) (0x0001540000A80100ull + ((offset) & 31) * 8) +#define CVMX_PKO_MCI1_MAX_CREDX(offset) (0x0001540000A80000ull + ((offset) & 31) * 8) +#define CVMX_PKO_MEM_COUNT0 (0x0001180050001080ull) +#define CVMX_PKO_MEM_COUNT1 (0x0001180050001088ull) +#define CVMX_PKO_MEM_DEBUG0 (0x0001180050001100ull) +#define CVMX_PKO_MEM_DEBUG1 (0x0001180050001108ull) +#define CVMX_PKO_MEM_DEBUG10 (0x0001180050001150ull) +#define CVMX_PKO_MEM_DEBUG11 (0x0001180050001158ull) +#define CVMX_PKO_MEM_DEBUG12 (0x0001180050001160ull) +#define CVMX_PKO_MEM_DEBUG13 (0x0001180050001168ull) +#define CVMX_PKO_MEM_DEBUG14 (0x0001180050001170ull) +#define CVMX_PKO_MEM_DEBUG2 (0x0001180050001110ull) +#define CVMX_PKO_MEM_DEBUG3 (0x0001180050001118ull) +#define CVMX_PKO_MEM_DEBUG4 (0x0001180050001120ull) +#define CVMX_PKO_MEM_DEBUG5 (0x0001180050001128ull) +#define CVMX_PKO_MEM_DEBUG6 (0x0001180050001130ull) +#define CVMX_PKO_MEM_DEBUG7 (0x0001180050001138ull) +#define CVMX_PKO_MEM_DEBUG8 (0x0001180050001140ull) +#define CVMX_PKO_MEM_DEBUG9 (0x0001180050001148ull) +#define CVMX_PKO_MEM_IPORT_PTRS (0x0001180050001030ull) +#define CVMX_PKO_MEM_IPORT_QOS (0x0001180050001038ull) +#define CVMX_PKO_MEM_IQUEUE_PTRS (0x0001180050001040ull) +#define CVMX_PKO_MEM_IQUEUE_QOS (0x0001180050001048ull) +#define CVMX_PKO_MEM_PORT_PTRS (0x0001180050001010ull) +#define CVMX_PKO_MEM_PORT_QOS (0x0001180050001018ull) +#define CVMX_PKO_MEM_PORT_RATE0 (0x0001180050001020ull) +#define CVMX_PKO_MEM_PORT_RATE1 (0x0001180050001028ull) +#define CVMX_PKO_MEM_QUEUE_PTRS (0x0001180050001000ull) +#define CVMX_PKO_MEM_QUEUE_QOS (0x0001180050001008ull) +#define CVMX_PKO_MEM_THROTTLE_INT (0x0001180050001058ull) +#define CVMX_PKO_MEM_THROTTLE_PIPE (0x0001180050001050ull) +#define CVMX_PKO_NCB_BIST_STATUS (0x0001540000EFFF00ull) +#define CVMX_PKO_NCB_ECC_CTL0 (0x0001540000EFFFD0ull) +#define CVMX_PKO_NCB_ECC_DBE_STS0 (0x0001540000EFFFF0ull) +#define CVMX_PKO_NCB_ECC_DBE_STS_CMB0 (0x0001540000EFFFD8ull) +#define CVMX_PKO_NCB_ECC_SBE_STS0 (0x0001540000EFFFF8ull) +#define CVMX_PKO_NCB_ECC_SBE_STS_CMB0 (0x0001540000EFFFE8ull) +#define CVMX_PKO_NCB_INT (0x0001540000E00010ull) +#define CVMX_PKO_NCB_TX_ERR_INFO (0x0001540000E00008ull) +#define CVMX_PKO_NCB_TX_ERR_WORD (0x0001540000E00000ull) +#define CVMX_PKO_PDM_BIST_STATUS (0x00015400008FFF00ull) +#define CVMX_PKO_PDM_CFG (0x0001540000800000ull) +#define CVMX_PKO_PDM_CFG_DBG (0x0001540000800FF8ull) +#define CVMX_PKO_PDM_CP_DBG (0x0001540000800190ull) +#define CVMX_PKO_PDM_DQX_MINPAD(offset) (0x00015400008F0000ull + ((offset) & 1023) * 8) +#define CVMX_PKO_PDM_DRPBUF_DBG (0x00015400008000B0ull) +#define CVMX_PKO_PDM_DWPBUF_DBG (0x00015400008000A8ull) +#define CVMX_PKO_PDM_ECC_CTL0 (0x00015400008FFFD0ull) +#define CVMX_PKO_PDM_ECC_CTL1 (0x00015400008FFFD8ull) +#define CVMX_PKO_PDM_ECC_DBE_STS0 (0x00015400008FFFF0ull) +#define CVMX_PKO_PDM_ECC_DBE_STS_CMB0 (0x00015400008FFFE0ull) +#define CVMX_PKO_PDM_ECC_SBE_STS0 (0x00015400008FFFF8ull) +#define CVMX_PKO_PDM_ECC_SBE_STS_CMB0 (0x00015400008FFFE8ull) +#define CVMX_PKO_PDM_FILLB_DBG0 (0x00015400008002A0ull) +#define CVMX_PKO_PDM_FILLB_DBG1 (0x00015400008002A8ull) +#define CVMX_PKO_PDM_FILLB_DBG2 (0x00015400008002B0ull) +#define CVMX_PKO_PDM_FLSHB_DBG0 (0x00015400008002B8ull) +#define CVMX_PKO_PDM_FLSHB_DBG1 (0x00015400008002C0ull) +#define CVMX_PKO_PDM_INTF_DBG_RD (0x0001540000900F20ull) +#define CVMX_PKO_PDM_ISRD_DBG (0x0001540000800090ull) +#define CVMX_PKO_PDM_ISRD_DBG_DQ (0x0001540000800290ull) +#define CVMX_PKO_PDM_ISRM_DBG (0x0001540000800098ull) +#define CVMX_PKO_PDM_ISRM_DBG_DQ (0x0001540000800298ull) +#define CVMX_PKO_PDM_MEM_ADDR (0x0001540000800018ull) +#define CVMX_PKO_PDM_MEM_DATA (0x0001540000800010ull) +#define CVMX_PKO_PDM_MEM_RW_CTL (0x0001540000800020ull) +#define CVMX_PKO_PDM_MEM_RW_STS (0x0001540000800028ull) +#define CVMX_PKO_PDM_MWPBUF_DBG (0x00015400008000A0ull) +#define CVMX_PKO_PDM_STS (0x0001540000800008ull) +#define CVMX_PKO_PEB_BIST_STATUS (0x0001540000900D00ull) +#define CVMX_PKO_PEB_ECC_CTL0 (0x00015400009FFFD0ull) +#define CVMX_PKO_PEB_ECC_CTL1 (0x00015400009FFFA8ull) +#define CVMX_PKO_PEB_ECC_DBE_STS0 (0x00015400009FFFF0ull) +#define CVMX_PKO_PEB_ECC_DBE_STS_CMB0 (0x00015400009FFFD8ull) +#define CVMX_PKO_PEB_ECC_SBE_STS0 (0x00015400009FFFF8ull) +#define CVMX_PKO_PEB_ECC_SBE_STS_CMB0 (0x00015400009FFFE8ull) +#define CVMX_PKO_PEB_ECO (0x0001540000901000ull) +#define CVMX_PKO_PEB_ERR_INT (0x0001540000900C00ull) +#define CVMX_PKO_PEB_EXT_HDR_DEF_ERR_INFO (0x0001540000900C08ull) +#define CVMX_PKO_PEB_FCS_SOP_ERR_INFO (0x0001540000900C18ull) +#define CVMX_PKO_PEB_JUMP_DEF_ERR_INFO (0x0001540000900C10ull) +#define CVMX_PKO_PEB_MACX_CFG_WR_ERR_INFO (0x0001540000900C50ull) +#define CVMX_PKO_PEB_MAX_LINK_ERR_INFO (0x0001540000900C48ull) +#define CVMX_PKO_PEB_NCB_CFG (0x0001540000900308ull) +#define CVMX_PKO_PEB_PAD_ERR_INFO (0x0001540000900C28ull) +#define CVMX_PKO_PEB_PSE_FIFO_ERR_INFO (0x0001540000900C20ull) +#define CVMX_PKO_PEB_SUBD_ADDR_ERR_INFO (0x0001540000900C38ull) +#define CVMX_PKO_PEB_SUBD_SIZE_ERR_INFO (0x0001540000900C40ull) +#define CVMX_PKO_PEB_TRUNC_ERR_INFO (0x0001540000900C30ull) +#define CVMX_PKO_PEB_TSO_CFG (0x0001540000900310ull) +#define CVMX_PKO_PQA_DEBUG (0x0001540000000128ull) +#define CVMX_PKO_PQB_DEBUG (0x0001540000000130ull) +#define CVMX_PKO_PQ_CSR_BUS_DEBUG (0x00015400000001F8ull) +#define CVMX_PKO_PQ_DEBUG_GREEN (0x0001540000000058ull) +#define CVMX_PKO_PQ_DEBUG_LINKS (0x0001540000000068ull) +#define CVMX_PKO_PQ_DEBUG_YELLOW (0x0001540000000060ull) +#define CVMX_PKO_PSE_DQ_BIST_STATUS (0x0001540000300138ull) +#define CVMX_PKO_PSE_DQ_ECC_CTL0 (0x0001540000300100ull) +#define CVMX_PKO_PSE_DQ_ECC_DBE_STS0 (0x0001540000300118ull) +#define CVMX_PKO_PSE_DQ_ECC_DBE_STS_CMB0 (0x0001540000300120ull) +#define CVMX_PKO_PSE_DQ_ECC_SBE_STS0 (0x0001540000300108ull) +#define CVMX_PKO_PSE_DQ_ECC_SBE_STS_CMB0 (0x0001540000300110ull) +#define CVMX_PKO_PSE_PQ_BIST_STATUS (0x0001540000000138ull) +#define CVMX_PKO_PSE_PQ_ECC_CTL0 (0x0001540000000100ull) +#define CVMX_PKO_PSE_PQ_ECC_DBE_STS0 (0x0001540000000118ull) +#define CVMX_PKO_PSE_PQ_ECC_DBE_STS_CMB0 (0x0001540000000120ull) +#define CVMX_PKO_PSE_PQ_ECC_SBE_STS0 (0x0001540000000108ull) +#define CVMX_PKO_PSE_PQ_ECC_SBE_STS_CMB0 (0x0001540000000110ull) +#define CVMX_PKO_PSE_SQ1_BIST_STATUS (0x0001540000080138ull) +#define CVMX_PKO_PSE_SQ1_ECC_CTL0 (0x0001540000080100ull) +#define CVMX_PKO_PSE_SQ1_ECC_DBE_STS0 (0x0001540000080118ull) +#define CVMX_PKO_PSE_SQ1_ECC_DBE_STS_CMB0 (0x0001540000080120ull) +#define CVMX_PKO_PSE_SQ1_ECC_SBE_STS0 (0x0001540000080108ull) +#define CVMX_PKO_PSE_SQ1_ECC_SBE_STS_CMB0 (0x0001540000080110ull) +#define CVMX_PKO_PSE_SQ2_BIST_STATUS (0x0001540000100138ull) +#define CVMX_PKO_PSE_SQ2_ECC_CTL0 (0x0001540000100100ull) +#define CVMX_PKO_PSE_SQ2_ECC_DBE_STS0 (0x0001540000100118ull) +#define CVMX_PKO_PSE_SQ2_ECC_DBE_STS_CMB0 (0x0001540000100120ull) +#define CVMX_PKO_PSE_SQ2_ECC_SBE_STS0 (0x0001540000100108ull) +#define CVMX_PKO_PSE_SQ2_ECC_SBE_STS_CMB0 (0x0001540000100110ull) +#define CVMX_PKO_PSE_SQ3_BIST_STATUS (0x0001540000180138ull) +#define CVMX_PKO_PSE_SQ3_ECC_CTL0 (0x0001540000180100ull) +#define CVMX_PKO_PSE_SQ3_ECC_DBE_STS0 (0x0001540000180118ull) +#define CVMX_PKO_PSE_SQ3_ECC_DBE_STS_CMB0 (0x0001540000180120ull) +#define CVMX_PKO_PSE_SQ3_ECC_SBE_STS0 (0x0001540000180108ull) +#define CVMX_PKO_PSE_SQ3_ECC_SBE_STS_CMB0 (0x0001540000180110ull) +#define CVMX_PKO_PSE_SQ4_BIST_STATUS (0x0001540000200138ull) +#define CVMX_PKO_PSE_SQ4_ECC_CTL0 (0x0001540000200100ull) +#define CVMX_PKO_PSE_SQ4_ECC_DBE_STS0 (0x0001540000200118ull) +#define CVMX_PKO_PSE_SQ4_ECC_DBE_STS_CMB0 (0x0001540000200120ull) +#define CVMX_PKO_PSE_SQ4_ECC_SBE_STS0 (0x0001540000200108ull) +#define CVMX_PKO_PSE_SQ4_ECC_SBE_STS_CMB0 (0x0001540000200110ull) +#define CVMX_PKO_PSE_SQ5_BIST_STATUS (0x0001540000280138ull) +#define CVMX_PKO_PSE_SQ5_ECC_CTL0 (0x0001540000280100ull) +#define CVMX_PKO_PSE_SQ5_ECC_DBE_STS0 (0x0001540000280118ull) +#define CVMX_PKO_PSE_SQ5_ECC_DBE_STS_CMB0 (0x0001540000280120ull) +#define CVMX_PKO_PSE_SQ5_ECC_SBE_STS0 (0x0001540000280108ull) +#define CVMX_PKO_PSE_SQ5_ECC_SBE_STS_CMB0 (0x0001540000280110ull) +#define CVMX_PKO_PTFX_STATUS(offset) (0x0001540000900100ull + ((offset) & 31) * 8) +#define CVMX_PKO_PTF_IOBP_CFG (0x0001540000900300ull) +#define CVMX_PKO_PTGFX_CFG(offset) (0x0001540000900200ull + ((offset) & 7) * 8) +#define CVMX_PKO_REG_BIST_RESULT (0x0001180050000080ull) +#define CVMX_PKO_REG_CMD_BUF (0x0001180050000010ull) +#define CVMX_PKO_REG_CRC_CTLX(offset) (0x0001180050000028ull + ((offset) & 1) * 8) +#define CVMX_PKO_REG_CRC_ENABLE (0x0001180050000020ull) +#define CVMX_PKO_REG_CRC_IVX(offset) (0x0001180050000038ull + ((offset) & 1) * 8) +#define CVMX_PKO_REG_DEBUG0 (0x0001180050000098ull) +#define CVMX_PKO_REG_DEBUG1 (0x00011800500000A0ull) +#define CVMX_PKO_REG_DEBUG2 (0x00011800500000A8ull) +#define CVMX_PKO_REG_DEBUG3 (0x00011800500000B0ull) +#define CVMX_PKO_REG_DEBUG4 (0x00011800500000B8ull) +#define CVMX_PKO_REG_ENGINE_INFLIGHT (0x0001180050000050ull) +#define CVMX_PKO_REG_ENGINE_INFLIGHT1 (0x0001180050000318ull) +#define CVMX_PKO_REG_ENGINE_STORAGEX(offset) (0x0001180050000300ull + ((offset) & 1) * 8) +#define CVMX_PKO_REG_ENGINE_THRESH (0x0001180050000058ull) +#define CVMX_PKO_REG_ERROR (0x0001180050000088ull) +#define CVMX_PKO_REG_FLAGS (0x0001180050000000ull) +#define CVMX_PKO_REG_GMX_PORT_MODE (0x0001180050000018ull) +#define CVMX_PKO_REG_INT_MASK (0x0001180050000090ull) +#define CVMX_PKO_REG_LOOPBACK_BPID (0x0001180050000118ull) +#define CVMX_PKO_REG_LOOPBACK_PKIND (0x0001180050000068ull) +#define CVMX_PKO_REG_MIN_PKT (0x0001180050000070ull) +#define CVMX_PKO_REG_PREEMPT (0x0001180050000110ull) +#define CVMX_PKO_REG_QUEUE_MODE (0x0001180050000048ull) +#define CVMX_PKO_REG_QUEUE_PREEMPT (0x0001180050000108ull) +#define CVMX_PKO_REG_QUEUE_PTRS1 (0x0001180050000100ull) +#define CVMX_PKO_REG_READ_IDX (0x0001180050000008ull) +#define CVMX_PKO_REG_THROTTLE (0x0001180050000078ull) +#define CVMX_PKO_REG_TIMESTAMP (0x0001180050000060ull) +#define CVMX_PKO_SHAPER_CFG (0x00015400000800F8ull) +#define CVMX_PKO_STATE_UID_IN_USEX_RD(offset) (0x0001540000900F00ull + ((offset) & 3) * 8) +#define CVMX_PKO_STATUS (0x0001540000D00000ull) +#define CVMX_PKO_TXFX_PKT_CNT_RD(offset) (0x0001540000900E00ull + ((offset) & 31) * 8) + +/** + * cvmx_pko_channel_level + */ +union cvmx_pko_channel_level { + u64 u64; + struct cvmx_pko_channel_level_s { + u64 reserved_1_63 : 63; + u64 cc_level : 1; + } s; + struct cvmx_pko_channel_level_s cn73xx; + struct cvmx_pko_channel_level_s cn78xx; + struct cvmx_pko_channel_level_s cn78xxp1; + struct cvmx_pko_channel_level_s cnf75xx; +}; + +typedef union cvmx_pko_channel_level cvmx_pko_channel_level_t; + +/** + * cvmx_pko_dpfi_ena + */ +union cvmx_pko_dpfi_ena { + u64 u64; + struct cvmx_pko_dpfi_ena_s { + u64 reserved_1_63 : 63; + u64 enable : 1; + } s; + struct cvmx_pko_dpfi_ena_s cn73xx; + struct cvmx_pko_dpfi_ena_s cn78xx; + struct cvmx_pko_dpfi_ena_s cn78xxp1; + struct cvmx_pko_dpfi_ena_s cnf75xx; +}; + +typedef union cvmx_pko_dpfi_ena cvmx_pko_dpfi_ena_t; + +/** + * cvmx_pko_dpfi_flush + */ +union cvmx_pko_dpfi_flush { + u64 u64; + struct cvmx_pko_dpfi_flush_s { + u64 reserved_1_63 : 63; + u64 flush_en : 1; + } s; + struct cvmx_pko_dpfi_flush_s cn73xx; + struct cvmx_pko_dpfi_flush_s cn78xx; + struct cvmx_pko_dpfi_flush_s cn78xxp1; + struct cvmx_pko_dpfi_flush_s cnf75xx; +}; + +typedef union cvmx_pko_dpfi_flush cvmx_pko_dpfi_flush_t; + +/** + * cvmx_pko_dpfi_fpa_aura + */ +union cvmx_pko_dpfi_fpa_aura { + u64 u64; + struct cvmx_pko_dpfi_fpa_aura_s { + u64 reserved_12_63 : 52; + u64 node : 2; + u64 laura : 10; + } s; + struct cvmx_pko_dpfi_fpa_aura_s cn73xx; + struct cvmx_pko_dpfi_fpa_aura_s cn78xx; + struct cvmx_pko_dpfi_fpa_aura_s cn78xxp1; + struct cvmx_pko_dpfi_fpa_aura_s cnf75xx; +}; + +typedef union cvmx_pko_dpfi_fpa_aura cvmx_pko_dpfi_fpa_aura_t; + +/** + * cvmx_pko_dpfi_status + */ +union cvmx_pko_dpfi_status { + u64 u64; + struct cvmx_pko_dpfi_status_s { + u64 ptr_cnt : 32; + u64 reserved_27_31 : 5; + u64 xpd_fif_cnt : 4; + u64 dalc_fif_cnt : 4; + u64 alc_fif_cnt : 5; + u64 reserved_13_13 : 1; + u64 isrd_ptr1_rtn_full : 1; + u64 isrd_ptr0_rtn_full : 1; + u64 isrm_ptr1_rtn_full : 1; + u64 isrm_ptr0_rtn_full : 1; + u64 isrd_ptr1_val : 1; + u64 isrd_ptr0_val : 1; + u64 isrm_ptr1_val : 1; + u64 isrm_ptr0_val : 1; + u64 ptr_req_pend : 1; + u64 ptr_rtn_pend : 1; + u64 fpa_empty : 1; + u64 dpfi_empty : 1; + u64 cache_flushed : 1; + } s; + struct cvmx_pko_dpfi_status_s cn73xx; + struct cvmx_pko_dpfi_status_s cn78xx; + struct cvmx_pko_dpfi_status_cn78xxp1 { + u64 ptr_cnt : 32; + u64 reserved_13_31 : 19; + u64 isrd_ptr1_rtn_full : 1; + u64 isrd_ptr0_rtn_full : 1; + u64 isrm_ptr1_rtn_full : 1; + u64 isrm_ptr0_rtn_full : 1; + u64 isrd_ptr1_val : 1; + u64 isrd_ptr0_val : 1; + u64 isrm_ptr1_val : 1; + u64 isrm_ptr0_val : 1; + u64 ptr_req_pend : 1; + u64 ptr_rtn_pend : 1; + u64 fpa_empty : 1; + u64 dpfi_empty : 1; + u64 cache_flushed : 1; + } cn78xxp1; + struct cvmx_pko_dpfi_status_s cnf75xx; +}; + +typedef union cvmx_pko_dpfi_status cvmx_pko_dpfi_status_t; + +/** + * cvmx_pko_dq#_bytes + * + * This register has the same bit fields as PKO_L1_SQ()_GREEN_BYTES. + * + */ +union cvmx_pko_dqx_bytes { + u64 u64; + struct cvmx_pko_dqx_bytes_s { + u64 reserved_48_63 : 16; + u64 count : 48; + } s; + struct cvmx_pko_dqx_bytes_s cn73xx; + struct cvmx_pko_dqx_bytes_s cn78xx; + struct cvmx_pko_dqx_bytes_s cn78xxp1; + struct cvmx_pko_dqx_bytes_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_bytes cvmx_pko_dqx_bytes_t; + +/** + * cvmx_pko_dq#_cir + * + * This register has the same bit fields as PKO_L1_SQ()_CIR. + * + */ +union cvmx_pko_dqx_cir { + u64 u64; + struct cvmx_pko_dqx_cir_s { + u64 reserved_41_63 : 23; + u64 burst_exponent : 4; + u64 burst_mantissa : 8; + u64 reserved_17_28 : 12; + u64 rate_divider_exponent : 4; + u64 rate_exponent : 4; + u64 rate_mantissa : 8; + u64 enable : 1; + } s; + struct cvmx_pko_dqx_cir_s cn73xx; + struct cvmx_pko_dqx_cir_s cn78xx; + struct cvmx_pko_dqx_cir_s cn78xxp1; + struct cvmx_pko_dqx_cir_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_cir cvmx_pko_dqx_cir_t; + +/** + * cvmx_pko_dq#_dropped_bytes + * + * This register has the same bit fields as PKO_L1_SQ()_GREEN_BYTES. + * + */ +union cvmx_pko_dqx_dropped_bytes { + u64 u64; + struct cvmx_pko_dqx_dropped_bytes_s { + u64 reserved_48_63 : 16; + u64 count : 48; + } s; + struct cvmx_pko_dqx_dropped_bytes_s cn73xx; + struct cvmx_pko_dqx_dropped_bytes_s cn78xx; + struct cvmx_pko_dqx_dropped_bytes_s cn78xxp1; + struct cvmx_pko_dqx_dropped_bytes_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_dropped_bytes cvmx_pko_dqx_dropped_bytes_t; + +/** + * cvmx_pko_dq#_dropped_packets + * + * This register has the same bit fields as PKO_L1_SQ()_GREEN_PACKETS. + * + */ +union cvmx_pko_dqx_dropped_packets { + u64 u64; + struct cvmx_pko_dqx_dropped_packets_s { + u64 reserved_40_63 : 24; + u64 count : 40; + } s; + struct cvmx_pko_dqx_dropped_packets_s cn73xx; + struct cvmx_pko_dqx_dropped_packets_s cn78xx; + struct cvmx_pko_dqx_dropped_packets_s cn78xxp1; + struct cvmx_pko_dqx_dropped_packets_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_dropped_packets cvmx_pko_dqx_dropped_packets_t; + +/** + * cvmx_pko_dq#_fifo + */ +union cvmx_pko_dqx_fifo { + u64 u64; + struct cvmx_pko_dqx_fifo_s { + u64 reserved_15_63 : 49; + u64 p_con : 1; + u64 head : 7; + u64 tail : 7; + } s; + struct cvmx_pko_dqx_fifo_s cn73xx; + struct cvmx_pko_dqx_fifo_s cn78xx; + struct cvmx_pko_dqx_fifo_s cn78xxp1; + struct cvmx_pko_dqx_fifo_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_fifo cvmx_pko_dqx_fifo_t; + +/** + * cvmx_pko_dq#_packets + * + * This register has the same bit fields as PKO_L1_SQ()_GREEN_PACKETS. + * + */ +union cvmx_pko_dqx_packets { + u64 u64; + struct cvmx_pko_dqx_packets_s { + u64 reserved_40_63 : 24; + u64 count : 40; + } s; + struct cvmx_pko_dqx_packets_s cn73xx; + struct cvmx_pko_dqx_packets_s cn78xx; + struct cvmx_pko_dqx_packets_s cn78xxp1; + struct cvmx_pko_dqx_packets_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_packets cvmx_pko_dqx_packets_t; + +/** + * cvmx_pko_dq#_pick + * + * This CSR contains the meta for the DQ, and is for debug and reconfiguration + * only and should never be written. See also PKO_META_DESC_S. + */ +union cvmx_pko_dqx_pick { + u64 u64; + struct cvmx_pko_dqx_pick_s { + u64 dq : 10; + u64 color : 2; + u64 child : 10; + u64 bubble : 1; + u64 p_con : 1; + u64 c_con : 1; + u64 uid : 7; + u64 jump : 1; + u64 fpd : 1; + u64 ds : 1; + u64 adjust : 9; + u64 pir_dis : 1; + u64 cir_dis : 1; + u64 red_algo_override : 2; + u64 length : 16; + } s; + struct cvmx_pko_dqx_pick_s cn73xx; + struct cvmx_pko_dqx_pick_s cn78xx; + struct cvmx_pko_dqx_pick_s cn78xxp1; + struct cvmx_pko_dqx_pick_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_pick cvmx_pko_dqx_pick_t; + +/** + * cvmx_pko_dq#_pir + * + * This register has the same bit fields as PKO_L1_SQ()_CIR. + * + */ +union cvmx_pko_dqx_pir { + u64 u64; + struct cvmx_pko_dqx_pir_s { + u64 reserved_41_63 : 23; + u64 burst_exponent : 4; + u64 burst_mantissa : 8; + u64 reserved_17_28 : 12; + u64 rate_divider_exponent : 4; + u64 rate_exponent : 4; + u64 rate_mantissa : 8; + u64 enable : 1; + } s; + struct cvmx_pko_dqx_pir_s cn73xx; + struct cvmx_pko_dqx_pir_s cn78xx; + struct cvmx_pko_dqx_pir_s cn78xxp1; + struct cvmx_pko_dqx_pir_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_pir cvmx_pko_dqx_pir_t; + +/** + * cvmx_pko_dq#_pointers + * + * This register has the same bit fields as PKO_L3_SQ(0..255)_POINTERS. + * + */ +union cvmx_pko_dqx_pointers { + u64 u64; + struct cvmx_pko_dqx_pointers_s { + u64 reserved_26_63 : 38; + u64 prev : 10; + u64 reserved_10_15 : 6; + u64 next : 10; + } s; + struct cvmx_pko_dqx_pointers_cn73xx { + u64 reserved_24_63 : 40; + u64 prev : 8; + u64 reserved_8_15 : 8; + u64 next : 8; + } cn73xx; + struct cvmx_pko_dqx_pointers_s cn78xx; + struct cvmx_pko_dqx_pointers_s cn78xxp1; + struct cvmx_pko_dqx_pointers_cn73xx cnf75xx; +}; + +typedef union cvmx_pko_dqx_pointers cvmx_pko_dqx_pointers_t; + +/** + * cvmx_pko_dq#_sched_state + * + * This register has the same bit fields as PKO_L2_SQ()_SCHED_STATE. + * + */ +union cvmx_pko_dqx_sched_state { + u64 u64; + struct cvmx_pko_dqx_sched_state_s { + u64 reserved_25_63 : 39; + u64 rr_count : 25; + } s; + struct cvmx_pko_dqx_sched_state_s cn73xx; + struct cvmx_pko_dqx_sched_state_s cn78xx; + struct cvmx_pko_dqx_sched_state_s cn78xxp1; + struct cvmx_pko_dqx_sched_state_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_sched_state cvmx_pko_dqx_sched_state_t; + +/** + * cvmx_pko_dq#_schedule + * + * This register has the same bit fields as PKO_L2_SQ()_SCHEDULE. + * + */ +union cvmx_pko_dqx_schedule { + u64 u64; + struct cvmx_pko_dqx_schedule_s { + u64 reserved_28_63 : 36; + u64 prio : 4; + u64 rr_quantum : 24; + } s; + struct cvmx_pko_dqx_schedule_s cn73xx; + struct cvmx_pko_dqx_schedule_s cn78xx; + struct cvmx_pko_dqx_schedule_s cn78xxp1; + struct cvmx_pko_dqx_schedule_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_schedule cvmx_pko_dqx_schedule_t; + +/** + * cvmx_pko_dq#_shape + * + * This register has the same bit fields as PKO_L3_SQ()_SHAPE. + * + */ +union cvmx_pko_dqx_shape { + u64 u64; + struct cvmx_pko_dqx_shape_s { + u64 reserved_27_63 : 37; + u64 schedule_list : 2; + u64 length_disable : 1; + u64 reserved_13_23 : 11; + u64 yellow_disable : 1; + u64 red_disable : 1; + u64 red_algo : 2; + u64 adjust : 9; + } s; + struct cvmx_pko_dqx_shape_s cn73xx; + struct cvmx_pko_dqx_shape_cn78xx { + u64 reserved_25_63 : 39; + u64 length_disable : 1; + u64 reserved_13_23 : 11; + u64 yellow_disable : 1; + u64 red_disable : 1; + u64 red_algo : 2; + u64 adjust : 9; + } cn78xx; + struct cvmx_pko_dqx_shape_cn78xx cn78xxp1; + struct cvmx_pko_dqx_shape_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_shape cvmx_pko_dqx_shape_t; + +/** + * cvmx_pko_dq#_shape_state + * + * This register has the same bit fields as PKO_L2_SQ()_SHAPE_STATE. + * This register must not be written during normal operation. + */ +union cvmx_pko_dqx_shape_state { + u64 u64; + struct cvmx_pko_dqx_shape_state_s { + u64 reserved_60_63 : 4; + u64 tw_timestamp : 6; + u64 color : 2; + u64 pir_accum : 26; + u64 cir_accum : 26; + } s; + struct cvmx_pko_dqx_shape_state_s cn73xx; + struct cvmx_pko_dqx_shape_state_s cn78xx; + struct cvmx_pko_dqx_shape_state_s cn78xxp1; + struct cvmx_pko_dqx_shape_state_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_shape_state cvmx_pko_dqx_shape_state_t; + +/** + * cvmx_pko_dq#_sw_xoff + * + * This register has the same bit fields as PKO_L1_SQ()_SW_XOFF. + * + */ +union cvmx_pko_dqx_sw_xoff { + u64 u64; + struct cvmx_pko_dqx_sw_xoff_s { + u64 reserved_4_63 : 60; + u64 drain_irq : 1; + u64 drain_null_link : 1; + u64 drain : 1; + u64 xoff : 1; + } s; + struct cvmx_pko_dqx_sw_xoff_s cn73xx; + struct cvmx_pko_dqx_sw_xoff_s cn78xx; + struct cvmx_pko_dqx_sw_xoff_s cn78xxp1; + struct cvmx_pko_dqx_sw_xoff_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_sw_xoff cvmx_pko_dqx_sw_xoff_t; + +/** + * cvmx_pko_dq#_topology + */ +union cvmx_pko_dqx_topology { + u64 u64; + struct cvmx_pko_dqx_topology_s { + u64 reserved_26_63 : 38; + u64 parent : 10; + u64 reserved_0_15 : 16; + } s; + struct cvmx_pko_dqx_topology_cn73xx { + u64 reserved_24_63 : 40; + u64 parent : 8; + u64 reserved_0_15 : 16; + } cn73xx; + struct cvmx_pko_dqx_topology_s cn78xx; + struct cvmx_pko_dqx_topology_s cn78xxp1; + struct cvmx_pko_dqx_topology_cn73xx cnf75xx; +}; + +typedef union cvmx_pko_dqx_topology cvmx_pko_dqx_topology_t; + +/** + * cvmx_pko_dq#_wm_buf_cnt + */ +union cvmx_pko_dqx_wm_buf_cnt { + u64 u64; + struct cvmx_pko_dqx_wm_buf_cnt_s { + u64 reserved_36_63 : 28; + u64 count : 36; + } s; + struct cvmx_pko_dqx_wm_buf_cnt_s cn73xx; + struct cvmx_pko_dqx_wm_buf_cnt_s cn78xx; + struct cvmx_pko_dqx_wm_buf_cnt_s cn78xxp1; + struct cvmx_pko_dqx_wm_buf_cnt_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_wm_buf_cnt cvmx_pko_dqx_wm_buf_cnt_t; + +/** + * cvmx_pko_dq#_wm_buf_ctl + */ +union cvmx_pko_dqx_wm_buf_ctl { + u64 u64; + struct cvmx_pko_dqx_wm_buf_ctl_s { + u64 reserved_51_63 : 13; + u64 enable : 1; + u64 reserved_49_49 : 1; + u64 intr : 1; + u64 reserved_36_47 : 12; + u64 threshold : 36; + } s; + struct cvmx_pko_dqx_wm_buf_ctl_s cn73xx; + struct cvmx_pko_dqx_wm_buf_ctl_s cn78xx; + struct cvmx_pko_dqx_wm_buf_ctl_s cn78xxp1; + struct cvmx_pko_dqx_wm_buf_ctl_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_wm_buf_ctl cvmx_pko_dqx_wm_buf_ctl_t; + +/** + * cvmx_pko_dq#_wm_buf_ctl_w1c + */ +union cvmx_pko_dqx_wm_buf_ctl_w1c { + u64 u64; + struct cvmx_pko_dqx_wm_buf_ctl_w1c_s { + u64 reserved_49_63 : 15; + u64 intr : 1; + u64 reserved_0_47 : 48; + } s; + struct cvmx_pko_dqx_wm_buf_ctl_w1c_s cn73xx; + struct cvmx_pko_dqx_wm_buf_ctl_w1c_s cn78xx; + struct cvmx_pko_dqx_wm_buf_ctl_w1c_s cn78xxp1; + struct cvmx_pko_dqx_wm_buf_ctl_w1c_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_wm_buf_ctl_w1c cvmx_pko_dqx_wm_buf_ctl_w1c_t; + +/** + * cvmx_pko_dq#_wm_cnt + */ +union cvmx_pko_dqx_wm_cnt { + u64 u64; + struct cvmx_pko_dqx_wm_cnt_s { + u64 reserved_48_63 : 16; + u64 count : 48; + } s; + struct cvmx_pko_dqx_wm_cnt_s cn73xx; + struct cvmx_pko_dqx_wm_cnt_s cn78xx; + struct cvmx_pko_dqx_wm_cnt_s cn78xxp1; + struct cvmx_pko_dqx_wm_cnt_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_wm_cnt cvmx_pko_dqx_wm_cnt_t; + +/** + * cvmx_pko_dq#_wm_ctl + */ +union cvmx_pko_dqx_wm_ctl { + u64 u64; + struct cvmx_pko_dqx_wm_ctl_s { + u64 reserved_52_63 : 12; + u64 ncb_query_rsp : 1; + u64 enable : 1; + u64 kind : 1; + u64 intr : 1; + u64 threshold : 48; + } s; + struct cvmx_pko_dqx_wm_ctl_s cn73xx; + struct cvmx_pko_dqx_wm_ctl_s cn78xx; + struct cvmx_pko_dqx_wm_ctl_s cn78xxp1; + struct cvmx_pko_dqx_wm_ctl_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_wm_ctl cvmx_pko_dqx_wm_ctl_t; + +/** + * cvmx_pko_dq#_wm_ctl_w1c + */ +union cvmx_pko_dqx_wm_ctl_w1c { + u64 u64; + struct cvmx_pko_dqx_wm_ctl_w1c_s { + u64 reserved_49_63 : 15; + u64 intr : 1; + u64 reserved_0_47 : 48; + } s; + struct cvmx_pko_dqx_wm_ctl_w1c_s cn73xx; + struct cvmx_pko_dqx_wm_ctl_w1c_s cn78xx; + struct cvmx_pko_dqx_wm_ctl_w1c_s cn78xxp1; + struct cvmx_pko_dqx_wm_ctl_w1c_s cnf75xx; +}; + +typedef union cvmx_pko_dqx_wm_ctl_w1c cvmx_pko_dqx_wm_ctl_w1c_t; + +/** + * cvmx_pko_dq_csr_bus_debug + */ +union cvmx_pko_dq_csr_bus_debug { + u64 u64; + struct cvmx_pko_dq_csr_bus_debug_s { + u64 csr_bus_debug : 64; + } s; + struct cvmx_pko_dq_csr_bus_debug_s cn73xx; + struct cvmx_pko_dq_csr_bus_debug_s cn78xx; + struct cvmx_pko_dq_csr_bus_debug_s cn78xxp1; + struct cvmx_pko_dq_csr_bus_debug_s cnf75xx; +}; + +typedef union cvmx_pko_dq_csr_bus_debug cvmx_pko_dq_csr_bus_debug_t; + +/** + * cvmx_pko_dq_debug + */ +union cvmx_pko_dq_debug { + u64 u64; + struct cvmx_pko_dq_debug_s { + u64 dbg_vec : 64; + } s; + struct cvmx_pko_dq_debug_s cn73xx; + struct cvmx_pko_dq_debug_s cn78xx; + struct cvmx_pko_dq_debug_s cn78xxp1; + struct cvmx_pko_dq_debug_s cnf75xx; +}; + +typedef union cvmx_pko_dq_debug cvmx_pko_dq_debug_t; + +/** + * cvmx_pko_drain_irq + */ +union cvmx_pko_drain_irq { + u64 u64; + struct cvmx_pko_drain_irq_s { + u64 reserved_1_63 : 63; + u64 intr : 1; + } s; + struct cvmx_pko_drain_irq_s cn73xx; + struct cvmx_pko_drain_irq_s cn78xx; + struct cvmx_pko_drain_irq_s cn78xxp1; + struct cvmx_pko_drain_irq_s cnf75xx; +}; + +typedef union cvmx_pko_drain_irq cvmx_pko_drain_irq_t; + +/** + * cvmx_pko_enable + */ +union cvmx_pko_enable { + u64 u64; + struct cvmx_pko_enable_s { + u64 reserved_1_63 : 63; + u64 enable : 1; + } s; + struct cvmx_pko_enable_s cn73xx; + struct cvmx_pko_enable_s cn78xx; + struct cvmx_pko_enable_s cn78xxp1; + struct cvmx_pko_enable_s cnf75xx; +}; + +typedef union cvmx_pko_enable cvmx_pko_enable_t; + +/** + * cvmx_pko_format#_ctl + * + * Describes packet marking calculations for YELLOW and for RED_SEND packets. + * PKO_SEND_HDR_S[FORMAT] selects the CSR used for the packet descriptor. + * + * All the packet marking calculations assume big-endian bits within a byte. + * + * For example, if MARKPTR is 3 and [OFFSET] is 5 and the packet is YELLOW, + * the PKO marking hardware would do this: + * + * _ byte[3]<2:0> |= Y_VAL<3:1> + * _ byte[3]<2:0> &= ~Y_MASK<3:1> + * _ byte[4]<7> |= Y_VAL<0> + * _ byte[4]<7> &= ~Y_MASK<0> + * + * where byte[3] is the 3rd byte in the packet, and byte[4] the 4th. + * + * For another example, if MARKPTR is 3 and [OFFSET] is 0 and the packet is RED_SEND, + * + * _ byte[3]<7:4> |= R_VAL<3:0> + * _ byte[3]<7:4> &= ~R_MASK<3:0> + */ +union cvmx_pko_formatx_ctl { + u64 u64; + struct cvmx_pko_formatx_ctl_s { + u64 reserved_27_63 : 37; + u64 offset : 11; + u64 y_mask : 4; + u64 y_val : 4; + u64 r_mask : 4; + u64 r_val : 4; + } s; + struct cvmx_pko_formatx_ctl_s cn73xx; + struct cvmx_pko_formatx_ctl_s cn78xx; + struct cvmx_pko_formatx_ctl_s cn78xxp1; + struct cvmx_pko_formatx_ctl_s cnf75xx; +}; + +typedef union cvmx_pko_formatx_ctl cvmx_pko_formatx_ctl_t; + +/** + * cvmx_pko_l1_sq#_cir + */ +union cvmx_pko_l1_sqx_cir { + u64 u64; + struct cvmx_pko_l1_sqx_cir_s { + u64 reserved_41_63 : 23; + u64 burst_exponent : 4; + u64 burst_mantissa : 8; + u64 reserved_17_28 : 12; + u64 rate_divider_exponent : 4; + u64 rate_exponent : 4; + u64 rate_mantissa : 8; + u64 enable : 1; + } s; + struct cvmx_pko_l1_sqx_cir_s cn73xx; + struct cvmx_pko_l1_sqx_cir_s cn78xx; + struct cvmx_pko_l1_sqx_cir_s cn78xxp1; + struct cvmx_pko_l1_sqx_cir_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_cir cvmx_pko_l1_sqx_cir_t; + +/** + * cvmx_pko_l1_sq#_dropped_bytes + * + * This register has the same bit fields as PKO_L1_SQ()_GREEN_BYTES. + * + */ +union cvmx_pko_l1_sqx_dropped_bytes { + u64 u64; + struct cvmx_pko_l1_sqx_dropped_bytes_s { + u64 reserved_48_63 : 16; + u64 count : 48; + } s; + struct cvmx_pko_l1_sqx_dropped_bytes_s cn73xx; + struct cvmx_pko_l1_sqx_dropped_bytes_s cn78xx; + struct cvmx_pko_l1_sqx_dropped_bytes_s cn78xxp1; + struct cvmx_pko_l1_sqx_dropped_bytes_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_dropped_bytes cvmx_pko_l1_sqx_dropped_bytes_t; + +/** + * cvmx_pko_l1_sq#_dropped_packets + * + * This register has the same bit fields as PKO_L1_SQ()_GREEN_PACKETS. + * + */ +union cvmx_pko_l1_sqx_dropped_packets { + u64 u64; + struct cvmx_pko_l1_sqx_dropped_packets_s { + u64 reserved_40_63 : 24; + u64 count : 40; + } s; + struct cvmx_pko_l1_sqx_dropped_packets_s cn73xx; + struct cvmx_pko_l1_sqx_dropped_packets_s cn78xx; + struct cvmx_pko_l1_sqx_dropped_packets_s cn78xxp1; + struct cvmx_pko_l1_sqx_dropped_packets_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_dropped_packets cvmx_pko_l1_sqx_dropped_packets_t; + +/** + * cvmx_pko_l1_sq#_green + */ +union cvmx_pko_l1_sqx_green { + u64 u64; + struct cvmx_pko_l1_sqx_green_s { + u64 reserved_41_63 : 23; + u64 rr_active : 1; + u64 active_vec : 20; + u64 reserved_19_19 : 1; + u64 head : 9; + u64 reserved_9_9 : 1; + u64 tail : 9; + } s; + struct cvmx_pko_l1_sqx_green_s cn73xx; + struct cvmx_pko_l1_sqx_green_s cn78xx; + struct cvmx_pko_l1_sqx_green_s cn78xxp1; + struct cvmx_pko_l1_sqx_green_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_green cvmx_pko_l1_sqx_green_t; + +/** + * cvmx_pko_l1_sq#_green_bytes + */ +union cvmx_pko_l1_sqx_green_bytes { + u64 u64; + struct cvmx_pko_l1_sqx_green_bytes_s { + u64 reserved_48_63 : 16; + u64 count : 48; + } s; + struct cvmx_pko_l1_sqx_green_bytes_s cn73xx; + struct cvmx_pko_l1_sqx_green_bytes_s cn78xx; + struct cvmx_pko_l1_sqx_green_bytes_s cn78xxp1; + struct cvmx_pko_l1_sqx_green_bytes_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_green_bytes cvmx_pko_l1_sqx_green_bytes_t; + +/** + * cvmx_pko_l1_sq#_green_packets + */ +union cvmx_pko_l1_sqx_green_packets { + u64 u64; + struct cvmx_pko_l1_sqx_green_packets_s { + u64 reserved_40_63 : 24; + u64 count : 40; + } s; + struct cvmx_pko_l1_sqx_green_packets_s cn73xx; + struct cvmx_pko_l1_sqx_green_packets_s cn78xx; + struct cvmx_pko_l1_sqx_green_packets_s cn78xxp1; + struct cvmx_pko_l1_sqx_green_packets_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_green_packets cvmx_pko_l1_sqx_green_packets_t; + +/** + * cvmx_pko_l1_sq#_link + */ +union cvmx_pko_l1_sqx_link { + u64 u64; + struct cvmx_pko_l1_sqx_link_s { + u64 reserved_49_63 : 15; + u64 link : 5; + u64 reserved_32_43 : 12; + u64 cc_word_cnt : 20; + u64 cc_packet_cnt : 10; + u64 cc_enable : 1; + u64 reserved_0_0 : 1; + } s; + struct cvmx_pko_l1_sqx_link_cn73xx { + u64 reserved_48_63 : 16; + u64 link : 4; + u64 reserved_32_43 : 12; + u64 cc_word_cnt : 20; + u64 cc_packet_cnt : 10; + u64 cc_enable : 1; + u64 reserved_0_0 : 1; + } cn73xx; + struct cvmx_pko_l1_sqx_link_s cn78xx; + struct cvmx_pko_l1_sqx_link_s cn78xxp1; + struct cvmx_pko_l1_sqx_link_cn73xx cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_link cvmx_pko_l1_sqx_link_t; + +/** + * cvmx_pko_l1_sq#_pick + * + * This CSR contains the meta for the L1 SQ, and is for debug and reconfiguration + * only and should never be written. See also PKO_META_DESC_S. + */ +union cvmx_pko_l1_sqx_pick { + u64 u64; + struct cvmx_pko_l1_sqx_pick_s { + u64 dq : 10; + u64 color : 2; + u64 child : 10; + u64 bubble : 1; + u64 p_con : 1; + u64 c_con : 1; + u64 uid : 7; + u64 jump : 1; + u64 fpd : 1; + u64 ds : 1; + u64 adjust : 9; + u64 pir_dis : 1; + u64 cir_dis : 1; + u64 red_algo_override : 2; + u64 length : 16; + } s; + struct cvmx_pko_l1_sqx_pick_s cn73xx; + struct cvmx_pko_l1_sqx_pick_s cn78xx; + struct cvmx_pko_l1_sqx_pick_s cn78xxp1; + struct cvmx_pko_l1_sqx_pick_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_pick cvmx_pko_l1_sqx_pick_t; + +/** + * cvmx_pko_l1_sq#_red + * + * This register has the same bit fields as PKO_L1_SQ()_YELLOW. + * + */ +union cvmx_pko_l1_sqx_red { + u64 u64; + struct cvmx_pko_l1_sqx_red_s { + u64 reserved_19_63 : 45; + u64 head : 9; + u64 reserved_9_9 : 1; + u64 tail : 9; + } s; + struct cvmx_pko_l1_sqx_red_s cn73xx; + struct cvmx_pko_l1_sqx_red_s cn78xx; + struct cvmx_pko_l1_sqx_red_s cn78xxp1; + struct cvmx_pko_l1_sqx_red_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_red cvmx_pko_l1_sqx_red_t; + +/** + * cvmx_pko_l1_sq#_red_bytes + * + * This register has the same bit fields as PKO_L1_SQ()_GREEN_BYTES. + * + */ +union cvmx_pko_l1_sqx_red_bytes { + u64 u64; + struct cvmx_pko_l1_sqx_red_bytes_s { + u64 reserved_48_63 : 16; + u64 count : 48; + } s; + struct cvmx_pko_l1_sqx_red_bytes_s cn73xx; + struct cvmx_pko_l1_sqx_red_bytes_s cn78xx; + struct cvmx_pko_l1_sqx_red_bytes_s cn78xxp1; + struct cvmx_pko_l1_sqx_red_bytes_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_red_bytes cvmx_pko_l1_sqx_red_bytes_t; + +/** + * cvmx_pko_l1_sq#_red_packets + * + * This register has the same bit fields as PKO_L1_SQ()_GREEN_PACKETS. + * + */ +union cvmx_pko_l1_sqx_red_packets { + u64 u64; + struct cvmx_pko_l1_sqx_red_packets_s { + u64 reserved_40_63 : 24; + u64 count : 40; + } s; + struct cvmx_pko_l1_sqx_red_packets_s cn73xx; + struct cvmx_pko_l1_sqx_red_packets_s cn78xx; + struct cvmx_pko_l1_sqx_red_packets_s cn78xxp1; + struct cvmx_pko_l1_sqx_red_packets_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_red_packets cvmx_pko_l1_sqx_red_packets_t; + +/** + * cvmx_pko_l1_sq#_schedule + */ +union cvmx_pko_l1_sqx_schedule { + u64 u64; + struct cvmx_pko_l1_sqx_schedule_s { + u64 dummy : 40; + u64 rr_quantum : 24; + } s; + struct cvmx_pko_l1_sqx_schedule_cn73xx { + u64 reserved_24_63 : 40; + u64 rr_quantum : 24; + } cn73xx; + struct cvmx_pko_l1_sqx_schedule_cn73xx cn78xx; + struct cvmx_pko_l1_sqx_schedule_s cn78xxp1; + struct cvmx_pko_l1_sqx_schedule_cn73xx cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_schedule cvmx_pko_l1_sqx_schedule_t; + +/** + * cvmx_pko_l1_sq#_shape + */ +union cvmx_pko_l1_sqx_shape { + u64 u64; + struct cvmx_pko_l1_sqx_shape_s { + u64 reserved_25_63 : 39; + u64 length_disable : 1; + u64 reserved_18_23 : 6; + u64 link : 5; + u64 reserved_9_12 : 4; + u64 adjust : 9; + } s; + struct cvmx_pko_l1_sqx_shape_cn73xx { + u64 reserved_25_63 : 39; + u64 length_disable : 1; + u64 reserved_17_23 : 7; + u64 link : 4; + u64 reserved_9_12 : 4; + u64 adjust : 9; + } cn73xx; + struct cvmx_pko_l1_sqx_shape_s cn78xx; + struct cvmx_pko_l1_sqx_shape_s cn78xxp1; + struct cvmx_pko_l1_sqx_shape_cn73xx cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_shape cvmx_pko_l1_sqx_shape_t; + +/** + * cvmx_pko_l1_sq#_shape_state + * + * This register must not be written during normal operation. + * + */ +union cvmx_pko_l1_sqx_shape_state { + u64 u64; + struct cvmx_pko_l1_sqx_shape_state_s { + u64 reserved_60_63 : 4; + u64 tw_timestamp : 6; + u64 color2 : 1; + u64 color : 1; + u64 reserved_26_51 : 26; + u64 cir_accum : 26; + } s; + struct cvmx_pko_l1_sqx_shape_state_cn73xx { + u64 reserved_60_63 : 4; + u64 tw_timestamp : 6; + u64 reserved_53_53 : 1; + u64 color : 1; + u64 reserved_26_51 : 26; + u64 cir_accum : 26; + } cn73xx; + struct cvmx_pko_l1_sqx_shape_state_cn73xx cn78xx; + struct cvmx_pko_l1_sqx_shape_state_s cn78xxp1; + struct cvmx_pko_l1_sqx_shape_state_cn73xx cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_shape_state cvmx_pko_l1_sqx_shape_state_t; + +/** + * cvmx_pko_l1_sq#_sw_xoff + */ +union cvmx_pko_l1_sqx_sw_xoff { + u64 u64; + struct cvmx_pko_l1_sqx_sw_xoff_s { + u64 reserved_4_63 : 60; + u64 drain_irq : 1; + u64 drain_null_link : 1; + u64 drain : 1; + u64 xoff : 1; + } s; + struct cvmx_pko_l1_sqx_sw_xoff_s cn73xx; + struct cvmx_pko_l1_sqx_sw_xoff_s cn78xx; + struct cvmx_pko_l1_sqx_sw_xoff_s cn78xxp1; + struct cvmx_pko_l1_sqx_sw_xoff_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_sw_xoff cvmx_pko_l1_sqx_sw_xoff_t; + +/** + * cvmx_pko_l1_sq#_topology + */ +union cvmx_pko_l1_sqx_topology { + u64 u64; + struct cvmx_pko_l1_sqx_topology_s { + u64 reserved_41_63 : 23; + u64 prio_anchor : 9; + u64 reserved_21_31 : 11; + u64 link : 5; + u64 reserved_5_15 : 11; + u64 rr_prio : 4; + u64 reserved_0_0 : 1; + } s; + struct cvmx_pko_l1_sqx_topology_cn73xx { + u64 reserved_40_63 : 24; + u64 prio_anchor : 8; + u64 reserved_20_31 : 12; + u64 link : 4; + u64 reserved_5_15 : 11; + u64 rr_prio : 4; + u64 reserved_0_0 : 1; + } cn73xx; + struct cvmx_pko_l1_sqx_topology_s cn78xx; + struct cvmx_pko_l1_sqx_topology_s cn78xxp1; + struct cvmx_pko_l1_sqx_topology_cn73xx cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_topology cvmx_pko_l1_sqx_topology_t; + +/** + * cvmx_pko_l1_sq#_yellow + */ +union cvmx_pko_l1_sqx_yellow { + u64 u64; + struct cvmx_pko_l1_sqx_yellow_s { + u64 reserved_19_63 : 45; + u64 head : 9; + u64 reserved_9_9 : 1; + u64 tail : 9; + } s; + struct cvmx_pko_l1_sqx_yellow_s cn73xx; + struct cvmx_pko_l1_sqx_yellow_s cn78xx; + struct cvmx_pko_l1_sqx_yellow_s cn78xxp1; + struct cvmx_pko_l1_sqx_yellow_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_yellow cvmx_pko_l1_sqx_yellow_t; + +/** + * cvmx_pko_l1_sq#_yellow_bytes + * + * This register has the same bit fields as PKO_L1_SQ()_GREEN_BYTES. + * + */ +union cvmx_pko_l1_sqx_yellow_bytes { + u64 u64; + struct cvmx_pko_l1_sqx_yellow_bytes_s { + u64 reserved_48_63 : 16; + u64 count : 48; + } s; + struct cvmx_pko_l1_sqx_yellow_bytes_s cn73xx; + struct cvmx_pko_l1_sqx_yellow_bytes_s cn78xx; + struct cvmx_pko_l1_sqx_yellow_bytes_s cn78xxp1; + struct cvmx_pko_l1_sqx_yellow_bytes_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_yellow_bytes cvmx_pko_l1_sqx_yellow_bytes_t; + +/** + * cvmx_pko_l1_sq#_yellow_packets + * + * This register has the same bit fields as PKO_L1_SQ()_GREEN_PACKETS. + * + */ +union cvmx_pko_l1_sqx_yellow_packets { + u64 u64; + struct cvmx_pko_l1_sqx_yellow_packets_s { + u64 reserved_40_63 : 24; + u64 count : 40; + } s; + struct cvmx_pko_l1_sqx_yellow_packets_s cn73xx; + struct cvmx_pko_l1_sqx_yellow_packets_s cn78xx; + struct cvmx_pko_l1_sqx_yellow_packets_s cn78xxp1; + struct cvmx_pko_l1_sqx_yellow_packets_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqx_yellow_packets cvmx_pko_l1_sqx_yellow_packets_t; + +/** + * cvmx_pko_l1_sq_csr_bus_debug + */ +union cvmx_pko_l1_sq_csr_bus_debug { + u64 u64; + struct cvmx_pko_l1_sq_csr_bus_debug_s { + u64 csr_bus_debug : 64; + } s; + struct cvmx_pko_l1_sq_csr_bus_debug_s cn73xx; + struct cvmx_pko_l1_sq_csr_bus_debug_s cn78xx; + struct cvmx_pko_l1_sq_csr_bus_debug_s cn78xxp1; + struct cvmx_pko_l1_sq_csr_bus_debug_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sq_csr_bus_debug cvmx_pko_l1_sq_csr_bus_debug_t; + +/** + * cvmx_pko_l1_sqa_debug + * + * This register has the same bit fields as PKO_PQA_DEBUG. + * + */ +union cvmx_pko_l1_sqa_debug { + u64 u64; + struct cvmx_pko_l1_sqa_debug_s { + u64 dbg_vec : 64; + } s; + struct cvmx_pko_l1_sqa_debug_s cn73xx; + struct cvmx_pko_l1_sqa_debug_s cn78xx; + struct cvmx_pko_l1_sqa_debug_s cn78xxp1; + struct cvmx_pko_l1_sqa_debug_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqa_debug cvmx_pko_l1_sqa_debug_t; + +/** + * cvmx_pko_l1_sqb_debug + * + * This register has the same bit fields as PKO_PQA_DEBUG. + * + */ +union cvmx_pko_l1_sqb_debug { + u64 u64; + struct cvmx_pko_l1_sqb_debug_s { + u64 dbg_vec : 64; + } s; + struct cvmx_pko_l1_sqb_debug_s cn73xx; + struct cvmx_pko_l1_sqb_debug_s cn78xx; + struct cvmx_pko_l1_sqb_debug_s cn78xxp1; + struct cvmx_pko_l1_sqb_debug_s cnf75xx; +}; + +typedef union cvmx_pko_l1_sqb_debug cvmx_pko_l1_sqb_debug_t; + +/** + * cvmx_pko_l2_sq#_cir + * + * This register has the same bit fields as PKO_L1_SQ()_CIR. + * + */ +union cvmx_pko_l2_sqx_cir { + u64 u64; + struct cvmx_pko_l2_sqx_cir_s { + u64 reserved_41_63 : 23; + u64 burst_exponent : 4; + u64 burst_mantissa : 8; + u64 reserved_17_28 : 12; + u64 rate_divider_exponent : 4; + u64 rate_exponent : 4; + u64 rate_mantissa : 8; + u64 enable : 1; + } s; + struct cvmx_pko_l2_sqx_cir_s cn73xx; + struct cvmx_pko_l2_sqx_cir_s cn78xx; + struct cvmx_pko_l2_sqx_cir_s cn78xxp1; + struct cvmx_pko_l2_sqx_cir_s cnf75xx; +}; + +typedef union cvmx_pko_l2_sqx_cir cvmx_pko_l2_sqx_cir_t; + +/** + * cvmx_pko_l2_sq#_green + * + * This register has the same bit fields as PKO_L1_SQ()_GREEN. + * + */ +union cvmx_pko_l2_sqx_green { + u64 u64; + struct cvmx_pko_l2_sqx_green_s { + u64 reserved_41_63 : 23; + u64 rr_active : 1; + u64 active_vec : 20; + u64 reserved_19_19 : 1; + u64 head : 9; + u64 reserved_9_9 : 1; + u64 tail : 9; + } s; + struct cvmx_pko_l2_sqx_green_s cn73xx; + struct cvmx_pko_l2_sqx_green_s cn78xx; + struct cvmx_pko_l2_sqx_green_s cn78xxp1; + struct cvmx_pko_l2_sqx_green_s cnf75xx; +}; + +typedef union cvmx_pko_l2_sqx_green cvmx_pko_l2_sqx_green_t; + +/** + * cvmx_pko_l2_sq#_pick + * + * This CSR contains the meta for the L2 SQ, and is for debug and reconfiguration + * only and should never be written. See also PKO_META_DESC_S. + */ +union cvmx_pko_l2_sqx_pick { + u64 u64; + struct cvmx_pko_l2_sqx_pick_s { + u64 dq : 10; + u64 color : 2; + u64 child : 10; + u64 bubble : 1; + u64 p_con : 1; + u64 c_con : 1; + u64 uid : 7; + u64 jump : 1; + u64 fpd : 1; + u64 ds : 1; + u64 adjust : 9; + u64 pir_dis : 1; + u64 cir_dis : 1; + u64 red_algo_override : 2; + u64 length : 16; + } s; + struct cvmx_pko_l2_sqx_pick_s cn73xx; + struct cvmx_pko_l2_sqx_pick_s cn78xx; + struct cvmx_pko_l2_sqx_pick_s cn78xxp1; + struct cvmx_pko_l2_sqx_pick_s cnf75xx; +}; + +typedef union cvmx_pko_l2_sqx_pick cvmx_pko_l2_sqx_pick_t; + +/** + * cvmx_pko_l2_sq#_pir + * + * This register has the same bit fields as PKO_L1_SQ()_CIR. + * + */ +union cvmx_pko_l2_sqx_pir { + u64 u64; + struct cvmx_pko_l2_sqx_pir_s { + u64 reserved_41_63 : 23; + u64 burst_exponent : 4; + u64 burst_mantissa : 8; + u64 reserved_17_28 : 12; + u64 rate_divider_exponent : 4; + u64 rate_exponent : 4; + u64 rate_mantissa : 8; + u64 enable : 1; + } s; + struct cvmx_pko_l2_sqx_pir_s cn73xx; + struct cvmx_pko_l2_sqx_pir_s cn78xx; + struct cvmx_pko_l2_sqx_pir_s cn78xxp1; + struct cvmx_pko_l2_sqx_pir_s cnf75xx; +}; + +typedef union cvmx_pko_l2_sqx_pir cvmx_pko_l2_sqx_pir_t; + +/** + * cvmx_pko_l2_sq#_pointers + */ +union cvmx_pko_l2_sqx_pointers { + u64 u64; + struct cvmx_pko_l2_sqx_pointers_s { + u64 reserved_25_63 : 39; + u64 prev : 9; + u64 reserved_9_15 : 7; + u64 next : 9; + } s; + struct cvmx_pko_l2_sqx_pointers_cn73xx { + u64 reserved_24_63 : 40; + u64 prev : 8; + u64 reserved_8_15 : 8; + u64 next : 8; + } cn73xx; + struct cvmx_pko_l2_sqx_pointers_s cn78xx; + struct cvmx_pko_l2_sqx_pointers_s cn78xxp1; + struct cvmx_pko_l2_sqx_pointers_cn73xx cnf75xx; +}; + +typedef union cvmx_pko_l2_sqx_pointers cvmx_pko_l2_sqx_pointers_t; + +/** + * cvmx_pko_l2_sq#_red + * + * This register has the same bit fields as PKO_L1_SQ()_RED. + * + */ +union cvmx_pko_l2_sqx_red { + u64 u64; + struct cvmx_pko_l2_sqx_red_s { + u64 reserved_19_63 : 45; + u64 head : 9; + u64 reserved_9_9 : 1; + u64 tail : 9; + } s; + struct cvmx_pko_l2_sqx_red_s cn73xx; + struct cvmx_pko_l2_sqx_red_s cn78xx; + struct cvmx_pko_l2_sqx_red_s cn78xxp1; + struct cvmx_pko_l2_sqx_red_s cnf75xx; +}; + +typedef union cvmx_pko_l2_sqx_red cvmx_pko_l2_sqx_red_t; + +/** + * cvmx_pko_l2_sq#_sched_state + */ +union cvmx_pko_l2_sqx_sched_state { + u64 u64; + struct cvmx_pko_l2_sqx_sched_state_s { + u64 reserved_25_63 : 39; + u64 rr_count : 25; + } s; + struct cvmx_pko_l2_sqx_sched_state_s cn73xx; + struct cvmx_pko_l2_sqx_sched_state_s cn78xx; + struct cvmx_pko_l2_sqx_sched_state_s cn78xxp1; + struct cvmx_pko_l2_sqx_sched_state_s cnf75xx; +}; + +typedef union cvmx_pko_l2_sqx_sched_state cvmx_pko_l2_sqx_sched_state_t; + +/** + * cvmx_pko_l2_sq#_schedule + */ +union cvmx_pko_l2_sqx_schedule { + u64 u64; + struct cvmx_pko_l2_sqx_schedule_s { + u64 reserved_28_63 : 36; + u64 prio : 4; + u64 rr_quantum : 24; + } s; + struct cvmx_pko_l2_sqx_schedule_s cn73xx; + struct cvmx_pko_l2_sqx_schedule_s cn78xx; + struct cvmx_pko_l2_sqx_schedule_s cn78xxp1; + struct cvmx_pko_l2_sqx_schedule_s cnf75xx; +}; + +typedef union cvmx_pko_l2_sqx_schedule cvmx_pko_l2_sqx_schedule_t; + +/** + * cvmx_pko_l2_sq#_shape + */ +union cvmx_pko_l2_sqx_shape { + u64 u64; + struct cvmx_pko_l2_sqx_shape_s { + u64 reserved_27_63 : 37; + u64 schedule_list : 2; + u64 length_disable : 1; + u64 reserved_13_23 : 11; + u64 yellow_disable : 1; + u64 red_disable : 1; + u64 red_algo : 2; + u64 adjust : 9; + } s; + struct cvmx_pko_l2_sqx_shape_s cn73xx; + struct cvmx_pko_l2_sqx_shape_cn78xx { + u64 reserved_25_63 : 39; + u64 length_disable : 1; + u64 reserved_13_23 : 11; + u64 yellow_disable : 1; + u64 red_disable : 1; + u64 red_algo : 2; + u64 adjust : 9; + } cn78xx; + struct cvmx_pko_l2_sqx_shape_cn78xx cn78xxp1; + struct cvmx_pko_l2_sqx_shape_s cnf75xx; +}; + +typedef union cvmx_pko_l2_sqx_shape cvmx_pko_l2_sqx_shape_t; + +/** + * cvmx_pko_l2_sq#_shape_state + * + * This register must not be written during normal operation. + * + */ +union cvmx_pko_l2_sqx_shape_state { + u64 u64; + struct cvmx_pko_l2_sqx_shape_state_s { + u64 reserved_60_63 : 4; + u64 tw_timestamp : 6; + u64 color : 2; + u64 pir_accum : 26; + u64 cir_accum : 26; + } s; + struct cvmx_pko_l2_sqx_shape_state_s cn73xx; + struct cvmx_pko_l2_sqx_shape_state_s cn78xx; + struct cvmx_pko_l2_sqx_shape_state_s cn78xxp1; + struct cvmx_pko_l2_sqx_shape_state_s cnf75xx; +}; + +typedef union cvmx_pko_l2_sqx_shape_state cvmx_pko_l2_sqx_shape_state_t; + +/** + * cvmx_pko_l2_sq#_sw_xoff + * + * This register has the same bit fields as PKO_L1_SQ()_SW_XOFF. + * + */ +union cvmx_pko_l2_sqx_sw_xoff { + u64 u64; + struct cvmx_pko_l2_sqx_sw_xoff_s { + u64 reserved_4_63 : 60; + u64 drain_irq : 1; + u64 drain_null_link : 1; + u64 drain : 1; + u64 xoff : 1; + } s; + struct cvmx_pko_l2_sqx_sw_xoff_s cn73xx; + struct cvmx_pko_l2_sqx_sw_xoff_s cn78xx; + struct cvmx_pko_l2_sqx_sw_xoff_s cn78xxp1; + struct cvmx_pko_l2_sqx_sw_xoff_s cnf75xx; +}; + +typedef union cvmx_pko_l2_sqx_sw_xoff cvmx_pko_l2_sqx_sw_xoff_t; + +/** + * cvmx_pko_l2_sq#_topology + */ +union cvmx_pko_l2_sqx_topology { + u64 u64; + struct cvmx_pko_l2_sqx_topology_s { + u64 reserved_41_63 : 23; + u64 prio_anchor : 9; + u64 reserved_21_31 : 11; + u64 parent : 5; + u64 reserved_5_15 : 11; + u64 rr_prio : 4; + u64 reserved_0_0 : 1; + } s; + struct cvmx_pko_l2_sqx_topology_cn73xx { + u64 reserved_40_63 : 24; + u64 prio_anchor : 8; + u64 reserved_20_31 : 12; + u64 parent : 4; + u64 reserved_5_15 : 11; + u64 rr_prio : 4; + u64 reserved_0_0 : 1; + } cn73xx; + struct cvmx_pko_l2_sqx_topology_s cn78xx; + struct cvmx_pko_l2_sqx_topology_s cn78xxp1; + struct cvmx_pko_l2_sqx_topology_cn73xx cnf75xx; +}; + +typedef union cvmx_pko_l2_sqx_topology cvmx_pko_l2_sqx_topology_t; + +/** + * cvmx_pko_l2_sq#_yellow + * + * This register has the same bit fields as PKO_L1_SQ()_YELLOW. + * + */ +union cvmx_pko_l2_sqx_yellow { + u64 u64; + struct cvmx_pko_l2_sqx_yellow_s { + u64 reserved_19_63 : 45; + u64 head : 9; + u64 reserved_9_9 : 1; + u64 tail : 9; + } s; + struct cvmx_pko_l2_sqx_yellow_s cn73xx; + struct cvmx_pko_l2_sqx_yellow_s cn78xx; + struct cvmx_pko_l2_sqx_yellow_s cn78xxp1; + struct cvmx_pko_l2_sqx_yellow_s cnf75xx; +}; + +typedef union cvmx_pko_l2_sqx_yellow cvmx_pko_l2_sqx_yellow_t; + +/** + * cvmx_pko_l2_sq_csr_bus_debug + */ +union cvmx_pko_l2_sq_csr_bus_debug { + u64 u64; + struct cvmx_pko_l2_sq_csr_bus_debug_s { + u64 csr_bus_debug : 64; + } s; + struct cvmx_pko_l2_sq_csr_bus_debug_s cn73xx; + struct cvmx_pko_l2_sq_csr_bus_debug_s cn78xx; + struct cvmx_pko_l2_sq_csr_bus_debug_s cn78xxp1; + struct cvmx_pko_l2_sq_csr_bus_debug_s cnf75xx; +}; + +typedef union cvmx_pko_l2_sq_csr_bus_debug cvmx_pko_l2_sq_csr_bus_debug_t; + +/** + * cvmx_pko_l2_sqa_debug + * + * This register has the same bit fields as PKO_PQA_DEBUG. + * + */ +union cvmx_pko_l2_sqa_debug { + u64 u64; + struct cvmx_pko_l2_sqa_debug_s { + u64 dbg_vec : 64; + } s; + struct cvmx_pko_l2_sqa_debug_s cn73xx; + struct cvmx_pko_l2_sqa_debug_s cn78xx; + struct cvmx_pko_l2_sqa_debug_s cn78xxp1; + struct cvmx_pko_l2_sqa_debug_s cnf75xx; +}; + +typedef union cvmx_pko_l2_sqa_debug cvmx_pko_l2_sqa_debug_t; + +/** + * cvmx_pko_l2_sqb_debug + * + * This register has the same bit fields as PKO_PQA_DEBUG. + * + */ +union cvmx_pko_l2_sqb_debug { + u64 u64; + struct cvmx_pko_l2_sqb_debug_s { + u64 dbg_vec : 64; + } s; + struct cvmx_pko_l2_sqb_debug_s cn73xx; + struct cvmx_pko_l2_sqb_debug_s cn78xx; + struct cvmx_pko_l2_sqb_debug_s cn78xxp1; + struct cvmx_pko_l2_sqb_debug_s cnf75xx; +}; + +typedef union cvmx_pko_l2_sqb_debug cvmx_pko_l2_sqb_debug_t; + +/** + * cvmx_pko_l3_l2_sq#_channel + * + * PKO_CHANNEL_LEVEL[CC_LEVEL] determines whether this CSR array is associated to + * the L2 SQs or the L3 SQs. + */ +union cvmx_pko_l3_l2_sqx_channel { + u64 u64; + struct cvmx_pko_l3_l2_sqx_channel_s { + u64 reserved_44_63 : 20; + u64 cc_channel : 12; + u64 cc_word_cnt : 20; + u64 cc_packet_cnt : 10; + u64 cc_enable : 1; + u64 hw_xoff : 1; + } s; + struct cvmx_pko_l3_l2_sqx_channel_s cn73xx; + struct cvmx_pko_l3_l2_sqx_channel_s cn78xx; + struct cvmx_pko_l3_l2_sqx_channel_s cn78xxp1; + struct cvmx_pko_l3_l2_sqx_channel_s cnf75xx; +}; + +typedef union cvmx_pko_l3_l2_sqx_channel cvmx_pko_l3_l2_sqx_channel_t; + +/** + * cvmx_pko_l3_sq#_cir + * + * This register has the same bit fields as PKO_L1_SQ()_CIR. + * + */ +union cvmx_pko_l3_sqx_cir { + u64 u64; + struct cvmx_pko_l3_sqx_cir_s { + u64 reserved_41_63 : 23; + u64 burst_exponent : 4; + u64 burst_mantissa : 8; + u64 reserved_17_28 : 12; + u64 rate_divider_exponent : 4; + u64 rate_exponent : 4; + u64 rate_mantissa : 8; + u64 enable : 1; + } s; + struct cvmx_pko_l3_sqx_cir_s cn73xx; + struct cvmx_pko_l3_sqx_cir_s cn78xx; + struct cvmx_pko_l3_sqx_cir_s cn78xxp1; + struct cvmx_pko_l3_sqx_cir_s cnf75xx; +}; + +typedef union cvmx_pko_l3_sqx_cir cvmx_pko_l3_sqx_cir_t; + +/** + * cvmx_pko_l3_sq#_green + */ +union cvmx_pko_l3_sqx_green { + u64 u64; + struct cvmx_pko_l3_sqx_green_s { + u64 reserved_41_63 : 23; + u64 rr_active : 1; + u64 active_vec : 20; + u64 head : 10; + u64 tail : 10; + } s; + struct cvmx_pko_l3_sqx_green_cn73xx { + u64 reserved_41_63 : 23; + u64 rr_active : 1; + u64 active_vec : 20; + u64 reserved_18_19 : 2; + u64 head : 8; + u64 reserved_8_9 : 2; + u64 tail : 8; + } cn73xx; + struct cvmx_pko_l3_sqx_green_s cn78xx; + struct cvmx_pko_l3_sqx_green_s cn78xxp1; + struct cvmx_pko_l3_sqx_green_cn73xx cnf75xx; +}; + +typedef union cvmx_pko_l3_sqx_green cvmx_pko_l3_sqx_green_t; + +/** + * cvmx_pko_l3_sq#_pick + * + * This CSR contains the meta for the L3 SQ, and is for debug and reconfiguration + * only and should never be written. See also PKO_META_DESC_S. + */ +union cvmx_pko_l3_sqx_pick { + u64 u64; + struct cvmx_pko_l3_sqx_pick_s { + u64 dq : 10; + u64 color : 2; + u64 child : 10; + u64 bubble : 1; + u64 p_con : 1; + u64 c_con : 1; + u64 uid : 7; + u64 jump : 1; + u64 fpd : 1; + u64 ds : 1; + u64 adjust : 9; + u64 pir_dis : 1; + u64 cir_dis : 1; + u64 red_algo_override : 2; + u64 length : 16; + } s; + struct cvmx_pko_l3_sqx_pick_s cn73xx; + struct cvmx_pko_l3_sqx_pick_s cn78xx; + struct cvmx_pko_l3_sqx_pick_s cn78xxp1; + struct cvmx_pko_l3_sqx_pick_s cnf75xx; +}; + +typedef union cvmx_pko_l3_sqx_pick cvmx_pko_l3_sqx_pick_t; + +/** + * cvmx_pko_l3_sq#_pir + * + * This register has the same bit fields as PKO_L1_SQ()_CIR. + * + */ +union cvmx_pko_l3_sqx_pir { + u64 u64; + struct cvmx_pko_l3_sqx_pir_s { + u64 reserved_41_63 : 23; + u64 burst_exponent : 4; + u64 burst_mantissa : 8; + u64 reserved_17_28 : 12; + u64 rate_divider_exponent : 4; + u64 rate_exponent : 4; + u64 rate_mantissa : 8; + u64 enable : 1; + } s; + struct cvmx_pko_l3_sqx_pir_s cn73xx; + struct cvmx_pko_l3_sqx_pir_s cn78xx; + struct cvmx_pko_l3_sqx_pir_s cn78xxp1; + struct cvmx_pko_l3_sqx_pir_s cnf75xx; +}; + +typedef union cvmx_pko_l3_sqx_pir cvmx_pko_l3_sqx_pir_t; + +/** + * cvmx_pko_l3_sq#_pointers + * + * This register has the same bit fields as PKO_L2_SQ()_POINTERS. + * + */ +union cvmx_pko_l3_sqx_pointers { + u64 u64; + struct cvmx_pko_l3_sqx_pointers_s { + u64 reserved_25_63 : 39; + u64 prev : 9; + u64 reserved_9_15 : 7; + u64 next : 9; + } s; + struct cvmx_pko_l3_sqx_pointers_cn73xx { + u64 reserved_24_63 : 40; + u64 prev : 8; + u64 reserved_8_15 : 8; + u64 next : 8; + } cn73xx; + struct cvmx_pko_l3_sqx_pointers_s cn78xx; + struct cvmx_pko_l3_sqx_pointers_s cn78xxp1; + struct cvmx_pko_l3_sqx_pointers_cn73xx cnf75xx; +}; + +typedef union cvmx_pko_l3_sqx_pointers cvmx_pko_l3_sqx_pointers_t; + +/** + * cvmx_pko_l3_sq#_red + * + * This register has the same bit fields as PKO_L3_SQ()_YELLOW. + * + */ +union cvmx_pko_l3_sqx_red { + u64 u64; + struct cvmx_pko_l3_sqx_red_s { + u64 reserved_20_63 : 44; + u64 head : 10; + u64 tail : 10; + } s; + struct cvmx_pko_l3_sqx_red_cn73xx { + u64 reserved_18_63 : 46; + u64 head : 8; + u64 reserved_8_9 : 2; + u64 tail : 8; + } cn73xx; + struct cvmx_pko_l3_sqx_red_s cn78xx; + struct cvmx_pko_l3_sqx_red_s cn78xxp1; + struct cvmx_pko_l3_sqx_red_cn73xx cnf75xx; +}; + +typedef union cvmx_pko_l3_sqx_red cvmx_pko_l3_sqx_red_t; + +/** + * cvmx_pko_l3_sq#_sched_state + * + * This register has the same bit fields as PKO_L2_SQ()_SCHED_STATE. + * + */ +union cvmx_pko_l3_sqx_sched_state { + u64 u64; + struct cvmx_pko_l3_sqx_sched_state_s { + u64 reserved_25_63 : 39; + u64 rr_count : 25; + } s; + struct cvmx_pko_l3_sqx_sched_state_s cn73xx; + struct cvmx_pko_l3_sqx_sched_state_s cn78xx; + struct cvmx_pko_l3_sqx_sched_state_s cn78xxp1; + struct cvmx_pko_l3_sqx_sched_state_s cnf75xx; +}; + +typedef union cvmx_pko_l3_sqx_sched_state cvmx_pko_l3_sqx_sched_state_t; + +/** + * cvmx_pko_l3_sq#_schedule + * + * This register has the same bit fields as PKO_L2_SQ()_SCHEDULE. + * + */ +union cvmx_pko_l3_sqx_schedule { + u64 u64; + struct cvmx_pko_l3_sqx_schedule_s { + u64 reserved_28_63 : 36; + u64 prio : 4; + u64 rr_quantum : 24; + } s; + struct cvmx_pko_l3_sqx_schedule_s cn73xx; + struct cvmx_pko_l3_sqx_schedule_s cn78xx; + struct cvmx_pko_l3_sqx_schedule_s cn78xxp1; + struct cvmx_pko_l3_sqx_schedule_s cnf75xx; +}; + +typedef union cvmx_pko_l3_sqx_schedule cvmx_pko_l3_sqx_schedule_t; + +/** + * cvmx_pko_l3_sq#_shape + */ +union cvmx_pko_l3_sqx_shape { + u64 u64; + struct cvmx_pko_l3_sqx_shape_s { + u64 reserved_27_63 : 37; + u64 schedule_list : 2; + u64 length_disable : 1; + u64 reserved_13_23 : 11; + u64 yellow_disable : 1; + u64 red_disable : 1; + u64 red_algo : 2; + u64 adjust : 9; + } s; + struct cvmx_pko_l3_sqx_shape_s cn73xx; + struct cvmx_pko_l3_sqx_shape_cn78xx { + u64 reserved_25_63 : 39; + u64 length_disable : 1; + u64 reserved_13_23 : 11; + u64 yellow_disable : 1; + u64 red_disable : 1; + u64 red_algo : 2; + u64 adjust : 9; + } cn78xx; + struct cvmx_pko_l3_sqx_shape_cn78xx cn78xxp1; + struct cvmx_pko_l3_sqx_shape_s cnf75xx; +}; + +typedef union cvmx_pko_l3_sqx_shape cvmx_pko_l3_sqx_shape_t; + +/** + * cvmx_pko_l3_sq#_shape_state + * + * This register has the same bit fields as PKO_L2_SQ()_SHAPE_STATE. + * This register must not be written during normal operation. + */ +union cvmx_pko_l3_sqx_shape_state { + u64 u64; + struct cvmx_pko_l3_sqx_shape_state_s { + u64 reserved_60_63 : 4; + u64 tw_timestamp : 6; + u64 color : 2; + u64 pir_accum : 26; + u64 cir_accum : 26; + } s; + struct cvmx_pko_l3_sqx_shape_state_s cn73xx; + struct cvmx_pko_l3_sqx_shape_state_s cn78xx; + struct cvmx_pko_l3_sqx_shape_state_s cn78xxp1; + struct cvmx_pko_l3_sqx_shape_state_s cnf75xx; +}; + +typedef union cvmx_pko_l3_sqx_shape_state cvmx_pko_l3_sqx_shape_state_t; + +/** + * cvmx_pko_l3_sq#_sw_xoff + * + * This register has the same bit fields as PKO_L1_SQ()_SW_XOFF + * + */ +union cvmx_pko_l3_sqx_sw_xoff { + u64 u64; + struct cvmx_pko_l3_sqx_sw_xoff_s { + u64 reserved_4_63 : 60; + u64 drain_irq : 1; + u64 drain_null_link : 1; + u64 drain : 1; + u64 xoff : 1; + } s; + struct cvmx_pko_l3_sqx_sw_xoff_s cn73xx; + struct cvmx_pko_l3_sqx_sw_xoff_s cn78xx; + struct cvmx_pko_l3_sqx_sw_xoff_s cn78xxp1; + struct cvmx_pko_l3_sqx_sw_xoff_s cnf75xx; +}; + +typedef union cvmx_pko_l3_sqx_sw_xoff cvmx_pko_l3_sqx_sw_xoff_t; + +/** + * cvmx_pko_l3_sq#_topology + */ +union cvmx_pko_l3_sqx_topology { + u64 u64; + struct cvmx_pko_l3_sqx_topology_s { + u64 reserved_42_63 : 22; + u64 prio_anchor : 10; + u64 reserved_25_31 : 7; + u64 parent : 9; + u64 reserved_5_15 : 11; + u64 rr_prio : 4; + u64 reserved_0_0 : 1; + } s; + struct cvmx_pko_l3_sqx_topology_cn73xx { + u64 reserved_40_63 : 24; + u64 prio_anchor : 8; + u64 reserved_24_31 : 8; + u64 parent : 8; + u64 reserved_5_15 : 11; + u64 rr_prio : 4; + u64 reserved_0_0 : 1; + } cn73xx; + struct cvmx_pko_l3_sqx_topology_s cn78xx; + struct cvmx_pko_l3_sqx_topology_s cn78xxp1; + struct cvmx_pko_l3_sqx_topology_cn73xx cnf75xx; +}; + +typedef union cvmx_pko_l3_sqx_topology cvmx_pko_l3_sqx_topology_t; + +/** + * cvmx_pko_l3_sq#_yellow + */ +union cvmx_pko_l3_sqx_yellow { + u64 u64; + struct cvmx_pko_l3_sqx_yellow_s { + u64 reserved_20_63 : 44; + u64 head : 10; + u64 tail : 10; + } s; + struct cvmx_pko_l3_sqx_yellow_cn73xx { + u64 reserved_18_63 : 46; + u64 head : 8; + u64 reserved_8_9 : 2; + u64 tail : 8; + } cn73xx; + struct cvmx_pko_l3_sqx_yellow_s cn78xx; + struct cvmx_pko_l3_sqx_yellow_s cn78xxp1; + struct cvmx_pko_l3_sqx_yellow_cn73xx cnf75xx; +}; + +typedef union cvmx_pko_l3_sqx_yellow cvmx_pko_l3_sqx_yellow_t; + +/** + * cvmx_pko_l3_sq_csr_bus_debug + */ +union cvmx_pko_l3_sq_csr_bus_debug { + u64 u64; + struct cvmx_pko_l3_sq_csr_bus_debug_s { + u64 csr_bus_debug : 64; + } s; + struct cvmx_pko_l3_sq_csr_bus_debug_s cn73xx; + struct cvmx_pko_l3_sq_csr_bus_debug_s cn78xx; + struct cvmx_pko_l3_sq_csr_bus_debug_s cn78xxp1; + struct cvmx_pko_l3_sq_csr_bus_debug_s cnf75xx; +}; + +typedef union cvmx_pko_l3_sq_csr_bus_debug cvmx_pko_l3_sq_csr_bus_debug_t; + +/** + * cvmx_pko_l3_sqa_debug + * + * This register has the same bit fields as PKO_PQA_DEBUG. + * + */ +union cvmx_pko_l3_sqa_debug { + u64 u64; + struct cvmx_pko_l3_sqa_debug_s { + u64 dbg_vec : 64; + } s; + struct cvmx_pko_l3_sqa_debug_s cn73xx; + struct cvmx_pko_l3_sqa_debug_s cn78xx; + struct cvmx_pko_l3_sqa_debug_s cn78xxp1; + struct cvmx_pko_l3_sqa_debug_s cnf75xx; +}; + +typedef union cvmx_pko_l3_sqa_debug cvmx_pko_l3_sqa_debug_t; + +/** + * cvmx_pko_l3_sqb_debug + * + * This register has the same bit fields as PKO_PQA_DEBUG. + * + */ +union cvmx_pko_l3_sqb_debug { + u64 u64; + struct cvmx_pko_l3_sqb_debug_s { + u64 dbg_vec : 64; + } s; + struct cvmx_pko_l3_sqb_debug_s cn73xx; + struct cvmx_pko_l3_sqb_debug_s cn78xx; + struct cvmx_pko_l3_sqb_debug_s cn78xxp1; + struct cvmx_pko_l3_sqb_debug_s cnf75xx; +}; + +typedef union cvmx_pko_l3_sqb_debug cvmx_pko_l3_sqb_debug_t; + +/** + * cvmx_pko_l4_sq#_cir + * + * This register has the same bit fields as PKO_L1_SQ()_CIR. + * + */ +union cvmx_pko_l4_sqx_cir { + u64 u64; + struct cvmx_pko_l4_sqx_cir_s { + u64 reserved_41_63 : 23; + u64 burst_exponent : 4; + u64 burst_mantissa : 8; + u64 reserved_17_28 : 12; + u64 rate_divider_exponent : 4; + u64 rate_exponent : 4; + u64 rate_mantissa : 8; + u64 enable : 1; + } s; + struct cvmx_pko_l4_sqx_cir_s cn78xx; + struct cvmx_pko_l4_sqx_cir_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sqx_cir cvmx_pko_l4_sqx_cir_t; + +/** + * cvmx_pko_l4_sq#_green + * + * This register has the same bit fields as PKO_L3_SQ()_GREEN. + * + */ +union cvmx_pko_l4_sqx_green { + u64 u64; + struct cvmx_pko_l4_sqx_green_s { + u64 reserved_41_63 : 23; + u64 rr_active : 1; + u64 active_vec : 20; + u64 head : 10; + u64 tail : 10; + } s; + struct cvmx_pko_l4_sqx_green_s cn78xx; + struct cvmx_pko_l4_sqx_green_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sqx_green cvmx_pko_l4_sqx_green_t; + +/** + * cvmx_pko_l4_sq#_pick + * + * This CSR contains the meta for the L4 SQ, and is for debug and reconfiguration + * only and should never be written. See also PKO_META_DESC_S. + */ +union cvmx_pko_l4_sqx_pick { + u64 u64; + struct cvmx_pko_l4_sqx_pick_s { + u64 dq : 10; + u64 color : 2; + u64 child : 10; + u64 bubble : 1; + u64 p_con : 1; + u64 c_con : 1; + u64 uid : 7; + u64 jump : 1; + u64 fpd : 1; + u64 ds : 1; + u64 adjust : 9; + u64 pir_dis : 1; + u64 cir_dis : 1; + u64 red_algo_override : 2; + u64 length : 16; + } s; + struct cvmx_pko_l4_sqx_pick_s cn78xx; + struct cvmx_pko_l4_sqx_pick_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sqx_pick cvmx_pko_l4_sqx_pick_t; + +/** + * cvmx_pko_l4_sq#_pir + * + * This register has the same bit fields as PKO_L1_SQ()_CIR. + * + */ +union cvmx_pko_l4_sqx_pir { + u64 u64; + struct cvmx_pko_l4_sqx_pir_s { + u64 reserved_41_63 : 23; + u64 burst_exponent : 4; + u64 burst_mantissa : 8; + u64 reserved_17_28 : 12; + u64 rate_divider_exponent : 4; + u64 rate_exponent : 4; + u64 rate_mantissa : 8; + u64 enable : 1; + } s; + struct cvmx_pko_l4_sqx_pir_s cn78xx; + struct cvmx_pko_l4_sqx_pir_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sqx_pir cvmx_pko_l4_sqx_pir_t; + +/** + * cvmx_pko_l4_sq#_pointers + */ +union cvmx_pko_l4_sqx_pointers { + u64 u64; + struct cvmx_pko_l4_sqx_pointers_s { + u64 reserved_26_63 : 38; + u64 prev : 10; + u64 reserved_10_15 : 6; + u64 next : 10; + } s; + struct cvmx_pko_l4_sqx_pointers_s cn78xx; + struct cvmx_pko_l4_sqx_pointers_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sqx_pointers cvmx_pko_l4_sqx_pointers_t; + +/** + * cvmx_pko_l4_sq#_red + * + * This register has the same bit fields as PKO_L3_SQ()_YELLOW. + * + */ +union cvmx_pko_l4_sqx_red { + u64 u64; + struct cvmx_pko_l4_sqx_red_s { + u64 reserved_20_63 : 44; + u64 head : 10; + u64 tail : 10; + } s; + struct cvmx_pko_l4_sqx_red_s cn78xx; + struct cvmx_pko_l4_sqx_red_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sqx_red cvmx_pko_l4_sqx_red_t; + +/** + * cvmx_pko_l4_sq#_sched_state + * + * This register has the same bit fields as PKO_L2_SQ()_SCHED_STATE. + * + */ +union cvmx_pko_l4_sqx_sched_state { + u64 u64; + struct cvmx_pko_l4_sqx_sched_state_s { + u64 reserved_25_63 : 39; + u64 rr_count : 25; + } s; + struct cvmx_pko_l4_sqx_sched_state_s cn78xx; + struct cvmx_pko_l4_sqx_sched_state_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sqx_sched_state cvmx_pko_l4_sqx_sched_state_t; + +/** + * cvmx_pko_l4_sq#_schedule + * + * This register has the same bit fields as PKO_L2_SQ()_SCHEDULE. + * + */ +union cvmx_pko_l4_sqx_schedule { + u64 u64; + struct cvmx_pko_l4_sqx_schedule_s { + u64 reserved_28_63 : 36; + u64 prio : 4; + u64 rr_quantum : 24; + } s; + struct cvmx_pko_l4_sqx_schedule_s cn78xx; + struct cvmx_pko_l4_sqx_schedule_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sqx_schedule cvmx_pko_l4_sqx_schedule_t; + +/** + * cvmx_pko_l4_sq#_shape + * + * This register has the same bit fields as PKO_L3_SQ()_SHAPE. + * + */ +union cvmx_pko_l4_sqx_shape { + u64 u64; + struct cvmx_pko_l4_sqx_shape_s { + u64 reserved_25_63 : 39; + u64 length_disable : 1; + u64 reserved_13_23 : 11; + u64 yellow_disable : 1; + u64 red_disable : 1; + u64 red_algo : 2; + u64 adjust : 9; + } s; + struct cvmx_pko_l4_sqx_shape_s cn78xx; + struct cvmx_pko_l4_sqx_shape_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sqx_shape cvmx_pko_l4_sqx_shape_t; + +/** + * cvmx_pko_l4_sq#_shape_state + * + * This register has the same bit fields as PKO_L2_SQ()_SHAPE_STATE. + * This register must not be written during normal operation. + */ +union cvmx_pko_l4_sqx_shape_state { + u64 u64; + struct cvmx_pko_l4_sqx_shape_state_s { + u64 reserved_60_63 : 4; + u64 tw_timestamp : 6; + u64 color : 2; + u64 pir_accum : 26; + u64 cir_accum : 26; + } s; + struct cvmx_pko_l4_sqx_shape_state_s cn78xx; + struct cvmx_pko_l4_sqx_shape_state_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sqx_shape_state cvmx_pko_l4_sqx_shape_state_t; + +/** + * cvmx_pko_l4_sq#_sw_xoff + * + * This register has the same bit fields as PKO_L1_SQ()_SW_XOFF. + * + */ +union cvmx_pko_l4_sqx_sw_xoff { + u64 u64; + struct cvmx_pko_l4_sqx_sw_xoff_s { + u64 reserved_4_63 : 60; + u64 drain_irq : 1; + u64 drain_null_link : 1; + u64 drain : 1; + u64 xoff : 1; + } s; + struct cvmx_pko_l4_sqx_sw_xoff_s cn78xx; + struct cvmx_pko_l4_sqx_sw_xoff_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sqx_sw_xoff cvmx_pko_l4_sqx_sw_xoff_t; + +/** + * cvmx_pko_l4_sq#_topology + */ +union cvmx_pko_l4_sqx_topology { + u64 u64; + struct cvmx_pko_l4_sqx_topology_s { + u64 reserved_42_63 : 22; + u64 prio_anchor : 10; + u64 reserved_25_31 : 7; + u64 parent : 9; + u64 reserved_5_15 : 11; + u64 rr_prio : 4; + u64 reserved_0_0 : 1; + } s; + struct cvmx_pko_l4_sqx_topology_s cn78xx; + struct cvmx_pko_l4_sqx_topology_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sqx_topology cvmx_pko_l4_sqx_topology_t; + +/** + * cvmx_pko_l4_sq#_yellow + * + * This register has the same bit fields as PKO_L3_SQ()_YELLOW. + * + */ +union cvmx_pko_l4_sqx_yellow { + u64 u64; + struct cvmx_pko_l4_sqx_yellow_s { + u64 reserved_20_63 : 44; + u64 head : 10; + u64 tail : 10; + } s; + struct cvmx_pko_l4_sqx_yellow_s cn78xx; + struct cvmx_pko_l4_sqx_yellow_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sqx_yellow cvmx_pko_l4_sqx_yellow_t; + +/** + * cvmx_pko_l4_sq_csr_bus_debug + */ +union cvmx_pko_l4_sq_csr_bus_debug { + u64 u64; + struct cvmx_pko_l4_sq_csr_bus_debug_s { + u64 csr_bus_debug : 64; + } s; + struct cvmx_pko_l4_sq_csr_bus_debug_s cn78xx; + struct cvmx_pko_l4_sq_csr_bus_debug_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sq_csr_bus_debug cvmx_pko_l4_sq_csr_bus_debug_t; + +/** + * cvmx_pko_l4_sqa_debug + * + * This register has the same bit fields as PKO_PQA_DEBUG. + * + */ +union cvmx_pko_l4_sqa_debug { + u64 u64; + struct cvmx_pko_l4_sqa_debug_s { + u64 dbg_vec : 64; + } s; + struct cvmx_pko_l4_sqa_debug_s cn78xx; + struct cvmx_pko_l4_sqa_debug_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sqa_debug cvmx_pko_l4_sqa_debug_t; + +/** + * cvmx_pko_l4_sqb_debug + * + * This register has the same bit fields as PKO_PQA_DEBUG. + * + */ +union cvmx_pko_l4_sqb_debug { + u64 u64; + struct cvmx_pko_l4_sqb_debug_s { + u64 dbg_vec : 64; + } s; + struct cvmx_pko_l4_sqb_debug_s cn78xx; + struct cvmx_pko_l4_sqb_debug_s cn78xxp1; +}; + +typedef union cvmx_pko_l4_sqb_debug cvmx_pko_l4_sqb_debug_t; + +/** + * cvmx_pko_l5_sq#_cir + * + * This register has the same bit fields as PKO_L1_SQ()_CIR. + * + */ +union cvmx_pko_l5_sqx_cir { + u64 u64; + struct cvmx_pko_l5_sqx_cir_s { + u64 reserved_41_63 : 23; + u64 burst_exponent : 4; + u64 burst_mantissa : 8; + u64 reserved_17_28 : 12; + u64 rate_divider_exponent : 4; + u64 rate_exponent : 4; + u64 rate_mantissa : 8; + u64 enable : 1; + } s; + struct cvmx_pko_l5_sqx_cir_s cn78xx; + struct cvmx_pko_l5_sqx_cir_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sqx_cir cvmx_pko_l5_sqx_cir_t; + +/** + * cvmx_pko_l5_sq#_green + * + * This register has the same bit fields as PKO_L3_SQ()_GREEN. + * + */ +union cvmx_pko_l5_sqx_green { + u64 u64; + struct cvmx_pko_l5_sqx_green_s { + u64 reserved_41_63 : 23; + u64 rr_active : 1; + u64 active_vec : 20; + u64 head : 10; + u64 tail : 10; + } s; + struct cvmx_pko_l5_sqx_green_s cn78xx; + struct cvmx_pko_l5_sqx_green_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sqx_green cvmx_pko_l5_sqx_green_t; + +/** + * cvmx_pko_l5_sq#_pick + * + * This CSR contains the meta for the L5 SQ, and is for debug and reconfiguration + * only and should never be written. See also PKO_META_DESC_S. + */ +union cvmx_pko_l5_sqx_pick { + u64 u64; + struct cvmx_pko_l5_sqx_pick_s { + u64 dq : 10; + u64 color : 2; + u64 child : 10; + u64 bubble : 1; + u64 p_con : 1; + u64 c_con : 1; + u64 uid : 7; + u64 jump : 1; + u64 fpd : 1; + u64 ds : 1; + u64 adjust : 9; + u64 pir_dis : 1; + u64 cir_dis : 1; + u64 red_algo_override : 2; + u64 length : 16; + } s; + struct cvmx_pko_l5_sqx_pick_s cn78xx; + struct cvmx_pko_l5_sqx_pick_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sqx_pick cvmx_pko_l5_sqx_pick_t; + +/** + * cvmx_pko_l5_sq#_pir + * + * This register has the same bit fields as PKO_L1_SQ()_CIR. + * + */ +union cvmx_pko_l5_sqx_pir { + u64 u64; + struct cvmx_pko_l5_sqx_pir_s { + u64 reserved_41_63 : 23; + u64 burst_exponent : 4; + u64 burst_mantissa : 8; + u64 reserved_17_28 : 12; + u64 rate_divider_exponent : 4; + u64 rate_exponent : 4; + u64 rate_mantissa : 8; + u64 enable : 1; + } s; + struct cvmx_pko_l5_sqx_pir_s cn78xx; + struct cvmx_pko_l5_sqx_pir_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sqx_pir cvmx_pko_l5_sqx_pir_t; + +/** + * cvmx_pko_l5_sq#_pointers + * + * This register has the same bit fields as PKO_L4_SQ()_POINTERS. + * + */ +union cvmx_pko_l5_sqx_pointers { + u64 u64; + struct cvmx_pko_l5_sqx_pointers_s { + u64 reserved_26_63 : 38; + u64 prev : 10; + u64 reserved_10_15 : 6; + u64 next : 10; + } s; + struct cvmx_pko_l5_sqx_pointers_s cn78xx; + struct cvmx_pko_l5_sqx_pointers_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sqx_pointers cvmx_pko_l5_sqx_pointers_t; + +/** + * cvmx_pko_l5_sq#_red + * + * This register has the same bit fields as PKO_L3_SQ()_YELLOW. + * + */ +union cvmx_pko_l5_sqx_red { + u64 u64; + struct cvmx_pko_l5_sqx_red_s { + u64 reserved_20_63 : 44; + u64 head : 10; + u64 tail : 10; + } s; + struct cvmx_pko_l5_sqx_red_s cn78xx; + struct cvmx_pko_l5_sqx_red_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sqx_red cvmx_pko_l5_sqx_red_t; + +/** + * cvmx_pko_l5_sq#_sched_state + * + * This register has the same bit fields as PKO_L2_SQ()_SCHED_STATE. + * + */ +union cvmx_pko_l5_sqx_sched_state { + u64 u64; + struct cvmx_pko_l5_sqx_sched_state_s { + u64 reserved_25_63 : 39; + u64 rr_count : 25; + } s; + struct cvmx_pko_l5_sqx_sched_state_s cn78xx; + struct cvmx_pko_l5_sqx_sched_state_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sqx_sched_state cvmx_pko_l5_sqx_sched_state_t; + +/** + * cvmx_pko_l5_sq#_schedule + * + * This register has the same bit fields as PKO_L2_SQ()_SCHEDULE. + * + */ +union cvmx_pko_l5_sqx_schedule { + u64 u64; + struct cvmx_pko_l5_sqx_schedule_s { + u64 reserved_28_63 : 36; + u64 prio : 4; + u64 rr_quantum : 24; + } s; + struct cvmx_pko_l5_sqx_schedule_s cn78xx; + struct cvmx_pko_l5_sqx_schedule_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sqx_schedule cvmx_pko_l5_sqx_schedule_t; + +/** + * cvmx_pko_l5_sq#_shape + */ +union cvmx_pko_l5_sqx_shape { + u64 u64; + struct cvmx_pko_l5_sqx_shape_s { + u64 reserved_25_63 : 39; + u64 length_disable : 1; + u64 reserved_13_23 : 11; + u64 yellow_disable : 1; + u64 red_disable : 1; + u64 red_algo : 2; + u64 adjust : 9; + } s; + struct cvmx_pko_l5_sqx_shape_s cn78xx; + struct cvmx_pko_l5_sqx_shape_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sqx_shape cvmx_pko_l5_sqx_shape_t; + +/** + * cvmx_pko_l5_sq#_shape_state + * + * This register has the same bit fields as PKO_L2_SQ()_SHAPE_STATE. + * This register must not be written during normal operation. + */ +union cvmx_pko_l5_sqx_shape_state { + u64 u64; + struct cvmx_pko_l5_sqx_shape_state_s { + u64 reserved_60_63 : 4; + u64 tw_timestamp : 6; + u64 color : 2; + u64 pir_accum : 26; + u64 cir_accum : 26; + } s; + struct cvmx_pko_l5_sqx_shape_state_s cn78xx; + struct cvmx_pko_l5_sqx_shape_state_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sqx_shape_state cvmx_pko_l5_sqx_shape_state_t; + +/** + * cvmx_pko_l5_sq#_sw_xoff + * + * This register has the same bit fields as PKO_L1_SQ()_SW_XOFF. + * + */ +union cvmx_pko_l5_sqx_sw_xoff { + u64 u64; + struct cvmx_pko_l5_sqx_sw_xoff_s { + u64 reserved_4_63 : 60; + u64 drain_irq : 1; + u64 drain_null_link : 1; + u64 drain : 1; + u64 xoff : 1; + } s; + struct cvmx_pko_l5_sqx_sw_xoff_s cn78xx; + struct cvmx_pko_l5_sqx_sw_xoff_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sqx_sw_xoff cvmx_pko_l5_sqx_sw_xoff_t; + +/** + * cvmx_pko_l5_sq#_topology + */ +union cvmx_pko_l5_sqx_topology { + u64 u64; + struct cvmx_pko_l5_sqx_topology_s { + u64 reserved_42_63 : 22; + u64 prio_anchor : 10; + u64 reserved_26_31 : 6; + u64 parent : 10; + u64 reserved_5_15 : 11; + u64 rr_prio : 4; + u64 reserved_0_0 : 1; + } s; + struct cvmx_pko_l5_sqx_topology_s cn78xx; + struct cvmx_pko_l5_sqx_topology_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sqx_topology cvmx_pko_l5_sqx_topology_t; + +/** + * cvmx_pko_l5_sq#_yellow + * + * This register has the same bit fields as PKO_L3_SQ()_YELLOW. + * + */ +union cvmx_pko_l5_sqx_yellow { + u64 u64; + struct cvmx_pko_l5_sqx_yellow_s { + u64 reserved_20_63 : 44; + u64 head : 10; + u64 tail : 10; + } s; + struct cvmx_pko_l5_sqx_yellow_s cn78xx; + struct cvmx_pko_l5_sqx_yellow_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sqx_yellow cvmx_pko_l5_sqx_yellow_t; + +/** + * cvmx_pko_l5_sq_csr_bus_debug + */ +union cvmx_pko_l5_sq_csr_bus_debug { + u64 u64; + struct cvmx_pko_l5_sq_csr_bus_debug_s { + u64 csr_bus_debug : 64; + } s; + struct cvmx_pko_l5_sq_csr_bus_debug_s cn78xx; + struct cvmx_pko_l5_sq_csr_bus_debug_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sq_csr_bus_debug cvmx_pko_l5_sq_csr_bus_debug_t; + +/** + * cvmx_pko_l5_sqa_debug + * + * This register has the same bit fields as PKO_PQA_DEBUG. + * + */ +union cvmx_pko_l5_sqa_debug { + u64 u64; + struct cvmx_pko_l5_sqa_debug_s { + u64 dbg_vec : 64; + } s; + struct cvmx_pko_l5_sqa_debug_s cn78xx; + struct cvmx_pko_l5_sqa_debug_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sqa_debug cvmx_pko_l5_sqa_debug_t; + +/** + * cvmx_pko_l5_sqb_debug + * + * This register has the same bit fields as PKO_PQA_DEBUG. + * + */ +union cvmx_pko_l5_sqb_debug { + u64 u64; + struct cvmx_pko_l5_sqb_debug_s { + u64 dbg_vec : 64; + } s; + struct cvmx_pko_l5_sqb_debug_s cn78xx; + struct cvmx_pko_l5_sqb_debug_s cn78xxp1; +}; + +typedef union cvmx_pko_l5_sqb_debug cvmx_pko_l5_sqb_debug_t; + +/** + * cvmx_pko_lut# + * + * PKO_LUT has a location for each used PKI_CHAN_E. The following table + * shows the mapping between LINK/MAC_NUM's, PKI_CHAN_E channels, and + * PKO_LUT indices. + * + * <pre> + * LINK/ PKI_CHAN_E Corresponding + * MAC_NUM Range PKO_LUT index Description + * ------- ----------- ------------- ----------------- + * 0 0x000-0x03F 0x040-0x07F LBK Loopback + * 1 0x100-0x13F 0x080-0x0BF DPI packet output + * 2 0x800-0x80F 0x000-0x00F BGX0 Logical MAC 0 + * 3 0x810-0x81F 0x010-0x01F BGX0 Logical MAC 1 + * 4 0x820-0x82F 0x020-0x02F BGX0 Logical MAC 2 + * 5 0x830-0x83F 0x030-0x03F BGX0 Logical MAC 3 + * </pre> + */ +union cvmx_pko_lutx { + u64 u64; + struct cvmx_pko_lutx_s { + u64 reserved_16_63 : 48; + u64 valid : 1; + u64 reserved_14_14 : 1; + u64 pq_idx : 5; + u64 queue_number : 9; + } s; + struct cvmx_pko_lutx_cn73xx { + u64 reserved_16_63 : 48; + u64 valid : 1; + u64 reserved_13_14 : 2; + u64 pq_idx : 4; + u64 reserved_8_8 : 1; + u64 queue_number : 8; + } cn73xx; + struct cvmx_pko_lutx_s cn78xx; + struct cvmx_pko_lutx_s cn78xxp1; + struct cvmx_pko_lutx_cn73xx cnf75xx; +}; + +typedef union cvmx_pko_lutx cvmx_pko_lutx_t; + +/** + * cvmx_pko_lut_bist_status + */ +union cvmx_pko_lut_bist_status { + u64 u64; + struct cvmx_pko_lut_bist_status_s { + u64 reserved_1_63 : 63; + u64 bist_status : 1; + } s; + struct cvmx_pko_lut_bist_status_s cn73xx; + struct cvmx_pko_lut_bist_status_s cn78xx; + struct cvmx_pko_lut_bist_status_s cn78xxp1; + struct cvmx_pko_lut_bist_status_s cnf75xx; +}; + +typedef union cvmx_pko_lut_bist_status cvmx_pko_lut_bist_status_t; + +/** + * cvmx_pko_lut_ecc_ctl0 + */ +union cvmx_pko_lut_ecc_ctl0 { + u64 u64; + struct cvmx_pko_lut_ecc_ctl0_s { + u64 c2q_lut_ram_flip : 2; + u64 c2q_lut_ram_cdis : 1; + u64 reserved_0_60 : 61; + } s;
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.29.2
Part of the diff is not shown here. View the raw message.