1*4882a593Smuzhiyun /***********************license start*************** 2*4882a593Smuzhiyun * Author: Cavium Networks 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * Contact: support@caviumnetworks.com 5*4882a593Smuzhiyun * This file is part of the OCTEON SDK 6*4882a593Smuzhiyun * 7*4882a593Smuzhiyun * Copyright (c) 2003-2017 Cavium, Inc. 8*4882a593Smuzhiyun * 9*4882a593Smuzhiyun * This file is free software; you can redistribute it and/or modify 10*4882a593Smuzhiyun * it under the terms of the GNU General Public License, Version 2, as 11*4882a593Smuzhiyun * published by the Free Software Foundation. 12*4882a593Smuzhiyun * 13*4882a593Smuzhiyun * This file is distributed in the hope that it will be useful, but 14*4882a593Smuzhiyun * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 15*4882a593Smuzhiyun * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or 16*4882a593Smuzhiyun * NONINFRINGEMENT. See the GNU General Public License for more 17*4882a593Smuzhiyun * details. 18*4882a593Smuzhiyun * 19*4882a593Smuzhiyun * You should have received a copy of the GNU General Public License 20*4882a593Smuzhiyun * along with this file; if not, write to the Free Software 21*4882a593Smuzhiyun * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22*4882a593Smuzhiyun * or visit http://www.gnu.org/licenses/. 23*4882a593Smuzhiyun * 24*4882a593Smuzhiyun * This file may also be available under a different license from Cavium. 25*4882a593Smuzhiyun * Contact Cavium Networks for more information 26*4882a593Smuzhiyun ***********************license end**************************************/ 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun #ifndef __CVMX_L2D_DEFS_H__ 29*4882a593Smuzhiyun #define __CVMX_L2D_DEFS_H__ 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun #define CVMX_L2D_ERR (CVMX_ADD_IO_SEG(0x0001180080000010ull)) 32*4882a593Smuzhiyun #define CVMX_L2D_FUS3 (CVMX_ADD_IO_SEG(0x00011800800007B8ull)) 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun union cvmx_l2d_err { 36*4882a593Smuzhiyun uint64_t u64; 37*4882a593Smuzhiyun struct cvmx_l2d_err_s { 38*4882a593Smuzhiyun __BITFIELD_FIELD(uint64_t reserved_6_63:58, 39*4882a593Smuzhiyun __BITFIELD_FIELD(uint64_t bmhclsel:1, 40*4882a593Smuzhiyun __BITFIELD_FIELD(uint64_t ded_err:1, 41*4882a593Smuzhiyun __BITFIELD_FIELD(uint64_t sec_err:1, 42*4882a593Smuzhiyun __BITFIELD_FIELD(uint64_t ded_intena:1, 43*4882a593Smuzhiyun __BITFIELD_FIELD(uint64_t sec_intena:1, 44*4882a593Smuzhiyun __BITFIELD_FIELD(uint64_t ecc_ena:1, 45*4882a593Smuzhiyun ;))))))) 46*4882a593Smuzhiyun } s; 47*4882a593Smuzhiyun }; 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun union cvmx_l2d_fus3 { 50*4882a593Smuzhiyun uint64_t u64; 51*4882a593Smuzhiyun struct cvmx_l2d_fus3_s { 52*4882a593Smuzhiyun __BITFIELD_FIELD(uint64_t reserved_40_63:24, 53*4882a593Smuzhiyun __BITFIELD_FIELD(uint64_t ema_ctl:3, 54*4882a593Smuzhiyun __BITFIELD_FIELD(uint64_t reserved_34_36:3, 55*4882a593Smuzhiyun __BITFIELD_FIELD(uint64_t q3fus:34, 56*4882a593Smuzhiyun ;)))) 57*4882a593Smuzhiyun } s; 58*4882a593Smuzhiyun }; 59*4882a593Smuzhiyun 60*4882a593Smuzhiyun #endif 61