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-2012 Cavium Networks 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_DBG_DEFS_H__ 298c2ecf20Sopenharmony_ci#define __CVMX_DBG_DEFS_H__ 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#define CVMX_DBG_DATA (CVMX_ADD_IO_SEG(0x00011F00000001E8ull)) 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciunion cvmx_dbg_data { 348c2ecf20Sopenharmony_ci uint64_t u64; 358c2ecf20Sopenharmony_ci struct cvmx_dbg_data_s { 368c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 378c2ecf20Sopenharmony_ci uint64_t reserved_23_63:41; 388c2ecf20Sopenharmony_ci uint64_t c_mul:5; 398c2ecf20Sopenharmony_ci uint64_t dsel_ext:1; 408c2ecf20Sopenharmony_ci uint64_t data:17; 418c2ecf20Sopenharmony_ci#else 428c2ecf20Sopenharmony_ci uint64_t data:17; 438c2ecf20Sopenharmony_ci uint64_t dsel_ext:1; 448c2ecf20Sopenharmony_ci uint64_t c_mul:5; 458c2ecf20Sopenharmony_ci uint64_t reserved_23_63:41; 468c2ecf20Sopenharmony_ci#endif 478c2ecf20Sopenharmony_ci } s; 488c2ecf20Sopenharmony_ci struct cvmx_dbg_data_cn30xx { 498c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 508c2ecf20Sopenharmony_ci uint64_t reserved_31_63:33; 518c2ecf20Sopenharmony_ci uint64_t pll_mul:3; 528c2ecf20Sopenharmony_ci uint64_t reserved_23_27:5; 538c2ecf20Sopenharmony_ci uint64_t c_mul:5; 548c2ecf20Sopenharmony_ci uint64_t dsel_ext:1; 558c2ecf20Sopenharmony_ci uint64_t data:17; 568c2ecf20Sopenharmony_ci#else 578c2ecf20Sopenharmony_ci uint64_t data:17; 588c2ecf20Sopenharmony_ci uint64_t dsel_ext:1; 598c2ecf20Sopenharmony_ci uint64_t c_mul:5; 608c2ecf20Sopenharmony_ci uint64_t reserved_23_27:5; 618c2ecf20Sopenharmony_ci uint64_t pll_mul:3; 628c2ecf20Sopenharmony_ci uint64_t reserved_31_63:33; 638c2ecf20Sopenharmony_ci#endif 648c2ecf20Sopenharmony_ci } cn30xx; 658c2ecf20Sopenharmony_ci struct cvmx_dbg_data_cn38xx { 668c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 678c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 688c2ecf20Sopenharmony_ci uint64_t d_mul:4; 698c2ecf20Sopenharmony_ci uint64_t dclk_mul2:1; 708c2ecf20Sopenharmony_ci uint64_t cclk_div2:1; 718c2ecf20Sopenharmony_ci uint64_t c_mul:5; 728c2ecf20Sopenharmony_ci uint64_t dsel_ext:1; 738c2ecf20Sopenharmony_ci uint64_t data:17; 748c2ecf20Sopenharmony_ci#else 758c2ecf20Sopenharmony_ci uint64_t data:17; 768c2ecf20Sopenharmony_ci uint64_t dsel_ext:1; 778c2ecf20Sopenharmony_ci uint64_t c_mul:5; 788c2ecf20Sopenharmony_ci uint64_t cclk_div2:1; 798c2ecf20Sopenharmony_ci uint64_t dclk_mul2:1; 808c2ecf20Sopenharmony_ci uint64_t d_mul:4; 818c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 828c2ecf20Sopenharmony_ci#endif 838c2ecf20Sopenharmony_ci } cn38xx; 848c2ecf20Sopenharmony_ci struct cvmx_dbg_data_cn58xx { 858c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 868c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 878c2ecf20Sopenharmony_ci uint64_t rem:6; 888c2ecf20Sopenharmony_ci uint64_t c_mul:5; 898c2ecf20Sopenharmony_ci uint64_t dsel_ext:1; 908c2ecf20Sopenharmony_ci uint64_t data:17; 918c2ecf20Sopenharmony_ci#else 928c2ecf20Sopenharmony_ci uint64_t data:17; 938c2ecf20Sopenharmony_ci uint64_t dsel_ext:1; 948c2ecf20Sopenharmony_ci uint64_t c_mul:5; 958c2ecf20Sopenharmony_ci uint64_t rem:6; 968c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 978c2ecf20Sopenharmony_ci#endif 988c2ecf20Sopenharmony_ci } cn58xx; 998c2ecf20Sopenharmony_ci}; 1008c2ecf20Sopenharmony_ci 1018c2ecf20Sopenharmony_ci#endif 102