18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright 2003-2011 NetLogic Microsystems, Inc. (NetLogic). All rights 38c2ecf20Sopenharmony_ci * reserved. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * This software is available to you under a choice of one of two 68c2ecf20Sopenharmony_ci * licenses. You may choose to be licensed under the terms of the GNU 78c2ecf20Sopenharmony_ci * General Public License (GPL) Version 2, available from the file 88c2ecf20Sopenharmony_ci * COPYING in the main directory of this source tree, or the NetLogic 98c2ecf20Sopenharmony_ci * license below: 108c2ecf20Sopenharmony_ci * 118c2ecf20Sopenharmony_ci * Redistribution and use in source and binary forms, with or without 128c2ecf20Sopenharmony_ci * modification, are permitted provided that the following conditions 138c2ecf20Sopenharmony_ci * are met: 148c2ecf20Sopenharmony_ci * 158c2ecf20Sopenharmony_ci * 1. Redistributions of source code must retain the above copyright 168c2ecf20Sopenharmony_ci * notice, this list of conditions and the following disclaimer. 178c2ecf20Sopenharmony_ci * 2. Redistributions in binary form must reproduce the above copyright 188c2ecf20Sopenharmony_ci * notice, this list of conditions and the following disclaimer in 198c2ecf20Sopenharmony_ci * the documentation and/or other materials provided with the 208c2ecf20Sopenharmony_ci * distribution. 218c2ecf20Sopenharmony_ci * 228c2ecf20Sopenharmony_ci * THIS SOFTWARE IS PROVIDED BY NETLOGIC ``AS IS'' AND ANY EXPRESS OR 238c2ecf20Sopenharmony_ci * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 248c2ecf20Sopenharmony_ci * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 258c2ecf20Sopenharmony_ci * ARE DISCLAIMED. IN NO EVENT SHALL NETLOGIC OR CONTRIBUTORS BE LIABLE 268c2ecf20Sopenharmony_ci * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 278c2ecf20Sopenharmony_ci * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 288c2ecf20Sopenharmony_ci * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 298c2ecf20Sopenharmony_ci * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 308c2ecf20Sopenharmony_ci * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 318c2ecf20Sopenharmony_ci * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 328c2ecf20Sopenharmony_ci * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 338c2ecf20Sopenharmony_ci */ 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci#ifndef __NLM_HAL_CPUCONTROL_H__ 368c2ecf20Sopenharmony_ci#define __NLM_HAL_CPUCONTROL_H__ 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci#define CPU_BLOCKID_IFU 0 398c2ecf20Sopenharmony_ci#define CPU_BLOCKID_ICU 1 408c2ecf20Sopenharmony_ci#define CPU_BLOCKID_IEU 2 418c2ecf20Sopenharmony_ci#define CPU_BLOCKID_LSU 3 428c2ecf20Sopenharmony_ci#define CPU_BLOCKID_MMU 4 438c2ecf20Sopenharmony_ci#define CPU_BLOCKID_PRF 5 448c2ecf20Sopenharmony_ci#define CPU_BLOCKID_SCH 7 458c2ecf20Sopenharmony_ci#define CPU_BLOCKID_SCU 8 468c2ecf20Sopenharmony_ci#define CPU_BLOCKID_FPU 9 478c2ecf20Sopenharmony_ci#define CPU_BLOCKID_MAP 10 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci#define IFU_BRUB_RESERVE 0x007 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci#define ICU_DEFEATURE 0x100 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci#define LSU_DEFEATURE 0x304 548c2ecf20Sopenharmony_ci#define LSU_DEBUG_ADDR 0x305 558c2ecf20Sopenharmony_ci#define LSU_DEBUG_DATA0 0x306 568c2ecf20Sopenharmony_ci#define LSU_CERRLOG_REGID 0x309 578c2ecf20Sopenharmony_ci#define SCHED_DEFEATURE 0x700 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci/* Offsets of interest from the 'MAP' Block */ 608c2ecf20Sopenharmony_ci#define MAP_THREADMODE 0x00 618c2ecf20Sopenharmony_ci#define MAP_EXT_EBASE_ENABLE 0x04 628c2ecf20Sopenharmony_ci#define MAP_CCDI_CONFIG 0x08 638c2ecf20Sopenharmony_ci#define MAP_THRD0_CCDI_STATUS 0x0c 648c2ecf20Sopenharmony_ci#define MAP_THRD1_CCDI_STATUS 0x10 658c2ecf20Sopenharmony_ci#define MAP_THRD2_CCDI_STATUS 0x14 668c2ecf20Sopenharmony_ci#define MAP_THRD3_CCDI_STATUS 0x18 678c2ecf20Sopenharmony_ci#define MAP_THRD0_DEBUG_MODE 0x1c 688c2ecf20Sopenharmony_ci#define MAP_THRD1_DEBUG_MODE 0x20 698c2ecf20Sopenharmony_ci#define MAP_THRD2_DEBUG_MODE 0x24 708c2ecf20Sopenharmony_ci#define MAP_THRD3_DEBUG_MODE 0x28 718c2ecf20Sopenharmony_ci#define MAP_MISC_STATE 0x60 728c2ecf20Sopenharmony_ci#define MAP_DEBUG_READ_CTL 0x64 738c2ecf20Sopenharmony_ci#define MAP_DEBUG_READ_REG0 0x68 748c2ecf20Sopenharmony_ci#define MAP_DEBUG_READ_REG1 0x6c 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci#define MMU_SETUP 0x400 778c2ecf20Sopenharmony_ci#define MMU_LFSRSEED 0x401 788c2ecf20Sopenharmony_ci#define MMU_HPW_NUM_PAGE_LVL 0x410 798c2ecf20Sopenharmony_ci#define MMU_PGWKR_PGDBASE 0x411 808c2ecf20Sopenharmony_ci#define MMU_PGWKR_PGDSHFT 0x412 818c2ecf20Sopenharmony_ci#define MMU_PGWKR_PGDMASK 0x413 828c2ecf20Sopenharmony_ci#define MMU_PGWKR_PUDSHFT 0x414 838c2ecf20Sopenharmony_ci#define MMU_PGWKR_PUDMASK 0x415 848c2ecf20Sopenharmony_ci#define MMU_PGWKR_PMDSHFT 0x416 858c2ecf20Sopenharmony_ci#define MMU_PGWKR_PMDMASK 0x417 868c2ecf20Sopenharmony_ci#define MMU_PGWKR_PTESHFT 0x418 878c2ecf20Sopenharmony_ci#define MMU_PGWKR_PTEMASK 0x419 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ci#endif /* __NLM_CPUCONTROL_H__ */ 90