⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ixp2000-regs.h

📁 linux-2.6.15.6
💻 H
📖 第 1 页 / 共 2 页
字号:
/* * include/asm-arm/arch-ixp2000/ixp2000-regs.h * * Chipset register definitions for IXP2400/2800 based systems. * * Original Author: Naeem Afzal <naeem.m.afzal@intel.com> * * Maintainer: Deepak Saxena <dsaxena@plexity.net> * * Copyright (C) 2002 Intel Corp. * Copyright (C) 2003-2004 MontaVista Software, Inc. * *  This program is free software; you can redistribute  it and/or modify it *  under  the terms of  the GNU General  Public License as published by the *  Free Software Foundation;  either version 2 of the  License, or (at your *  option) any later version. */#ifndef _IXP2000_REGS_H_#define _IXP2000_REGS_H_/* * IXP2000 linux memory map: * * virt		phys		size * fb000000	db000000	16M		PCI CFG1 * fc000000	da000000	16M		PCI CFG0 * fd000000	d8000000	16M		PCI I/O * fe[0-7]00000			8M		per-platform mappings * feb00000	c8000000	1M		MSF * fec00000	df000000	1M		PCI CSRs * fed00000	de000000	1M		PCI CREG * fee00000	d6000000	1M		INTCTL * fef00000	c0000000	1M		CAP *//*  * Static I/O regions. * * Most of the registers are clumped in 4K regions spread throughout * the 0xc0000000 -> 0xc0100000 address range, but we just map in * the whole range using a single 1 MB section instead of small * 4K pages.  This has two advantages for us: * * 1) We use only one TLB entry for large number of on-chip I/O devices. * * 2) We can easily set the Section attributes to XCB=101 on the IXP2400 *    as required per erratum #66.  We accomplish this by using a *    new MT_IXP2000_DEVICE memory type with the bits set as required. * * CAP stands for CSR Access Proxy. * * If you change the virtual address of this mapping, please propagate * the change to arch/arm/kernel/debug.S, which hardcodes the virtual * address of the UART located in this region. */#define	IXP2000_CAP_PHYS_BASE		0xc0000000#define	IXP2000_CAP_VIRT_BASE		0xfef00000#define	IXP2000_CAP_SIZE		0x00100000/* * Addresses for specific on-chip peripherals. */#define	IXP2000_SLOWPORT_CSR_VIRT_BASE	0xfef80000#define	IXP2000_GLOBAL_REG_VIRT_BASE	0xfef04000#define	IXP2000_UART_PHYS_BASE		0xc0030000#define	IXP2000_UART_VIRT_BASE		0xfef30000#define	IXP2000_TIMER_VIRT_BASE		0xfef20000#define	IXP2000_UENGINE_CSR_VIRT_BASE	0xfef18000#define	IXP2000_GPIO_VIRT_BASE		0xfef10000/* * Devices outside of the 0xc0000000 -> 0xc0100000 range.  The virtual * addresses of the INTCTL and PCI_CSR mappings are hardcoded in * entry-macro.S, so if you ever change these please propagate * the change. */#define IXP2000_INTCTL_PHYS_BASE	0xd6000000#define	IXP2000_INTCTL_VIRT_BASE	0xfee00000#define	IXP2000_INTCTL_SIZE		0x00100000#define IXP2000_PCI_CREG_PHYS_BASE	0xde000000#define	IXP2000_PCI_CREG_VIRT_BASE	0xfed00000#define	IXP2000_PCI_CREG_SIZE		0x00100000#define IXP2000_PCI_CSR_PHYS_BASE	0xdf000000#define	IXP2000_PCI_CSR_VIRT_BASE	0xfec00000#define	IXP2000_PCI_CSR_SIZE		0x00100000#define IXP2000_MSF_PHYS_BASE		0xc8000000#define IXP2000_MSF_VIRT_BASE		0xfeb00000#define IXP2000_MSF_SIZE		0x00100000#define IXP2000_PCI_IO_PHYS_BASE	0xd8000000#define	IXP2000_PCI_IO_VIRT_BASE	0xfd000000#define IXP2000_PCI_IO_SIZE     	0x01000000#define IXP2000_PCI_CFG0_PHYS_BASE	0xda000000#define IXP2000_PCI_CFG0_VIRT_BASE	0xfc000000#define IXP2000_PCI_CFG0_SIZE   	0x01000000#define IXP2000_PCI_CFG1_PHYS_BASE	0xdb000000#define IXP2000_PCI_CFG1_VIRT_BASE	0xfb000000#define IXP2000_PCI_CFG1_SIZE		0x01000000/*  * Timers */#define	IXP2000_TIMER_REG(x)		((volatile unsigned long*)(IXP2000_TIMER_VIRT_BASE | (x)))/* Timer control */#define	IXP2000_T1_CTL			IXP2000_TIMER_REG(0x00)#define	IXP2000_T2_CTL			IXP2000_TIMER_REG(0x04)#define	IXP2000_T3_CTL			IXP2000_TIMER_REG(0x08)#define	IXP2000_T4_CTL			IXP2000_TIMER_REG(0x0c)/* Store initial value */#define	IXP2000_T1_CLD			IXP2000_TIMER_REG(0x10)#define	IXP2000_T2_CLD			IXP2000_TIMER_REG(0x14)#define	IXP2000_T3_CLD			IXP2000_TIMER_REG(0x18)#define	IXP2000_T4_CLD			IXP2000_TIMER_REG(0x1c)/* Read current value */#define	IXP2000_T1_CSR			IXP2000_TIMER_REG(0x20)#define	IXP2000_T2_CSR			IXP2000_TIMER_REG(0x24)#define	IXP2000_T3_CSR			IXP2000_TIMER_REG(0x28)#define	IXP2000_T4_CSR			IXP2000_TIMER_REG(0x2c)/* Clear associated timer interrupt */#define	IXP2000_T1_CLR			IXP2000_TIMER_REG(0x30)#define	IXP2000_T2_CLR			IXP2000_TIMER_REG(0x34)#define	IXP2000_T3_CLR			IXP2000_TIMER_REG(0x38)#define	IXP2000_T4_CLR			IXP2000_TIMER_REG(0x3c)/* Timer watchdog enable for T4 */#define	IXP2000_TWDE			IXP2000_TIMER_REG(0x40)#define	WDT_ENABLE			0x00000001#define	TIMER_DIVIDER_256		0x00000008#define	TIMER_ENABLE			0x00000080#define	IRQ_MASK_TIMER1         	(1 << 4)/* * Interrupt controller registers */#define IXP2000_INTCTL_REG(x)		(volatile unsigned long*)(IXP2000_INTCTL_VIRT_BASE | (x))#define IXP2000_IRQ_STATUS		IXP2000_INTCTL_REG(0x08)#define IXP2000_IRQ_ENABLE		IXP2000_INTCTL_REG(0x10)#define IXP2000_IRQ_ENABLE_SET		IXP2000_INTCTL_REG(0x10)#define IXP2000_IRQ_ENABLE_CLR		IXP2000_INTCTL_REG(0x18)#define IXP2000_FIQ_ENABLE_CLR		IXP2000_INTCTL_REG(0x14)#define IXP2000_IRQ_ERR_STATUS		IXP2000_INTCTL_REG(0x24)#define IXP2000_IRQ_ERR_ENABLE_SET	IXP2000_INTCTL_REG(0x2c)#define IXP2000_FIQ_ERR_ENABLE_CLR	IXP2000_INTCTL_REG(0x30)#define IXP2000_IRQ_ERR_ENABLE_CLR	IXP2000_INTCTL_REG(0x34)#define IXP2000_IRQ_THD_RAW_STATUS_A_0	IXP2000_INTCTL_REG(0x60)#define IXP2000_IRQ_THD_RAW_STATUS_A_1	IXP2000_INTCTL_REG(0x64)#define IXP2000_IRQ_THD_RAW_STATUS_A_2	IXP2000_INTCTL_REG(0x68)#define IXP2000_IRQ_THD_RAW_STATUS_A_3	IXP2000_INTCTL_REG(0x6c)#define IXP2000_IRQ_THD_RAW_STATUS_B_0	IXP2000_INTCTL_REG(0x80)#define IXP2000_IRQ_THD_RAW_STATUS_B_1	IXP2000_INTCTL_REG(0x84)#define IXP2000_IRQ_THD_RAW_STATUS_B_2	IXP2000_INTCTL_REG(0x88)#define IXP2000_IRQ_THD_RAW_STATUS_B_3	IXP2000_INTCTL_REG(0x8c)#define IXP2000_IRQ_THD_ENABLE_SET_A_0	IXP2000_INTCTL_REG(0x160)#define IXP2000_IRQ_THD_ENABLE_SET_A_1	IXP2000_INTCTL_REG(0x164)#define IXP2000_IRQ_THD_ENABLE_SET_A_2	IXP2000_INTCTL_REG(0x168)#define IXP2000_IRQ_THD_ENABLE_SET_A_3	IXP2000_INTCTL_REG(0x16c)#define IXP2000_IRQ_THD_ENABLE_SET_B_0	IXP2000_INTCTL_REG(0x180)#define IXP2000_IRQ_THD_ENABLE_SET_B_1	IXP2000_INTCTL_REG(0x184)#define IXP2000_IRQ_THD_ENABLE_SET_B_2	IXP2000_INTCTL_REG(0x188)#define IXP2000_IRQ_THD_ENABLE_SET_B_3	IXP2000_INTCTL_REG(0x18c)#define IXP2000_IRQ_THD_ENABLE_CLEAR_A_0	IXP2000_INTCTL_REG(0x1e0)#define IXP2000_IRQ_THD_ENABLE_CLEAR_A_1	IXP2000_INTCTL_REG(0x1e4)#define IXP2000_IRQ_THD_ENABLE_CLEAR_A_2	IXP2000_INTCTL_REG(0x1e8)#define IXP2000_IRQ_THD_ENABLE_CLEAR_A_3	IXP2000_INTCTL_REG(0x1ec)#define IXP2000_IRQ_THD_ENABLE_CLEAR_B_0	IXP2000_INTCTL_REG(0x200)#define IXP2000_IRQ_THD_ENABLE_CLEAR_B_1	IXP2000_INTCTL_REG(0x204)#define IXP2000_IRQ_THD_ENABLE_CLEAR_B_2	IXP2000_INTCTL_REG(0x208)#define IXP2000_IRQ_THD_ENABLE_CLEAR_B_3	IXP2000_INTCTL_REG(0x20c)/* * Mask of valid IRQs in the 32-bit IRQ register. We use * this to mark certain IRQs as being invalid. */#define	IXP2000_VALID_IRQ_MASK	0x0f0fffff/* * PCI config register access from core */#define IXP2000_PCI_CREG(x)		(volatile unsigned long*)(IXP2000_PCI_CREG_VIRT_BASE | (x))#define IXP2000_PCI_CMDSTAT 		IXP2000_PCI_CREG(0x04)#define IXP2000_PCI_CSR_BAR		IXP2000_PCI_CREG(0x10)#define IXP2000_PCI_SRAM_BAR		IXP2000_PCI_CREG(0x14)#define IXP2000_PCI_SDRAM_BAR		IXP2000_PCI_CREG(0x18)/* * PCI CSRs */#define IXP2000_PCI_CSR(x)		(volatile unsigned long*)(IXP2000_PCI_CSR_VIRT_BASE | (x))/* * PCI outbound interrupts */#define IXP2000_PCI_OUT_INT_STATUS	IXP2000_PCI_CSR(0x30)#define IXP2000_PCI_OUT_INT_MASK	IXP2000_PCI_CSR(0x34)/* * PCI communications */#define IXP2000_PCI_MAILBOX0		IXP2000_PCI_CSR(0x50)#define IXP2000_PCI_MAILBOX1		IXP2000_PCI_CSR(0x54)#define IXP2000_PCI_MAILBOX2		IXP2000_PCI_CSR(0x58)#define IXP2000_PCI_MAILBOX3		IXP2000_PCI_CSR(0x5C)#define IXP2000_XSCALE_DOORBELL		IXP2000_PCI_CSR(0x60)#define IXP2000_XSCALE_DOORBELL_SETUP	IXP2000_PCI_CSR(0x64)#define IXP2000_PCI_DOORBELL		IXP2000_PCI_CSR(0x70)#define IXP2000_PCI_DOORBELL_SETUP	IXP2000_PCI_CSR(0x74)/* * DMA engines */#define IXP2000_PCI_CH1_BYTE_CNT	IXP2000_PCI_CSR(0x80)#define IXP2000_PCI_CH1_ADDR		IXP2000_PCI_CSR(0x84)#define IXP2000_PCI_CH1_DRAM_ADDR	IXP2000_PCI_CSR(0x88)#define IXP2000_PCI_CH1_DESC_PTR	IXP2000_PCI_CSR(0x8C)#define IXP2000_PCI_CH1_CNTRL		IXP2000_PCI_CSR(0x90)

⌨️ 快捷键说明

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