gt64120.h

来自「linux 内核源代码」· C头文件 代码 · 共 581 行 · 第 1/2 页

H
581
字号
/* * Copyright (C) 2000, 2004, 2005  MIPS Technologies, Inc. *	All rights reserved. *	Authors: Carsten Langgaard <carstenl@mips.com> *		 Maciej W. Rozycki <macro@mips.com> * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org) * *  This program is free software; you can distribute it and/or modify it *  under the terms of the GNU General Public License (Version 2) as *  published by the Free Software Foundation. * *  This program is distributed in the hope it will be useful, but WITHOUT *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License *  for more details. * *  You should have received a copy of the GNU General Public License along *  with this program; if not, write to the Free Software Foundation, Inc., *  59 Temple Place - Suite 330, Boston MA 02111-1307, USA. */#ifndef _ASM_GT64120_H#define _ASM_GT64120_H#include <linux/clocksource.h>#include <asm/addrspace.h>#include <asm/byteorder.h>#define MSK(n)			((1 << (n)) - 1)/* *  Register offset addresses *//* CPU Configuration.  */#define GT_CPU_OFS		0x000#define GT_MULTI_OFS		0x120/* CPU Address Decode.  */#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_ISD_OFS		0x068#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_PCI1M1LD_OFS		0x0b0#define GT_PCI1M1HD_OFS		0x0b8#define GT_SCS10AR_OFS		0x0d0#define GT_SCS32AR_OFS		0x0d8#define GT_CS20R_OFS		0x0e0#define GT_CS3BOOTR_OFS		0x0e8#define GT_PCI0IOREMAP_OFS	0x0f0#define GT_PCI0M0REMAP_OFS	0x0f8#define GT_PCI0M1REMAP_OFS	0x100#define GT_PCI1IOREMAP_OFS	0x108#define GT_PCI1M0REMAP_OFS	0x110#define GT_PCI1M1REMAP_OFS	0x118/* CPU Error Report.  */#define GT_CPUERR_ADDRLO_OFS	0x070#define GT_CPUERR_ADDRHI_OFS	0x078#define GT_CPUERR_DATALO_OFS	0x128			/* GT-64120A only  */#define GT_CPUERR_DATAHI_OFS	0x130			/* GT-64120A only  */#define GT_CPUERR_PARITY_OFS	0x138			/* GT-64120A only  *//* CPU Sync Barrier.  */#define GT_PCI0SYNC_OFS		0x0c0#define GT_PCI1SYNC_OFS		0x0c8/* SDRAM and Device Address Decode.  */#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_ADERR_OFS		0x470/* SDRAM Configuration.  */#define GT_SDRAM_CFG_OFS	0x448#define GT_SDRAM_OPMODE_OFS	0x474#define GT_SDRAM_BM_OFS		0x478#define GT_SDRAM_ADDRDECODE_OFS	0x47c/* SDRAM Parameters.  */#define GT_SDRAM_B0_OFS		0x44c#define GT_SDRAM_B1_OFS		0x450#define GT_SDRAM_B2_OFS		0x454#define GT_SDRAM_B3_OFS		0x458/* Device Parameters.  */#define GT_DEV_B0_OFS		0x45c#define GT_DEV_B1_OFS		0x460#define GT_DEV_B2_OFS		0x464#define GT_DEV_B3_OFS		0x468#define GT_DEV_BOOT_OFS		0x46c/* ECC.  */#define GT_ECC_ERRDATALO	0x480			/* GT-64120A only  */#define GT_ECC_ERRDATAHI	0x484			/* GT-64120A only  */#define GT_ECC_MEM		0x488			/* GT-64120A only  */#define GT_ECC_CALC		0x48c			/* GT-64120A only  */#define GT_ECC_ERRADDR		0x490			/* GT-64120A only  *//* DMA Record.  */#define GT_DMA0_CNT_OFS		0x800#define GT_DMA1_CNT_OFS		0x804#define GT_DMA2_CNT_OFS		0x808#define GT_DMA3_CNT_OFS		0x80c#define GT_DMA0_SA_OFS		0x810#define GT_DMA1_SA_OFS		0x814#define GT_DMA2_SA_OFS		0x818#define GT_DMA3_SA_OFS		0x81c#define GT_DMA0_DA_OFS		0x820#define GT_DMA1_DA_OFS		0x824#define GT_DMA2_DA_OFS		0x828#define GT_DMA3_DA_OFS		0x82c#define GT_DMA0_NEXT_OFS	0x830#define GT_DMA1_NEXT_OFS	0x834#define GT_DMA2_NEXT_OFS	0x838#define GT_DMA3_NEXT_OFS	0x83c#define GT_DMA0_CUR_OFS		0x870#define GT_DMA1_CUR_OFS		0x874#define GT_DMA2_CUR_OFS		0x878#define GT_DMA3_CUR_OFS		0x87c/* DMA Channel Control.  */#define GT_DMA0_CTRL_OFS	0x840#define GT_DMA1_CTRL_OFS	0x844#define GT_DMA2_CTRL_OFS	0x848#define GT_DMA3_CTRL_OFS	0x84c/* DMA Arbiter.  */#define GT_DMA_ARB_OFS		0x860/* Timer/Counter.  */#define GT_TC0_OFS		0x850#define GT_TC1_OFS		0x854#define GT_TC2_OFS		0x858#define GT_TC3_OFS		0x85c#define GT_TC_CONTROL_OFS	0x864/* PCI Internal.  */#define GT_PCI0_CMD_OFS		0xc00#define GT_PCI0_TOR_OFS		0xc04#define GT_PCI0_BS_SCS10_OFS	0xc08#define GT_PCI0_BS_SCS32_OFS	0xc0c#define GT_PCI0_BS_CS20_OFS	0xc10#define GT_PCI0_BS_CS3BT_OFS	0xc14#define GT_PCI1_IACK_OFS	0xc30#define GT_PCI0_IACK_OFS	0xc34#define GT_PCI0_BARE_OFS	0xc3c#define GT_PCI0_PREFMBR_OFS	0xc40#define GT_PCI0_SCS10_BAR_OFS	0xc48#define GT_PCI0_SCS32_BAR_OFS	0xc4c#define GT_PCI0_CS20_BAR_OFS	0xc50#define GT_PCI0_CS3BT_BAR_OFS	0xc54#define GT_PCI0_SSCS10_BAR_OFS	0xc58#define GT_PCI0_SSCS32_BAR_OFS	0xc5c#define GT_PCI0_SCS3BT_BAR_OFS	0xc64#define GT_PCI1_CMD_OFS		0xc80#define GT_PCI1_TOR_OFS		0xc84#define GT_PCI1_BS_SCS10_OFS	0xc88#define GT_PCI1_BS_SCS32_OFS	0xc8c#define GT_PCI1_BS_CS20_OFS	0xc90#define GT_PCI1_BS_CS3BT_OFS	0xc94#define GT_PCI1_BARE_OFS	0xcbc#define GT_PCI1_PREFMBR_OFS	0xcc0#define GT_PCI1_SCS10_BAR_OFS	0xcc8#define GT_PCI1_SCS32_BAR_OFS	0xccc#define GT_PCI1_CS20_BAR_OFS	0xcd0#define GT_PCI1_CS3BT_BAR_OFS	0xcd4#define GT_PCI1_SSCS10_BAR_OFS	0xcd8#define GT_PCI1_SSCS32_BAR_OFS	0xcdc#define GT_PCI1_SCS3BT_BAR_OFS	0xce4#define GT_PCI1_CFGADDR_OFS	0xcf0#define GT_PCI1_CFGDATA_OFS	0xcf4#define GT_PCI0_CFGADDR_OFS	0xcf8#define GT_PCI0_CFGDATA_OFS	0xcfc/* Interrupts.  */#define GT_INTRCAUSE_OFS	0xc18#define GT_INTRMASK_OFS		0xc1c#define GT_PCI0_ICMASK_OFS	0xc24#define GT_PCI0_SERR0MASK_OFS	0xc28#define GT_CPU_INTSEL_OFS	0xc70#define GT_PCI0_INTSEL_OFS	0xc74#define GT_HINTRCAUSE_OFS	0xc98#define GT_HINTRMASK_OFS	0xc9c#define GT_PCI0_HICMASK_OFS	0xca4#define GT_PCI1_SERR1MASK_OFS	0xca8/* * I2O Support Registers */#define INBOUND_MESSAGE_REGISTER0_PCI_SIDE		0x010#define INBOUND_MESSAGE_REGISTER1_PCI_SIDE		0x014#define OUTBOUND_MESSAGE_REGISTER0_PCI_SIDE		0x018#define OUTBOUND_MESSAGE_REGISTER1_PCI_SIDE		0x01c#define INBOUND_DOORBELL_REGISTER_PCI_SIDE		0x020#define INBOUND_INTERRUPT_CAUSE_REGISTER_PCI_SIDE	0x024#define INBOUND_INTERRUPT_MASK_REGISTER_PCI_SIDE	0x028#define OUTBOUND_DOORBELL_REGISTER_PCI_SIDE		0x02c#define OUTBOUND_INTERRUPT_CAUSE_REGISTER_PCI_SIDE	0x030#define OUTBOUND_INTERRUPT_MASK_REGISTER_PCI_SIDE	0x034#define INBOUND_QUEUE_PORT_VIRTUAL_REGISTER_PCI_SIDE	0x040#define OUTBOUND_QUEUE_PORT_VIRTUAL_REGISTER_PCI_SIDE	0x044#define QUEUE_CONTROL_REGISTER_PCI_SIDE			0x050#define QUEUE_BASE_ADDRESS_REGISTER_PCI_SIDE		0x054#define INBOUND_FREE_HEAD_POINTER_REGISTER_PCI_SIDE	0x060#define INBOUND_FREE_TAIL_POINTER_REGISTER_PCI_SIDE	0x064#define INBOUND_POST_HEAD_POINTER_REGISTER_PCI_SIDE	0x068#define INBOUND_POST_TAIL_POINTER_REGISTER_PCI_SIDE	0x06c#define OUTBOUND_FREE_HEAD_POINTER_REGISTER_PCI_SIDE	0x070#define OUTBOUND_FREE_TAIL_POINTER_REGISTER_PCI_SIDE	0x074#define OUTBOUND_POST_HEAD_POINTER_REGISTER_PCI_SIDE	0x078#define OUTBOUND_POST_TAIL_POINTER_REGISTER_PCI_SIDE	0x07c#define INBOUND_MESSAGE_REGISTER0_CPU_SIDE		0x1c10#define INBOUND_MESSAGE_REGISTER1_CPU_SIDE		0x1c14#define OUTBOUND_MESSAGE_REGISTER0_CPU_SIDE		0x1c18#define OUTBOUND_MESSAGE_REGISTER1_CPU_SIDE		0x1c1c#define INBOUND_DOORBELL_REGISTER_CPU_SIDE		0x1c20#define INBOUND_INTERRUPT_CAUSE_REGISTER_CPU_SIDE	0x1c24#define INBOUND_INTERRUPT_MASK_REGISTER_CPU_SIDE	0x1c28#define OUTBOUND_DOORBELL_REGISTER_CPU_SIDE		0x1c2c#define OUTBOUND_INTERRUPT_CAUSE_REGISTER_CPU_SIDE	0x1c30#define OUTBOUND_INTERRUPT_MASK_REGISTER_CPU_SIDE	0x1c34#define INBOUND_QUEUE_PORT_VIRTUAL_REGISTER_CPU_SIDE	0x1c40#define OUTBOUND_QUEUE_PORT_VIRTUAL_REGISTER_CPU_SIDE	0x1c44#define QUEUE_CONTROL_REGISTER_CPU_SIDE			0x1c50#define QUEUE_BASE_ADDRESS_REGISTER_CPU_SIDE		0x1c54#define INBOUND_FREE_HEAD_POINTER_REGISTER_CPU_SIDE	0x1c60#define INBOUND_FREE_TAIL_POINTER_REGISTER_CPU_SIDE	0x1c64#define INBOUND_POST_HEAD_POINTER_REGISTER_CPU_SIDE	0x1c68#define INBOUND_POST_TAIL_POINTER_REGISTER_CPU_SIDE	0x1c6c#define OUTBOUND_FREE_HEAD_POINTER_REGISTER_CPU_SIDE	0x1c70#define OUTBOUND_FREE_TAIL_POINTER_REGISTER_CPU_SIDE	0x1c74#define OUTBOUND_POST_HEAD_POINTER_REGISTER_CPU_SIDE	0x1c78#define OUTBOUND_POST_TAIL_POINTER_REGISTER_CPU_SIDE	0x1c7c/*

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?