18c2ecf20Sopenharmony_ci/***********************license start*************** 28c2ecf20Sopenharmony_ci * Author: Cavium Networks 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Contact: support@caviumnetworks.com 58c2ecf20Sopenharmony_ci * This file is part of the OCTEON SDK 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Copyright (c) 2003-2017 Cavium, Inc. 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * This file is free software; you can redistribute it and/or modify 108c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License, Version 2, as 118c2ecf20Sopenharmony_ci * published by the Free Software Foundation. 128c2ecf20Sopenharmony_ci * 138c2ecf20Sopenharmony_ci * This file is distributed in the hope that it will be useful, but 148c2ecf20Sopenharmony_ci * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 158c2ecf20Sopenharmony_ci * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or 168c2ecf20Sopenharmony_ci * NONINFRINGEMENT. See the GNU General Public License for more 178c2ecf20Sopenharmony_ci * details. 188c2ecf20Sopenharmony_ci * 198c2ecf20Sopenharmony_ci * You should have received a copy of the GNU General Public License 208c2ecf20Sopenharmony_ci * along with this file; if not, write to the Free Software 218c2ecf20Sopenharmony_ci * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 228c2ecf20Sopenharmony_ci * or visit http://www.gnu.org/licenses/. 238c2ecf20Sopenharmony_ci * 248c2ecf20Sopenharmony_ci * This file may also be available under a different license from Cavium. 258c2ecf20Sopenharmony_ci * Contact Cavium Networks for more information 268c2ecf20Sopenharmony_ci ***********************license end**************************************/ 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#ifndef __CVMX_L2D_DEFS_H__ 298c2ecf20Sopenharmony_ci#define __CVMX_L2D_DEFS_H__ 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#define CVMX_L2D_ERR (CVMX_ADD_IO_SEG(0x0001180080000010ull)) 328c2ecf20Sopenharmony_ci#define CVMX_L2D_FUS3 (CVMX_ADD_IO_SEG(0x00011800800007B8ull)) 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ciunion cvmx_l2d_err { 368c2ecf20Sopenharmony_ci uint64_t u64; 378c2ecf20Sopenharmony_ci struct cvmx_l2d_err_s { 388c2ecf20Sopenharmony_ci __BITFIELD_FIELD(uint64_t reserved_6_63:58, 398c2ecf20Sopenharmony_ci __BITFIELD_FIELD(uint64_t bmhclsel:1, 408c2ecf20Sopenharmony_ci __BITFIELD_FIELD(uint64_t ded_err:1, 418c2ecf20Sopenharmony_ci __BITFIELD_FIELD(uint64_t sec_err:1, 428c2ecf20Sopenharmony_ci __BITFIELD_FIELD(uint64_t ded_intena:1, 438c2ecf20Sopenharmony_ci __BITFIELD_FIELD(uint64_t sec_intena:1, 448c2ecf20Sopenharmony_ci __BITFIELD_FIELD(uint64_t ecc_ena:1, 458c2ecf20Sopenharmony_ci ;))))))) 468c2ecf20Sopenharmony_ci } s; 478c2ecf20Sopenharmony_ci}; 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ciunion cvmx_l2d_fus3 { 508c2ecf20Sopenharmony_ci uint64_t u64; 518c2ecf20Sopenharmony_ci struct cvmx_l2d_fus3_s { 528c2ecf20Sopenharmony_ci __BITFIELD_FIELD(uint64_t reserved_40_63:24, 538c2ecf20Sopenharmony_ci __BITFIELD_FIELD(uint64_t ema_ctl:3, 548c2ecf20Sopenharmony_ci __BITFIELD_FIELD(uint64_t reserved_34_36:3, 558c2ecf20Sopenharmony_ci __BITFIELD_FIELD(uint64_t q3fus:34, 568c2ecf20Sopenharmony_ci ;)))) 578c2ecf20Sopenharmony_ci } s; 588c2ecf20Sopenharmony_ci}; 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci#endif 61