162306a36Sopenharmony_ci/***********************license start***************
262306a36Sopenharmony_ci * Author: Cavium Networks
362306a36Sopenharmony_ci *
462306a36Sopenharmony_ci * Contact: support@caviumnetworks.com
562306a36Sopenharmony_ci * This file is part of the OCTEON SDK
662306a36Sopenharmony_ci *
762306a36Sopenharmony_ci * Copyright (c) 2003-2017 Cavium, Inc.
862306a36Sopenharmony_ci *
962306a36Sopenharmony_ci * This file is free software; you can redistribute it and/or modify
1062306a36Sopenharmony_ci * it under the terms of the GNU General Public License, Version 2, as
1162306a36Sopenharmony_ci * published by the Free Software Foundation.
1262306a36Sopenharmony_ci *
1362306a36Sopenharmony_ci * This file is distributed in the hope that it will be useful, but
1462306a36Sopenharmony_ci * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
1562306a36Sopenharmony_ci * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
1662306a36Sopenharmony_ci * NONINFRINGEMENT.  See the GNU General Public License for more
1762306a36Sopenharmony_ci * details.
1862306a36Sopenharmony_ci *
1962306a36Sopenharmony_ci * You should have received a copy of the GNU General Public License
2062306a36Sopenharmony_ci * along with this file; if not, write to the Free Software
2162306a36Sopenharmony_ci * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2262306a36Sopenharmony_ci * or visit http://www.gnu.org/licenses/.
2362306a36Sopenharmony_ci *
2462306a36Sopenharmony_ci * This file may also be available under a different license from Cavium.
2562306a36Sopenharmony_ci * Contact Cavium Networks for more information
2662306a36Sopenharmony_ci ***********************license end**************************************/
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#ifndef __CVMX_L2D_DEFS_H__
2962306a36Sopenharmony_ci#define __CVMX_L2D_DEFS_H__
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci#define CVMX_L2D_ERR	(CVMX_ADD_IO_SEG(0x0001180080000010ull))
3262306a36Sopenharmony_ci#define CVMX_L2D_FUS3	(CVMX_ADD_IO_SEG(0x00011800800007B8ull))
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ciunion cvmx_l2d_err {
3662306a36Sopenharmony_ci	uint64_t u64;
3762306a36Sopenharmony_ci	struct cvmx_l2d_err_s {
3862306a36Sopenharmony_ci		__BITFIELD_FIELD(uint64_t reserved_6_63:58,
3962306a36Sopenharmony_ci		__BITFIELD_FIELD(uint64_t bmhclsel:1,
4062306a36Sopenharmony_ci		__BITFIELD_FIELD(uint64_t ded_err:1,
4162306a36Sopenharmony_ci		__BITFIELD_FIELD(uint64_t sec_err:1,
4262306a36Sopenharmony_ci		__BITFIELD_FIELD(uint64_t ded_intena:1,
4362306a36Sopenharmony_ci		__BITFIELD_FIELD(uint64_t sec_intena:1,
4462306a36Sopenharmony_ci		__BITFIELD_FIELD(uint64_t ecc_ena:1,
4562306a36Sopenharmony_ci		;)))))))
4662306a36Sopenharmony_ci	} s;
4762306a36Sopenharmony_ci};
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ciunion cvmx_l2d_fus3 {
5062306a36Sopenharmony_ci	uint64_t u64;
5162306a36Sopenharmony_ci	struct cvmx_l2d_fus3_s {
5262306a36Sopenharmony_ci		__BITFIELD_FIELD(uint64_t reserved_40_63:24,
5362306a36Sopenharmony_ci		__BITFIELD_FIELD(uint64_t ema_ctl:3,
5462306a36Sopenharmony_ci		__BITFIELD_FIELD(uint64_t reserved_34_36:3,
5562306a36Sopenharmony_ci		__BITFIELD_FIELD(uint64_t q3fus:34,
5662306a36Sopenharmony_ci		;))))
5762306a36Sopenharmony_ci	} s;
5862306a36Sopenharmony_ci};
5962306a36Sopenharmony_ci
6062306a36Sopenharmony_ci#endif
61