181a67e52SSteven J. Hill /***********************license start*************** 281a67e52SSteven J. Hill * Author: Cavium Networks 381a67e52SSteven J. Hill * 481a67e52SSteven J. Hill * Contact: support@caviumnetworks.com 581a67e52SSteven J. Hill * This file is part of the OCTEON SDK 681a67e52SSteven J. Hill * 781a67e52SSteven J. Hill * Copyright (c) 2003-2017 Cavium, Inc. 881a67e52SSteven J. Hill * 981a67e52SSteven J. Hill * This file is free software; you can redistribute it and/or modify 1081a67e52SSteven J. Hill * it under the terms of the GNU General Public License, Version 2, as 1181a67e52SSteven J. Hill * published by the Free Software Foundation. 1281a67e52SSteven J. Hill * 1381a67e52SSteven J. Hill * This file is distributed in the hope that it will be useful, but 1481a67e52SSteven J. Hill * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 1581a67e52SSteven J. Hill * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or 1681a67e52SSteven J. Hill * NONINFRINGEMENT. See the GNU General Public License for more 1781a67e52SSteven J. Hill * details. 1881a67e52SSteven J. Hill * 1981a67e52SSteven J. Hill * You should have received a copy of the GNU General Public License 2081a67e52SSteven J. Hill * along with this file; if not, write to the Free Software 2181a67e52SSteven J. Hill * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 2281a67e52SSteven J. Hill * or visit http://www.gnu.org/licenses/. 2381a67e52SSteven J. Hill * 2481a67e52SSteven J. Hill * This file may also be available under a different license from Cavium. 2581a67e52SSteven J. Hill * Contact Cavium Networks for more information 2681a67e52SSteven J. Hill ***********************license end**************************************/ 2781a67e52SSteven J. Hill 2881a67e52SSteven J. Hill #ifndef __CVMX_L2D_DEFS_H__ 2981a67e52SSteven J. Hill #define __CVMX_L2D_DEFS_H__ 3081a67e52SSteven J. Hill 3181a67e52SSteven J. Hill #define CVMX_L2D_ERR (CVMX_ADD_IO_SEG(0x0001180080000010ull)) 3281a67e52SSteven J. Hill #define CVMX_L2D_FUS3 (CVMX_ADD_IO_SEG(0x00011800800007B8ull)) 3381a67e52SSteven J. Hill 3481a67e52SSteven J. Hill 3581a67e52SSteven J. Hill union cvmx_l2d_err { 3681a67e52SSteven J. Hill uint64_t u64; 3781a67e52SSteven J. Hill struct cvmx_l2d_err_s { 3881a67e52SSteven J. Hill __BITFIELD_FIELD(uint64_t reserved_6_63:58, 3981a67e52SSteven J. Hill __BITFIELD_FIELD(uint64_t bmhclsel:1, 4081a67e52SSteven J. Hill __BITFIELD_FIELD(uint64_t ded_err:1, 4181a67e52SSteven J. Hill __BITFIELD_FIELD(uint64_t sec_err:1, 4281a67e52SSteven J. Hill __BITFIELD_FIELD(uint64_t ded_intena:1, 4381a67e52SSteven J. Hill __BITFIELD_FIELD(uint64_t sec_intena:1, 4481a67e52SSteven J. Hill __BITFIELD_FIELD(uint64_t ecc_ena:1, 4581a67e52SSteven J. Hill ;))))))) 4681a67e52SSteven J. Hill } s; 4781a67e52SSteven J. Hill }; 4881a67e52SSteven J. Hill 4981a67e52SSteven J. Hill union cvmx_l2d_fus3 { 5081a67e52SSteven J. Hill uint64_t u64; 5181a67e52SSteven J. Hill struct cvmx_l2d_fus3_s { 5281a67e52SSteven J. Hill __BITFIELD_FIELD(uint64_t reserved_40_63:24, 5381a67e52SSteven J. Hill __BITFIELD_FIELD(uint64_t ema_ctl:3, 5481a67e52SSteven J. Hill __BITFIELD_FIELD(uint64_t reserved_34_36:3, 5581a67e52SSteven J. Hill __BITFIELD_FIELD(uint64_t q3fus:34, 5681a67e52SSteven J. Hill ;)))) 5781a67e52SSteven J. Hill } s; 5881a67e52SSteven J. Hill }; 5981a67e52SSteven J. Hill 6081a67e52SSteven J. Hill #endif 61