123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053 |
- /***********************license start***************
- * Author: Cavium Networks
- *
- * Contact: support@caviumnetworks.com
- * This file is part of the OCTEON SDK
- *
- * Copyright (c) 2003-2012 Cavium Networks
- *
- * This file is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License, Version 2, as
- * published by the Free Software Foundation.
- *
- * This file is distributed in the hope that it will be useful, but
- * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
- * NONINFRINGEMENT. See the GNU General Public License for more
- * details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this file; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- * or visit http://www.gnu.org/licenses/.
- *
- * This file may also be available under a different license from Cavium.
- * Contact Cavium Networks for more information
- ***********************license end**************************************/
- #ifndef __CVMX_DPI_DEFS_H__
- #define __CVMX_DPI_DEFS_H__
- #define CVMX_DPI_BIST_STATUS (CVMX_ADD_IO_SEG(0x0001DF0000000000ull))
- #define CVMX_DPI_CTL (CVMX_ADD_IO_SEG(0x0001DF0000000040ull))
- #define CVMX_DPI_DMAX_COUNTS(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000300ull) + ((offset) & 7) * 8)
- #define CVMX_DPI_DMAX_DBELL(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000200ull) + ((offset) & 7) * 8)
- #define CVMX_DPI_DMAX_ERR_RSP_STATUS(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000A80ull) + ((offset) & 7) * 8)
- #define CVMX_DPI_DMAX_IBUFF_SADDR(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000280ull) + ((offset) & 7) * 8)
- #define CVMX_DPI_DMAX_IFLIGHT(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000A00ull) + ((offset) & 7) * 8)
- #define CVMX_DPI_DMAX_NADDR(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000380ull) + ((offset) & 7) * 8)
- #define CVMX_DPI_DMAX_REQBNK0(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000400ull) + ((offset) & 7) * 8)
- #define CVMX_DPI_DMAX_REQBNK1(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000480ull) + ((offset) & 7) * 8)
- #define CVMX_DPI_DMA_CONTROL (CVMX_ADD_IO_SEG(0x0001DF0000000048ull))
- #define CVMX_DPI_DMA_ENGX_EN(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000080ull) + ((offset) & 7) * 8)
- #define CVMX_DPI_DMA_PPX_CNT(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000B00ull) + ((offset) & 31) * 8)
- #define CVMX_DPI_ENGX_BUF(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000880ull) + ((offset) & 7) * 8)
- #define CVMX_DPI_INFO_REG (CVMX_ADD_IO_SEG(0x0001DF0000000980ull))
- #define CVMX_DPI_INT_EN (CVMX_ADD_IO_SEG(0x0001DF0000000010ull))
- #define CVMX_DPI_INT_REG (CVMX_ADD_IO_SEG(0x0001DF0000000008ull))
- #define CVMX_DPI_NCBX_CFG(block_id) (CVMX_ADD_IO_SEG(0x0001DF0000000800ull))
- #define CVMX_DPI_PINT_INFO (CVMX_ADD_IO_SEG(0x0001DF0000000830ull))
- #define CVMX_DPI_PKT_ERR_RSP (CVMX_ADD_IO_SEG(0x0001DF0000000078ull))
- #define CVMX_DPI_REQ_ERR_RSP (CVMX_ADD_IO_SEG(0x0001DF0000000058ull))
- #define CVMX_DPI_REQ_ERR_RSP_EN (CVMX_ADD_IO_SEG(0x0001DF0000000068ull))
- #define CVMX_DPI_REQ_ERR_RST (CVMX_ADD_IO_SEG(0x0001DF0000000060ull))
- #define CVMX_DPI_REQ_ERR_RST_EN (CVMX_ADD_IO_SEG(0x0001DF0000000070ull))
- #define CVMX_DPI_REQ_ERR_SKIP_COMP (CVMX_ADD_IO_SEG(0x0001DF0000000838ull))
- #define CVMX_DPI_REQ_GBL_EN (CVMX_ADD_IO_SEG(0x0001DF0000000050ull))
- #define CVMX_DPI_SLI_PRTX_CFG(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000900ull) + ((offset) & 3) * 8)
- static inline uint64_t CVMX_DPI_SLI_PRTX_ERR(unsigned long offset)
- {
- switch (cvmx_get_octeon_family()) {
- case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
- return CVMX_ADD_IO_SEG(0x0001DF0000000920ull) + (offset) * 8;
- case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
- case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
- case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
- if (OCTEON_IS_MODEL(OCTEON_CN68XX_PASS1))
- return CVMX_ADD_IO_SEG(0x0001DF0000000928ull) + (offset) * 8;
- if (OCTEON_IS_MODEL(OCTEON_CN68XX_PASS2))
- return CVMX_ADD_IO_SEG(0x0001DF0000000920ull) + (offset) * 8;
- return CVMX_ADD_IO_SEG(0x0001DF0000000920ull) + (offset) * 8;
- case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
- return CVMX_ADD_IO_SEG(0x0001DF0000000928ull) + (offset) * 8;
- }
- return CVMX_ADD_IO_SEG(0x0001DF0000000920ull) + (offset) * 8;
- }
- #define CVMX_DPI_SLI_PRTX_ERR_INFO(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000940ull) + ((offset) & 3) * 8)
- union cvmx_dpi_bist_status {
- uint64_t u64;
- struct cvmx_dpi_bist_status_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_47_63:17;
- uint64_t bist:47;
- #else
- uint64_t bist:47;
- uint64_t reserved_47_63:17;
- #endif
- } s;
- struct cvmx_dpi_bist_status_s cn61xx;
- struct cvmx_dpi_bist_status_cn63xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_45_63:19;
- uint64_t bist:45;
- #else
- uint64_t bist:45;
- uint64_t reserved_45_63:19;
- #endif
- } cn63xx;
- struct cvmx_dpi_bist_status_cn63xxp1 {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_37_63:27;
- uint64_t bist:37;
- #else
- uint64_t bist:37;
- uint64_t reserved_37_63:27;
- #endif
- } cn63xxp1;
- struct cvmx_dpi_bist_status_s cn66xx;
- struct cvmx_dpi_bist_status_cn63xx cn68xx;
- struct cvmx_dpi_bist_status_cn63xx cn68xxp1;
- struct cvmx_dpi_bist_status_s cnf71xx;
- };
- union cvmx_dpi_ctl {
- uint64_t u64;
- struct cvmx_dpi_ctl_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_2_63:62;
- uint64_t clk:1;
- uint64_t en:1;
- #else
- uint64_t en:1;
- uint64_t clk:1;
- uint64_t reserved_2_63:62;
- #endif
- } s;
- struct cvmx_dpi_ctl_cn61xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_1_63:63;
- uint64_t en:1;
- #else
- uint64_t en:1;
- uint64_t reserved_1_63:63;
- #endif
- } cn61xx;
- struct cvmx_dpi_ctl_s cn63xx;
- struct cvmx_dpi_ctl_s cn63xxp1;
- struct cvmx_dpi_ctl_s cn66xx;
- struct cvmx_dpi_ctl_s cn68xx;
- struct cvmx_dpi_ctl_s cn68xxp1;
- struct cvmx_dpi_ctl_cn61xx cnf71xx;
- };
- union cvmx_dpi_dmax_counts {
- uint64_t u64;
- struct cvmx_dpi_dmax_counts_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_39_63:25;
- uint64_t fcnt:7;
- uint64_t dbell:32;
- #else
- uint64_t dbell:32;
- uint64_t fcnt:7;
- uint64_t reserved_39_63:25;
- #endif
- } s;
- struct cvmx_dpi_dmax_counts_s cn61xx;
- struct cvmx_dpi_dmax_counts_s cn63xx;
- struct cvmx_dpi_dmax_counts_s cn63xxp1;
- struct cvmx_dpi_dmax_counts_s cn66xx;
- struct cvmx_dpi_dmax_counts_s cn68xx;
- struct cvmx_dpi_dmax_counts_s cn68xxp1;
- struct cvmx_dpi_dmax_counts_s cnf71xx;
- };
- union cvmx_dpi_dmax_dbell {
- uint64_t u64;
- struct cvmx_dpi_dmax_dbell_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_16_63:48;
- uint64_t dbell:16;
- #else
- uint64_t dbell:16;
- uint64_t reserved_16_63:48;
- #endif
- } s;
- struct cvmx_dpi_dmax_dbell_s cn61xx;
- struct cvmx_dpi_dmax_dbell_s cn63xx;
- struct cvmx_dpi_dmax_dbell_s cn63xxp1;
- struct cvmx_dpi_dmax_dbell_s cn66xx;
- struct cvmx_dpi_dmax_dbell_s cn68xx;
- struct cvmx_dpi_dmax_dbell_s cn68xxp1;
- struct cvmx_dpi_dmax_dbell_s cnf71xx;
- };
- union cvmx_dpi_dmax_err_rsp_status {
- uint64_t u64;
- struct cvmx_dpi_dmax_err_rsp_status_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_6_63:58;
- uint64_t status:6;
- #else
- uint64_t status:6;
- uint64_t reserved_6_63:58;
- #endif
- } s;
- struct cvmx_dpi_dmax_err_rsp_status_s cn61xx;
- struct cvmx_dpi_dmax_err_rsp_status_s cn66xx;
- struct cvmx_dpi_dmax_err_rsp_status_s cn68xx;
- struct cvmx_dpi_dmax_err_rsp_status_s cn68xxp1;
- struct cvmx_dpi_dmax_err_rsp_status_s cnf71xx;
- };
- union cvmx_dpi_dmax_ibuff_saddr {
- uint64_t u64;
- struct cvmx_dpi_dmax_ibuff_saddr_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_62_63:2;
- uint64_t csize:14;
- uint64_t reserved_41_47:7;
- uint64_t idle:1;
- uint64_t saddr:33;
- uint64_t reserved_0_6:7;
- #else
- uint64_t reserved_0_6:7;
- uint64_t saddr:33;
- uint64_t idle:1;
- uint64_t reserved_41_47:7;
- uint64_t csize:14;
- uint64_t reserved_62_63:2;
- #endif
- } s;
- struct cvmx_dpi_dmax_ibuff_saddr_cn61xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_62_63:2;
- uint64_t csize:14;
- uint64_t reserved_41_47:7;
- uint64_t idle:1;
- uint64_t reserved_36_39:4;
- uint64_t saddr:29;
- uint64_t reserved_0_6:7;
- #else
- uint64_t reserved_0_6:7;
- uint64_t saddr:29;
- uint64_t reserved_36_39:4;
- uint64_t idle:1;
- uint64_t reserved_41_47:7;
- uint64_t csize:14;
- uint64_t reserved_62_63:2;
- #endif
- } cn61xx;
- struct cvmx_dpi_dmax_ibuff_saddr_cn61xx cn63xx;
- struct cvmx_dpi_dmax_ibuff_saddr_cn61xx cn63xxp1;
- struct cvmx_dpi_dmax_ibuff_saddr_cn61xx cn66xx;
- struct cvmx_dpi_dmax_ibuff_saddr_s cn68xx;
- struct cvmx_dpi_dmax_ibuff_saddr_s cn68xxp1;
- struct cvmx_dpi_dmax_ibuff_saddr_cn61xx cnf71xx;
- };
- union cvmx_dpi_dmax_iflight {
- uint64_t u64;
- struct cvmx_dpi_dmax_iflight_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_3_63:61;
- uint64_t cnt:3;
- #else
- uint64_t cnt:3;
- uint64_t reserved_3_63:61;
- #endif
- } s;
- struct cvmx_dpi_dmax_iflight_s cn61xx;
- struct cvmx_dpi_dmax_iflight_s cn66xx;
- struct cvmx_dpi_dmax_iflight_s cn68xx;
- struct cvmx_dpi_dmax_iflight_s cn68xxp1;
- struct cvmx_dpi_dmax_iflight_s cnf71xx;
- };
- union cvmx_dpi_dmax_naddr {
- uint64_t u64;
- struct cvmx_dpi_dmax_naddr_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_40_63:24;
- uint64_t addr:40;
- #else
- uint64_t addr:40;
- uint64_t reserved_40_63:24;
- #endif
- } s;
- struct cvmx_dpi_dmax_naddr_cn61xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_36_63:28;
- uint64_t addr:36;
- #else
- uint64_t addr:36;
- uint64_t reserved_36_63:28;
- #endif
- } cn61xx;
- struct cvmx_dpi_dmax_naddr_cn61xx cn63xx;
- struct cvmx_dpi_dmax_naddr_cn61xx cn63xxp1;
- struct cvmx_dpi_dmax_naddr_cn61xx cn66xx;
- struct cvmx_dpi_dmax_naddr_s cn68xx;
- struct cvmx_dpi_dmax_naddr_s cn68xxp1;
- struct cvmx_dpi_dmax_naddr_cn61xx cnf71xx;
- };
- union cvmx_dpi_dmax_reqbnk0 {
- uint64_t u64;
- struct cvmx_dpi_dmax_reqbnk0_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t state:64;
- #else
- uint64_t state:64;
- #endif
- } s;
- struct cvmx_dpi_dmax_reqbnk0_s cn61xx;
- struct cvmx_dpi_dmax_reqbnk0_s cn63xx;
- struct cvmx_dpi_dmax_reqbnk0_s cn63xxp1;
- struct cvmx_dpi_dmax_reqbnk0_s cn66xx;
- struct cvmx_dpi_dmax_reqbnk0_s cn68xx;
- struct cvmx_dpi_dmax_reqbnk0_s cn68xxp1;
- struct cvmx_dpi_dmax_reqbnk0_s cnf71xx;
- };
- union cvmx_dpi_dmax_reqbnk1 {
- uint64_t u64;
- struct cvmx_dpi_dmax_reqbnk1_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t state:64;
- #else
- uint64_t state:64;
- #endif
- } s;
- struct cvmx_dpi_dmax_reqbnk1_s cn61xx;
- struct cvmx_dpi_dmax_reqbnk1_s cn63xx;
- struct cvmx_dpi_dmax_reqbnk1_s cn63xxp1;
- struct cvmx_dpi_dmax_reqbnk1_s cn66xx;
- struct cvmx_dpi_dmax_reqbnk1_s cn68xx;
- struct cvmx_dpi_dmax_reqbnk1_s cn68xxp1;
- struct cvmx_dpi_dmax_reqbnk1_s cnf71xx;
- };
- union cvmx_dpi_dma_control {
- uint64_t u64;
- struct cvmx_dpi_dma_control_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_62_63:2;
- uint64_t dici_mode:1;
- uint64_t pkt_en1:1;
- uint64_t ffp_dis:1;
- uint64_t commit_mode:1;
- uint64_t pkt_hp:1;
- uint64_t pkt_en:1;
- uint64_t reserved_54_55:2;
- uint64_t dma_enb:6;
- uint64_t reserved_34_47:14;
- uint64_t b0_lend:1;
- uint64_t dwb_denb:1;
- uint64_t dwb_ichk:9;
- uint64_t fpa_que:3;
- uint64_t o_add1:1;
- uint64_t o_ro:1;
- uint64_t o_ns:1;
- uint64_t o_es:2;
- uint64_t o_mode:1;
- uint64_t reserved_0_13:14;
- #else
- uint64_t reserved_0_13:14;
- uint64_t o_mode:1;
- uint64_t o_es:2;
- uint64_t o_ns:1;
- uint64_t o_ro:1;
- uint64_t o_add1:1;
- uint64_t fpa_que:3;
- uint64_t dwb_ichk:9;
- uint64_t dwb_denb:1;
- uint64_t b0_lend:1;
- uint64_t reserved_34_47:14;
- uint64_t dma_enb:6;
- uint64_t reserved_54_55:2;
- uint64_t pkt_en:1;
- uint64_t pkt_hp:1;
- uint64_t commit_mode:1;
- uint64_t ffp_dis:1;
- uint64_t pkt_en1:1;
- uint64_t dici_mode:1;
- uint64_t reserved_62_63:2;
- #endif
- } s;
- struct cvmx_dpi_dma_control_s cn61xx;
- struct cvmx_dpi_dma_control_cn63xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_61_63:3;
- uint64_t pkt_en1:1;
- uint64_t ffp_dis:1;
- uint64_t commit_mode:1;
- uint64_t pkt_hp:1;
- uint64_t pkt_en:1;
- uint64_t reserved_54_55:2;
- uint64_t dma_enb:6;
- uint64_t reserved_34_47:14;
- uint64_t b0_lend:1;
- uint64_t dwb_denb:1;
- uint64_t dwb_ichk:9;
- uint64_t fpa_que:3;
- uint64_t o_add1:1;
- uint64_t o_ro:1;
- uint64_t o_ns:1;
- uint64_t o_es:2;
- uint64_t o_mode:1;
- uint64_t reserved_0_13:14;
- #else
- uint64_t reserved_0_13:14;
- uint64_t o_mode:1;
- uint64_t o_es:2;
- uint64_t o_ns:1;
- uint64_t o_ro:1;
- uint64_t o_add1:1;
- uint64_t fpa_que:3;
- uint64_t dwb_ichk:9;
- uint64_t dwb_denb:1;
- uint64_t b0_lend:1;
- uint64_t reserved_34_47:14;
- uint64_t dma_enb:6;
- uint64_t reserved_54_55:2;
- uint64_t pkt_en:1;
- uint64_t pkt_hp:1;
- uint64_t commit_mode:1;
- uint64_t ffp_dis:1;
- uint64_t pkt_en1:1;
- uint64_t reserved_61_63:3;
- #endif
- } cn63xx;
- struct cvmx_dpi_dma_control_cn63xxp1 {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_59_63:5;
- uint64_t commit_mode:1;
- uint64_t pkt_hp:1;
- uint64_t pkt_en:1;
- uint64_t reserved_54_55:2;
- uint64_t dma_enb:6;
- uint64_t reserved_34_47:14;
- uint64_t b0_lend:1;
- uint64_t dwb_denb:1;
- uint64_t dwb_ichk:9;
- uint64_t fpa_que:3;
- uint64_t o_add1:1;
- uint64_t o_ro:1;
- uint64_t o_ns:1;
- uint64_t o_es:2;
- uint64_t o_mode:1;
- uint64_t reserved_0_13:14;
- #else
- uint64_t reserved_0_13:14;
- uint64_t o_mode:1;
- uint64_t o_es:2;
- uint64_t o_ns:1;
- uint64_t o_ro:1;
- uint64_t o_add1:1;
- uint64_t fpa_que:3;
- uint64_t dwb_ichk:9;
- uint64_t dwb_denb:1;
- uint64_t b0_lend:1;
- uint64_t reserved_34_47:14;
- uint64_t dma_enb:6;
- uint64_t reserved_54_55:2;
- uint64_t pkt_en:1;
- uint64_t pkt_hp:1;
- uint64_t commit_mode:1;
- uint64_t reserved_59_63:5;
- #endif
- } cn63xxp1;
- struct cvmx_dpi_dma_control_cn63xx cn66xx;
- struct cvmx_dpi_dma_control_s cn68xx;
- struct cvmx_dpi_dma_control_cn63xx cn68xxp1;
- struct cvmx_dpi_dma_control_s cnf71xx;
- };
- union cvmx_dpi_dma_engx_en {
- uint64_t u64;
- struct cvmx_dpi_dma_engx_en_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_8_63:56;
- uint64_t qen:8;
- #else
- uint64_t qen:8;
- uint64_t reserved_8_63:56;
- #endif
- } s;
- struct cvmx_dpi_dma_engx_en_s cn61xx;
- struct cvmx_dpi_dma_engx_en_s cn63xx;
- struct cvmx_dpi_dma_engx_en_s cn63xxp1;
- struct cvmx_dpi_dma_engx_en_s cn66xx;
- struct cvmx_dpi_dma_engx_en_s cn68xx;
- struct cvmx_dpi_dma_engx_en_s cn68xxp1;
- struct cvmx_dpi_dma_engx_en_s cnf71xx;
- };
- union cvmx_dpi_dma_ppx_cnt {
- uint64_t u64;
- struct cvmx_dpi_dma_ppx_cnt_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_16_63:48;
- uint64_t cnt:16;
- #else
- uint64_t cnt:16;
- uint64_t reserved_16_63:48;
- #endif
- } s;
- struct cvmx_dpi_dma_ppx_cnt_s cn61xx;
- struct cvmx_dpi_dma_ppx_cnt_s cn68xx;
- struct cvmx_dpi_dma_ppx_cnt_s cnf71xx;
- };
- union cvmx_dpi_engx_buf {
- uint64_t u64;
- struct cvmx_dpi_engx_buf_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_37_63:27;
- uint64_t compblks:5;
- uint64_t reserved_9_31:23;
- uint64_t base:5;
- uint64_t blks:4;
- #else
- uint64_t blks:4;
- uint64_t base:5;
- uint64_t reserved_9_31:23;
- uint64_t compblks:5;
- uint64_t reserved_37_63:27;
- #endif
- } s;
- struct cvmx_dpi_engx_buf_s cn61xx;
- struct cvmx_dpi_engx_buf_cn63xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_8_63:56;
- uint64_t base:4;
- uint64_t blks:4;
- #else
- uint64_t blks:4;
- uint64_t base:4;
- uint64_t reserved_8_63:56;
- #endif
- } cn63xx;
- struct cvmx_dpi_engx_buf_cn63xx cn63xxp1;
- struct cvmx_dpi_engx_buf_s cn66xx;
- struct cvmx_dpi_engx_buf_s cn68xx;
- struct cvmx_dpi_engx_buf_s cn68xxp1;
- struct cvmx_dpi_engx_buf_s cnf71xx;
- };
- union cvmx_dpi_info_reg {
- uint64_t u64;
- struct cvmx_dpi_info_reg_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_8_63:56;
- uint64_t ffp:4;
- uint64_t reserved_2_3:2;
- uint64_t ncb:1;
- uint64_t rsl:1;
- #else
- uint64_t rsl:1;
- uint64_t ncb:1;
- uint64_t reserved_2_3:2;
- uint64_t ffp:4;
- uint64_t reserved_8_63:56;
- #endif
- } s;
- struct cvmx_dpi_info_reg_s cn61xx;
- struct cvmx_dpi_info_reg_s cn63xx;
- struct cvmx_dpi_info_reg_cn63xxp1 {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_2_63:62;
- uint64_t ncb:1;
- uint64_t rsl:1;
- #else
- uint64_t rsl:1;
- uint64_t ncb:1;
- uint64_t reserved_2_63:62;
- #endif
- } cn63xxp1;
- struct cvmx_dpi_info_reg_s cn66xx;
- struct cvmx_dpi_info_reg_s cn68xx;
- struct cvmx_dpi_info_reg_s cn68xxp1;
- struct cvmx_dpi_info_reg_s cnf71xx;
- };
- union cvmx_dpi_int_en {
- uint64_t u64;
- struct cvmx_dpi_int_en_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_28_63:36;
- uint64_t sprt3_rst:1;
- uint64_t sprt2_rst:1;
- uint64_t sprt1_rst:1;
- uint64_t sprt0_rst:1;
- uint64_t reserved_23_23:1;
- uint64_t req_badfil:1;
- uint64_t req_inull:1;
- uint64_t req_anull:1;
- uint64_t req_undflw:1;
- uint64_t req_ovrflw:1;
- uint64_t req_badlen:1;
- uint64_t req_badadr:1;
- uint64_t dmadbo:8;
- uint64_t reserved_2_7:6;
- uint64_t nfovr:1;
- uint64_t nderr:1;
- #else
- uint64_t nderr:1;
- uint64_t nfovr:1;
- uint64_t reserved_2_7:6;
- uint64_t dmadbo:8;
- uint64_t req_badadr:1;
- uint64_t req_badlen:1;
- uint64_t req_ovrflw:1;
- uint64_t req_undflw:1;
- uint64_t req_anull:1;
- uint64_t req_inull:1;
- uint64_t req_badfil:1;
- uint64_t reserved_23_23:1;
- uint64_t sprt0_rst:1;
- uint64_t sprt1_rst:1;
- uint64_t sprt2_rst:1;
- uint64_t sprt3_rst:1;
- uint64_t reserved_28_63:36;
- #endif
- } s;
- struct cvmx_dpi_int_en_s cn61xx;
- struct cvmx_dpi_int_en_cn63xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_26_63:38;
- uint64_t sprt1_rst:1;
- uint64_t sprt0_rst:1;
- uint64_t reserved_23_23:1;
- uint64_t req_badfil:1;
- uint64_t req_inull:1;
- uint64_t req_anull:1;
- uint64_t req_undflw:1;
- uint64_t req_ovrflw:1;
- uint64_t req_badlen:1;
- uint64_t req_badadr:1;
- uint64_t dmadbo:8;
- uint64_t reserved_2_7:6;
- uint64_t nfovr:1;
- uint64_t nderr:1;
- #else
- uint64_t nderr:1;
- uint64_t nfovr:1;
- uint64_t reserved_2_7:6;
- uint64_t dmadbo:8;
- uint64_t req_badadr:1;
- uint64_t req_badlen:1;
- uint64_t req_ovrflw:1;
- uint64_t req_undflw:1;
- uint64_t req_anull:1;
- uint64_t req_inull:1;
- uint64_t req_badfil:1;
- uint64_t reserved_23_23:1;
- uint64_t sprt0_rst:1;
- uint64_t sprt1_rst:1;
- uint64_t reserved_26_63:38;
- #endif
- } cn63xx;
- struct cvmx_dpi_int_en_cn63xx cn63xxp1;
- struct cvmx_dpi_int_en_s cn66xx;
- struct cvmx_dpi_int_en_cn63xx cn68xx;
- struct cvmx_dpi_int_en_cn63xx cn68xxp1;
- struct cvmx_dpi_int_en_s cnf71xx;
- };
- union cvmx_dpi_int_reg {
- uint64_t u64;
- struct cvmx_dpi_int_reg_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_28_63:36;
- uint64_t sprt3_rst:1;
- uint64_t sprt2_rst:1;
- uint64_t sprt1_rst:1;
- uint64_t sprt0_rst:1;
- uint64_t reserved_23_23:1;
- uint64_t req_badfil:1;
- uint64_t req_inull:1;
- uint64_t req_anull:1;
- uint64_t req_undflw:1;
- uint64_t req_ovrflw:1;
- uint64_t req_badlen:1;
- uint64_t req_badadr:1;
- uint64_t dmadbo:8;
- uint64_t reserved_2_7:6;
- uint64_t nfovr:1;
- uint64_t nderr:1;
- #else
- uint64_t nderr:1;
- uint64_t nfovr:1;
- uint64_t reserved_2_7:6;
- uint64_t dmadbo:8;
- uint64_t req_badadr:1;
- uint64_t req_badlen:1;
- uint64_t req_ovrflw:1;
- uint64_t req_undflw:1;
- uint64_t req_anull:1;
- uint64_t req_inull:1;
- uint64_t req_badfil:1;
- uint64_t reserved_23_23:1;
- uint64_t sprt0_rst:1;
- uint64_t sprt1_rst:1;
- uint64_t sprt2_rst:1;
- uint64_t sprt3_rst:1;
- uint64_t reserved_28_63:36;
- #endif
- } s;
- struct cvmx_dpi_int_reg_s cn61xx;
- struct cvmx_dpi_int_reg_cn63xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_26_63:38;
- uint64_t sprt1_rst:1;
- uint64_t sprt0_rst:1;
- uint64_t reserved_23_23:1;
- uint64_t req_badfil:1;
- uint64_t req_inull:1;
- uint64_t req_anull:1;
- uint64_t req_undflw:1;
- uint64_t req_ovrflw:1;
- uint64_t req_badlen:1;
- uint64_t req_badadr:1;
- uint64_t dmadbo:8;
- uint64_t reserved_2_7:6;
- uint64_t nfovr:1;
- uint64_t nderr:1;
- #else
- uint64_t nderr:1;
- uint64_t nfovr:1;
- uint64_t reserved_2_7:6;
- uint64_t dmadbo:8;
- uint64_t req_badadr:1;
- uint64_t req_badlen:1;
- uint64_t req_ovrflw:1;
- uint64_t req_undflw:1;
- uint64_t req_anull:1;
- uint64_t req_inull:1;
- uint64_t req_badfil:1;
- uint64_t reserved_23_23:1;
- uint64_t sprt0_rst:1;
- uint64_t sprt1_rst:1;
- uint64_t reserved_26_63:38;
- #endif
- } cn63xx;
- struct cvmx_dpi_int_reg_cn63xx cn63xxp1;
- struct cvmx_dpi_int_reg_s cn66xx;
- struct cvmx_dpi_int_reg_cn63xx cn68xx;
- struct cvmx_dpi_int_reg_cn63xx cn68xxp1;
- struct cvmx_dpi_int_reg_s cnf71xx;
- };
- union cvmx_dpi_ncbx_cfg {
- uint64_t u64;
- struct cvmx_dpi_ncbx_cfg_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_6_63:58;
- uint64_t molr:6;
- #else
- uint64_t molr:6;
- uint64_t reserved_6_63:58;
- #endif
- } s;
- struct cvmx_dpi_ncbx_cfg_s cn61xx;
- struct cvmx_dpi_ncbx_cfg_s cn66xx;
- struct cvmx_dpi_ncbx_cfg_s cn68xx;
- struct cvmx_dpi_ncbx_cfg_s cnf71xx;
- };
- union cvmx_dpi_pint_info {
- uint64_t u64;
- struct cvmx_dpi_pint_info_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_14_63:50;
- uint64_t iinfo:6;
- uint64_t reserved_6_7:2;
- uint64_t sinfo:6;
- #else
- uint64_t sinfo:6;
- uint64_t reserved_6_7:2;
- uint64_t iinfo:6;
- uint64_t reserved_14_63:50;
- #endif
- } s;
- struct cvmx_dpi_pint_info_s cn61xx;
- struct cvmx_dpi_pint_info_s cn63xx;
- struct cvmx_dpi_pint_info_s cn63xxp1;
- struct cvmx_dpi_pint_info_s cn66xx;
- struct cvmx_dpi_pint_info_s cn68xx;
- struct cvmx_dpi_pint_info_s cn68xxp1;
- struct cvmx_dpi_pint_info_s cnf71xx;
- };
- union cvmx_dpi_pkt_err_rsp {
- uint64_t u64;
- struct cvmx_dpi_pkt_err_rsp_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_1_63:63;
- uint64_t pkterr:1;
- #else
- uint64_t pkterr:1;
- uint64_t reserved_1_63:63;
- #endif
- } s;
- struct cvmx_dpi_pkt_err_rsp_s cn61xx;
- struct cvmx_dpi_pkt_err_rsp_s cn63xx;
- struct cvmx_dpi_pkt_err_rsp_s cn63xxp1;
- struct cvmx_dpi_pkt_err_rsp_s cn66xx;
- struct cvmx_dpi_pkt_err_rsp_s cn68xx;
- struct cvmx_dpi_pkt_err_rsp_s cn68xxp1;
- struct cvmx_dpi_pkt_err_rsp_s cnf71xx;
- };
- union cvmx_dpi_req_err_rsp {
- uint64_t u64;
- struct cvmx_dpi_req_err_rsp_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_8_63:56;
- uint64_t qerr:8;
- #else
- uint64_t qerr:8;
- uint64_t reserved_8_63:56;
- #endif
- } s;
- struct cvmx_dpi_req_err_rsp_s cn61xx;
- struct cvmx_dpi_req_err_rsp_s cn63xx;
- struct cvmx_dpi_req_err_rsp_s cn63xxp1;
- struct cvmx_dpi_req_err_rsp_s cn66xx;
- struct cvmx_dpi_req_err_rsp_s cn68xx;
- struct cvmx_dpi_req_err_rsp_s cn68xxp1;
- struct cvmx_dpi_req_err_rsp_s cnf71xx;
- };
- union cvmx_dpi_req_err_rsp_en {
- uint64_t u64;
- struct cvmx_dpi_req_err_rsp_en_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_8_63:56;
- uint64_t en:8;
- #else
- uint64_t en:8;
- uint64_t reserved_8_63:56;
- #endif
- } s;
- struct cvmx_dpi_req_err_rsp_en_s cn61xx;
- struct cvmx_dpi_req_err_rsp_en_s cn63xx;
- struct cvmx_dpi_req_err_rsp_en_s cn63xxp1;
- struct cvmx_dpi_req_err_rsp_en_s cn66xx;
- struct cvmx_dpi_req_err_rsp_en_s cn68xx;
- struct cvmx_dpi_req_err_rsp_en_s cn68xxp1;
- struct cvmx_dpi_req_err_rsp_en_s cnf71xx;
- };
- union cvmx_dpi_req_err_rst {
- uint64_t u64;
- struct cvmx_dpi_req_err_rst_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_8_63:56;
- uint64_t qerr:8;
- #else
- uint64_t qerr:8;
- uint64_t reserved_8_63:56;
- #endif
- } s;
- struct cvmx_dpi_req_err_rst_s cn61xx;
- struct cvmx_dpi_req_err_rst_s cn63xx;
- struct cvmx_dpi_req_err_rst_s cn63xxp1;
- struct cvmx_dpi_req_err_rst_s cn66xx;
- struct cvmx_dpi_req_err_rst_s cn68xx;
- struct cvmx_dpi_req_err_rst_s cn68xxp1;
- struct cvmx_dpi_req_err_rst_s cnf71xx;
- };
- union cvmx_dpi_req_err_rst_en {
- uint64_t u64;
- struct cvmx_dpi_req_err_rst_en_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_8_63:56;
- uint64_t en:8;
- #else
- uint64_t en:8;
- uint64_t reserved_8_63:56;
- #endif
- } s;
- struct cvmx_dpi_req_err_rst_en_s cn61xx;
- struct cvmx_dpi_req_err_rst_en_s cn63xx;
- struct cvmx_dpi_req_err_rst_en_s cn63xxp1;
- struct cvmx_dpi_req_err_rst_en_s cn66xx;
- struct cvmx_dpi_req_err_rst_en_s cn68xx;
- struct cvmx_dpi_req_err_rst_en_s cn68xxp1;
- struct cvmx_dpi_req_err_rst_en_s cnf71xx;
- };
- union cvmx_dpi_req_err_skip_comp {
- uint64_t u64;
- struct cvmx_dpi_req_err_skip_comp_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_24_63:40;
- uint64_t en_rst:8;
- uint64_t reserved_8_15:8;
- uint64_t en_rsp:8;
- #else
- uint64_t en_rsp:8;
- uint64_t reserved_8_15:8;
- uint64_t en_rst:8;
- uint64_t reserved_24_63:40;
- #endif
- } s;
- struct cvmx_dpi_req_err_skip_comp_s cn61xx;
- struct cvmx_dpi_req_err_skip_comp_s cn66xx;
- struct cvmx_dpi_req_err_skip_comp_s cn68xx;
- struct cvmx_dpi_req_err_skip_comp_s cn68xxp1;
- struct cvmx_dpi_req_err_skip_comp_s cnf71xx;
- };
- union cvmx_dpi_req_gbl_en {
- uint64_t u64;
- struct cvmx_dpi_req_gbl_en_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_8_63:56;
- uint64_t qen:8;
- #else
- uint64_t qen:8;
- uint64_t reserved_8_63:56;
- #endif
- } s;
- struct cvmx_dpi_req_gbl_en_s cn61xx;
- struct cvmx_dpi_req_gbl_en_s cn63xx;
- struct cvmx_dpi_req_gbl_en_s cn63xxp1;
- struct cvmx_dpi_req_gbl_en_s cn66xx;
- struct cvmx_dpi_req_gbl_en_s cn68xx;
- struct cvmx_dpi_req_gbl_en_s cn68xxp1;
- struct cvmx_dpi_req_gbl_en_s cnf71xx;
- };
- union cvmx_dpi_sli_prtx_cfg {
- uint64_t u64;
- struct cvmx_dpi_sli_prtx_cfg_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_25_63:39;
- uint64_t halt:1;
- uint64_t qlm_cfg:4;
- uint64_t reserved_17_19:3;
- uint64_t rd_mode:1;
- uint64_t reserved_14_15:2;
- uint64_t molr:6;
- uint64_t mps_lim:1;
- uint64_t reserved_5_6:2;
- uint64_t mps:1;
- uint64_t mrrs_lim:1;
- uint64_t reserved_2_2:1;
- uint64_t mrrs:2;
- #else
- uint64_t mrrs:2;
- uint64_t reserved_2_2:1;
- uint64_t mrrs_lim:1;
- uint64_t mps:1;
- uint64_t reserved_5_6:2;
- uint64_t mps_lim:1;
- uint64_t molr:6;
- uint64_t reserved_14_15:2;
- uint64_t rd_mode:1;
- uint64_t reserved_17_19:3;
- uint64_t qlm_cfg:4;
- uint64_t halt:1;
- uint64_t reserved_25_63:39;
- #endif
- } s;
- struct cvmx_dpi_sli_prtx_cfg_s cn61xx;
- struct cvmx_dpi_sli_prtx_cfg_cn63xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_25_63:39;
- uint64_t halt:1;
- uint64_t reserved_21_23:3;
- uint64_t qlm_cfg:1;
- uint64_t reserved_17_19:3;
- uint64_t rd_mode:1;
- uint64_t reserved_14_15:2;
- uint64_t molr:6;
- uint64_t mps_lim:1;
- uint64_t reserved_5_6:2;
- uint64_t mps:1;
- uint64_t mrrs_lim:1;
- uint64_t reserved_2_2:1;
- uint64_t mrrs:2;
- #else
- uint64_t mrrs:2;
- uint64_t reserved_2_2:1;
- uint64_t mrrs_lim:1;
- uint64_t mps:1;
- uint64_t reserved_5_6:2;
- uint64_t mps_lim:1;
- uint64_t molr:6;
- uint64_t reserved_14_15:2;
- uint64_t rd_mode:1;
- uint64_t reserved_17_19:3;
- uint64_t qlm_cfg:1;
- uint64_t reserved_21_23:3;
- uint64_t halt:1;
- uint64_t reserved_25_63:39;
- #endif
- } cn63xx;
- struct cvmx_dpi_sli_prtx_cfg_cn63xx cn63xxp1;
- struct cvmx_dpi_sli_prtx_cfg_s cn66xx;
- struct cvmx_dpi_sli_prtx_cfg_cn63xx cn68xx;
- struct cvmx_dpi_sli_prtx_cfg_cn63xx cn68xxp1;
- struct cvmx_dpi_sli_prtx_cfg_s cnf71xx;
- };
- union cvmx_dpi_sli_prtx_err {
- uint64_t u64;
- struct cvmx_dpi_sli_prtx_err_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t addr:61;
- uint64_t reserved_0_2:3;
- #else
- uint64_t reserved_0_2:3;
- uint64_t addr:61;
- #endif
- } s;
- struct cvmx_dpi_sli_prtx_err_s cn61xx;
- struct cvmx_dpi_sli_prtx_err_s cn63xx;
- struct cvmx_dpi_sli_prtx_err_s cn63xxp1;
- struct cvmx_dpi_sli_prtx_err_s cn66xx;
- struct cvmx_dpi_sli_prtx_err_s cn68xx;
- struct cvmx_dpi_sli_prtx_err_s cn68xxp1;
- struct cvmx_dpi_sli_prtx_err_s cnf71xx;
- };
- union cvmx_dpi_sli_prtx_err_info {
- uint64_t u64;
- struct cvmx_dpi_sli_prtx_err_info_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_9_63:55;
- uint64_t lock:1;
- uint64_t reserved_5_7:3;
- uint64_t type:1;
- uint64_t reserved_3_3:1;
- uint64_t reqq:3;
- #else
- uint64_t reqq:3;
- uint64_t reserved_3_3:1;
- uint64_t type:1;
- uint64_t reserved_5_7:3;
- uint64_t lock:1;
- uint64_t reserved_9_63:55;
- #endif
- } s;
- struct cvmx_dpi_sli_prtx_err_info_s cn61xx;
- struct cvmx_dpi_sli_prtx_err_info_s cn63xx;
- struct cvmx_dpi_sli_prtx_err_info_s cn63xxp1;
- struct cvmx_dpi_sli_prtx_err_info_s cn66xx;
- struct cvmx_dpi_sli_prtx_err_info_s cn68xx;
- struct cvmx_dpi_sli_prtx_err_info_s cn68xxp1;
- struct cvmx_dpi_sli_prtx_err_info_s cnf71xx;
- };
- #endif
|