Current Path : /sys/amd64/compile/hs32/modules/usr/src/sys/modules/iwnfw/iwn1000/@/contrib/octeon-sdk/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //sys/amd64/compile/hs32/modules/usr/src/sys/modules/iwnfw/iwn1000/@/contrib/octeon-sdk/cvmx-ipd-defs.h |
/***********************license start*************** * Copyright (c) 2003-2010 Cavium Networks (support@cavium.com). All rights * reserved. * * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * * Neither the name of Cavium Networks nor the names of * its contributors may be used to endorse or promote products * derived from this software without specific prior written * permission. * This Software, including technical data, may be subject to U.S. export control * laws, including the U.S. Export Administration Act and its associated * regulations, and may be subject to export or import regulations in other * countries. * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" * AND WITH ALL FAULTS AND CAVIUM NETWORKS MAKES NO PROMISES, REPRESENTATIONS OR * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO * THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR * DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM * SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES OF TITLE, * MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF * VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR * CORRESPONDENCE TO DESCRIPTION. THE ENTIRE RISK ARISING OUT OF USE OR * PERFORMANCE OF THE SOFTWARE LIES WITH YOU. ***********************license end**************************************/ /** * cvmx-ipd-defs.h * * Configuration and status register (CSR) type definitions for * Octeon ipd. * * This file is auto generated. Do not edit. * * <hr>$Revision$<hr> * */ #ifndef __CVMX_IPD_TYPEDEFS_H__ #define __CVMX_IPD_TYPEDEFS_H__ #define CVMX_IPD_1ST_MBUFF_SKIP (CVMX_ADD_IO_SEG(0x00014F0000000000ull)) #define CVMX_IPD_1st_NEXT_PTR_BACK (CVMX_ADD_IO_SEG(0x00014F0000000150ull)) #define CVMX_IPD_2nd_NEXT_PTR_BACK (CVMX_ADD_IO_SEG(0x00014F0000000158ull)) #define CVMX_IPD_BIST_STATUS (CVMX_ADD_IO_SEG(0x00014F00000007F8ull)) #define CVMX_IPD_BP_PRT_RED_END (CVMX_ADD_IO_SEG(0x00014F0000000328ull)) #define CVMX_IPD_CLK_COUNT (CVMX_ADD_IO_SEG(0x00014F0000000338ull)) #define CVMX_IPD_CTL_STATUS (CVMX_ADD_IO_SEG(0x00014F0000000018ull)) #define CVMX_IPD_INT_ENB (CVMX_ADD_IO_SEG(0x00014F0000000160ull)) #define CVMX_IPD_INT_SUM (CVMX_ADD_IO_SEG(0x00014F0000000168ull)) #define CVMX_IPD_NOT_1ST_MBUFF_SKIP (CVMX_ADD_IO_SEG(0x00014F0000000008ull)) #define CVMX_IPD_PACKET_MBUFF_SIZE (CVMX_ADD_IO_SEG(0x00014F0000000010ull)) #define CVMX_IPD_PKT_PTR_VALID (CVMX_ADD_IO_SEG(0x00014F0000000358ull)) #if CVMX_ENABLE_CSR_ADDRESS_CHECKING static inline uint64_t CVMX_IPD_PORTX_BP_PAGE_CNT(unsigned long offset) { if (!( (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset <= 2) || (offset == 32))) || (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 2) || ((offset >= 32) && (offset <= 33)))) || (OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 35))) || (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 2) || ((offset >= 32) && (offset <= 33)))) || (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3) || ((offset >= 32) && (offset <= 35)))) || (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 3) || ((offset >= 16) && (offset <= 19)) || ((offset >= 32) && (offset <= 35)))) || (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 35))) || (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 3) || ((offset >= 32) && (offset <= 35)))))) cvmx_warn("CVMX_IPD_PORTX_BP_PAGE_CNT(%lu) is invalid on this chip\n", offset); return CVMX_ADD_IO_SEG(0x00014F0000000028ull) + ((offset) & 63) * 8; } #else #define CVMX_IPD_PORTX_BP_PAGE_CNT(offset) (CVMX_ADD_IO_SEG(0x00014F0000000028ull) + ((offset) & 63) * 8) #endif #if CVMX_ENABLE_CSR_ADDRESS_CHECKING static inline uint64_t CVMX_IPD_PORTX_BP_PAGE_CNT2(unsigned long offset) { if (!( (OCTEON_IS_MODEL(OCTEON_CN52XX) && (((offset >= 36) && (offset <= 39)))) || (OCTEON_IS_MODEL(OCTEON_CN56XX) && (((offset >= 36) && (offset <= 39)))) || (OCTEON_IS_MODEL(OCTEON_CN63XX) && (((offset >= 36) && (offset <= 39)))))) cvmx_warn("CVMX_IPD_PORTX_BP_PAGE_CNT2(%lu) is invalid on this chip\n", offset); return CVMX_ADD_IO_SEG(0x00014F0000000368ull) + ((offset) & 63) * 8 - 8*36; } #else #define CVMX_IPD_PORTX_BP_PAGE_CNT2(offset) (CVMX_ADD_IO_SEG(0x00014F0000000368ull) + ((offset) & 63) * 8 - 8*36) #endif #if CVMX_ENABLE_CSR_ADDRESS_CHECKING static inline uint64_t CVMX_IPD_PORTX_BP_PAGE_CNT3(unsigned long offset) { if (!( (OCTEON_IS_MODEL(OCTEON_CN63XX) && (((offset >= 40) && (offset <= 43)))))) cvmx_warn("CVMX_IPD_PORTX_BP_PAGE_CNT3(%lu) is invalid on this chip\n", offset); return CVMX_ADD_IO_SEG(0x00014F00000003D0ull) + ((offset) & 63) * 8 - 8*40; } #else #define CVMX_IPD_PORTX_BP_PAGE_CNT3(offset) (CVMX_ADD_IO_SEG(0x00014F00000003D0ull) + ((offset) & 63) * 8 - 8*40) #endif #if CVMX_ENABLE_CSR_ADDRESS_CHECKING static inline uint64_t CVMX_IPD_PORT_BP_COUNTERS2_PAIRX(unsigned long offset) { if (!( (OCTEON_IS_MODEL(OCTEON_CN52XX) && (((offset >= 36) && (offset <= 39)))) || (OCTEON_IS_MODEL(OCTEON_CN56XX) && (((offset >= 36) && (offset <= 39)))) || (OCTEON_IS_MODEL(OCTEON_CN63XX) && (((offset >= 36) && (offset <= 39)))))) cvmx_warn("CVMX_IPD_PORT_BP_COUNTERS2_PAIRX(%lu) is invalid on this chip\n", offset); return CVMX_ADD_IO_SEG(0x00014F0000000388ull) + ((offset) & 63) * 8 - 8*36; } #else #define CVMX_IPD_PORT_BP_COUNTERS2_PAIRX(offset) (CVMX_ADD_IO_SEG(0x00014F0000000388ull) + ((offset) & 63) * 8 - 8*36) #endif #if CVMX_ENABLE_CSR_ADDRESS_CHECKING static inline uint64_t CVMX_IPD_PORT_BP_COUNTERS3_PAIRX(unsigned long offset) { if (!( (OCTEON_IS_MODEL(OCTEON_CN63XX) && (((offset >= 40) && (offset <= 43)))))) cvmx_warn("CVMX_IPD_PORT_BP_COUNTERS3_PAIRX(%lu) is invalid on this chip\n", offset); return CVMX_ADD_IO_SEG(0x00014F00000003B0ull) + ((offset) & 63) * 8 - 8*40; } #else #define CVMX_IPD_PORT_BP_COUNTERS3_PAIRX(offset) (CVMX_ADD_IO_SEG(0x00014F00000003B0ull) + ((offset) & 63) * 8 - 8*40) #endif #if CVMX_ENABLE_CSR_ADDRESS_CHECKING static inline uint64_t CVMX_IPD_PORT_BP_COUNTERS_PAIRX(unsigned long offset) { if (!( (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset <= 2) || (offset == 32))) || (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 2) || ((offset >= 32) && (offset <= 33)))) || (OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 35))) || (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 2) || ((offset >= 32) && (offset <= 33)))) || (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3) || ((offset >= 32) && (offset <= 35)))) || (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 3) || ((offset >= 16) && (offset <= 19)) || ((offset >= 32) && (offset <= 35)))) || (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 35))) || (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 3) || ((offset >= 32) && (offset <= 35)))))) cvmx_warn("CVMX_IPD_PORT_BP_COUNTERS_PAIRX(%lu) is invalid on this chip\n", offset); return CVMX_ADD_IO_SEG(0x00014F00000001B8ull) + ((offset) & 63) * 8; } #else #define CVMX_IPD_PORT_BP_COUNTERS_PAIRX(offset) (CVMX_ADD_IO_SEG(0x00014F00000001B8ull) + ((offset) & 63) * 8) #endif #if CVMX_ENABLE_CSR_ADDRESS_CHECKING static inline uint64_t CVMX_IPD_PORT_QOS_INTX(unsigned long offset) { if (!( (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset == 0) || (offset == 4))) || (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset == 0) || (offset == 2) || (offset == 4))) || (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset == 0) || (offset == 4) || (offset == 5))))) cvmx_warn("CVMX_IPD_PORT_QOS_INTX(%lu) is invalid on this chip\n", offset); return CVMX_ADD_IO_SEG(0x00014F0000000808ull) + ((offset) & 7) * 8; } #else #define CVMX_IPD_PORT_QOS_INTX(offset) (CVMX_ADD_IO_SEG(0x00014F0000000808ull) + ((offset) & 7) * 8) #endif #if CVMX_ENABLE_CSR_ADDRESS_CHECKING static inline uint64_t CVMX_IPD_PORT_QOS_INT_ENBX(unsigned long offset) { if (!( (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset == 0) || (offset == 4))) || (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset == 0) || (offset == 2) || (offset == 4))) || (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset == 0) || (offset == 4) || (offset == 5))))) cvmx_warn("CVMX_IPD_PORT_QOS_INT_ENBX(%lu) is invalid on this chip\n", offset); return CVMX_ADD_IO_SEG(0x00014F0000000848ull) + ((offset) & 7) * 8; } #else #define CVMX_IPD_PORT_QOS_INT_ENBX(offset) (CVMX_ADD_IO_SEG(0x00014F0000000848ull) + ((offset) & 7) * 8) #endif #if CVMX_ENABLE_CSR_ADDRESS_CHECKING static inline uint64_t CVMX_IPD_PORT_QOS_X_CNT(unsigned long offset) { if (!( (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 31) || ((offset >= 256) && (offset <= 319)))) || (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 31) || ((offset >= 128) && (offset <= 159)) || ((offset >= 256) && (offset <= 319)))) || (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 31) || ((offset >= 256) && (offset <= 351)))))) cvmx_warn("CVMX_IPD_PORT_QOS_X_CNT(%lu) is invalid on this chip\n", offset); return CVMX_ADD_IO_SEG(0x00014F0000000888ull) + ((offset) & 511) * 8; } #else #define CVMX_IPD_PORT_QOS_X_CNT(offset) (CVMX_ADD_IO_SEG(0x00014F0000000888ull) + ((offset) & 511) * 8) #endif #define CVMX_IPD_PRC_HOLD_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000348ull)) #define CVMX_IPD_PRC_PORT_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000350ull)) #define CVMX_IPD_PTR_COUNT (CVMX_ADD_IO_SEG(0x00014F0000000320ull)) #define CVMX_IPD_PWP_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000340ull)) #define CVMX_IPD_QOS0_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(0) #define CVMX_IPD_QOS1_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(1) #define CVMX_IPD_QOS2_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(2) #define CVMX_IPD_QOS3_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(3) #define CVMX_IPD_QOS4_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(4) #define CVMX_IPD_QOS5_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(5) #define CVMX_IPD_QOS6_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(6) #define CVMX_IPD_QOS7_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(7) #if CVMX_ENABLE_CSR_ADDRESS_CHECKING static inline uint64_t CVMX_IPD_QOSX_RED_MARKS(unsigned long offset) { if (!( (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset <= 7))) || (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 7))) || (OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 7))) || (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 7))) || (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 7))) || (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 7))) || (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 7))) || (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 7))))) cvmx_warn("CVMX_IPD_QOSX_RED_MARKS(%lu) is invalid on this chip\n", offset); return CVMX_ADD_IO_SEG(0x00014F0000000178ull) + ((offset) & 7) * 8; } #else #define CVMX_IPD_QOSX_RED_MARKS(offset) (CVMX_ADD_IO_SEG(0x00014F0000000178ull) + ((offset) & 7) * 8) #endif #define CVMX_IPD_QUE0_FREE_PAGE_CNT (CVMX_ADD_IO_SEG(0x00014F0000000330ull)) #define CVMX_IPD_RED_PORT_ENABLE (CVMX_ADD_IO_SEG(0x00014F00000002D8ull)) #if CVMX_ENABLE_CSR_ADDRESS_CHECKING #define CVMX_IPD_RED_PORT_ENABLE2 CVMX_IPD_RED_PORT_ENABLE2_FUNC() static inline uint64_t CVMX_IPD_RED_PORT_ENABLE2_FUNC(void) { if (!(OCTEON_IS_MODEL(OCTEON_CN52XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN63XX))) cvmx_warn("CVMX_IPD_RED_PORT_ENABLE2 not supported on this chip\n"); return CVMX_ADD_IO_SEG(0x00014F00000003A8ull); } #else #define CVMX_IPD_RED_PORT_ENABLE2 (CVMX_ADD_IO_SEG(0x00014F00000003A8ull)) #endif #define CVMX_IPD_RED_QUE0_PARAM CVMX_IPD_RED_QUEX_PARAM(0) #define CVMX_IPD_RED_QUE1_PARAM CVMX_IPD_RED_QUEX_PARAM(1) #define CVMX_IPD_RED_QUE2_PARAM CVMX_IPD_RED_QUEX_PARAM(2) #define CVMX_IPD_RED_QUE3_PARAM CVMX_IPD_RED_QUEX_PARAM(3) #define CVMX_IPD_RED_QUE4_PARAM CVMX_IPD_RED_QUEX_PARAM(4) #define CVMX_IPD_RED_QUE5_PARAM CVMX_IPD_RED_QUEX_PARAM(5) #define CVMX_IPD_RED_QUE6_PARAM CVMX_IPD_RED_QUEX_PARAM(6) #define CVMX_IPD_RED_QUE7_PARAM CVMX_IPD_RED_QUEX_PARAM(7) #if CVMX_ENABLE_CSR_ADDRESS_CHECKING static inline uint64_t CVMX_IPD_RED_QUEX_PARAM(unsigned long offset) { if (!( (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset <= 7))) || (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 7))) || (OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 7))) || (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 7))) || (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 7))) || (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 7))) || (OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 7))) || (OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 7))))) cvmx_warn("CVMX_IPD_RED_QUEX_PARAM(%lu) is invalid on this chip\n", offset); return CVMX_ADD_IO_SEG(0x00014F00000002E0ull) + ((offset) & 7) * 8; } #else #define CVMX_IPD_RED_QUEX_PARAM(offset) (CVMX_ADD_IO_SEG(0x00014F00000002E0ull) + ((offset) & 7) * 8) #endif #define CVMX_IPD_SUB_PORT_BP_PAGE_CNT (CVMX_ADD_IO_SEG(0x00014F0000000148ull)) #define CVMX_IPD_SUB_PORT_FCS (CVMX_ADD_IO_SEG(0x00014F0000000170ull)) #if CVMX_ENABLE_CSR_ADDRESS_CHECKING #define CVMX_IPD_SUB_PORT_QOS_CNT CVMX_IPD_SUB_PORT_QOS_CNT_FUNC() static inline uint64_t CVMX_IPD_SUB_PORT_QOS_CNT_FUNC(void) { if (!(OCTEON_IS_MODEL(OCTEON_CN52XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN63XX))) cvmx_warn("CVMX_IPD_SUB_PORT_QOS_CNT not supported on this chip\n"); return CVMX_ADD_IO_SEG(0x00014F0000000800ull); } #else #define CVMX_IPD_SUB_PORT_QOS_CNT (CVMX_ADD_IO_SEG(0x00014F0000000800ull)) #endif #define CVMX_IPD_WQE_FPA_QUEUE (CVMX_ADD_IO_SEG(0x00014F0000000020ull)) #define CVMX_IPD_WQE_PTR_VALID (CVMX_ADD_IO_SEG(0x00014F0000000360ull)) /** * cvmx_ipd_1st_mbuff_skip * * IPD_1ST_MBUFF_SKIP = IPD First MBUFF Word Skip Size * * The number of words that the IPD will skip when writing the first MBUFF. */ union cvmx_ipd_1st_mbuff_skip { uint64_t u64; struct cvmx_ipd_1st_mbuff_skip_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_6_63 : 58; uint64_t skip_sz : 6; /**< The number of 8-byte words from the top of the 1st MBUFF that the IPD will store the next-pointer. Legal values are 0 to 32, where the MAX value is also limited to: IPD_PACKET_MBUFF_SIZE[MB_SIZE] - 18. Must be at least 16 when IPD_CTL_STATUS[NO_WPTR] is set. */ #else uint64_t skip_sz : 6; uint64_t reserved_6_63 : 58; #endif } s; struct cvmx_ipd_1st_mbuff_skip_s cn30xx; struct cvmx_ipd_1st_mbuff_skip_s cn31xx; struct cvmx_ipd_1st_mbuff_skip_s cn38xx; struct cvmx_ipd_1st_mbuff_skip_s cn38xxp2; struct cvmx_ipd_1st_mbuff_skip_s cn50xx; struct cvmx_ipd_1st_mbuff_skip_s cn52xx; struct cvmx_ipd_1st_mbuff_skip_s cn52xxp1; struct cvmx_ipd_1st_mbuff_skip_s cn56xx; struct cvmx_ipd_1st_mbuff_skip_s cn56xxp1; struct cvmx_ipd_1st_mbuff_skip_s cn58xx; struct cvmx_ipd_1st_mbuff_skip_s cn58xxp1; struct cvmx_ipd_1st_mbuff_skip_s cn63xx; struct cvmx_ipd_1st_mbuff_skip_s cn63xxp1; }; typedef union cvmx_ipd_1st_mbuff_skip cvmx_ipd_1st_mbuff_skip_t; /** * cvmx_ipd_1st_next_ptr_back * * IPD_1st_NEXT_PTR_BACK = IPD First Next Pointer Back Values * * Contains the Back Field for use in creating the Next Pointer Header for the First MBUF */ union cvmx_ipd_1st_next_ptr_back { uint64_t u64; struct cvmx_ipd_1st_next_ptr_back_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_4_63 : 60; uint64_t back : 4; /**< Used to find head of buffer from the nxt-hdr-ptr. */ #else uint64_t back : 4; uint64_t reserved_4_63 : 60; #endif } s; struct cvmx_ipd_1st_next_ptr_back_s cn30xx; struct cvmx_ipd_1st_next_ptr_back_s cn31xx; struct cvmx_ipd_1st_next_ptr_back_s cn38xx; struct cvmx_ipd_1st_next_ptr_back_s cn38xxp2; struct cvmx_ipd_1st_next_ptr_back_s cn50xx; struct cvmx_ipd_1st_next_ptr_back_s cn52xx; struct cvmx_ipd_1st_next_ptr_back_s cn52xxp1; struct cvmx_ipd_1st_next_ptr_back_s cn56xx; struct cvmx_ipd_1st_next_ptr_back_s cn56xxp1; struct cvmx_ipd_1st_next_ptr_back_s cn58xx; struct cvmx_ipd_1st_next_ptr_back_s cn58xxp1; struct cvmx_ipd_1st_next_ptr_back_s cn63xx; struct cvmx_ipd_1st_next_ptr_back_s cn63xxp1; }; typedef union cvmx_ipd_1st_next_ptr_back cvmx_ipd_1st_next_ptr_back_t; /** * cvmx_ipd_2nd_next_ptr_back * * IPD_2nd_NEXT_PTR_BACK = IPD Second Next Pointer Back Value * * Contains the Back Field for use in creating the Next Pointer Header for the First MBUF */ union cvmx_ipd_2nd_next_ptr_back { uint64_t u64; struct cvmx_ipd_2nd_next_ptr_back_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_4_63 : 60; uint64_t back : 4; /**< Used to find head of buffer from the nxt-hdr-ptr. */ #else uint64_t back : 4; uint64_t reserved_4_63 : 60; #endif } s; struct cvmx_ipd_2nd_next_ptr_back_s cn30xx; struct cvmx_ipd_2nd_next_ptr_back_s cn31xx; struct cvmx_ipd_2nd_next_ptr_back_s cn38xx; struct cvmx_ipd_2nd_next_ptr_back_s cn38xxp2; struct cvmx_ipd_2nd_next_ptr_back_s cn50xx; struct cvmx_ipd_2nd_next_ptr_back_s cn52xx; struct cvmx_ipd_2nd_next_ptr_back_s cn52xxp1; struct cvmx_ipd_2nd_next_ptr_back_s cn56xx; struct cvmx_ipd_2nd_next_ptr_back_s cn56xxp1; struct cvmx_ipd_2nd_next_ptr_back_s cn58xx; struct cvmx_ipd_2nd_next_ptr_back_s cn58xxp1; struct cvmx_ipd_2nd_next_ptr_back_s cn63xx; struct cvmx_ipd_2nd_next_ptr_back_s cn63xxp1; }; typedef union cvmx_ipd_2nd_next_ptr_back cvmx_ipd_2nd_next_ptr_back_t; /** * cvmx_ipd_bist_status * * IPD_BIST_STATUS = IPD BIST STATUS * * BIST Status for IPD's Memories. */ union cvmx_ipd_bist_status { uint64_t u64; struct cvmx_ipd_bist_status_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_18_63 : 46; uint64_t csr_mem : 1; /**< CSR Register Memory Bist Status. */ uint64_t csr_ncmd : 1; /**< CSR NCB Commands Memory Bist Status. */ uint64_t pwq_wqed : 1; /**< PWQ PIP WQE DONE Memory Bist Status. */ uint64_t pwq_wp1 : 1; /**< PWQ WQE PAGE1 PTR Memory Bist Status. */ uint64_t pwq_pow : 1; /**< PWQ POW MEM Memory Bist Status. */ uint64_t ipq_pbe1 : 1; /**< IPQ PBE1 Memory Bist Status. */ uint64_t ipq_pbe0 : 1; /**< IPQ PBE0 Memory Bist Status. */ uint64_t pbm3 : 1; /**< PBM3 Memory Bist Status. */ uint64_t pbm2 : 1; /**< PBM2 Memory Bist Status. */ uint64_t pbm1 : 1; /**< PBM1 Memory Bist Status. */ uint64_t pbm0 : 1; /**< PBM0 Memory Bist Status. */ uint64_t pbm_word : 1; /**< PBM_WORD Memory Bist Status. */ uint64_t pwq1 : 1; /**< PWQ1 Memory Bist Status. */ uint64_t pwq0 : 1; /**< PWQ0 Memory Bist Status. */ uint64_t prc_off : 1; /**< PRC_OFF Memory Bist Status. */ uint64_t ipd_old : 1; /**< IPD_OLD Memory Bist Status. */ uint64_t ipd_new : 1; /**< IPD_NEW Memory Bist Status. */ uint64_t pwp : 1; /**< PWP Memory Bist Status. */ #else uint64_t pwp : 1; uint64_t ipd_new : 1; uint64_t ipd_old : 1; uint64_t prc_off : 1; uint64_t pwq0 : 1; uint64_t pwq1 : 1; uint64_t pbm_word : 1; uint64_t pbm0 : 1; uint64_t pbm1 : 1; uint64_t pbm2 : 1; uint64_t pbm3 : 1; uint64_t ipq_pbe0 : 1; uint64_t ipq_pbe1 : 1; uint64_t pwq_pow : 1; uint64_t pwq_wp1 : 1; uint64_t pwq_wqed : 1; uint64_t csr_ncmd : 1; uint64_t csr_mem : 1; uint64_t reserved_18_63 : 46; #endif } s; struct cvmx_ipd_bist_status_cn30xx { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_16_63 : 48; uint64_t pwq_wqed : 1; /**< PWQ PIP WQE DONE Memory Bist Status. */ uint64_t pwq_wp1 : 1; /**< PWQ WQE PAGE1 PTR Memory Bist Status. */ uint64_t pwq_pow : 1; /**< PWQ POW MEM Memory Bist Status. */ uint64_t ipq_pbe1 : 1; /**< IPQ PBE1 Memory Bist Status. */ uint64_t ipq_pbe0 : 1; /**< IPQ PBE0 Memory Bist Status. */ uint64_t pbm3 : 1; /**< PBM3 Memory Bist Status. */ uint64_t pbm2 : 1; /**< PBM2 Memory Bist Status. */ uint64_t pbm1 : 1; /**< PBM1 Memory Bist Status. */ uint64_t pbm0 : 1; /**< PBM0 Memory Bist Status. */ uint64_t pbm_word : 1; /**< PBM_WORD Memory Bist Status. */ uint64_t pwq1 : 1; /**< PWQ1 Memory Bist Status. */ uint64_t pwq0 : 1; /**< PWQ0 Memory Bist Status. */ uint64_t prc_off : 1; /**< PRC_OFF Memory Bist Status. */ uint64_t ipd_old : 1; /**< IPD_OLD Memory Bist Status. */ uint64_t ipd_new : 1; /**< IPD_NEW Memory Bist Status. */ uint64_t pwp : 1; /**< PWP Memory Bist Status. */ #else uint64_t pwp : 1; uint64_t ipd_new : 1; uint64_t ipd_old : 1; uint64_t prc_off : 1; uint64_t pwq0 : 1; uint64_t pwq1 : 1; uint64_t pbm_word : 1; uint64_t pbm0 : 1; uint64_t pbm1 : 1; uint64_t pbm2 : 1; uint64_t pbm3 : 1; uint64_t ipq_pbe0 : 1; uint64_t ipq_pbe1 : 1; uint64_t pwq_pow : 1; uint64_t pwq_wp1 : 1; uint64_t pwq_wqed : 1; uint64_t reserved_16_63 : 48; #endif } cn30xx; struct cvmx_ipd_bist_status_cn30xx cn31xx; struct cvmx_ipd_bist_status_cn30xx cn38xx; struct cvmx_ipd_bist_status_cn30xx cn38xxp2; struct cvmx_ipd_bist_status_cn30xx cn50xx; struct cvmx_ipd_bist_status_s cn52xx; struct cvmx_ipd_bist_status_s cn52xxp1; struct cvmx_ipd_bist_status_s cn56xx; struct cvmx_ipd_bist_status_s cn56xxp1; struct cvmx_ipd_bist_status_cn30xx cn58xx; struct cvmx_ipd_bist_status_cn30xx cn58xxp1; struct cvmx_ipd_bist_status_s cn63xx; struct cvmx_ipd_bist_status_s cn63xxp1; }; typedef union cvmx_ipd_bist_status cvmx_ipd_bist_status_t; /** * cvmx_ipd_bp_prt_red_end * * IPD_BP_PRT_RED_END = IPD Backpressure Port RED Enable * * When IPD applies backpressure to a PORT and the corresponding bit in this register is set, * the RED Unit will drop packets for that port. */ union cvmx_ipd_bp_prt_red_end { uint64_t u64; struct cvmx_ipd_bp_prt_red_end_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_44_63 : 20; uint64_t prt_enb : 44; /**< The port corresponding to the bit position in this field will drop all NON-RAW packets to that port when port level backpressure is applied to that port. The applying of port-level backpressure for this dropping does not take into consideration the value of IPD_PORTX_BP_PAGE_CNT[BP_ENB], nor IPD_RED_PORT_ENABLE[PRT_ENB]. */ #else uint64_t prt_enb : 44; uint64_t reserved_44_63 : 20; #endif } s; struct cvmx_ipd_bp_prt_red_end_cn30xx { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_36_63 : 28; uint64_t prt_enb : 36; /**< The port corresponding to the bit position in this field, will allow RED to drop back when port level backpressure is applied to the port. The applying of port-level backpressure for this RED dropping does not take into consideration the value of IPD_PORTX_BP_PAGE_CNT[BP_ENB]. */ #else uint64_t prt_enb : 36; uint64_t reserved_36_63 : 28; #endif } cn30xx; struct cvmx_ipd_bp_prt_red_end_cn30xx cn31xx; struct cvmx_ipd_bp_prt_red_end_cn30xx cn38xx; struct cvmx_ipd_bp_prt_red_end_cn30xx cn38xxp2; struct cvmx_ipd_bp_prt_red_end_cn30xx cn50xx; struct cvmx_ipd_bp_prt_red_end_cn52xx { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_40_63 : 24; uint64_t prt_enb : 40; /**< The port corresponding to the bit position in this field, will allow RED to drop back when port level backpressure is applied to the port. The applying of port-level backpressure for this RED dropping does not take into consideration the value of IPD_PORTX_BP_PAGE_CNT[BP_ENB]. */ #else uint64_t prt_enb : 40; uint64_t reserved_40_63 : 24; #endif } cn52xx; struct cvmx_ipd_bp_prt_red_end_cn52xx cn52xxp1; struct cvmx_ipd_bp_prt_red_end_cn52xx cn56xx; struct cvmx_ipd_bp_prt_red_end_cn52xx cn56xxp1; struct cvmx_ipd_bp_prt_red_end_cn30xx cn58xx; struct cvmx_ipd_bp_prt_red_end_cn30xx cn58xxp1; struct cvmx_ipd_bp_prt_red_end_s cn63xx; struct cvmx_ipd_bp_prt_red_end_s cn63xxp1; }; typedef union cvmx_ipd_bp_prt_red_end cvmx_ipd_bp_prt_red_end_t; /** * cvmx_ipd_clk_count * * IPD_CLK_COUNT = IPD Clock Count * * Counts the number of core clocks periods since the de-asserition of reset. */ union cvmx_ipd_clk_count { uint64_t u64; struct cvmx_ipd_clk_count_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t clk_cnt : 64; /**< This counter will be zeroed when reset is applied and will increment every rising edge of the core-clock. */ #else uint64_t clk_cnt : 64; #endif } s; struct cvmx_ipd_clk_count_s cn30xx; struct cvmx_ipd_clk_count_s cn31xx; struct cvmx_ipd_clk_count_s cn38xx; struct cvmx_ipd_clk_count_s cn38xxp2; struct cvmx_ipd_clk_count_s cn50xx; struct cvmx_ipd_clk_count_s cn52xx; struct cvmx_ipd_clk_count_s cn52xxp1; struct cvmx_ipd_clk_count_s cn56xx; struct cvmx_ipd_clk_count_s cn56xxp1; struct cvmx_ipd_clk_count_s cn58xx; struct cvmx_ipd_clk_count_s cn58xxp1; struct cvmx_ipd_clk_count_s cn63xx; struct cvmx_ipd_clk_count_s cn63xxp1; }; typedef union cvmx_ipd_clk_count cvmx_ipd_clk_count_t; /** * cvmx_ipd_ctl_status * * IPD_CTL_STATUS = IPD's Control Status Register * * The number of words in a MBUFF used for packet data store. */ union cvmx_ipd_ctl_status { uint64_t u64; struct cvmx_ipd_ctl_status_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_18_63 : 46; uint64_t use_sop : 1; /**< When '1' the SOP sent by the MAC will be used in place of the SOP generated by the IPD. */ uint64_t rst_done : 1; /**< When '0' IPD has finished reset. No access except the reading of this bit should occur to the IPD until this is asserted. Or a 1000 core clock cycles has passed after the de-assertion of reset. */ uint64_t clken : 1; /**< Controls the conditional clocking within IPD 0=Allow HW to control the clocks 1=Force the clocks to be always on */ uint64_t no_wptr : 1; /**< When set '1' the WQE pointers will not be used and the WQE will be located at the front of the packet. When set: - IPD_WQE_FPA_QUEUE[WQE_QUE] is not used - IPD_1ST_MBUFF_SKIP[SKIP_SZ] must be at least 16 - If 16 <= IPD_1ST_MBUFF_SKIP[SKIP_SZ] <= 31 then the WQE will be written into the first 128B cache block in the first buffer that contains the packet. - If IPD_1ST_MBUFF_SKIP[SKIP_SZ] == 32 then the WQE will be written into the second 128B cache block in the first buffer that contains the packet. */ uint64_t pq_apkt : 1; /**< When set IPD_PORT_QOS_X_CNT WILL be incremented by one for every work queue entry that is sent to POW. */ uint64_t pq_nabuf : 1; /**< When set IPD_PORT_QOS_X_CNT WILL NOT be incremented when IPD allocates a buffer for a packet. */ uint64_t ipd_full : 1; /**< When clear '0' the IPD acts normaly. When set '1' the IPD drive the IPD_BUFF_FULL line to the IOB-arbiter, telling it to not give grants to NCB devices sending packet data. */ uint64_t pkt_off : 1; /**< When clear '0' the IPD working normaly, buffering the received packet data. When set '1' the IPD will not buffer the received packet data. */ uint64_t len_m8 : 1; /**< Setting of this bit will subtract 8 from the data-length field in the header written to the POW and the top of a MBUFF. OCTEAN generates a length that includes the length of the data + 8 for the header-field. By setting this bit the 8 for the instr-field will not be included in the length field of the header. NOTE: IPD is compliant with the spec when this field is '1'. */ uint64_t reset : 1; /**< When set '1' causes a reset of the IPD, except RSL. */ uint64_t addpkt : 1; /**< When IPD_CTL_STATUS[ADDPKT] is set, IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL], IPD_PORT_BP_COUNTERS2_PAIR(port)[CNT_VAL] and IPD_PORT_BP_COUNTERS3_PAIR(port)[CNT_VAL] WILL be incremented by one for every work queue entry that is sent to POW. */ uint64_t naddbuf : 1; /**< When IPD_CTL_STATUS[NADDBUF] is set, IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL], IPD_PORT_BP_COUNTERS2_PAIR(port)[CNT_VAL] and IPD_PORT_BP_COUNTERS3_PAIR(port)[CNT_VAL] WILL NOT be incremented when IPD allocates a buffer for a packet on the port. */ uint64_t pkt_lend : 1; /**< Changes PKT to little endian writes to L2C */ uint64_t wqe_lend : 1; /**< Changes WQE to little endian writes to L2C */ uint64_t pbp_en : 1; /**< Port back pressure enable. When set '1' enables the sending of port level backpressure to the Octane input-ports. The application should NOT de-assert this bit after asserting it. The receivers of this bit may have been put into backpressure mode and can only be released by IPD informing them that the backpressure has been released. GMXX_INF_MODE[EN] must be set to '1' for each packet interface which requires port back pressure prior to setting PBP_EN to '1'. */ cvmx_ipd_mode_t opc_mode : 2; /**< 0 ==> All packet data (and next buffer pointers) is written through to memory. 1 ==> All packet data (and next buffer pointers) is written into the cache. 2 ==> The first aligned cache block holding the packet data (and initial next buffer pointer) is written to the L2 cache, all remaining cache blocks are not written to the L2 cache. 3 ==> The first two aligned cache blocks holding the packet data (and initial next buffer pointer) are written to the L2 cache, all remaining cache blocks are not written to the L2 cache. */ uint64_t ipd_en : 1; /**< When set '1' enable the operation of the IPD. When clear '0', the IPD will appear to the IOB-arbiter to be applying backpressure, this causes the IOB-Arbiter to not send grants to NCB devices requesting to send packet data to the IPD. */ #else uint64_t ipd_en : 1; cvmx_ipd_mode_t opc_mode : 2; uint64_t pbp_en : 1; uint64_t wqe_lend : 1; uint64_t pkt_lend : 1; uint64_t naddbuf : 1; uint64_t addpkt : 1; uint64_t reset : 1; uint64_t len_m8 : 1; uint64_t pkt_off : 1; uint64_t ipd_full : 1; uint64_t pq_nabuf : 1; uint64_t pq_apkt : 1; uint64_t no_wptr : 1; uint64_t clken : 1; uint64_t rst_done : 1; uint64_t use_sop : 1; uint64_t reserved_18_63 : 46; #endif } s; struct cvmx_ipd_ctl_status_cn30xx { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_10_63 : 54; uint64_t len_m8 : 1; /**< Setting of this bit will subtract 8 from the data-length field in the header written wo the POW and the top of a MBUFF. OCTEAN generates a length that includes the length of the data + 8 for the header-field. By setting this bit the 8 for the instr-field will not be included in the length field of the header. NOTE: IPD is compliant with the spec when this field is '1'. */ uint64_t reset : 1; /**< When set '1' causes a reset of the IPD, except RSL. */ uint64_t addpkt : 1; /**< When IPD_CTL_STATUS[ADDPKT] is set, IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL] WILL be incremented by one for every work queue entry that is sent to POW. */ uint64_t naddbuf : 1; /**< When IPD_CTL_STATUS[NADDBUF] is set, IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL] WILL NOT be incremented when IPD allocates a buffer for a packet on the port. */ uint64_t pkt_lend : 1; /**< Changes PKT to little endian writes to L2C */ uint64_t wqe_lend : 1; /**< Changes WQE to little endian writes to L2C */ uint64_t pbp_en : 1; /**< Port back pressure enable. When set '1' enables the sending of port level backpressure to the Octane input-ports. Once enabled the sending of port-level-backpressure can not be disabled by changing the value of this bit. GMXX_INF_MODE[EN] must be set to '1' for each packet interface which requires port back pressure prior to setting PBP_EN to '1'. */ cvmx_ipd_mode_t opc_mode : 2; /**< 0 ==> All packet data (and next buffer pointers) is written through to memory. 1 ==> All packet data (and next buffer pointers) is written into the cache. 2 ==> The first aligned cache block holding the packet data (and initial next buffer pointer) is written to the L2 cache, all remaining cache blocks are not written to the L2 cache. 3 ==> The first two aligned cache blocks holding the packet data (and initial next buffer pointer) are written to the L2 cache, all remaining cache blocks are not written to the L2 cache. */ uint64_t ipd_en : 1; /**< When set '1' enable the operation of the IPD. */ #else uint64_t ipd_en : 1; cvmx_ipd_mode_t opc_mode : 2; uint64_t pbp_en : 1; uint64_t wqe_lend : 1; uint64_t pkt_lend : 1; uint64_t naddbuf : 1; uint64_t addpkt : 1; uint64_t reset : 1; uint64_t len_m8 : 1; uint64_t reserved_10_63 : 54; #endif } cn30xx; struct cvmx_ipd_ctl_status_cn30xx cn31xx; struct cvmx_ipd_ctl_status_cn30xx cn38xx; struct cvmx_ipd_ctl_status_cn38xxp2 { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_9_63 : 55; uint64_t reset : 1; /**< When set '1' causes a reset of the IPD, except RSL. */ uint64_t addpkt : 1; /**< When IPD_CTL_STATUS[ADDPKT] is set, IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL] WILL be incremented by one for every work queue entry that is sent to POW. PASS-2 Field. */ uint64_t naddbuf : 1; /**< When IPD_CTL_STATUS[NADDBUF] is set, IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL] WILL NOT be incremented when IPD allocates a buffer for a packet on the port. PASS-2 Field. */ uint64_t pkt_lend : 1; /**< Changes PKT to little endian writes to L2C */ uint64_t wqe_lend : 1; /**< Changes WQE to little endian writes to L2C */ uint64_t pbp_en : 1; /**< Port back pressure enable. When set '1' enables the sending of port level backpressure to the Octane input-ports. Once enabled the sending of port-level-backpressure can not be disabled by changing the value of this bit. */ cvmx_ipd_mode_t opc_mode : 2; /**< 0 ==> All packet data (and next buffer pointers) is written through to memory. 1 ==> All packet data (and next buffer pointers) is written into the cache. 2 ==> The first aligned cache block holding the packet data (and initial next buffer pointer) is written to the L2 cache, all remaining cache blocks are not written to the L2 cache. 3 ==> The first two aligned cache blocks holding the packet data (and initial next buffer pointer) are written to the L2 cache, all remaining cache blocks are not written to the L2 cache. */ uint64_t ipd_en : 1; /**< When set '1' enable the operation of the IPD. */ #else uint64_t ipd_en : 1; cvmx_ipd_mode_t opc_mode : 2; uint64_t pbp_en : 1; uint64_t wqe_lend : 1; uint64_t pkt_lend : 1; uint64_t naddbuf : 1; uint64_t addpkt : 1; uint64_t reset : 1; uint64_t reserved_9_63 : 55; #endif } cn38xxp2; struct cvmx_ipd_ctl_status_cn50xx { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_15_63 : 49; uint64_t no_wptr : 1; /**< When set '1' the WQE pointers will not be used and the WQE will be located at the front of the packet. */ uint64_t pq_apkt : 1; /**< Reserved. */ uint64_t pq_nabuf : 1; /**< Reserved. */ uint64_t ipd_full : 1; /**< When clear '0' the IPD acts normaly. When set '1' the IPD drive the IPD_BUFF_FULL line to the IOB-arbiter, telling it to not give grants to NCB devices sending packet data. */ uint64_t pkt_off : 1; /**< When clear '0' the IPD working normaly, buffering the received packet data. When set '1' the IPD will not buffer the received packet data. */ uint64_t len_m8 : 1; /**< Setting of this bit will subtract 8 from the data-length field in the header written wo the POW and the top of a MBUFF. OCTEAN generates a length that includes the length of the data + 8 for the header-field. By setting this bit the 8 for the instr-field will not be included in the length field of the header. NOTE: IPD is compliant with the spec when this field is '1'. */ uint64_t reset : 1; /**< When set '1' causes a reset of the IPD, except RSL. */ uint64_t addpkt : 1; /**< When IPD_CTL_STATUS[ADDPKT] is set, IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL] WILL be incremented by one for every work queue entry that is sent to POW. */ uint64_t naddbuf : 1; /**< When IPD_CTL_STATUS[NADDBUF] is set, IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL] WILL NOT be incremented when IPD allocates a buffer for a packet on the port. */ uint64_t pkt_lend : 1; /**< Changes PKT to little endian writes to L2C */ uint64_t wqe_lend : 1; /**< Changes WQE to little endian writes to L2C */ uint64_t pbp_en : 1; /**< Port back pressure enable. When set '1' enables the sending of port level backpressure to the Octane input-ports. Once enabled the sending of port-level-backpressure can not be disabled by changing the value of this bit. GMXX_INF_MODE[EN] must be set to '1' for each packet interface which requires port back pressure prior to setting PBP_EN to '1'. */ cvmx_ipd_mode_t opc_mode : 2; /**< 0 ==> All packet data (and next buffer pointers) is written through to memory. 1 ==> All packet data (and next buffer pointers) is written into the cache. 2 ==> The first aligned cache block holding the packet data (and initial next buffer pointer) is written to the L2 cache, all remaining cache blocks are not written to the L2 cache. 3 ==> The first two aligned cache blocks holding the packet data (and initial next buffer pointer) are written to the L2 cache, all remaining cache blocks are not written to the L2 cache. */ uint64_t ipd_en : 1; /**< When set '1' enable the operation of the IPD. When clear '0', the IPD will appear to the IOB-arbiter to be applying backpressure, this causes the IOB-Arbiter to not send grants to NCB devices requesting to send packet data to the IPD. */ #else uint64_t ipd_en : 1; cvmx_ipd_mode_t opc_mode : 2; uint64_t pbp_en : 1; uint64_t wqe_lend : 1; uint64_t pkt_lend : 1; uint64_t naddbuf : 1; uint64_t addpkt : 1; uint64_t reset : 1; uint64_t len_m8 : 1; uint64_t pkt_off : 1; uint64_t ipd_full : 1; uint64_t pq_nabuf : 1; uint64_t pq_apkt : 1; uint64_t no_wptr : 1; uint64_t reserved_15_63 : 49; #endif } cn50xx; struct cvmx_ipd_ctl_status_cn50xx cn52xx; struct cvmx_ipd_ctl_status_cn50xx cn52xxp1; struct cvmx_ipd_ctl_status_cn50xx cn56xx; struct cvmx_ipd_ctl_status_cn50xx cn56xxp1; struct cvmx_ipd_ctl_status_cn58xx { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_12_63 : 52; uint64_t ipd_full : 1; /**< When clear '0' the IPD acts normaly. When set '1' the IPD drive the IPD_BUFF_FULL line to the IOB-arbiter, telling it to not give grants to NCB devices sending packet data. */ uint64_t pkt_off : 1; /**< When clear '0' the IPD working normaly, buffering the received packet data. When set '1' the IPD will not buffer the received packet data. */ uint64_t len_m8 : 1; /**< Setting of this bit will subtract 8 from the data-length field in the header written wo the POW and the top of a MBUFF. OCTEAN PASS2 generates a length that includes the length of the data + 8 for the header-field. By setting this bit the 8 for the instr-field will not be included in the length field of the header. NOTE: IPD is compliant with the spec when this field is '1'. */ uint64_t reset : 1; /**< When set '1' causes a reset of the IPD, except RSL. */ uint64_t addpkt : 1; /**< When IPD_CTL_STATUS[ADDPKT] is set, IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL] WILL be incremented by one for every work queue entry that is sent to POW. PASS-2 Field. */ uint64_t naddbuf : 1; /**< When IPD_CTL_STATUS[NADDBUF] is set, IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL] WILL NOT be incremented when IPD allocates a buffer for a packet on the port. PASS-2 Field. */ uint64_t pkt_lend : 1; /**< Changes PKT to little endian writes to L2C */ uint64_t wqe_lend : 1; /**< Changes WQE to little endian writes to L2C */ uint64_t pbp_en : 1; /**< Port back pressure enable. When set '1' enables the sending of port level backpressure to the Octane input-ports. Once enabled the sending of port-level-backpressure can not be disabled by changing the value of this bit. */ cvmx_ipd_mode_t opc_mode : 2; /**< 0 ==> All packet data (and next buffer pointers) is written through to memory. 1 ==> All packet data (and next buffer pointers) is written into the cache. 2 ==> The first aligned cache block holding the packet data (and initial next buffer pointer) is written to the L2 cache, all remaining cache blocks are not written to the L2 cache. 3 ==> The first two aligned cache blocks holding the packet data (and initial next buffer pointer) are written to the L2 cache, all remaining cache blocks are not written to the L2 cache. */ uint64_t ipd_en : 1; /**< When set '1' enable the operation of the IPD. When clear '0', the IPD will appear to the IOB-arbiter to be applying backpressure, this causes the IOB-Arbiter to not send grants to NCB devices requesting to send packet data to the IPD. */ #else uint64_t ipd_en : 1; cvmx_ipd_mode_t opc_mode : 2; uint64_t pbp_en : 1; uint64_t wqe_lend : 1; uint64_t pkt_lend : 1; uint64_t naddbuf : 1; uint64_t addpkt : 1; uint64_t reset : 1; uint64_t len_m8 : 1; uint64_t pkt_off : 1; uint64_t ipd_full : 1; uint64_t reserved_12_63 : 52; #endif } cn58xx; struct cvmx_ipd_ctl_status_cn58xx cn58xxp1; struct cvmx_ipd_ctl_status_s cn63xx; struct cvmx_ipd_ctl_status_cn63xxp1 { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_16_63 : 48; uint64_t clken : 1; /**< Controls the conditional clocking within IPD 0=Allow HW to control the clocks 1=Force the clocks to be always on */ uint64_t no_wptr : 1; /**< When set '1' the WQE pointers will not be used and the WQE will be located at the front of the packet. When set: - IPD_WQE_FPA_QUEUE[WQE_QUE] is not used - IPD_1ST_MBUFF_SKIP[SKIP_SZ] must be at least 16 - If 16 <= IPD_1ST_MBUFF_SKIP[SKIP_SZ] <= 31 then the WQE will be written into the first 128B cache block in the first buffer that contains the packet. - If IPD_1ST_MBUFF_SKIP[SKIP_SZ] == 32 then the WQE will be written into the second 128B cache block in the first buffer that contains the packet. */ uint64_t pq_apkt : 1; /**< When set IPD_PORT_QOS_X_CNT WILL be incremented by one for every work queue entry that is sent to POW. */ uint64_t pq_nabuf : 1; /**< When set IPD_PORT_QOS_X_CNT WILL NOT be incremented when IPD allocates a buffer for a packet. */ uint64_t ipd_full : 1; /**< When clear '0' the IPD acts normaly. When set '1' the IPD drive the IPD_BUFF_FULL line to the IOB-arbiter, telling it to not give grants to NCB devices sending packet data. */ uint64_t pkt_off : 1; /**< When clear '0' the IPD working normaly, buffering the received packet data. When set '1' the IPD will not buffer the received packet data. */ uint64_t len_m8 : 1; /**< Setting of this bit will subtract 8 from the data-length field in the header written to the POW and the top of a MBUFF. OCTEAN generates a length that includes the length of the data + 8 for the header-field. By setting this bit the 8 for the instr-field will not be included in the length field of the header. NOTE: IPD is compliant with the spec when this field is '1'. */ uint64_t reset : 1; /**< When set '1' causes a reset of the IPD, except RSL. */ uint64_t addpkt : 1; /**< When IPD_CTL_STATUS[ADDPKT] is set, IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL], IPD_PORT_BP_COUNTERS2_PAIR(port)[CNT_VAL] and IPD_PORT_BP_COUNTERS3_PAIR(port)[CNT_VAL] WILL be incremented by one for every work queue entry that is sent to POW. */ uint64_t naddbuf : 1; /**< When IPD_CTL_STATUS[NADDBUF] is set, IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL], IPD_PORT_BP_COUNTERS2_PAIR(port)[CNT_VAL] and IPD_PORT_BP_COUNTERS3_PAIR(port)[CNT_VAL] WILL NOT be incremented when IPD allocates a buffer for a packet on the port. */ uint64_t pkt_lend : 1; /**< Changes PKT to little endian writes to L2C */ uint64_t wqe_lend : 1; /**< Changes WQE to little endian writes to L2C */ uint64_t pbp_en : 1; /**< Port back pressure enable. When set '1' enables the sending of port level backpressure to the Octane input-ports. The application should NOT de-assert this bit after asserting it. The receivers of this bit may have been put into backpressure mode and can only be released by IPD informing them that the backpressure has been released. GMXX_INF_MODE[EN] must be set to '1' for each packet interface which requires port back pressure prior to setting PBP_EN to '1'. */ cvmx_ipd_mode_t opc_mode : 2; /**< 0 ==> All packet data (and next buffer pointers) is written through to memory. 1 ==> All packet data (and next buffer pointers) is written into the cache. 2 ==> The first aligned cache block holding the packet data (and initial next buffer pointer) is written to the L2 cache, all remaining cache blocks are not written to the L2 cache. 3 ==> The first two aligned cache blocks holding the packet data (and initial next buffer pointer) are written to the L2 cache, all remaining cache blocks are not written to the L2 cache. */ uint64_t ipd_en : 1; /**< When set '1' enable the operation of the IPD. When clear '0', the IPD will appear to the IOB-arbiter to be applying backpressure, this causes the IOB-Arbiter to not send grants to NCB devices requesting to send packet data to the IPD. */ #else uint64_t ipd_en : 1; cvmx_ipd_mode_t opc_mode : 2; uint64_t pbp_en : 1; uint64_t wqe_lend : 1; uint64_t pkt_lend : 1; uint64_t naddbuf : 1; uint64_t addpkt : 1; uint64_t reset : 1; uint64_t len_m8 : 1; uint64_t pkt_off : 1; uint64_t ipd_full : 1; uint64_t pq_nabuf : 1; uint64_t pq_apkt : 1; uint64_t no_wptr : 1; uint64_t clken : 1; uint64_t reserved_16_63 : 48; #endif } cn63xxp1; }; typedef union cvmx_ipd_ctl_status cvmx_ipd_ctl_status_t; /** * cvmx_ipd_int_enb * * IPD_INTERRUPT_ENB = IPD Interrupt Enable Register * * Used to enable the various interrupting conditions of IPD */ union cvmx_ipd_int_enb { uint64_t u64; struct cvmx_ipd_int_enb_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_12_63 : 52; uint64_t pq_sub : 1; /**< Allows an interrupt to be sent when the corresponding bit in the IPD_INT_SUM is set. */ uint64_t pq_add : 1; /**< Allows an interrupt to be sent when the corresponding bit in the IPD_INT_SUM is set. */ uint64_t bc_ovr : 1; /**< Allows an interrupt to be sent when the corresponding bit in the IPD_INT_SUM is set. */ uint64_t d_coll : 1; /**< Allows an interrupt to be sent when the corresponding bit in the IPD_INT_SUM is set. */ uint64_t c_coll : 1; /**< Allows an interrupt to be sent when the corresponding bit in the IPD_INT_SUM is set. */ uint64_t cc_ovr : 1; /**< Allows an interrupt to be sent when the corresponding bit in the IPD_INT_SUM is set. */ uint64_t dc_ovr : 1; /**< Allows an interrupt to be sent when the corresponding bit in the IPD_INT_SUM is set. */ uint64_t bp_sub : 1; /**< Enables interrupts when a backpressure subtract has an illegal value. */ uint64_t prc_par3 : 1; /**< Enable parity error interrupts for bits [127:96] of the PBM memory. */ uint64_t prc_par2 : 1; /**< Enable parity error interrupts for bits [95:64] of the PBM memory. */ uint64_t prc_par1 : 1; /**< Enable parity error interrupts for bits [63:32] of the PBM memory. */ uint64_t prc_par0 : 1; /**< Enable parity error interrupts for bits [31:0] of the PBM memory. */ #else uint64_t prc_par0 : 1; uint64_t prc_par1 : 1; uint64_t prc_par2 : 1; uint64_t prc_par3 : 1; uint64_t bp_sub : 1; uint64_t dc_ovr : 1; uint64_t cc_ovr : 1; uint64_t c_coll : 1; uint64_t d_coll : 1; uint64_t bc_ovr : 1; uint64_t pq_add : 1; uint64_t pq_sub : 1; uint64_t reserved_12_63 : 52; #endif } s; struct cvmx_ipd_int_enb_cn30xx { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_5_63 : 59; uint64_t bp_sub : 1; /**< Enables interrupts when a backpressure subtract has an illegal value. */ uint64_t prc_par3 : 1; /**< Enable parity error interrupts for bits [127:96] of the PBM memory. */ uint64_t prc_par2 : 1; /**< Enable parity error interrupts for bits [95:64] of the PBM memory. */ uint64_t prc_par1 : 1; /**< Enable parity error interrupts for bits [63:32] of the PBM memory. */ uint64_t prc_par0 : 1; /**< Enable parity error interrupts for bits [31:0] of the PBM memory. */ #else uint64_t prc_par0 : 1; uint64_t prc_par1 : 1; uint64_t prc_par2 : 1; uint64_t prc_par3 : 1; uint64_t bp_sub : 1; uint64_t reserved_5_63 : 59; #endif } cn30xx; struct cvmx_ipd_int_enb_cn30xx cn31xx; struct cvmx_ipd_int_enb_cn38xx { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_10_63 : 54; uint64_t bc_ovr : 1; /**< Allows an interrupt to be sent when the corresponding bit in the IPD_INT_SUM is set. This is a PASS-3 Field. */ uint64_t d_coll : 1; /**< Allows an interrupt to be sent when the corresponding bit in the IPD_INT_SUM is set. This is a PASS-3 Field. */ uint64_t c_coll : 1; /**< Allows an interrupt to be sent when the corresponding bit in the IPD_INT_SUM is set. This is a PASS-3 Field. */ uint64_t cc_ovr : 1; /**< Allows an interrupt to be sent when the corresponding bit in the IPD_INT_SUM is set. This is a PASS-3 Field. */ uint64_t dc_ovr : 1; /**< Allows an interrupt to be sent when the corresponding bit in the IPD_INT_SUM is set. This is a PASS-3 Field. */ uint64_t bp_sub : 1; /**< Enables interrupts when a backpressure subtract has an illegal value. */ uint64_t prc_par3 : 1; /**< Enable parity error interrupts for bits [127:96] of the PBM memory. */ uint64_t prc_par2 : 1; /**< Enable parity error interrupts for bits [95:64] of the PBM memory. */ uint64_t prc_par1 : 1; /**< Enable parity error interrupts for bits [63:32] of the PBM memory. */ uint64_t prc_par0 : 1; /**< Enable parity error interrupts for bits [31:0] of the PBM memory. */ #else uint64_t prc_par0 : 1; uint64_t prc_par1 : 1; uint64_t prc_par2 : 1; uint64_t prc_par3 : 1; uint64_t bp_sub : 1; uint64_t dc_ovr : 1; uint64_t cc_ovr : 1; uint64_t c_coll : 1; uint64_t d_coll : 1; uint64_t bc_ovr : 1; uint64_t reserved_10_63 : 54; #endif } cn38xx; struct cvmx_ipd_int_enb_cn30xx cn38xxp2; struct cvmx_ipd_int_enb_cn38xx cn50xx; struct cvmx_ipd_int_enb_s cn52xx; struct cvmx_ipd_int_enb_s cn52xxp1; struct cvmx_ipd_int_enb_s cn56xx; struct cvmx_ipd_int_enb_s cn56xxp1; struct cvmx_ipd_int_enb_cn38xx cn58xx; struct cvmx_ipd_int_enb_cn38xx cn58xxp1; struct cvmx_ipd_int_enb_s cn63xx; struct cvmx_ipd_int_enb_s cn63xxp1; }; typedef union cvmx_ipd_int_enb cvmx_ipd_int_enb_t; /** * cvmx_ipd_int_sum * * IPD_INTERRUPT_SUM = IPD Interrupt Summary Register * * Set when an interrupt condition occurs, write '1' to clear. */ union cvmx_ipd_int_sum { uint64_t u64; struct cvmx_ipd_int_sum_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_12_63 : 52; uint64_t pq_sub : 1; /**< Set when a port-qos does an sub to the count that causes the counter to wrap. */ uint64_t pq_add : 1; /**< Set when a port-qos does an add to the count that causes the counter to wrap. */ uint64_t bc_ovr : 1; /**< Set when the byte-count to send to IOB overflows. */ uint64_t d_coll : 1; /**< Set when the packet/WQE data to be sent to IOB collides. */ uint64_t c_coll : 1; /**< Set when the packet/WQE commands to be sent to IOB collides. */ uint64_t cc_ovr : 1; /**< Set when the command credits to the IOB overflow. */ uint64_t dc_ovr : 1; /**< Set when the data credits to the IOB overflow. */ uint64_t bp_sub : 1; /**< Set when a backpressure subtract is done with a supplied illegal value. */ uint64_t prc_par3 : 1; /**< Set when a parity error is dected for bits [127:96] of the PBM memory. */ uint64_t prc_par2 : 1; /**< Set when a parity error is dected for bits [95:64] of the PBM memory. */ uint64_t prc_par1 : 1; /**< Set when a parity error is dected for bits [63:32] of the PBM memory. */ uint64_t prc_par0 : 1; /**< Set when a parity error is dected for bits [31:0] of the PBM memory. */ #else uint64_t prc_par0 : 1; uint64_t prc_par1 : 1; uint64_t prc_par2 : 1; uint64_t prc_par3 : 1; uint64_t bp_sub : 1; uint64_t dc_ovr : 1; uint64_t cc_ovr : 1; uint64_t c_coll : 1; uint64_t d_coll : 1; uint64_t bc_ovr : 1; uint64_t pq_add : 1; uint64_t pq_sub : 1; uint64_t reserved_12_63 : 52; #endif } s; struct cvmx_ipd_int_sum_cn30xx { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_5_63 : 59; uint64_t bp_sub : 1; /**< Set when a backpressure subtract is done with a supplied illegal value. */ uint64_t prc_par3 : 1; /**< Set when a parity error is dected for bits [127:96] of the PBM memory. */ uint64_t prc_par2 : 1; /**< Set when a parity error is dected for bits [95:64] of the PBM memory. */ uint64_t prc_par1 : 1; /**< Set when a parity error is dected for bits [63:32] of the PBM memory. */ uint64_t prc_par0 : 1; /**< Set when a parity error is dected for bits [31:0] of the PBM memory. */ #else uint64_t prc_par0 : 1; uint64_t prc_par1 : 1; uint64_t prc_par2 : 1; uint64_t prc_par3 : 1; uint64_t bp_sub : 1; uint64_t reserved_5_63 : 59; #endif } cn30xx; struct cvmx_ipd_int_sum_cn30xx cn31xx; struct cvmx_ipd_int_sum_cn38xx { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_10_63 : 54; uint64_t bc_ovr : 1; /**< Set when the byte-count to send to IOB overflows. This is a PASS-3 Field. */ uint64_t d_coll : 1; /**< Set when the packet/WQE data to be sent to IOB collides. This is a PASS-3 Field. */ uint64_t c_coll : 1; /**< Set when the packet/WQE commands to be sent to IOB collides. This is a PASS-3 Field. */ uint64_t cc_ovr : 1; /**< Set when the command credits to the IOB overflow. This is a PASS-3 Field. */ uint64_t dc_ovr : 1; /**< Set when the data credits to the IOB overflow. This is a PASS-3 Field. */ uint64_t bp_sub : 1; /**< Set when a backpressure subtract is done with a supplied illegal value. */ uint64_t prc_par3 : 1; /**< Set when a parity error is dected for bits [127:96] of the PBM memory. */ uint64_t prc_par2 : 1; /**< Set when a parity error is dected for bits [95:64] of the PBM memory. */ uint64_t prc_par1 : 1; /**< Set when a parity error is dected for bits [63:32] of the PBM memory. */ uint64_t prc_par0 : 1; /**< Set when a parity error is dected for bits [31:0] of the PBM memory. */ #else uint64_t prc_par0 : 1; uint64_t prc_par1 : 1; uint64_t prc_par2 : 1; uint64_t prc_par3 : 1; uint64_t bp_sub : 1; uint64_t dc_ovr : 1; uint64_t cc_ovr : 1; uint64_t c_coll : 1; uint64_t d_coll : 1; uint64_t bc_ovr : 1; uint64_t reserved_10_63 : 54; #endif } cn38xx; struct cvmx_ipd_int_sum_cn30xx cn38xxp2; struct cvmx_ipd_int_sum_cn38xx cn50xx; struct cvmx_ipd_int_sum_s cn52xx; struct cvmx_ipd_int_sum_s cn52xxp1; struct cvmx_ipd_int_sum_s cn56xx; struct cvmx_ipd_int_sum_s cn56xxp1; struct cvmx_ipd_int_sum_cn38xx cn58xx; struct cvmx_ipd_int_sum_cn38xx cn58xxp1; struct cvmx_ipd_int_sum_s cn63xx; struct cvmx_ipd_int_sum_s cn63xxp1; }; typedef union cvmx_ipd_int_sum cvmx_ipd_int_sum_t; /** * cvmx_ipd_not_1st_mbuff_skip * * IPD_NOT_1ST_MBUFF_SKIP = IPD Not First MBUFF Word Skip Size * * The number of words that the IPD will skip when writing any MBUFF that is not the first. */ union cvmx_ipd_not_1st_mbuff_skip { uint64_t u64; struct cvmx_ipd_not_1st_mbuff_skip_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_6_63 : 58; uint64_t skip_sz : 6; /**< The number of 8-byte words from the top of any MBUFF, that is not the 1st MBUFF, that the IPD will write the next-pointer. Legal values are 0 to 32, where the MAX value is also limited to: IPD_PACKET_MBUFF_SIZE[MB_SIZE] - 16. */ #else uint64_t skip_sz : 6; uint64_t reserved_6_63 : 58; #endif } s; struct cvmx_ipd_not_1st_mbuff_skip_s cn30xx; struct cvmx_ipd_not_1st_mbuff_skip_s cn31xx; struct cvmx_ipd_not_1st_mbuff_skip_s cn38xx; struct cvmx_ipd_not_1st_mbuff_skip_s cn38xxp2; struct cvmx_ipd_not_1st_mbuff_skip_s cn50xx; struct cvmx_ipd_not_1st_mbuff_skip_s cn52xx; struct cvmx_ipd_not_1st_mbuff_skip_s cn52xxp1; struct cvmx_ipd_not_1st_mbuff_skip_s cn56xx; struct cvmx_ipd_not_1st_mbuff_skip_s cn56xxp1; struct cvmx_ipd_not_1st_mbuff_skip_s cn58xx; struct cvmx_ipd_not_1st_mbuff_skip_s cn58xxp1; struct cvmx_ipd_not_1st_mbuff_skip_s cn63xx; struct cvmx_ipd_not_1st_mbuff_skip_s cn63xxp1; }; typedef union cvmx_ipd_not_1st_mbuff_skip cvmx_ipd_not_1st_mbuff_skip_t; /** * cvmx_ipd_packet_mbuff_size * * IPD_PACKET_MBUFF_SIZE = IPD's PACKET MUBUF Size In Words * * The number of words in a MBUFF used for packet data store. */ union cvmx_ipd_packet_mbuff_size { uint64_t u64; struct cvmx_ipd_packet_mbuff_size_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_12_63 : 52; uint64_t mb_size : 12; /**< The number of 8-byte words in a MBUF. This must be a number in the range of 32 to 2048. This is also the size of the FPA's Queue-0 Free-Page. */ #else uint64_t mb_size : 12; uint64_t reserved_12_63 : 52; #endif } s; struct cvmx_ipd_packet_mbuff_size_s cn30xx; struct cvmx_ipd_packet_mbuff_size_s cn31xx; struct cvmx_ipd_packet_mbuff_size_s cn38xx; struct cvmx_ipd_packet_mbuff_size_s cn38xxp2; struct cvmx_ipd_packet_mbuff_size_s cn50xx; struct cvmx_ipd_packet_mbuff_size_s cn52xx; struct cvmx_ipd_packet_mbuff_size_s cn52xxp1; struct cvmx_ipd_packet_mbuff_size_s cn56xx; struct cvmx_ipd_packet_mbuff_size_s cn56xxp1; struct cvmx_ipd_packet_mbuff_size_s cn58xx; struct cvmx_ipd_packet_mbuff_size_s cn58xxp1; struct cvmx_ipd_packet_mbuff_size_s cn63xx; struct cvmx_ipd_packet_mbuff_size_s cn63xxp1; }; typedef union cvmx_ipd_packet_mbuff_size cvmx_ipd_packet_mbuff_size_t; /** * cvmx_ipd_pkt_ptr_valid * * IPD_PKT_PTR_VALID = IPD's Packet Pointer Valid * * The value of the packet-pointer fetched and in the valid register. */ union cvmx_ipd_pkt_ptr_valid { uint64_t u64; struct cvmx_ipd_pkt_ptr_valid_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_29_63 : 35; uint64_t ptr : 29; /**< Pointer value. */ #else uint64_t ptr : 29; uint64_t reserved_29_63 : 35; #endif } s; struct cvmx_ipd_pkt_ptr_valid_s cn30xx; struct cvmx_ipd_pkt_ptr_valid_s cn31xx; struct cvmx_ipd_pkt_ptr_valid_s cn38xx; struct cvmx_ipd_pkt_ptr_valid_s cn50xx; struct cvmx_ipd_pkt_ptr_valid_s cn52xx; struct cvmx_ipd_pkt_ptr_valid_s cn52xxp1; struct cvmx_ipd_pkt_ptr_valid_s cn56xx; struct cvmx_ipd_pkt_ptr_valid_s cn56xxp1; struct cvmx_ipd_pkt_ptr_valid_s cn58xx; struct cvmx_ipd_pkt_ptr_valid_s cn58xxp1; struct cvmx_ipd_pkt_ptr_valid_s cn63xx; struct cvmx_ipd_pkt_ptr_valid_s cn63xxp1; }; typedef union cvmx_ipd_pkt_ptr_valid cvmx_ipd_pkt_ptr_valid_t; /** * cvmx_ipd_port#_bp_page_cnt * * IPD_PORTX_BP_PAGE_CNT = IPD Port Backpressure Page Count * * The number of pages in use by the port that when exceeded, backpressure will be applied to the port. * See also IPD_PORTX_BP_PAGE_CNT2 * See also IPD_PORTX_BP_PAGE_CNT3 */ union cvmx_ipd_portx_bp_page_cnt { uint64_t u64; struct cvmx_ipd_portx_bp_page_cnt_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_18_63 : 46; uint64_t bp_enb : 1; /**< When set '1' BP will be applied, if '0' BP will not be applied to port. */ uint64_t page_cnt : 17; /**< The number of page pointers assigned to the port, that when exceeded will cause back-pressure to be applied to the port. This value is in 256 page-pointer increments, (i.e. 0 = 0-page-ptrs, 1 = 256-page-ptrs,..) */ #else uint64_t page_cnt : 17; uint64_t bp_enb : 1; uint64_t reserved_18_63 : 46; #endif } s; struct cvmx_ipd_portx_bp_page_cnt_s cn30xx; struct cvmx_ipd_portx_bp_page_cnt_s cn31xx; struct cvmx_ipd_portx_bp_page_cnt_s cn38xx; struct cvmx_ipd_portx_bp_page_cnt_s cn38xxp2; struct cvmx_ipd_portx_bp_page_cnt_s cn50xx; struct cvmx_ipd_portx_bp_page_cnt_s cn52xx; struct cvmx_ipd_portx_bp_page_cnt_s cn52xxp1; struct cvmx_ipd_portx_bp_page_cnt_s cn56xx; struct cvmx_ipd_portx_bp_page_cnt_s cn56xxp1; struct cvmx_ipd_portx_bp_page_cnt_s cn58xx; struct cvmx_ipd_portx_bp_page_cnt_s cn58xxp1; struct cvmx_ipd_portx_bp_page_cnt_s cn63xx; struct cvmx_ipd_portx_bp_page_cnt_s cn63xxp1; }; typedef union cvmx_ipd_portx_bp_page_cnt cvmx_ipd_portx_bp_page_cnt_t; /** * cvmx_ipd_port#_bp_page_cnt2 * * IPD_PORTX_BP_PAGE_CNT2 = IPD Port Backpressure Page Count * * The number of pages in use by the port that when exceeded, backpressure will be applied to the port. * See also IPD_PORTX_BP_PAGE_CNT * See also IPD_PORTX_BP_PAGE_CNT3 */ union cvmx_ipd_portx_bp_page_cnt2 { uint64_t u64; struct cvmx_ipd_portx_bp_page_cnt2_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_18_63 : 46; uint64_t bp_enb : 1; /**< When set '1' BP will be applied, if '0' BP will not be applied to port. */ uint64_t page_cnt : 17; /**< The number of page pointers assigned to the port, that when exceeded will cause back-pressure to be applied to the port. This value is in 256 page-pointer increments, (i.e. 0 = 0-page-ptrs, 1 = 256-page-ptrs,..) */ #else uint64_t page_cnt : 17; uint64_t bp_enb : 1; uint64_t reserved_18_63 : 46; #endif } s; struct cvmx_ipd_portx_bp_page_cnt2_s cn52xx; struct cvmx_ipd_portx_bp_page_cnt2_s cn52xxp1; struct cvmx_ipd_portx_bp_page_cnt2_s cn56xx; struct cvmx_ipd_portx_bp_page_cnt2_s cn56xxp1; struct cvmx_ipd_portx_bp_page_cnt2_s cn63xx; struct cvmx_ipd_portx_bp_page_cnt2_s cn63xxp1; }; typedef union cvmx_ipd_portx_bp_page_cnt2 cvmx_ipd_portx_bp_page_cnt2_t; /** * cvmx_ipd_port#_bp_page_cnt3 * * IPD_PORTX_BP_PAGE_CNT3 = IPD Port Backpressure Page Count * * The number of pages in use by the port that when exceeded, backpressure will be applied to the port. * See also IPD_PORTX_BP_PAGE_CNT * See also IPD_PORTX_BP_PAGE_CNT2 */ union cvmx_ipd_portx_bp_page_cnt3 { uint64_t u64; struct cvmx_ipd_portx_bp_page_cnt3_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_18_63 : 46; uint64_t bp_enb : 1; /**< When set '1' BP will be applied, if '0' BP will not be applied to port. */ uint64_t page_cnt : 17; /**< The number of page pointers assigned to the port, that when exceeded will cause back-pressure to be applied to the port. This value is in 256 page-pointer increments, (i.e. 0 = 0-page-ptrs, 1 = 256-page-ptrs,..) */ #else uint64_t page_cnt : 17; uint64_t bp_enb : 1; uint64_t reserved_18_63 : 46; #endif } s; struct cvmx_ipd_portx_bp_page_cnt3_s cn63xx; struct cvmx_ipd_portx_bp_page_cnt3_s cn63xxp1; }; typedef union cvmx_ipd_portx_bp_page_cnt3 cvmx_ipd_portx_bp_page_cnt3_t; /** * cvmx_ipd_port_bp_counters2_pair# * * IPD_PORT_BP_COUNTERS2_PAIRX = MBUF Counters port Ports used to generate Back Pressure Per Port. * See also IPD_PORT_BP_COUNTERS_PAIRX * See also IPD_PORT_BP_COUNTERS3_PAIRX */ union cvmx_ipd_port_bp_counters2_pairx { uint64_t u64; struct cvmx_ipd_port_bp_counters2_pairx_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_25_63 : 39; uint64_t cnt_val : 25; /**< Number of MBUFs being used by data on this port. */ #else uint64_t cnt_val : 25; uint64_t reserved_25_63 : 39; #endif } s; struct cvmx_ipd_port_bp_counters2_pairx_s cn52xx; struct cvmx_ipd_port_bp_counters2_pairx_s cn52xxp1; struct cvmx_ipd_port_bp_counters2_pairx_s cn56xx; struct cvmx_ipd_port_bp_counters2_pairx_s cn56xxp1; struct cvmx_ipd_port_bp_counters2_pairx_s cn63xx; struct cvmx_ipd_port_bp_counters2_pairx_s cn63xxp1; }; typedef union cvmx_ipd_port_bp_counters2_pairx cvmx_ipd_port_bp_counters2_pairx_t; /** * cvmx_ipd_port_bp_counters3_pair# * * IPD_PORT_BP_COUNTERS3_PAIRX = MBUF Counters port Ports used to generate Back Pressure Per Port. * See also IPD_PORT_BP_COUNTERS_PAIRX * See also IPD_PORT_BP_COUNTERS2_PAIRX */ union cvmx_ipd_port_bp_counters3_pairx { uint64_t u64; struct cvmx_ipd_port_bp_counters3_pairx_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_25_63 : 39; uint64_t cnt_val : 25; /**< Number of MBUFs being used by data on this port. */ #else uint64_t cnt_val : 25; uint64_t reserved_25_63 : 39; #endif } s; struct cvmx_ipd_port_bp_counters3_pairx_s cn63xx; struct cvmx_ipd_port_bp_counters3_pairx_s cn63xxp1; }; typedef union cvmx_ipd_port_bp_counters3_pairx cvmx_ipd_port_bp_counters3_pairx_t; /** * cvmx_ipd_port_bp_counters_pair# * * IPD_PORT_BP_COUNTERS_PAIRX = MBUF Counters port Ports used to generate Back Pressure Per Port. * See also IPD_PORT_BP_COUNTERS2_PAIRX * See also IPD_PORT_BP_COUNTERS3_PAIRX */ union cvmx_ipd_port_bp_counters_pairx { uint64_t u64; struct cvmx_ipd_port_bp_counters_pairx_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_25_63 : 39; uint64_t cnt_val : 25; /**< Number of MBUFs being used by data on this port. */ #else uint64_t cnt_val : 25; uint64_t reserved_25_63 : 39; #endif } s; struct cvmx_ipd_port_bp_counters_pairx_s cn30xx; struct cvmx_ipd_port_bp_counters_pairx_s cn31xx; struct cvmx_ipd_port_bp_counters_pairx_s cn38xx; struct cvmx_ipd_port_bp_counters_pairx_s cn38xxp2; struct cvmx_ipd_port_bp_counters_pairx_s cn50xx; struct cvmx_ipd_port_bp_counters_pairx_s cn52xx; struct cvmx_ipd_port_bp_counters_pairx_s cn52xxp1; struct cvmx_ipd_port_bp_counters_pairx_s cn56xx; struct cvmx_ipd_port_bp_counters_pairx_s cn56xxp1; struct cvmx_ipd_port_bp_counters_pairx_s cn58xx; struct cvmx_ipd_port_bp_counters_pairx_s cn58xxp1; struct cvmx_ipd_port_bp_counters_pairx_s cn63xx; struct cvmx_ipd_port_bp_counters_pairx_s cn63xxp1; }; typedef union cvmx_ipd_port_bp_counters_pairx cvmx_ipd_port_bp_counters_pairx_t; /** * cvmx_ipd_port_qos_#_cnt * * IPD_PORT_QOS_X_CNT = IPD PortX QOS-0 Count * * A counter per port/qos. Counter are originzed in sequence where the first 8 counter (0-7) belong to Port-0 * QOS 0-7 respectively followed by port 1 at (8-15), etc * Ports 0-3, 32-43 */ union cvmx_ipd_port_qos_x_cnt { uint64_t u64; struct cvmx_ipd_port_qos_x_cnt_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t wmark : 32; /**< When the field CNT after being modified is equal to or crosses this value (i.e. value was greater than then becomes less then, or value was less than and becomes greater than) the corresponding bit in IPD_PORT_QOS_INTX is set. */ uint64_t cnt : 32; /**< The packet related count that is incremented as specified by IPD_SUB_PORT_QOS_CNT. */ #else uint64_t cnt : 32; uint64_t wmark : 32; #endif } s; struct cvmx_ipd_port_qos_x_cnt_s cn52xx; struct cvmx_ipd_port_qos_x_cnt_s cn52xxp1; struct cvmx_ipd_port_qos_x_cnt_s cn56xx; struct cvmx_ipd_port_qos_x_cnt_s cn56xxp1; struct cvmx_ipd_port_qos_x_cnt_s cn63xx; struct cvmx_ipd_port_qos_x_cnt_s cn63xxp1; }; typedef union cvmx_ipd_port_qos_x_cnt cvmx_ipd_port_qos_x_cnt_t; /** * cvmx_ipd_port_qos_int# * * IPD_PORT_QOS_INTX = IPD PORT-QOS Interrupt * * See the description for IPD_PORT_QOS_X_CNT * * 0=P0-7; 1=P8-15; 2=P16-23; 3=P24-31; 4=P32-39; 5=P40-47; 6=P48-55; 7=P56-63 * * Only ports used are: P0-3, P32-39, and P40-43. Therefore only IPD_PORT_QOS_INT0, IPD_PORT_QOS_INT4, * and IPD_PORT_QOS_INT5 exist and, furthermore: <63:32> of IPD_PORT_QOS_INT0 and IPD_PORT_QOS_INT5, * are reserved. */ union cvmx_ipd_port_qos_intx { uint64_t u64; struct cvmx_ipd_port_qos_intx_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t intr : 64; /**< Interrupt bits. */ #else uint64_t intr : 64; #endif } s; struct cvmx_ipd_port_qos_intx_s cn52xx; struct cvmx_ipd_port_qos_intx_s cn52xxp1; struct cvmx_ipd_port_qos_intx_s cn56xx; struct cvmx_ipd_port_qos_intx_s cn56xxp1; struct cvmx_ipd_port_qos_intx_s cn63xx; struct cvmx_ipd_port_qos_intx_s cn63xxp1; }; typedef union cvmx_ipd_port_qos_intx cvmx_ipd_port_qos_intx_t; /** * cvmx_ipd_port_qos_int_enb# * * IPD_PORT_QOS_INT_ENBX = IPD PORT-QOS Interrupt Enable * * When the IPD_PORT_QOS_INTX[\#] is '1' and IPD_PORT_QOS_INT_ENBX[\#] is '1' a interrupt will be generated. */ union cvmx_ipd_port_qos_int_enbx { uint64_t u64; struct cvmx_ipd_port_qos_int_enbx_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t enb : 64; /**< Enable bits. */ #else uint64_t enb : 64; #endif } s; struct cvmx_ipd_port_qos_int_enbx_s cn52xx; struct cvmx_ipd_port_qos_int_enbx_s cn52xxp1; struct cvmx_ipd_port_qos_int_enbx_s cn56xx; struct cvmx_ipd_port_qos_int_enbx_s cn56xxp1; struct cvmx_ipd_port_qos_int_enbx_s cn63xx; struct cvmx_ipd_port_qos_int_enbx_s cn63xxp1; }; typedef union cvmx_ipd_port_qos_int_enbx cvmx_ipd_port_qos_int_enbx_t; /** * cvmx_ipd_prc_hold_ptr_fifo_ctl * * IPD_PRC_HOLD_PTR_FIFO_CTL = IPD's PRC Holding Pointer FIFO Control * * Allows reading of the Page-Pointers stored in the IPD's PRC Holding Fifo. */ union cvmx_ipd_prc_hold_ptr_fifo_ctl { uint64_t u64; struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_39_63 : 25; uint64_t max_pkt : 3; /**< Maximum number of Packet-Pointers that COULD be in the FIFO. */ uint64_t praddr : 3; /**< Present Packet-Pointer read address. */ uint64_t ptr : 29; /**< The output of the prc-holding-fifo. */ uint64_t cena : 1; /**< Active low Chip Enable that controls the MUX-select that steers [RADDR] to the fifo. *WARNING - Setting this field to '0' will allow reading of the memories thorugh the PTR field, but will cause unpredictable operation of the IPD under normal operation. */ uint64_t raddr : 3; /**< Sets the address to read from in the holding. fifo in the PRC. This FIFO holds Packet-Pointers to be used for packet data storage. */ #else uint64_t raddr : 3; uint64_t cena : 1; uint64_t ptr : 29; uint64_t praddr : 3; uint64_t max_pkt : 3; uint64_t reserved_39_63 : 25; #endif } s; struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn30xx; struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn31xx; struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn38xx; struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn50xx; struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn52xx; struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn52xxp1; struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn56xx; struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn56xxp1; struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn58xx; struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn58xxp1; struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn63xx; struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn63xxp1; }; typedef union cvmx_ipd_prc_hold_ptr_fifo_ctl cvmx_ipd_prc_hold_ptr_fifo_ctl_t; /** * cvmx_ipd_prc_port_ptr_fifo_ctl * * IPD_PRC_PORT_PTR_FIFO_CTL = IPD's PRC PORT Pointer FIFO Control * * Allows reading of the Page-Pointers stored in the IPD's PRC PORT Fifo. */ union cvmx_ipd_prc_port_ptr_fifo_ctl { uint64_t u64; struct cvmx_ipd_prc_port_ptr_fifo_ctl_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_44_63 : 20; uint64_t max_pkt : 7; /**< Maximum number of Packet-Pointers that are in in the FIFO. */ uint64_t ptr : 29; /**< The output of the prc-port-ptr-fifo. */ uint64_t cena : 1; /**< Active low Chip Enable to the read port of the pwp_fifo. This bit also controls the MUX-select that steers [RADDR] to the pwp_fifo. *WARNING - Setting this field to '0' will allow reading of the memories thorugh the PTR field, but will cause unpredictable operation of the IPD under normal operation. */ uint64_t raddr : 7; /**< Sets the address to read from in the port fifo in the PRC. This FIFO holds Packet-Pointers to be used for packet data storage. */ #else uint64_t raddr : 7; uint64_t cena : 1; uint64_t ptr : 29; uint64_t max_pkt : 7; uint64_t reserved_44_63 : 20; #endif } s; struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn30xx; struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn31xx; struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn38xx; struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn50xx; struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn52xx; struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn52xxp1; struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn56xx; struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn56xxp1; struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn58xx; struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn58xxp1; struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn63xx; struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn63xxp1; }; typedef union cvmx_ipd_prc_port_ptr_fifo_ctl cvmx_ipd_prc_port_ptr_fifo_ctl_t; /** * cvmx_ipd_ptr_count * * IPD_PTR_COUNT = IPD Page Pointer Count * * Shows the number of WQE and Packet Page Pointers stored in the IPD. */ union cvmx_ipd_ptr_count { uint64_t u64; struct cvmx_ipd_ptr_count_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_19_63 : 45; uint64_t pktv_cnt : 1; /**< PKT Ptr Valid. */ uint64_t wqev_cnt : 1; /**< WQE Ptr Valid. This value is '1' when a WQE is being for use by the IPD. The value of this field should be added to tha value of the WQE_PCNT field, of this register, for a total count of the WQE Page Pointers being held by IPD. When IPD_CTL_STATUS[NO_WPTR] is set '1' this field represents a Packet-Pointer NOT a WQE pointer. */ uint64_t pfif_cnt : 3; /**< See PKT_PCNT. */ uint64_t pkt_pcnt : 7; /**< This value plus PFIF_CNT plus IPD_PRC_PORT_PTR_FIFO_CTL[MAX_PKT] is the number of PKT Page Pointers in IPD. */ uint64_t wqe_pcnt : 7; /**< Number of page pointers for WQE storage that are buffered in the IPD. The total count is the value of this buffer plus the field [WQEV_CNT]. For PASS-1 (which does not have the WQEV_CNT field) when the value of this register is '0' there still may be 1 pointer being held by IPD. */ #else uint64_t wqe_pcnt : 7; uint64_t pkt_pcnt : 7; uint64_t pfif_cnt : 3; uint64_t wqev_cnt : 1; uint64_t pktv_cnt : 1; uint64_t reserved_19_63 : 45; #endif } s; struct cvmx_ipd_ptr_count_s cn30xx; struct cvmx_ipd_ptr_count_s cn31xx; struct cvmx_ipd_ptr_count_s cn38xx; struct cvmx_ipd_ptr_count_s cn38xxp2; struct cvmx_ipd_ptr_count_s cn50xx; struct cvmx_ipd_ptr_count_s cn52xx; struct cvmx_ipd_ptr_count_s cn52xxp1; struct cvmx_ipd_ptr_count_s cn56xx; struct cvmx_ipd_ptr_count_s cn56xxp1; struct cvmx_ipd_ptr_count_s cn58xx; struct cvmx_ipd_ptr_count_s cn58xxp1; struct cvmx_ipd_ptr_count_s cn63xx; struct cvmx_ipd_ptr_count_s cn63xxp1; }; typedef union cvmx_ipd_ptr_count cvmx_ipd_ptr_count_t; /** * cvmx_ipd_pwp_ptr_fifo_ctl * * IPD_PWP_PTR_FIFO_CTL = IPD's PWP Pointer FIFO Control * * Allows reading of the Page-Pointers stored in the IPD's PWP Fifo. */ union cvmx_ipd_pwp_ptr_fifo_ctl { uint64_t u64; struct cvmx_ipd_pwp_ptr_fifo_ctl_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_61_63 : 3; uint64_t max_cnts : 7; /**< Maximum number of Packet-Pointers or WQE-Pointers that COULD be in the FIFO. When IPD_CTL_STATUS[NO_WPTR] is set '1' this field only represents the Max number of Packet-Pointers, WQE-Pointers are not used in this mode. */ uint64_t wraddr : 8; /**< Present FIFO WQE Read address. */ uint64_t praddr : 8; /**< Present FIFO Packet Read address. */ uint64_t ptr : 29; /**< The output of the pwp_fifo. */ uint64_t cena : 1; /**< Active low Chip Enable to the read port of the pwp_fifo. This bit also controls the MUX-select that steers [RADDR] to the pwp_fifo. *WARNING - Setting this field to '0' will allow reading of the memories thorugh the PTR field, but will cause unpredictable operation of the IPD under normal operation. */ uint64_t raddr : 8; /**< Sets the address to read from in the pwp_fifo. Addresses 0 through 63 contain Packet-Pointers and addresses 64 through 127 contain WQE-Pointers. When IPD_CTL_STATUS[NO_WPTR] is set '1' addresses 64 through 127 are not valid. */ #else uint64_t raddr : 8; uint64_t cena : 1; uint64_t ptr : 29; uint64_t praddr : 8; uint64_t wraddr : 8; uint64_t max_cnts : 7; uint64_t reserved_61_63 : 3; #endif } s; struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn30xx; struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn31xx; struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn38xx; struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn50xx; struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn52xx; struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn52xxp1; struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn56xx; struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn56xxp1; struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn58xx; struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn58xxp1; struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn63xx; struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn63xxp1; }; typedef union cvmx_ipd_pwp_ptr_fifo_ctl cvmx_ipd_pwp_ptr_fifo_ctl_t; /** * cvmx_ipd_qos#_red_marks * * IPD_QOS0_RED_MARKS = IPD QOS 0 Marks Red High Low * * Set the pass-drop marks for qos level. */ union cvmx_ipd_qosx_red_marks { uint64_t u64; struct cvmx_ipd_qosx_red_marks_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t drop : 32; /**< Packets will be dropped when the average value of IPD_QUE0_FREE_PAGE_CNT is equal to or less than this value. */ uint64_t pass : 32; /**< Packets will be passed when the average value of IPD_QUE0_FREE_PAGE_CNT is larger than this value. */ #else uint64_t pass : 32; uint64_t drop : 32; #endif } s; struct cvmx_ipd_qosx_red_marks_s cn30xx; struct cvmx_ipd_qosx_red_marks_s cn31xx; struct cvmx_ipd_qosx_red_marks_s cn38xx; struct cvmx_ipd_qosx_red_marks_s cn38xxp2; struct cvmx_ipd_qosx_red_marks_s cn50xx; struct cvmx_ipd_qosx_red_marks_s cn52xx; struct cvmx_ipd_qosx_red_marks_s cn52xxp1; struct cvmx_ipd_qosx_red_marks_s cn56xx; struct cvmx_ipd_qosx_red_marks_s cn56xxp1; struct cvmx_ipd_qosx_red_marks_s cn58xx; struct cvmx_ipd_qosx_red_marks_s cn58xxp1; struct cvmx_ipd_qosx_red_marks_s cn63xx; struct cvmx_ipd_qosx_red_marks_s cn63xxp1; }; typedef union cvmx_ipd_qosx_red_marks cvmx_ipd_qosx_red_marks_t; /** * cvmx_ipd_que0_free_page_cnt * * IPD_QUE0_FREE_PAGE_CNT = IPD Queue0 Free Page Count * * Number of Free-Page Pointer that are available for use in the FPA for Queue-0. */ union cvmx_ipd_que0_free_page_cnt { uint64_t u64; struct cvmx_ipd_que0_free_page_cnt_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_32_63 : 32; uint64_t q0_pcnt : 32; /**< Number of Queue-0 Page Pointers Available. */ #else uint64_t q0_pcnt : 32; uint64_t reserved_32_63 : 32; #endif } s; struct cvmx_ipd_que0_free_page_cnt_s cn30xx; struct cvmx_ipd_que0_free_page_cnt_s cn31xx; struct cvmx_ipd_que0_free_page_cnt_s cn38xx; struct cvmx_ipd_que0_free_page_cnt_s cn38xxp2; struct cvmx_ipd_que0_free_page_cnt_s cn50xx; struct cvmx_ipd_que0_free_page_cnt_s cn52xx; struct cvmx_ipd_que0_free_page_cnt_s cn52xxp1; struct cvmx_ipd_que0_free_page_cnt_s cn56xx; struct cvmx_ipd_que0_free_page_cnt_s cn56xxp1; struct cvmx_ipd_que0_free_page_cnt_s cn58xx; struct cvmx_ipd_que0_free_page_cnt_s cn58xxp1; struct cvmx_ipd_que0_free_page_cnt_s cn63xx; struct cvmx_ipd_que0_free_page_cnt_s cn63xxp1; }; typedef union cvmx_ipd_que0_free_page_cnt cvmx_ipd_que0_free_page_cnt_t; /** * cvmx_ipd_red_port_enable * * IPD_RED_PORT_ENABLE = IPD RED Port Enable * * Set the pass-drop marks for qos level. */ union cvmx_ipd_red_port_enable { uint64_t u64; struct cvmx_ipd_red_port_enable_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t prb_dly : 14; /**< Number (core clocks periods + 68) * 8 to wait before calculating the new packet drop probability for each QOS level. */ uint64_t avg_dly : 14; /**< Number (core clocks periods + 10) * 8 to wait before calculating the moving average for each QOS level. Larger AVG_DLY values cause the moving averages of ALL QOS levels to track changes in the actual free space more slowly. Smaller NEW_CON (and larger AVG_CON) values can have a similar effect, but only affect an individual QOS level, rather than all. */ uint64_t prt_enb : 36; /**< The bit position will enable the corresponding Ports ability to have packets dropped by RED probability. */ #else uint64_t prt_enb : 36; uint64_t avg_dly : 14; uint64_t prb_dly : 14; #endif } s; struct cvmx_ipd_red_port_enable_s cn30xx; struct cvmx_ipd_red_port_enable_s cn31xx; struct cvmx_ipd_red_port_enable_s cn38xx; struct cvmx_ipd_red_port_enable_s cn38xxp2; struct cvmx_ipd_red_port_enable_s cn50xx; struct cvmx_ipd_red_port_enable_s cn52xx; struct cvmx_ipd_red_port_enable_s cn52xxp1; struct cvmx_ipd_red_port_enable_s cn56xx; struct cvmx_ipd_red_port_enable_s cn56xxp1; struct cvmx_ipd_red_port_enable_s cn58xx; struct cvmx_ipd_red_port_enable_s cn58xxp1; struct cvmx_ipd_red_port_enable_s cn63xx; struct cvmx_ipd_red_port_enable_s cn63xxp1; }; typedef union cvmx_ipd_red_port_enable cvmx_ipd_red_port_enable_t; /** * cvmx_ipd_red_port_enable2 * * IPD_RED_PORT_ENABLE2 = IPD RED Port Enable2 * * Set the pass-drop marks for qos level. */ union cvmx_ipd_red_port_enable2 { uint64_t u64; struct cvmx_ipd_red_port_enable2_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_8_63 : 56; uint64_t prt_enb : 8; /**< Bits 7-0 corresponds to ports 43-36. These bits have the same meaning as the PRT_ENB field of IPD_RED_PORT_ENABLE. */ #else uint64_t prt_enb : 8; uint64_t reserved_8_63 : 56; #endif } s; struct cvmx_ipd_red_port_enable2_cn52xx { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_4_63 : 60; uint64_t prt_enb : 4; /**< Bits 3-0 cooresponds to ports 39-36. These bits have the same meaning as the PRT_ENB field of IPD_RED_PORT_ENABLE. */ #else uint64_t prt_enb : 4; uint64_t reserved_4_63 : 60; #endif } cn52xx; struct cvmx_ipd_red_port_enable2_cn52xx cn52xxp1; struct cvmx_ipd_red_port_enable2_cn52xx cn56xx; struct cvmx_ipd_red_port_enable2_cn52xx cn56xxp1; struct cvmx_ipd_red_port_enable2_s cn63xx; struct cvmx_ipd_red_port_enable2_s cn63xxp1; }; typedef union cvmx_ipd_red_port_enable2 cvmx_ipd_red_port_enable2_t; /** * cvmx_ipd_red_que#_param * * IPD_RED_QUE0_PARAM = IPD RED Queue-0 Parameters * * Value control the Passing and Dropping of packets by the red engine for QOS Level-0. */ union cvmx_ipd_red_quex_param { uint64_t u64; struct cvmx_ipd_red_quex_param_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_49_63 : 15; uint64_t use_pcnt : 1; /**< When set '1' red will use the actual Packet-Page Count in place of the Average for RED calculations. */ uint64_t new_con : 8; /**< This value is used control how much of the present Actual Queue Size is used to calculate the new Average Queue Size. The value is a number from 0 256, which represents NEW_CON/256 of the Actual Queue Size that will be used in the calculation. The number in this field plus the value of AVG_CON must be equal to 256. Larger AVG_DLY values cause the moving averages of ALL QOS levels to track changes in the actual free space more slowly. Smaller NEW_CON (and larger AVG_CON) values can have a similar effect, but only affect an individual QOS level, rather than all. */ uint64_t avg_con : 8; /**< This value is used control how much of the present Average Queue Size is used to calculate the new Average Queue Size. The value is a number from 0 256, which represents AVG_CON/256 of the Average Queue Size that will be used in the calculation. The number in this field plus the value of NEW_CON must be equal to 256. Larger AVG_DLY values cause the moving averages of ALL QOS levels to track changes in the actual free space more slowly. Smaller NEW_CON (and larger AVG_CON) values can have a similar effect, but only affect an individual QOS level, rather than all. */ uint64_t prb_con : 32; /**< Used in computing the probability of a packet being passed or drop by the WRED engine. The field is calculated to be (255 * 2^24)/(PASS-DROP). Where PASS and DROP are the field from the IPD_QOS0_RED_MARKS CSR. */ #else uint64_t prb_con : 32; uint64_t avg_con : 8; uint64_t new_con : 8; uint64_t use_pcnt : 1; uint64_t reserved_49_63 : 15; #endif } s; struct cvmx_ipd_red_quex_param_s cn30xx; struct cvmx_ipd_red_quex_param_s cn31xx; struct cvmx_ipd_red_quex_param_s cn38xx; struct cvmx_ipd_red_quex_param_s cn38xxp2; struct cvmx_ipd_red_quex_param_s cn50xx; struct cvmx_ipd_red_quex_param_s cn52xx; struct cvmx_ipd_red_quex_param_s cn52xxp1; struct cvmx_ipd_red_quex_param_s cn56xx; struct cvmx_ipd_red_quex_param_s cn56xxp1; struct cvmx_ipd_red_quex_param_s cn58xx; struct cvmx_ipd_red_quex_param_s cn58xxp1; struct cvmx_ipd_red_quex_param_s cn63xx; struct cvmx_ipd_red_quex_param_s cn63xxp1; }; typedef union cvmx_ipd_red_quex_param cvmx_ipd_red_quex_param_t; /** * cvmx_ipd_sub_port_bp_page_cnt * * IPD_SUB_PORT_BP_PAGE_CNT = IPD Subtract Port Backpressure Page Count * * Will add the value to the indicated port count register, the number of pages supplied. The value added should * be the 2's complement of the value that needs to be subtracted. Users add 2's complement values to the * port-mbuf-count register to return (lower the count) mbufs to the counter in order to avoid port-level * backpressure being applied to the port. Backpressure is applied when the MBUF used count of a port exceeds the * value in the IPD_PORTX_BP_PAGE_CNT, IPD_PORTX_BP_PAGE_CNT2, and IPD_PORTX_BP_PAGE_CNT3. * * This register can't be written from the PCI via a window write. */ union cvmx_ipd_sub_port_bp_page_cnt { uint64_t u64; struct cvmx_ipd_sub_port_bp_page_cnt_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_31_63 : 33; uint64_t port : 6; /**< The port to add the PAGE_CNT field to. */ uint64_t page_cnt : 25; /**< The number of page pointers to add to the port counter pointed to by the PORT Field. */ #else uint64_t page_cnt : 25; uint64_t port : 6; uint64_t reserved_31_63 : 33; #endif } s; struct cvmx_ipd_sub_port_bp_page_cnt_s cn30xx; struct cvmx_ipd_sub_port_bp_page_cnt_s cn31xx; struct cvmx_ipd_sub_port_bp_page_cnt_s cn38xx; struct cvmx_ipd_sub_port_bp_page_cnt_s cn38xxp2; struct cvmx_ipd_sub_port_bp_page_cnt_s cn50xx; struct cvmx_ipd_sub_port_bp_page_cnt_s cn52xx; struct cvmx_ipd_sub_port_bp_page_cnt_s cn52xxp1; struct cvmx_ipd_sub_port_bp_page_cnt_s cn56xx; struct cvmx_ipd_sub_port_bp_page_cnt_s cn56xxp1; struct cvmx_ipd_sub_port_bp_page_cnt_s cn58xx; struct cvmx_ipd_sub_port_bp_page_cnt_s cn58xxp1; struct cvmx_ipd_sub_port_bp_page_cnt_s cn63xx; struct cvmx_ipd_sub_port_bp_page_cnt_s cn63xxp1; }; typedef union cvmx_ipd_sub_port_bp_page_cnt cvmx_ipd_sub_port_bp_page_cnt_t; /** * cvmx_ipd_sub_port_fcs * * IPD_SUB_PORT_FCS = IPD Subtract Ports FCS Register * * When set '1' the port corresponding to the bit set will subtract 4 bytes from the end of * the packet. */ union cvmx_ipd_sub_port_fcs { uint64_t u64; struct cvmx_ipd_sub_port_fcs_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_40_63 : 24; uint64_t port_bit2 : 4; /**< When set '1', the port corresponding to the bit position set, will subtract the FCS for packets on that port. */ uint64_t reserved_32_35 : 4; uint64_t port_bit : 32; /**< When set '1', the port corresponding to the bit position set, will subtract the FCS for packets on that port. */ #else uint64_t port_bit : 32; uint64_t reserved_32_35 : 4; uint64_t port_bit2 : 4; uint64_t reserved_40_63 : 24; #endif } s; struct cvmx_ipd_sub_port_fcs_cn30xx { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_3_63 : 61; uint64_t port_bit : 3; /**< When set '1', the port corresponding to the bit position set, will subtract the FCS for packets on that port. */ #else uint64_t port_bit : 3; uint64_t reserved_3_63 : 61; #endif } cn30xx; struct cvmx_ipd_sub_port_fcs_cn30xx cn31xx; struct cvmx_ipd_sub_port_fcs_cn38xx { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_32_63 : 32; uint64_t port_bit : 32; /**< When set '1', the port corresponding to the bit position set, will subtract the FCS for packets on that port. */ #else uint64_t port_bit : 32; uint64_t reserved_32_63 : 32; #endif } cn38xx; struct cvmx_ipd_sub_port_fcs_cn38xx cn38xxp2; struct cvmx_ipd_sub_port_fcs_cn30xx cn50xx; struct cvmx_ipd_sub_port_fcs_s cn52xx; struct cvmx_ipd_sub_port_fcs_s cn52xxp1; struct cvmx_ipd_sub_port_fcs_s cn56xx; struct cvmx_ipd_sub_port_fcs_s cn56xxp1; struct cvmx_ipd_sub_port_fcs_cn38xx cn58xx; struct cvmx_ipd_sub_port_fcs_cn38xx cn58xxp1; struct cvmx_ipd_sub_port_fcs_s cn63xx; struct cvmx_ipd_sub_port_fcs_s cn63xxp1; }; typedef union cvmx_ipd_sub_port_fcs cvmx_ipd_sub_port_fcs_t; /** * cvmx_ipd_sub_port_qos_cnt * * IPD_SUB_PORT_QOS_CNT = IPD Subtract Port QOS Count * * Will add the value (CNT) to the indicated Port-QOS register (PORT_QOS). The value added must be * be the 2's complement of the value that needs to be subtracted. */ union cvmx_ipd_sub_port_qos_cnt { uint64_t u64; struct cvmx_ipd_sub_port_qos_cnt_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_41_63 : 23; uint64_t port_qos : 9; /**< The port to add the CNT field to. */ uint64_t cnt : 32; /**< The value to be added to the register selected in the PORT_QOS field. */ #else uint64_t cnt : 32; uint64_t port_qos : 9; uint64_t reserved_41_63 : 23; #endif } s; struct cvmx_ipd_sub_port_qos_cnt_s cn52xx; struct cvmx_ipd_sub_port_qos_cnt_s cn52xxp1; struct cvmx_ipd_sub_port_qos_cnt_s cn56xx; struct cvmx_ipd_sub_port_qos_cnt_s cn56xxp1; struct cvmx_ipd_sub_port_qos_cnt_s cn63xx; struct cvmx_ipd_sub_port_qos_cnt_s cn63xxp1; }; typedef union cvmx_ipd_sub_port_qos_cnt cvmx_ipd_sub_port_qos_cnt_t; /** * cvmx_ipd_wqe_fpa_queue * * IPD_WQE_FPA_QUEUE = IPD Work-Queue-Entry FPA Page Size * * Which FPA Queue (0-7) to fetch page-pointers from for WQE's */ union cvmx_ipd_wqe_fpa_queue { uint64_t u64; struct cvmx_ipd_wqe_fpa_queue_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_3_63 : 61; uint64_t wqe_pool : 3; /**< Which FPA Queue to fetch page-pointers from for WQE's. Not used when IPD_CTL_STATUS[NO_WPTR] is set. */ #else uint64_t wqe_pool : 3; uint64_t reserved_3_63 : 61; #endif } s; struct cvmx_ipd_wqe_fpa_queue_s cn30xx; struct cvmx_ipd_wqe_fpa_queue_s cn31xx; struct cvmx_ipd_wqe_fpa_queue_s cn38xx; struct cvmx_ipd_wqe_fpa_queue_s cn38xxp2; struct cvmx_ipd_wqe_fpa_queue_s cn50xx; struct cvmx_ipd_wqe_fpa_queue_s cn52xx; struct cvmx_ipd_wqe_fpa_queue_s cn52xxp1; struct cvmx_ipd_wqe_fpa_queue_s cn56xx; struct cvmx_ipd_wqe_fpa_queue_s cn56xxp1; struct cvmx_ipd_wqe_fpa_queue_s cn58xx; struct cvmx_ipd_wqe_fpa_queue_s cn58xxp1; struct cvmx_ipd_wqe_fpa_queue_s cn63xx; struct cvmx_ipd_wqe_fpa_queue_s cn63xxp1; }; typedef union cvmx_ipd_wqe_fpa_queue cvmx_ipd_wqe_fpa_queue_t; /** * cvmx_ipd_wqe_ptr_valid * * IPD_WQE_PTR_VALID = IPD's WQE Pointer Valid * * The value of the WQE-pointer fetched and in the valid register. */ union cvmx_ipd_wqe_ptr_valid { uint64_t u64; struct cvmx_ipd_wqe_ptr_valid_s { #if __BYTE_ORDER == __BIG_ENDIAN uint64_t reserved_29_63 : 35; uint64_t ptr : 29; /**< Pointer value. When IPD_CTL_STATUS[NO_WPTR] is set '1' this field represents a Packet-Pointer NOT a WQE pointer. */ #else uint64_t ptr : 29; uint64_t reserved_29_63 : 35; #endif } s; struct cvmx_ipd_wqe_ptr_valid_s cn30xx; struct cvmx_ipd_wqe_ptr_valid_s cn31xx; struct cvmx_ipd_wqe_ptr_valid_s cn38xx; struct cvmx_ipd_wqe_ptr_valid_s cn50xx; struct cvmx_ipd_wqe_ptr_valid_s cn52xx; struct cvmx_ipd_wqe_ptr_valid_s cn52xxp1; struct cvmx_ipd_wqe_ptr_valid_s cn56xx; struct cvmx_ipd_wqe_ptr_valid_s cn56xxp1; struct cvmx_ipd_wqe_ptr_valid_s cn58xx; struct cvmx_ipd_wqe_ptr_valid_s cn58xxp1; struct cvmx_ipd_wqe_ptr_valid_s cn63xx; struct cvmx_ipd_wqe_ptr_valid_s cn63xxp1; }; typedef union cvmx_ipd_wqe_ptr_valid cvmx_ipd_wqe_ptr_valid_t; #endif