📄 gt64120.h
字号:
/************************************************************************ * * gt64120.h * * Register definitions for Galileo 64120 system controller * * ###################################################################### * * mips_start_of_legal_notice * * Copyright (c) 2004 MIPS Technologies, Inc. All rights reserved. * * * Unpublished rights (if any) reserved under the copyright laws of the * United States of America and other countries. * * This code is proprietary to MIPS Technologies, Inc. ("MIPS * Technologies"). Any copying, reproducing, modifying or use of this code * (in whole or in part) that is not expressly permitted in writing by MIPS * Technologies or an authorized third party is strictly prohibited. At a * minimum, this code is protected under unfair competition and copyright * laws. Violations thereof may result in criminal penalties and fines. * * MIPS Technologies reserves the right to change this code to improve * function, design or otherwise. MIPS Technologies does not assume any * liability arising out of the application or use of this code, or of any * error or omission in such code. Any warranties, whether express, * statutory, implied or otherwise, including but not limited to the implied * warranties of merchantability or fitness for a particular purpose, are * excluded. Except as expressly provided in any written license agreement * from MIPS Technologies or an authorized third party, the furnishing of * this code does not give recipient any license to any intellectual * property rights, including any patent rights, that cover this code. * * This code shall not be exported, reexported, transferred, or released, * directly or indirectly, in violation of the law of any country or * international law, regulation, treaty, Executive Order, statute, * amendments or supplements thereto. Should a conflict arise regarding the * export, reexport, transfer, or release of this code, the laws of the * United States of America shall be the governing law. * * This code constitutes one or more of the following: commercial computer * software, commercial computer software documentation or other commercial * items. If the user of this code, or any related documentation of any * kind, including related technical data or manuals, is an agency, * department, or other entity of the United States government * ("Government"), the use, duplication, reproduction, release, * modification, disclosure, or transfer of this code, or any related * documentation of any kind, is restricted in accordance with Federal * Acquisition Regulation 12.212 for civilian agencies and Defense Federal * Acquisition Regulation Supplement 227.7202 for military agencies. The use * of this code by the Government is further restricted in accordance with * the terms of the license agreement(s) and/or applicable contract terms * and conditions covering this code from MIPS Technologies or an authorized * third party. * * * * * mips_end_of_legal_notice * * ************************************************************************/#ifndef GT64120_H#define GT64120_H/************************************************************************ * Include files ************************************************************************/#include <sysdefs.h>#include <pci.h>/************************************************************************ * Register offset addresses ************************************************************************/#define GT_CPU_OFS 0x000#define GT_INTRCAUSE_OFS 0xc18#define GT_CPUINT_MASK_OFS 0xc1c#define GT_PCI0_CMD_OFS 0xc00#define GT_PCI0_CFGADDR_OFS 0xcf8#define GT_PCI0_CFGDATA_OFS 0xcfc#define GT_SDRAM_BM_OFS 0x478#define GT_SDRAM_ADDRDECODE_OFS 0x47c#define GT_SDRAM_B0_OFS 0x44c#define GT_SDRAM_B2_OFS 0x454#define GT_SDRAM_CFG_OFS 0x448#define GT_SDRAM_OPMODE_OFS 0x474#define GT_ISD_OFS 0x068#define GT_SCS10LD_OFS 0x008#define GT_SCS10HD_OFS 0x010#define GT_SCS32LD_OFS 0x018#define GT_SCS32HD_OFS 0x020#define GT_CS20LD_OFS 0x028#define GT_CS20HD_OFS 0x030#define GT_CS3BOOTLD_OFS 0x038#define GT_CS3BOOTHD_OFS 0x040#define GT_PCI0IOLD_OFS 0x048#define GT_PCI0IOHD_OFS 0x050#define GT_PCI0M0LD_OFS 0x058#define GT_PCI0M0HD_OFS 0x060#define GT_PCI0M1LD_OFS 0x080#define GT_PCI0M1HD_OFS 0x088#define GT_PCI1IOLD_OFS 0x090#define GT_PCI1IOHD_OFS 0x098#define GT_PCI1M0LD_OFS 0x0a0#define GT_PCI1M0HD_OFS 0x0a8#define GT_PCI1M1LD_OFS 0x0b0#define GT_PCI1M1HD_OFS 0x0b8#define GT_PCI0IORMP_OFS 0x0f0#define GT_SCS0LD_OFS 0x400 #define GT_SCS0HD_OFS 0x404#define GT_SCS1LD_OFS 0x408#define GT_SCS1HD_OFS 0x40c#define GT_SCS2LD_OFS 0x410#define GT_SCS2HD_OFS 0x414#define GT_SCS3LD_OFS 0x418#define GT_SCS3HD_OFS 0x41c#define GT_CS0LD_OFS 0x420#define GT_CS0HD_OFS 0x424#define GT_CS1LD_OFS 0x428#define GT_CS1HD_OFS 0x42c#define GT_CS2LD_OFS 0x430#define GT_CS2HD_OFS 0x434#define GT_CS3LD_OFS 0x438#define GT_CS3HD_OFS 0x43c#define GT_BOOTLD_OFS 0x440#define GT_BOOTHD_OFS 0x444#define GT_TC0VALUE_OFS 0x850#define GT_TC1VALUE_OFS 0x854#define GT_TC2VALUE_OFS 0x858#define GT_TC3VALUE_OFS 0x85c#define GT_TCCTRL_OFS 0x864#define GT_PCI0_BS_SCS10_OFS 0Xc08#define GT_PCI0_BS_SCS32_OFS 0xc0c#define GT_PCI0_BARE_OFS 0Xc3c#define GT_PCI0_TOR_OFS 0xc04#define GT_PCI0_IACK_OFS 0xc34/************************************************************************ * Register encodings ************************************************************************/#define GT_ISD_DEFAULT 0x000000a0#define GT_CPU_WR_SHF 16#define GT_CPU_WR_MSK (MSK(1) << GT_CPU_WR_SHF)#define GT_CPU_WR_BIT GT_CPU_WR_MSK#define GT_CPU_WR_DXDXDXDX 0#define GT_CPU_WR_DDDD 1#define GT_CFGADDR_CFGEN_SHF 31#define GT_CFGADDR_CFGEN_MSK (MSK(1) << GT_CFGADDR_CFGEN_SHF)#define GT_CFGADDR_CFGEN_BIT GT_CFGADDR_CFGEN_MSK#define GT_CFGADDR_BUSNUM_SHF 16#define GT_CFGADDR_BUSNUM_MSK (MSK(8) << GT_CFGADDR_BUSNUM_SHF)#define GT_CFGADDR_DEVNUM_SHF 11#define GT_CFGADDR_DEVNUM_MSK (MSK(5) << GT_CFGADDR_DEVNUM_SHF)#define GT_CFGADDR_FUNCNUM_SHF 8#define GT_CFGADDR_FUNCNUM_MSK (MSK(3) << GT_CFGADDR_FUNCNUM_SHF)#define GT_CFGADDR_REGNUM_SHF 2#define GT_CFGADDR_REGNUM_MSK (MSK(6) << GT_CFGADDR_REGNUM_SHF)#define GT_SDRAM_BM_ORDER_SHF 2#define GT_SDRAM_BM_ORDER_MSK (MSK(1) << GT_SDRAM_BM_ORDER_SHF)#define GT_SDRAM_BM_ORDER_BIT GT_SDRAM_BM_ORDER_MSK#define GT_SDRAM_BM_ORDER_SUB 1#define GT_SDRAM_BM_ORDER_LIN 0#define GT_SDRAM_BM_RSVD_ALL1 0xFFB#define GT_SDRAM_ADDRDECODE_ADDR_SHF 0#define GT_SDRAM_ADDRDECODE_ADDR_MSK (MSK(3) << GT_SDRAM_ADDRDECODE_ADDR_SHF)#define GT_SDRAM_ADDRDECODE_ADDR_0 0#define GT_SDRAM_ADDRDECODE_ADDR_1 1#define GT_SDRAM_ADDRDECODE_ADDR_2 2#define GT_SDRAM_ADDRDECODE_ADDR_3 3#define GT_SDRAM_ADDRDECODE_ADDR_4 4#define GT_SDRAM_ADDRDECODE_ADDR_5 5#define GT_SDRAM_ADDRDECODE_ADDR_6 6#define GT_SDRAM_ADDRDECODE_ADDR_7 7#define GT_SDRAM_B0_CASLAT_SHF 0#define GT_SDRAM_B0_CASLAT_MSK (MSK(2) << GT_SDRAM_B0_CASLAT_SHF)#define GT_SDRAM_B0_CASLAT_2 1#define GT_SDRAM_B0_CASLAT_3 2#define GT_SDRAM_B0_FTDIS_SHF 2#define GT_SDRAM_B0_FTDIS_MSK (MSK(1) << GT_SDRAM_B0_FTDIS_SHF)#define GT_SDRAM_B0_FTDIS_BIT GT_SDRAM_B0_FTDIS_MSK#define GT_SDRAM_B0_SRASPRCHG_SHF 3#define GT_SDRAM_B0_SRASPRCHG_MSK (MSK(1) << GT_SDRAM_B0_SRASPRCHG_SHF)#define GT_SDRAM_B0_SRASPRCHG_BIT GT_SDRAM_B0_SRASPRCHG_MSK#define GT_SDRAM_B0_SRASPRCHG_2 0#define GT_SDRAM_B0_SRASPRCHG_3 1#define GT_SDRAM_B0_B0COMPAB_SHF 4#define GT_SDRAM_B0_B0COMPAB_MSK (MSK(1) << GT_SDRAM_B0_B0COMPAB_SHF)#define GT_SDRAM_B0_B0COMPAB_BIT GT_SDRAM_B0_B0COMPAB_MSK#define GT_SDRAM_B0_64BITINT_SHF 5#define GT_SDRAM_B0_64BITINT_MSK (MSK(1) << GT_SDRAM_B0_64BITINT_SHF)#define GT_SDRAM_B0_64BITINT_BIT GT_SDRAM_B0_64BITINT_MSK#define GT_SDRAM_B0_64BITINT_2 0#define GT_SDRAM_B0_64BITINT_4 1#define GT_SDRAM_B0_BW_SHF 6#define GT_SDRAM_B0_BW_MSK (MSK(1) << GT_SDRAM_B0_BW_SHF)#define GT_SDRAM_B0_BW_BIT GT_SDRAM_B0_BW_MSK#define GT_SDRAM_B0_BW_32 0#define GT_SDRAM_B0_BW_64 1#define GT_SDRAM_B0_BLODD_SHF 7#define GT_SDRAM_B0_BLODD_MSK (MSK(1) << GT_SDRAM_B0_BLODD_SHF)#define GT_SDRAM_B0_BLODD_BIT GT_SDRAM_B0_BLODD_MSK#define GT_SDRAM_B0_PAR_SHF 8#define GT_SDRAM_B0_PAR_MSK (MSK(1) << GT_SDRAM_B0_PAR_SHF)#define GT_SDRAM_B0_PAR_BIT GT_SDRAM_B0_PAR_MSK#define GT_SDRAM_B0_BYPASS_SHF 9#define GT_SDRAM_B0_BYPASS_MSK (MSK(1) << GT_SDRAM_B0_BYPASS_SHF)#define GT_SDRAM_B0_BYPASS_BIT GT_SDRAM_B0_BYPASS_MSK#define GT_SDRAM_B0_SRAS2SCAS_SHF 10#define GT_SDRAM_B0_SRAS2SCAS_MSK (MSK(1) << GT_SDRAM_B0_SRAS2SCAS_SHF)#define GT_SDRAM_B0_SRAS2SCAS_BIT GT_SDRAM_B0_SRAS2SCAS_MSK#define GT_SDRAM_B0_SRAS2SCAS_2 0#define GT_SDRAM_B0_SRAS2SCAS_3 1#define GT_SDRAM_B0_SIZE_SHF 11#define GT_SDRAM_B0_SIZE_MSK (MSK(1) << GT_SDRAM_B0_SIZE_SHF)#define GT_SDRAM_B0_SIZE_BIT GT_SDRAM_B0_SIZE_MSK#define GT_SDRAM_B0_SIZE_16M 0#define GT_SDRAM_B0_SIZE_64M 1#define GT_SDRAM_B0_EXTPAR_SHF 12#define GT_SDRAM_B0_EXTPAR_MSK (MSK(1) << GT_SDRAM_B0_EXTPAR_SHF)#define GT_SDRAM_B0_EXTPAR_BIT GT_SDRAM_B0_EXTPAR_MSK#define GT_SDRAM_B0_BLEN_SHF 13#define GT_SDRAM_B0_BLEN_MSK (MSK(1) << GT_SDRAM_B0_BLEN_SHF)#define GT_SDRAM_B0_BLEN_BIT GT_SDRAM_B0_BLEN_MSK#define GT_SDRAM_B0_BLEN_8 0#define GT_SDRAM_B0_BLEN_4 1#define GT_SDRAM_CFG_REFINT_SHF 0#define GT_SDRAM_CFG_REFINT_MSK (MSK(14) << GT_SDRAM_CFG_REFINT_SHF)#define GT_SDRAM_CFG_NINTERLEAVE_SHF 14#define GT_SDRAM_CFG_NINTERLEAVE_MSK (MSK(1) << GT_SDRAM_CFG_NINTERLEAVE_SHF)#define GT_SDRAM_CFG_NINTERLEAVE_BIT GT_SDRAM_CFG_NINTERLEAVE_MSK#define GT_SDRAM_CFG_RMW_SHF 15#define GT_SDRAM_CFG_RMW_MSK (MSK(1) << GT_SDRAM_CFG_RMW_SHF)#define GT_SDRAM_CFG_RMW_BIT GT_SDRAM_CFG_RMW_MSK#define GT_SDRAM_CFG_NONSTAGREF_SHF 16#define GT_SDRAM_CFG_NONSTAGREF_MSK (MSK(1) << GT_SDRAM_CFG_NONSTAGREF_SHF)#define GT_SDRAM_CFG_NONSTAGREF_BIT GT_SDRAM_CFG_NONSTAGREF_MSK#define GT_SDRAM_CFG_DUPCNTL_SHF 19#define GT_SDRAM_CFG_DUPCNTL_MSK (MSK(1) << GT_SDRAM_CFG_DUPCNTL_SHF)#define GT_SDRAM_CFG_DUPCNTL_BIT GT_SDRAM_CFG_DUPCNTL_MSK#define GT_SDRAM_CFG_DUPBA_SHF 20#define GT_SDRAM_CFG_DUPBA_MSK (MSK(1) << GT_SDRAM_CFG_DUPBA_SHF)#define GT_SDRAM_CFG_DUPBA_BIT GT_SDRAM_CFG_DUPBA_MSK#define GT_SDRAM_CFG_DUPEOT0_SHF 21#define GT_SDRAM_CFG_DUPEOT0_MSK (MSK(1) << GT_SDRAM_CFG_DUPEOT0_SHF)#define GT_SDRAM_CFG_DUPEOT0_BIT GT_SDRAM_CFG_DUPEOT0_MSK#define GT_SDRAM_CFG_DUPEOT1_SHF 22#define GT_SDRAM_CFG_DUPEOT1_MSK (MSK(1) << GT_SDRAM_CFG_DUPEOT1_SHF)#define GT_SDRAM_CFG_DUPEOT1_BIT GT_SDRAM_CFG_DUPEOT1_MSK#define GT_SDRAM_OPMODE_OP_SHF 0#define GT_SDRAM_OPMODE_OP_MSK (MSK(3) << GT_SDRAM_OPMODE_OP_SHF)#define GT_SDRAM_OPMODE_OP_NORMAL 0#define GT_SDRAM_OPMODE_OP_NOP 1#define GT_SDRAM_OPMODE_OP_PRCHG 2#define GT_SDRAM_OPMODE_OP_MODE 3#define GT_SDRAM_OPMODE_OP_CBR 4#define GT_PCI0_BARE_SWSCS3BOOTDIS_SHF 0#define GT_PCI0_BARE_SWSCS3BOOTDIS_MSK (MSK(1) << GT_PCI0_BARE_SWSCS3BOOTDIS_SHF)#define GT_PCI0_BARE_SWSCS3BOOTDIS_BIT GT_PCI0_BARE_SWSCS3BOOTDIS_MSK#define GT_PCI0_BARE_SWSCS32DIS_SHF 1#define GT_PCI0_BARE_SWSCS32DIS_MSK (MSK(1) << GT_PCI0_BARE_SWSCS32DIS_SHF)#define GT_PCI0_BARE_SWSCS32DIS_BIT GT_PCI0_BARE_SWSCS32DIS_MSK #define GT_PCI0_BARE_SWSCS10DIS_SHF 2#define GT_PCI0_BARE_SWSCS10DIS_MSK (MSK(1) << GT_PCI0_BARE_SWSCS10DIS_SHF)#define GT_PCI0_BARE_SWSCS10DIS_BIT GT_PCI0_BARE_SWSCS10DIS_MSK
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -