Back to home page

OSCL-LXR

 
 

    


0001 /***********************license start***************
0002  * Author: Cavium Networks
0003  *
0004  * Contact: support@caviumnetworks.com
0005  * This file is part of the OCTEON SDK
0006  *
0007  * Copyright (c) 2003-2017 Cavium, Inc.
0008  *
0009  * This file is free software; you can redistribute it and/or modify
0010  * it under the terms of the GNU General Public License, Version 2, as
0011  * published by the Free Software Foundation.
0012  *
0013  * This file is distributed in the hope that it will be useful, but
0014  * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
0015  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
0016  * NONINFRINGEMENT.  See the GNU General Public License for more
0017  * details.
0018  *
0019  * You should have received a copy of the GNU General Public License
0020  * along with this file; if not, write to the Free Software
0021  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
0022  * or visit http://www.gnu.org/licenses/.
0023  *
0024  * This file may also be available under a different license from Cavium.
0025  * Contact Cavium Networks for more information
0026  ***********************license end**************************************/
0027 
0028 #ifndef __CVMX_L2D_DEFS_H__
0029 #define __CVMX_L2D_DEFS_H__
0030 
0031 #define CVMX_L2D_ERR    (CVMX_ADD_IO_SEG(0x0001180080000010ull))
0032 #define CVMX_L2D_FUS3   (CVMX_ADD_IO_SEG(0x00011800800007B8ull))
0033 
0034 
0035 union cvmx_l2d_err {
0036     uint64_t u64;
0037     struct cvmx_l2d_err_s {
0038         __BITFIELD_FIELD(uint64_t reserved_6_63:58,
0039         __BITFIELD_FIELD(uint64_t bmhclsel:1,
0040         __BITFIELD_FIELD(uint64_t ded_err:1,
0041         __BITFIELD_FIELD(uint64_t sec_err:1,
0042         __BITFIELD_FIELD(uint64_t ded_intena:1,
0043         __BITFIELD_FIELD(uint64_t sec_intena:1,
0044         __BITFIELD_FIELD(uint64_t ecc_ena:1,
0045         ;)))))))
0046     } s;
0047 };
0048 
0049 union cvmx_l2d_fus3 {
0050     uint64_t u64;
0051     struct cvmx_l2d_fus3_s {
0052         __BITFIELD_FIELD(uint64_t reserved_40_63:24,
0053         __BITFIELD_FIELD(uint64_t ema_ctl:3,
0054         __BITFIELD_FIELD(uint64_t reserved_34_36:3,
0055         __BITFIELD_FIELD(uint64_t q3fus:34,
0056         ;))))
0057     } s;
0058 };
0059 
0060 #endif