1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252 |
- /***********************license start***************
- * Author: Cavium Networks
- *
- * Contact: [email protected]
- * 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_FPA_DEFS_H__
- #define __CVMX_FPA_DEFS_H__
- #define CVMX_FPA_ADDR_RANGE_ERROR (CVMX_ADD_IO_SEG(0x0001180028000458ull))
- #define CVMX_FPA_BIST_STATUS (CVMX_ADD_IO_SEG(0x00011800280000E8ull))
- #define CVMX_FPA_CTL_STATUS (CVMX_ADD_IO_SEG(0x0001180028000050ull))
- #define CVMX_FPA_FPF0_MARKS (CVMX_ADD_IO_SEG(0x0001180028000000ull))
- #define CVMX_FPA_FPF0_SIZE (CVMX_ADD_IO_SEG(0x0001180028000058ull))
- #define CVMX_FPA_FPF1_MARKS CVMX_FPA_FPFX_MARKS(1)
- #define CVMX_FPA_FPF2_MARKS CVMX_FPA_FPFX_MARKS(2)
- #define CVMX_FPA_FPF3_MARKS CVMX_FPA_FPFX_MARKS(3)
- #define CVMX_FPA_FPF4_MARKS CVMX_FPA_FPFX_MARKS(4)
- #define CVMX_FPA_FPF5_MARKS CVMX_FPA_FPFX_MARKS(5)
- #define CVMX_FPA_FPF6_MARKS CVMX_FPA_FPFX_MARKS(6)
- #define CVMX_FPA_FPF7_MARKS CVMX_FPA_FPFX_MARKS(7)
- #define CVMX_FPA_FPF8_MARKS (CVMX_ADD_IO_SEG(0x0001180028000240ull))
- #define CVMX_FPA_FPF8_SIZE (CVMX_ADD_IO_SEG(0x0001180028000248ull))
- #define CVMX_FPA_FPFX_MARKS(offset) (CVMX_ADD_IO_SEG(0x0001180028000008ull) + ((offset) & 7) * 8 - 8*1)
- #define CVMX_FPA_FPFX_SIZE(offset) (CVMX_ADD_IO_SEG(0x0001180028000060ull) + ((offset) & 7) * 8 - 8*1)
- #define CVMX_FPA_INT_ENB (CVMX_ADD_IO_SEG(0x0001180028000048ull))
- #define CVMX_FPA_INT_SUM (CVMX_ADD_IO_SEG(0x0001180028000040ull))
- #define CVMX_FPA_PACKET_THRESHOLD (CVMX_ADD_IO_SEG(0x0001180028000460ull))
- #define CVMX_FPA_POOLX_END_ADDR(offset) (CVMX_ADD_IO_SEG(0x0001180028000358ull) + ((offset) & 15) * 8)
- #define CVMX_FPA_POOLX_START_ADDR(offset) (CVMX_ADD_IO_SEG(0x0001180028000258ull) + ((offset) & 15) * 8)
- #define CVMX_FPA_POOLX_THRESHOLD(offset) (CVMX_ADD_IO_SEG(0x0001180028000140ull) + ((offset) & 15) * 8)
- #define CVMX_FPA_QUE0_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(0)
- #define CVMX_FPA_QUE1_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(1)
- #define CVMX_FPA_QUE2_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(2)
- #define CVMX_FPA_QUE3_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(3)
- #define CVMX_FPA_QUE4_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(4)
- #define CVMX_FPA_QUE5_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(5)
- #define CVMX_FPA_QUE6_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(6)
- #define CVMX_FPA_QUE7_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(7)
- #define CVMX_FPA_QUE8_PAGE_INDEX (CVMX_ADD_IO_SEG(0x0001180028000250ull))
- #define CVMX_FPA_QUEX_AVAILABLE(offset) (CVMX_ADD_IO_SEG(0x0001180028000098ull) + ((offset) & 15) * 8)
- #define CVMX_FPA_QUEX_PAGE_INDEX(offset) (CVMX_ADD_IO_SEG(0x00011800280000F0ull) + ((offset) & 7) * 8)
- #define CVMX_FPA_QUE_ACT (CVMX_ADD_IO_SEG(0x0001180028000138ull))
- #define CVMX_FPA_QUE_EXP (CVMX_ADD_IO_SEG(0x0001180028000130ull))
- #define CVMX_FPA_WART_CTL (CVMX_ADD_IO_SEG(0x00011800280000D8ull))
- #define CVMX_FPA_WART_STATUS (CVMX_ADD_IO_SEG(0x00011800280000E0ull))
- #define CVMX_FPA_WQE_THRESHOLD (CVMX_ADD_IO_SEG(0x0001180028000468ull))
- #define CVMX_FPA_CLK_COUNT (CVMX_ADD_IO_SEG(0x00012800000000F0ull))
- union cvmx_fpa_addr_range_error {
- uint64_t u64;
- struct cvmx_fpa_addr_range_error_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_38_63:26;
- uint64_t pool:5;
- uint64_t addr:33;
- #else
- uint64_t addr:33;
- uint64_t pool:5;
- uint64_t reserved_38_63:26;
- #endif
- } s;
- };
- union cvmx_fpa_bist_status {
- uint64_t u64;
- struct cvmx_fpa_bist_status_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_5_63:59;
- uint64_t frd:1;
- uint64_t fpf0:1;
- uint64_t fpf1:1;
- uint64_t ffr:1;
- uint64_t fdr:1;
- #else
- uint64_t fdr:1;
- uint64_t ffr:1;
- uint64_t fpf1:1;
- uint64_t fpf0:1;
- uint64_t frd:1;
- uint64_t reserved_5_63:59;
- #endif
- } s;
- };
- union cvmx_fpa_ctl_status {
- uint64_t u64;
- struct cvmx_fpa_ctl_status_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_21_63:43;
- uint64_t free_en:1;
- uint64_t ret_off:1;
- uint64_t req_off:1;
- uint64_t reset:1;
- uint64_t use_ldt:1;
- uint64_t use_stt:1;
- uint64_t enb:1;
- uint64_t mem1_err:7;
- uint64_t mem0_err:7;
- #else
- uint64_t mem0_err:7;
- uint64_t mem1_err:7;
- uint64_t enb:1;
- uint64_t use_stt:1;
- uint64_t use_ldt:1;
- uint64_t reset:1;
- uint64_t req_off:1;
- uint64_t ret_off:1;
- uint64_t free_en:1;
- uint64_t reserved_21_63:43;
- #endif
- } s;
- struct cvmx_fpa_ctl_status_cn30xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_18_63:46;
- uint64_t reset:1;
- uint64_t use_ldt:1;
- uint64_t use_stt:1;
- uint64_t enb:1;
- uint64_t mem1_err:7;
- uint64_t mem0_err:7;
- #else
- uint64_t mem0_err:7;
- uint64_t mem1_err:7;
- uint64_t enb:1;
- uint64_t use_stt:1;
- uint64_t use_ldt:1;
- uint64_t reset:1;
- uint64_t reserved_18_63:46;
- #endif
- } cn30xx;
- };
- union cvmx_fpa_fpfx_marks {
- uint64_t u64;
- struct cvmx_fpa_fpfx_marks_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_22_63:42;
- uint64_t fpf_wr:11;
- uint64_t fpf_rd:11;
- #else
- uint64_t fpf_rd:11;
- uint64_t fpf_wr:11;
- uint64_t reserved_22_63:42;
- #endif
- } s;
- };
- union cvmx_fpa_fpfx_size {
- uint64_t u64;
- struct cvmx_fpa_fpfx_size_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_11_63:53;
- uint64_t fpf_siz:11;
- #else
- uint64_t fpf_siz:11;
- uint64_t reserved_11_63:53;
- #endif
- } s;
- };
- union cvmx_fpa_fpf0_marks {
- uint64_t u64;
- struct cvmx_fpa_fpf0_marks_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_24_63:40;
- uint64_t fpf_wr:12;
- uint64_t fpf_rd:12;
- #else
- uint64_t fpf_rd:12;
- uint64_t fpf_wr:12;
- uint64_t reserved_24_63:40;
- #endif
- } s;
- };
- union cvmx_fpa_fpf0_size {
- uint64_t u64;
- struct cvmx_fpa_fpf0_size_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_12_63:52;
- uint64_t fpf_siz:12;
- #else
- uint64_t fpf_siz:12;
- uint64_t reserved_12_63:52;
- #endif
- } s;
- };
- union cvmx_fpa_fpf8_marks {
- uint64_t u64;
- struct cvmx_fpa_fpf8_marks_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_22_63:42;
- uint64_t fpf_wr:11;
- uint64_t fpf_rd:11;
- #else
- uint64_t fpf_rd:11;
- uint64_t fpf_wr:11;
- uint64_t reserved_22_63:42;
- #endif
- } s;
- };
- union cvmx_fpa_fpf8_size {
- uint64_t u64;
- struct cvmx_fpa_fpf8_size_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_12_63:52;
- uint64_t fpf_siz:12;
- #else
- uint64_t fpf_siz:12;
- uint64_t reserved_12_63:52;
- #endif
- } s;
- };
- union cvmx_fpa_int_enb {
- uint64_t u64;
- struct cvmx_fpa_int_enb_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_50_63:14;
- uint64_t paddr_e:1;
- uint64_t reserved_44_48:5;
- uint64_t free7:1;
- uint64_t free6:1;
- uint64_t free5:1;
- uint64_t free4:1;
- uint64_t free3:1;
- uint64_t free2:1;
- uint64_t free1:1;
- uint64_t free0:1;
- uint64_t pool7th:1;
- uint64_t pool6th:1;
- uint64_t pool5th:1;
- uint64_t pool4th:1;
- uint64_t pool3th:1;
- uint64_t pool2th:1;
- uint64_t pool1th:1;
- uint64_t pool0th:1;
- uint64_t q7_perr:1;
- uint64_t q7_coff:1;
- uint64_t q7_und:1;
- uint64_t q6_perr:1;
- uint64_t q6_coff:1;
- uint64_t q6_und:1;
- uint64_t q5_perr:1;
- uint64_t q5_coff:1;
- uint64_t q5_und:1;
- uint64_t q4_perr:1;
- uint64_t q4_coff:1;
- uint64_t q4_und:1;
- uint64_t q3_perr:1;
- uint64_t q3_coff:1;
- uint64_t q3_und:1;
- uint64_t q2_perr:1;
- uint64_t q2_coff:1;
- uint64_t q2_und:1;
- uint64_t q1_perr:1;
- uint64_t q1_coff:1;
- uint64_t q1_und:1;
- uint64_t q0_perr:1;
- uint64_t q0_coff:1;
- uint64_t q0_und:1;
- uint64_t fed1_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed0_sbe:1;
- #else
- uint64_t fed0_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed1_dbe:1;
- uint64_t q0_und:1;
- uint64_t q0_coff:1;
- uint64_t q0_perr:1;
- uint64_t q1_und:1;
- uint64_t q1_coff:1;
- uint64_t q1_perr:1;
- uint64_t q2_und:1;
- uint64_t q2_coff:1;
- uint64_t q2_perr:1;
- uint64_t q3_und:1;
- uint64_t q3_coff:1;
- uint64_t q3_perr:1;
- uint64_t q4_und:1;
- uint64_t q4_coff:1;
- uint64_t q4_perr:1;
- uint64_t q5_und:1;
- uint64_t q5_coff:1;
- uint64_t q5_perr:1;
- uint64_t q6_und:1;
- uint64_t q6_coff:1;
- uint64_t q6_perr:1;
- uint64_t q7_und:1;
- uint64_t q7_coff:1;
- uint64_t q7_perr:1;
- uint64_t pool0th:1;
- uint64_t pool1th:1;
- uint64_t pool2th:1;
- uint64_t pool3th:1;
- uint64_t pool4th:1;
- uint64_t pool5th:1;
- uint64_t pool6th:1;
- uint64_t pool7th:1;
- uint64_t free0:1;
- uint64_t free1:1;
- uint64_t free2:1;
- uint64_t free3:1;
- uint64_t free4:1;
- uint64_t free5:1;
- uint64_t free6:1;
- uint64_t free7:1;
- uint64_t reserved_44_48:5;
- uint64_t paddr_e:1;
- uint64_t reserved_50_63:14;
- #endif
- } s;
- struct cvmx_fpa_int_enb_cn30xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_28_63:36;
- uint64_t q7_perr:1;
- uint64_t q7_coff:1;
- uint64_t q7_und:1;
- uint64_t q6_perr:1;
- uint64_t q6_coff:1;
- uint64_t q6_und:1;
- uint64_t q5_perr:1;
- uint64_t q5_coff:1;
- uint64_t q5_und:1;
- uint64_t q4_perr:1;
- uint64_t q4_coff:1;
- uint64_t q4_und:1;
- uint64_t q3_perr:1;
- uint64_t q3_coff:1;
- uint64_t q3_und:1;
- uint64_t q2_perr:1;
- uint64_t q2_coff:1;
- uint64_t q2_und:1;
- uint64_t q1_perr:1;
- uint64_t q1_coff:1;
- uint64_t q1_und:1;
- uint64_t q0_perr:1;
- uint64_t q0_coff:1;
- uint64_t q0_und:1;
- uint64_t fed1_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed0_sbe:1;
- #else
- uint64_t fed0_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed1_dbe:1;
- uint64_t q0_und:1;
- uint64_t q0_coff:1;
- uint64_t q0_perr:1;
- uint64_t q1_und:1;
- uint64_t q1_coff:1;
- uint64_t q1_perr:1;
- uint64_t q2_und:1;
- uint64_t q2_coff:1;
- uint64_t q2_perr:1;
- uint64_t q3_und:1;
- uint64_t q3_coff:1;
- uint64_t q3_perr:1;
- uint64_t q4_und:1;
- uint64_t q4_coff:1;
- uint64_t q4_perr:1;
- uint64_t q5_und:1;
- uint64_t q5_coff:1;
- uint64_t q5_perr:1;
- uint64_t q6_und:1;
- uint64_t q6_coff:1;
- uint64_t q6_perr:1;
- uint64_t q7_und:1;
- uint64_t q7_coff:1;
- uint64_t q7_perr:1;
- uint64_t reserved_28_63:36;
- #endif
- } cn30xx;
- struct cvmx_fpa_int_enb_cn61xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_50_63:14;
- uint64_t paddr_e:1;
- uint64_t res_44:5;
- uint64_t free7:1;
- uint64_t free6:1;
- uint64_t free5:1;
- uint64_t free4:1;
- uint64_t free3:1;
- uint64_t free2:1;
- uint64_t free1:1;
- uint64_t free0:1;
- uint64_t pool7th:1;
- uint64_t pool6th:1;
- uint64_t pool5th:1;
- uint64_t pool4th:1;
- uint64_t pool3th:1;
- uint64_t pool2th:1;
- uint64_t pool1th:1;
- uint64_t pool0th:1;
- uint64_t q7_perr:1;
- uint64_t q7_coff:1;
- uint64_t q7_und:1;
- uint64_t q6_perr:1;
- uint64_t q6_coff:1;
- uint64_t q6_und:1;
- uint64_t q5_perr:1;
- uint64_t q5_coff:1;
- uint64_t q5_und:1;
- uint64_t q4_perr:1;
- uint64_t q4_coff:1;
- uint64_t q4_und:1;
- uint64_t q3_perr:1;
- uint64_t q3_coff:1;
- uint64_t q3_und:1;
- uint64_t q2_perr:1;
- uint64_t q2_coff:1;
- uint64_t q2_und:1;
- uint64_t q1_perr:1;
- uint64_t q1_coff:1;
- uint64_t q1_und:1;
- uint64_t q0_perr:1;
- uint64_t q0_coff:1;
- uint64_t q0_und:1;
- uint64_t fed1_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed0_sbe:1;
- #else
- uint64_t fed0_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed1_dbe:1;
- uint64_t q0_und:1;
- uint64_t q0_coff:1;
- uint64_t q0_perr:1;
- uint64_t q1_und:1;
- uint64_t q1_coff:1;
- uint64_t q1_perr:1;
- uint64_t q2_und:1;
- uint64_t q2_coff:1;
- uint64_t q2_perr:1;
- uint64_t q3_und:1;
- uint64_t q3_coff:1;
- uint64_t q3_perr:1;
- uint64_t q4_und:1;
- uint64_t q4_coff:1;
- uint64_t q4_perr:1;
- uint64_t q5_und:1;
- uint64_t q5_coff:1;
- uint64_t q5_perr:1;
- uint64_t q6_und:1;
- uint64_t q6_coff:1;
- uint64_t q6_perr:1;
- uint64_t q7_und:1;
- uint64_t q7_coff:1;
- uint64_t q7_perr:1;
- uint64_t pool0th:1;
- uint64_t pool1th:1;
- uint64_t pool2th:1;
- uint64_t pool3th:1;
- uint64_t pool4th:1;
- uint64_t pool5th:1;
- uint64_t pool6th:1;
- uint64_t pool7th:1;
- uint64_t free0:1;
- uint64_t free1:1;
- uint64_t free2:1;
- uint64_t free3:1;
- uint64_t free4:1;
- uint64_t free5:1;
- uint64_t free6:1;
- uint64_t free7:1;
- uint64_t res_44:5;
- uint64_t paddr_e:1;
- uint64_t reserved_50_63:14;
- #endif
- } cn61xx;
- struct cvmx_fpa_int_enb_cn63xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_44_63:20;
- uint64_t free7:1;
- uint64_t free6:1;
- uint64_t free5:1;
- uint64_t free4:1;
- uint64_t free3:1;
- uint64_t free2:1;
- uint64_t free1:1;
- uint64_t free0:1;
- uint64_t pool7th:1;
- uint64_t pool6th:1;
- uint64_t pool5th:1;
- uint64_t pool4th:1;
- uint64_t pool3th:1;
- uint64_t pool2th:1;
- uint64_t pool1th:1;
- uint64_t pool0th:1;
- uint64_t q7_perr:1;
- uint64_t q7_coff:1;
- uint64_t q7_und:1;
- uint64_t q6_perr:1;
- uint64_t q6_coff:1;
- uint64_t q6_und:1;
- uint64_t q5_perr:1;
- uint64_t q5_coff:1;
- uint64_t q5_und:1;
- uint64_t q4_perr:1;
- uint64_t q4_coff:1;
- uint64_t q4_und:1;
- uint64_t q3_perr:1;
- uint64_t q3_coff:1;
- uint64_t q3_und:1;
- uint64_t q2_perr:1;
- uint64_t q2_coff:1;
- uint64_t q2_und:1;
- uint64_t q1_perr:1;
- uint64_t q1_coff:1;
- uint64_t q1_und:1;
- uint64_t q0_perr:1;
- uint64_t q0_coff:1;
- uint64_t q0_und:1;
- uint64_t fed1_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed0_sbe:1;
- #else
- uint64_t fed0_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed1_dbe:1;
- uint64_t q0_und:1;
- uint64_t q0_coff:1;
- uint64_t q0_perr:1;
- uint64_t q1_und:1;
- uint64_t q1_coff:1;
- uint64_t q1_perr:1;
- uint64_t q2_und:1;
- uint64_t q2_coff:1;
- uint64_t q2_perr:1;
- uint64_t q3_und:1;
- uint64_t q3_coff:1;
- uint64_t q3_perr:1;
- uint64_t q4_und:1;
- uint64_t q4_coff:1;
- uint64_t q4_perr:1;
- uint64_t q5_und:1;
- uint64_t q5_coff:1;
- uint64_t q5_perr:1;
- uint64_t q6_und:1;
- uint64_t q6_coff:1;
- uint64_t q6_perr:1;
- uint64_t q7_und:1;
- uint64_t q7_coff:1;
- uint64_t q7_perr:1;
- uint64_t pool0th:1;
- uint64_t pool1th:1;
- uint64_t pool2th:1;
- uint64_t pool3th:1;
- uint64_t pool4th:1;
- uint64_t pool5th:1;
- uint64_t pool6th:1;
- uint64_t pool7th:1;
- uint64_t free0:1;
- uint64_t free1:1;
- uint64_t free2:1;
- uint64_t free3:1;
- uint64_t free4:1;
- uint64_t free5:1;
- uint64_t free6:1;
- uint64_t free7:1;
- uint64_t reserved_44_63:20;
- #endif
- } cn63xx;
- struct cvmx_fpa_int_enb_cn68xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_50_63:14;
- uint64_t paddr_e:1;
- uint64_t pool8th:1;
- uint64_t q8_perr:1;
- uint64_t q8_coff:1;
- uint64_t q8_und:1;
- uint64_t free8:1;
- uint64_t free7:1;
- uint64_t free6:1;
- uint64_t free5:1;
- uint64_t free4:1;
- uint64_t free3:1;
- uint64_t free2:1;
- uint64_t free1:1;
- uint64_t free0:1;
- uint64_t pool7th:1;
- uint64_t pool6th:1;
- uint64_t pool5th:1;
- uint64_t pool4th:1;
- uint64_t pool3th:1;
- uint64_t pool2th:1;
- uint64_t pool1th:1;
- uint64_t pool0th:1;
- uint64_t q7_perr:1;
- uint64_t q7_coff:1;
- uint64_t q7_und:1;
- uint64_t q6_perr:1;
- uint64_t q6_coff:1;
- uint64_t q6_und:1;
- uint64_t q5_perr:1;
- uint64_t q5_coff:1;
- uint64_t q5_und:1;
- uint64_t q4_perr:1;
- uint64_t q4_coff:1;
- uint64_t q4_und:1;
- uint64_t q3_perr:1;
- uint64_t q3_coff:1;
- uint64_t q3_und:1;
- uint64_t q2_perr:1;
- uint64_t q2_coff:1;
- uint64_t q2_und:1;
- uint64_t q1_perr:1;
- uint64_t q1_coff:1;
- uint64_t q1_und:1;
- uint64_t q0_perr:1;
- uint64_t q0_coff:1;
- uint64_t q0_und:1;
- uint64_t fed1_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed0_sbe:1;
- #else
- uint64_t fed0_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed1_dbe:1;
- uint64_t q0_und:1;
- uint64_t q0_coff:1;
- uint64_t q0_perr:1;
- uint64_t q1_und:1;
- uint64_t q1_coff:1;
- uint64_t q1_perr:1;
- uint64_t q2_und:1;
- uint64_t q2_coff:1;
- uint64_t q2_perr:1;
- uint64_t q3_und:1;
- uint64_t q3_coff:1;
- uint64_t q3_perr:1;
- uint64_t q4_und:1;
- uint64_t q4_coff:1;
- uint64_t q4_perr:1;
- uint64_t q5_und:1;
- uint64_t q5_coff:1;
- uint64_t q5_perr:1;
- uint64_t q6_und:1;
- uint64_t q6_coff:1;
- uint64_t q6_perr:1;
- uint64_t q7_und:1;
- uint64_t q7_coff:1;
- uint64_t q7_perr:1;
- uint64_t pool0th:1;
- uint64_t pool1th:1;
- uint64_t pool2th:1;
- uint64_t pool3th:1;
- uint64_t pool4th:1;
- uint64_t pool5th:1;
- uint64_t pool6th:1;
- uint64_t pool7th:1;
- uint64_t free0:1;
- uint64_t free1:1;
- uint64_t free2:1;
- uint64_t free3:1;
- uint64_t free4:1;
- uint64_t free5:1;
- uint64_t free6:1;
- uint64_t free7:1;
- uint64_t free8:1;
- uint64_t q8_und:1;
- uint64_t q8_coff:1;
- uint64_t q8_perr:1;
- uint64_t pool8th:1;
- uint64_t paddr_e:1;
- uint64_t reserved_50_63:14;
- #endif
- } cn68xx;
- };
- union cvmx_fpa_int_sum {
- uint64_t u64;
- struct cvmx_fpa_int_sum_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_50_63:14;
- uint64_t paddr_e:1;
- uint64_t pool8th:1;
- uint64_t q8_perr:1;
- uint64_t q8_coff:1;
- uint64_t q8_und:1;
- uint64_t free8:1;
- uint64_t free7:1;
- uint64_t free6:1;
- uint64_t free5:1;
- uint64_t free4:1;
- uint64_t free3:1;
- uint64_t free2:1;
- uint64_t free1:1;
- uint64_t free0:1;
- uint64_t pool7th:1;
- uint64_t pool6th:1;
- uint64_t pool5th:1;
- uint64_t pool4th:1;
- uint64_t pool3th:1;
- uint64_t pool2th:1;
- uint64_t pool1th:1;
- uint64_t pool0th:1;
- uint64_t q7_perr:1;
- uint64_t q7_coff:1;
- uint64_t q7_und:1;
- uint64_t q6_perr:1;
- uint64_t q6_coff:1;
- uint64_t q6_und:1;
- uint64_t q5_perr:1;
- uint64_t q5_coff:1;
- uint64_t q5_und:1;
- uint64_t q4_perr:1;
- uint64_t q4_coff:1;
- uint64_t q4_und:1;
- uint64_t q3_perr:1;
- uint64_t q3_coff:1;
- uint64_t q3_und:1;
- uint64_t q2_perr:1;
- uint64_t q2_coff:1;
- uint64_t q2_und:1;
- uint64_t q1_perr:1;
- uint64_t q1_coff:1;
- uint64_t q1_und:1;
- uint64_t q0_perr:1;
- uint64_t q0_coff:1;
- uint64_t q0_und:1;
- uint64_t fed1_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed0_sbe:1;
- #else
- uint64_t fed0_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed1_dbe:1;
- uint64_t q0_und:1;
- uint64_t q0_coff:1;
- uint64_t q0_perr:1;
- uint64_t q1_und:1;
- uint64_t q1_coff:1;
- uint64_t q1_perr:1;
- uint64_t q2_und:1;
- uint64_t q2_coff:1;
- uint64_t q2_perr:1;
- uint64_t q3_und:1;
- uint64_t q3_coff:1;
- uint64_t q3_perr:1;
- uint64_t q4_und:1;
- uint64_t q4_coff:1;
- uint64_t q4_perr:1;
- uint64_t q5_und:1;
- uint64_t q5_coff:1;
- uint64_t q5_perr:1;
- uint64_t q6_und:1;
- uint64_t q6_coff:1;
- uint64_t q6_perr:1;
- uint64_t q7_und:1;
- uint64_t q7_coff:1;
- uint64_t q7_perr:1;
- uint64_t pool0th:1;
- uint64_t pool1th:1;
- uint64_t pool2th:1;
- uint64_t pool3th:1;
- uint64_t pool4th:1;
- uint64_t pool5th:1;
- uint64_t pool6th:1;
- uint64_t pool7th:1;
- uint64_t free0:1;
- uint64_t free1:1;
- uint64_t free2:1;
- uint64_t free3:1;
- uint64_t free4:1;
- uint64_t free5:1;
- uint64_t free6:1;
- uint64_t free7:1;
- uint64_t free8:1;
- uint64_t q8_und:1;
- uint64_t q8_coff:1;
- uint64_t q8_perr:1;
- uint64_t pool8th:1;
- uint64_t paddr_e:1;
- uint64_t reserved_50_63:14;
- #endif
- } s;
- struct cvmx_fpa_int_sum_cn30xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_28_63:36;
- uint64_t q7_perr:1;
- uint64_t q7_coff:1;
- uint64_t q7_und:1;
- uint64_t q6_perr:1;
- uint64_t q6_coff:1;
- uint64_t q6_und:1;
- uint64_t q5_perr:1;
- uint64_t q5_coff:1;
- uint64_t q5_und:1;
- uint64_t q4_perr:1;
- uint64_t q4_coff:1;
- uint64_t q4_und:1;
- uint64_t q3_perr:1;
- uint64_t q3_coff:1;
- uint64_t q3_und:1;
- uint64_t q2_perr:1;
- uint64_t q2_coff:1;
- uint64_t q2_und:1;
- uint64_t q1_perr:1;
- uint64_t q1_coff:1;
- uint64_t q1_und:1;
- uint64_t q0_perr:1;
- uint64_t q0_coff:1;
- uint64_t q0_und:1;
- uint64_t fed1_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed0_sbe:1;
- #else
- uint64_t fed0_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed1_dbe:1;
- uint64_t q0_und:1;
- uint64_t q0_coff:1;
- uint64_t q0_perr:1;
- uint64_t q1_und:1;
- uint64_t q1_coff:1;
- uint64_t q1_perr:1;
- uint64_t q2_und:1;
- uint64_t q2_coff:1;
- uint64_t q2_perr:1;
- uint64_t q3_und:1;
- uint64_t q3_coff:1;
- uint64_t q3_perr:1;
- uint64_t q4_und:1;
- uint64_t q4_coff:1;
- uint64_t q4_perr:1;
- uint64_t q5_und:1;
- uint64_t q5_coff:1;
- uint64_t q5_perr:1;
- uint64_t q6_und:1;
- uint64_t q6_coff:1;
- uint64_t q6_perr:1;
- uint64_t q7_und:1;
- uint64_t q7_coff:1;
- uint64_t q7_perr:1;
- uint64_t reserved_28_63:36;
- #endif
- } cn30xx;
- struct cvmx_fpa_int_sum_cn61xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_50_63:14;
- uint64_t paddr_e:1;
- uint64_t reserved_44_48:5;
- uint64_t free7:1;
- uint64_t free6:1;
- uint64_t free5:1;
- uint64_t free4:1;
- uint64_t free3:1;
- uint64_t free2:1;
- uint64_t free1:1;
- uint64_t free0:1;
- uint64_t pool7th:1;
- uint64_t pool6th:1;
- uint64_t pool5th:1;
- uint64_t pool4th:1;
- uint64_t pool3th:1;
- uint64_t pool2th:1;
- uint64_t pool1th:1;
- uint64_t pool0th:1;
- uint64_t q7_perr:1;
- uint64_t q7_coff:1;
- uint64_t q7_und:1;
- uint64_t q6_perr:1;
- uint64_t q6_coff:1;
- uint64_t q6_und:1;
- uint64_t q5_perr:1;
- uint64_t q5_coff:1;
- uint64_t q5_und:1;
- uint64_t q4_perr:1;
- uint64_t q4_coff:1;
- uint64_t q4_und:1;
- uint64_t q3_perr:1;
- uint64_t q3_coff:1;
- uint64_t q3_und:1;
- uint64_t q2_perr:1;
- uint64_t q2_coff:1;
- uint64_t q2_und:1;
- uint64_t q1_perr:1;
- uint64_t q1_coff:1;
- uint64_t q1_und:1;
- uint64_t q0_perr:1;
- uint64_t q0_coff:1;
- uint64_t q0_und:1;
- uint64_t fed1_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed0_sbe:1;
- #else
- uint64_t fed0_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed1_dbe:1;
- uint64_t q0_und:1;
- uint64_t q0_coff:1;
- uint64_t q0_perr:1;
- uint64_t q1_und:1;
- uint64_t q1_coff:1;
- uint64_t q1_perr:1;
- uint64_t q2_und:1;
- uint64_t q2_coff:1;
- uint64_t q2_perr:1;
- uint64_t q3_und:1;
- uint64_t q3_coff:1;
- uint64_t q3_perr:1;
- uint64_t q4_und:1;
- uint64_t q4_coff:1;
- uint64_t q4_perr:1;
- uint64_t q5_und:1;
- uint64_t q5_coff:1;
- uint64_t q5_perr:1;
- uint64_t q6_und:1;
- uint64_t q6_coff:1;
- uint64_t q6_perr:1;
- uint64_t q7_und:1;
- uint64_t q7_coff:1;
- uint64_t q7_perr:1;
- uint64_t pool0th:1;
- uint64_t pool1th:1;
- uint64_t pool2th:1;
- uint64_t pool3th:1;
- uint64_t pool4th:1;
- uint64_t pool5th:1;
- uint64_t pool6th:1;
- uint64_t pool7th:1;
- uint64_t free0:1;
- uint64_t free1:1;
- uint64_t free2:1;
- uint64_t free3:1;
- uint64_t free4:1;
- uint64_t free5:1;
- uint64_t free6:1;
- uint64_t free7:1;
- uint64_t reserved_44_48:5;
- uint64_t paddr_e:1;
- uint64_t reserved_50_63:14;
- #endif
- } cn61xx;
- struct cvmx_fpa_int_sum_cn63xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_44_63:20;
- uint64_t free7:1;
- uint64_t free6:1;
- uint64_t free5:1;
- uint64_t free4:1;
- uint64_t free3:1;
- uint64_t free2:1;
- uint64_t free1:1;
- uint64_t free0:1;
- uint64_t pool7th:1;
- uint64_t pool6th:1;
- uint64_t pool5th:1;
- uint64_t pool4th:1;
- uint64_t pool3th:1;
- uint64_t pool2th:1;
- uint64_t pool1th:1;
- uint64_t pool0th:1;
- uint64_t q7_perr:1;
- uint64_t q7_coff:1;
- uint64_t q7_und:1;
- uint64_t q6_perr:1;
- uint64_t q6_coff:1;
- uint64_t q6_und:1;
- uint64_t q5_perr:1;
- uint64_t q5_coff:1;
- uint64_t q5_und:1;
- uint64_t q4_perr:1;
- uint64_t q4_coff:1;
- uint64_t q4_und:1;
- uint64_t q3_perr:1;
- uint64_t q3_coff:1;
- uint64_t q3_und:1;
- uint64_t q2_perr:1;
- uint64_t q2_coff:1;
- uint64_t q2_und:1;
- uint64_t q1_perr:1;
- uint64_t q1_coff:1;
- uint64_t q1_und:1;
- uint64_t q0_perr:1;
- uint64_t q0_coff:1;
- uint64_t q0_und:1;
- uint64_t fed1_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed0_sbe:1;
- #else
- uint64_t fed0_sbe:1;
- uint64_t fed0_dbe:1;
- uint64_t fed1_sbe:1;
- uint64_t fed1_dbe:1;
- uint64_t q0_und:1;
- uint64_t q0_coff:1;
- uint64_t q0_perr:1;
- uint64_t q1_und:1;
- uint64_t q1_coff:1;
- uint64_t q1_perr:1;
- uint64_t q2_und:1;
- uint64_t q2_coff:1;
- uint64_t q2_perr:1;
- uint64_t q3_und:1;
- uint64_t q3_coff:1;
- uint64_t q3_perr:1;
- uint64_t q4_und:1;
- uint64_t q4_coff:1;
- uint64_t q4_perr:1;
- uint64_t q5_und:1;
- uint64_t q5_coff:1;
- uint64_t q5_perr:1;
- uint64_t q6_und:1;
- uint64_t q6_coff:1;
- uint64_t q6_perr:1;
- uint64_t q7_und:1;
- uint64_t q7_coff:1;
- uint64_t q7_perr:1;
- uint64_t pool0th:1;
- uint64_t pool1th:1;
- uint64_t pool2th:1;
- uint64_t pool3th:1;
- uint64_t pool4th:1;
- uint64_t pool5th:1;
- uint64_t pool6th:1;
- uint64_t pool7th:1;
- uint64_t free0:1;
- uint64_t free1:1;
- uint64_t free2:1;
- uint64_t free3:1;
- uint64_t free4:1;
- uint64_t free5:1;
- uint64_t free6:1;
- uint64_t free7:1;
- uint64_t reserved_44_63:20;
- #endif
- } cn63xx;
- };
- union cvmx_fpa_packet_threshold {
- uint64_t u64;
- struct cvmx_fpa_packet_threshold_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_32_63:32;
- uint64_t thresh:32;
- #else
- uint64_t thresh:32;
- uint64_t reserved_32_63:32;
- #endif
- } s;
- };
- union cvmx_fpa_poolx_end_addr {
- uint64_t u64;
- struct cvmx_fpa_poolx_end_addr_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_33_63:31;
- uint64_t addr:33;
- #else
- uint64_t addr:33;
- uint64_t reserved_33_63:31;
- #endif
- } s;
- };
- union cvmx_fpa_poolx_start_addr {
- uint64_t u64;
- struct cvmx_fpa_poolx_start_addr_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_33_63:31;
- uint64_t addr:33;
- #else
- uint64_t addr:33;
- uint64_t reserved_33_63:31;
- #endif
- } s;
- };
- union cvmx_fpa_poolx_threshold {
- uint64_t u64;
- struct cvmx_fpa_poolx_threshold_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_32_63:32;
- uint64_t thresh:32;
- #else
- uint64_t thresh:32;
- uint64_t reserved_32_63:32;
- #endif
- } s;
- struct cvmx_fpa_poolx_threshold_cn61xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_29_63:35;
- uint64_t thresh:29;
- #else
- uint64_t thresh:29;
- uint64_t reserved_29_63:35;
- #endif
- } cn61xx;
- };
- union cvmx_fpa_quex_available {
- uint64_t u64;
- struct cvmx_fpa_quex_available_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_32_63:32;
- uint64_t que_siz:32;
- #else
- uint64_t que_siz:32;
- uint64_t reserved_32_63:32;
- #endif
- } s;
- struct cvmx_fpa_quex_available_cn30xx {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_29_63:35;
- uint64_t que_siz:29;
- #else
- uint64_t que_siz:29;
- uint64_t reserved_29_63:35;
- #endif
- } cn30xx;
- };
- union cvmx_fpa_quex_page_index {
- uint64_t u64;
- struct cvmx_fpa_quex_page_index_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_25_63:39;
- uint64_t pg_num:25;
- #else
- uint64_t pg_num:25;
- uint64_t reserved_25_63:39;
- #endif
- } s;
- };
- union cvmx_fpa_que8_page_index {
- uint64_t u64;
- struct cvmx_fpa_que8_page_index_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_25_63:39;
- uint64_t pg_num:25;
- #else
- uint64_t pg_num:25;
- uint64_t reserved_25_63:39;
- #endif
- } s;
- };
- union cvmx_fpa_que_act {
- uint64_t u64;
- struct cvmx_fpa_que_act_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_29_63:35;
- uint64_t act_que:3;
- uint64_t act_indx:26;
- #else
- uint64_t act_indx:26;
- uint64_t act_que:3;
- uint64_t reserved_29_63:35;
- #endif
- } s;
- };
- union cvmx_fpa_que_exp {
- uint64_t u64;
- struct cvmx_fpa_que_exp_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_29_63:35;
- uint64_t exp_que:3;
- uint64_t exp_indx:26;
- #else
- uint64_t exp_indx:26;
- uint64_t exp_que:3;
- uint64_t reserved_29_63:35;
- #endif
- } s;
- };
- union cvmx_fpa_wart_ctl {
- uint64_t u64;
- struct cvmx_fpa_wart_ctl_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_16_63:48;
- uint64_t ctl:16;
- #else
- uint64_t ctl:16;
- uint64_t reserved_16_63:48;
- #endif
- } s;
- };
- union cvmx_fpa_wart_status {
- uint64_t u64;
- struct cvmx_fpa_wart_status_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_32_63:32;
- uint64_t status:32;
- #else
- uint64_t status:32;
- uint64_t reserved_32_63:32;
- #endif
- } s;
- };
- union cvmx_fpa_wqe_threshold {
- uint64_t u64;
- struct cvmx_fpa_wqe_threshold_s {
- #ifdef __BIG_ENDIAN_BITFIELD
- uint64_t reserved_32_63:32;
- uint64_t thresh:32;
- #else
- uint64_t thresh:32;
- uint64_t reserved_32_63:32;
- #endif
- } s;
- };
- #endif
|