ibm44x.h
来自「Linux Kernel 2.6.9 for OMAP1710」· C头文件 代码 · 共 530 行 · 第 1/2 页
H
530 行
#define DCRN_CPC0_STRP2 0x0e6#define DCRN_CPC0_STRP3 0x0e7#define DCRN_CPC0_GPIO 0x0e8#define DCRN_CPC0_PLB 0x0e9#define DCRN_CPC0_CR1 0x0ea#define DCRN_CPC0_CR0 0x0eb#define DCRN_CPC0_MIRQ0 0x0ec#define DCRN_CPC0_MIRQ1 0x0ed#define DCRN_CPC0_JTAGID 0x0ef/* 440GP DMA controller DCRs */#define DCRN_DMACR0 (DCRN_DMA0_BASE + 0x0) /* DMA Channel Control 0 */#define DCRN_DMACT0 (DCRN_DMA0_BASE + 0x1) /* DMA Count 0 */#define DCRN_DMASAH0 (DCRN_DMA0_BASE + 0x2) /* DMA Src Addr High 0 */#define DCRN_DMASA0 (DCRN_DMA0_BASE + 0x3) /* DMA Src Addr Low 0 */#define DCRN_DMADAH0 (DCRN_DMA0_BASE + 0x4) /* DMA Dest Addr High 0 */#define DCRN_DMADA0 (DCRN_DMA0_BASE + 0x5) /* DMA Dest Addr Low 0 */#define DCRN_ASGH0 (DCRN_DMA0_BASE + 0x6) /* DMA SG Desc Addr High 0 */#define DCRN_ASG0 (DCRN_DMA0_BASE + 0x7) /* DMA SG Desc Addr Low 0 */#define DCRN_DMACR1 (DCRN_DMA1_BASE + 0x0) /* DMA Channel Control 1 */#define DCRN_DMACT1 (DCRN_DMA1_BASE + 0x1) /* DMA Count 1 */#define DCRN_DMASAH1 (DCRN_DMA1_BASE + 0x2) /* DMA Src Addr High 1 */#define DCRN_DMASA1 (DCRN_DMA1_BASE + 0x3) /* DMA Src Addr Low 1 */#define DCRN_DMADAH1 (DCRN_DMA1_BASE + 0x4) /* DMA Dest Addr High 1 */#define DCRN_DMADA1 (DCRN_DMA1_BASE + 0x5) /* DMA Dest Addr Low 1 */#define DCRN_ASGH1 (DCRN_DMA1_BASE + 0x6) /* DMA SG Desc Addr High 1 */#define DCRN_ASG1 (DCRN_DMA1_BASE + 0x7) /* DMA SG Desc Addr Low 1 */#define DCRN_DMACR2 (DCRN_DMA2_BASE + 0x0) /* DMA Channel Control 2 */#define DCRN_DMACT2 (DCRN_DMA2_BASE + 0x1) /* DMA Count 2 */#define DCRN_DMASAH2 (DCRN_DMA2_BASE + 0x2) /* DMA Src Addr High 2 */#define DCRN_DMASA2 (DCRN_DMA2_BASE + 0x3) /* DMA Src Addr Low 2 */#define DCRN_DMADAH2 (DCRN_DMA2_BASE + 0x4) /* DMA Dest Addr High 2 */#define DCRN_DMADA2 (DCRN_DMA2_BASE + 0x5) /* DMA Dest Addr Low 2 */#define DCRN_ASGH2 (DCRN_DMA2_BASE + 0x6) /* DMA SG Desc Addr High 2 */#define DCRN_ASG2 (DCRN_DMA2_BASE + 0x7) /* DMA SG Desc Addr Low 2 */#define DCRN_DMACR3 (DCRN_DMA3_BASE + 0x0) /* DMA Channel Control 3 */#define DCRN_DMACT3 (DCRN_DMA3_BASE + 0x1) /* DMA Count 3 */#define DCRN_DMASAH3 (DCRN_DMA3_BASE + 0x2) /* DMA Src Addr High 3 */#define DCRN_DMASA3 (DCRN_DMA3_BASE + 0x3) /* DMA Src Addr Low 3 */#define DCRN_DMADAH3 (DCRN_DMA3_BASE + 0x4) /* DMA Dest Addr High 3 */#define DCRN_DMADA3 (DCRN_DMA3_BASE + 0x5) /* DMA Dest Addr Low 3 */#define DCRN_ASGH3 (DCRN_DMA3_BASE + 0x6) /* DMA SG Desc Addr High 3 */#define DCRN_ASG3 (DCRN_DMA3_BASE + 0x7) /* DMA SG Desc Addr Low 3 */#define DCRN_DMASR (DCRN_DMASR_BASE + 0x0) /* DMA Status Register */#define DCRN_ASGC (DCRN_DMASR_BASE + 0x3) /* DMA Scatter/Gather Command */#define DCRN_SLP (DCRN_DMASR_BASE + 0x5) /* DMA Sleep Register */#define DCRN_POL (DCRN_DMASR_BASE + 0x6) /* DMA Polarity Register *//* 440GP DRAM controller DCRs */#define DCRN_SDRAM0_CFGADDR 0x010#define DCRN_SDRAM0_CFGDATA 0x011#define SDRAM0_B0CR 0x40#define SDRAM0_B1CR 0x44#define SDRAM0_B2CR 0x48#define SDRAM0_B3CR 0x4c#define SDRAM_CONFIG_BANK_ENABLE 0x00000001#define SDRAM_CONFIG_SIZE_MASK 0x000e0000#define SDRAM_CONFIG_BANK_SIZE(reg) ((reg & SDRAM_CONFIG_SIZE_MASK) >> 17)#define SDRAM_CONFIG_SIZE_8M 0x00000001#define SDRAM_CONFIG_SIZE_16M 0x00000002#define SDRAM_CONFIG_SIZE_32M 0x00000003#define SDRAM_CONFIG_SIZE_64M 0x00000004#define SDRAM_CONFIG_SIZE_128M 0x00000005#define SDRAM_CONFIG_SIZE_256M 0x00000006#define SDRAM_CONFIG_SIZE_512M 0x00000007#define PPC44x_MEM_SIZE_8M 0x00800000#define PPC44x_MEM_SIZE_16M 0x01000000#define PPC44x_MEM_SIZE_32M 0x02000000#define PPC44x_MEM_SIZE_64M 0x04000000#define PPC44x_MEM_SIZE_128M 0x08000000#define PPC44x_MEM_SIZE_256M 0x10000000#define PPC44x_MEM_SIZE_512M 0x20000000#ifdef CONFIG_440GX/* Internal SRAM Controller */#define DCRN_SRAM0_SB0CR 0x020#define DCRN_SRAM0_SB1CR 0x021#define DCRN_SRAM0_SB2CR 0x022#define DCRN_SRAM0_SB3CR 0x023#define SRAM_SBCR_BAS0 0x80000000#define SRAM_SBCR_BAS1 0x80010000#define SRAM_SBCR_BAS2 0x80020000#define SRAM_SBCR_BAS3 0x80030000#define SRAM_SBCR_BU_MASK 0x00000180#define SRAM_SBCR_BS_64KB 0x00000800#define SRAM_SBCR_BU_RO 0x00000080#define SRAM_SBCR_BU_RW 0x00000180#define DCRN_SRAM0_BEAR 0x024#define DCRN_SRAM0_BESR0 0x025#define DCRN_SRAM0_BESR1 0x026#define DCRN_SRAM0_PMEG 0x027#define DCRN_SRAM0_CID 0x028#define DCRN_SRAM0_REVID 0x029#define DCRN_SRAM0_DPC 0x02a#define SRAM_DPC_ENABLE 0x80000000/* L2 Cache Controller */#define DCRN_L2C0_CFG 0x030#define L2C_CFG_L2M 0x80000000#define L2C_CFG_ICU 0x40000000#define L2C_CFG_DCU 0x20000000#define L2C_CFG_DCW_MASK 0x1e000000#define L2C_CFG_TPC 0x01000000#define L2C_CFG_CPC 0x00800000#define L2C_CFG_FRAN 0x00200000#define L2C_CFG_SS_MASK 0x00180000#define L2C_CFG_SS_256 0x00000000#define L2C_CFG_CPIM 0x00040000#define L2C_CFG_TPIM 0x00020000#define L2C_CFG_LIM 0x00010000#define L2C_CFG_PMUX_MASK 0x00007000#define L2C_CFG_PMUX_SNP 0x00000000#define L2C_CFG_PMUX_IF 0x00001000#define L2C_CFG_PMUX_DF 0x00002000#define L2C_CFG_PMUX_DS 0x00003000#define L2C_CFG_PMIM 0x00000800#define L2C_CFG_TPEI 0x00000400#define L2C_CFG_CPEI 0x00000200#define L2C_CFG_NAM 0x00000100#define L2C_CFG_SMCM 0x00000080#define L2C_CFG_NBRM 0x00000040#define DCRN_L2C0_CMD 0x031#define L2C_CMD_CLR 0x80000000#define L2C_CMD_DIAG 0x40000000#define L2C_CMD_INV 0x20000000#define L2C_CMD_CCP 0x10000000#define L2C_CMD_CTE 0x08000000#define L2C_CMD_STRC 0x04000000#define L2C_CMD_STPC 0x02000000#define L2C_CMD_RPMC 0x01000000#define L2C_CMD_HCC 0x00800000#define DCRN_L2C0_ADDR 0x032#define DCRN_L2C0_DATA 0x033#define DCRN_L2C0_SR 0x034#define L2C_SR_CC 0x80000000#define L2C_SR_CPE 0x40000000#define L2C_SR_TPE 0x20000000#define L2C_SR_LRU 0x10000000#define L2C_SR_PCS 0x08000000#define DCRN_L2C0_REVID 0x035#define DCRN_L2C0_SNP0 0x036#define DCRN_L2C0_SNP1 0x037#define L2C_SNP_BA_MASK 0xffff0000#define L2C_SNP_SSR_MASK 0x0000f000#define L2C_SNP_SSR_32G 0x0000f000#define L2C_SNP_ESR 0x00000800#endif /* CONFIG_440GX *//* * PCI-X definitions */#define PCIX0_REG_BASE 0x20ec80000ULL#define PCIX0_REG_SIZE 0x200#define PCIX0_VENDID 0x000#define PCIX0_DEVID 0x002#define PCIX0_COMMAND 0x004#define PCIX0_STATUS 0x006#define PCIX0_REVID 0x008#define PCIX0_CLS 0x009#define PCIX0_CACHELS 0x00c#define PCIX0_LATTIM 0x00d#define PCIX0_HDTYPE 0x00e#define PCIX0_BIST 0x00f#define PCIX0_BAR0L 0x010#define PCIX0_BAR0H 0x014#define PCIX0_BAR1 0x018#define PCIX0_BAR2L 0x01c#define PCIX0_BAR2H 0x020#define PCIX0_BAR3 0x024#define PCIX0_CISPTR 0x028#define PCIX0_SBSYSVID 0x02c#define PCIX0_SBSYSID 0x02e#define PCIX0_EROMBA 0x030#define PCIX0_CAP 0x034#define PCIX0_RES0 0x035#define PCIX0_RES1 0x036#define PCIX0_RES2 0x038#define PCIX0_INTLN 0x03c#define PCIX0_INTPN 0x03d#define PCIX0_MINGNT 0x03e#define PCIX0_MAXLTNCY 0x03f#define PCIX0_BRDGOPT1 0x040#define PCIX0_BRDGOPT2 0x044#define PCIX0_ERREN 0x050#define PCIX0_ERRSTS 0x054#define PCIX0_PLBBESR 0x058#define PCIX0_PLBBEARL 0x05c#define PCIX0_PLBBEARH 0x060#define PCIX0_POM0LAL 0x068#define PCIX0_POM0LAH 0x06c#define PCIX0_POM0SA 0x070#define PCIX0_POM0PCIAL 0x074#define PCIX0_POM0PCIAH 0x078#define PCIX0_POM1LAL 0x07c#define PCIX0_POM1LAH 0x080#define PCIX0_POM1SA 0x084#define PCIX0_POM1PCIAL 0x088#define PCIX0_POM1PCIAH 0x08c#define PCIX0_POM2SA 0x090#define PCIX0_PIM0SAL 0x098#define PCIX0_PIM0SA PCIX0_PIM0SAL#define PCIX0_PIM0LAL 0x09c#define PCIX0_PIM0LAH 0x0a0#define PCIX0_PIM1SA 0x0a4#define PCIX0_PIM1LAL 0x0a8#define PCIX0_PIM1LAH 0x0ac#define PCIX0_PIM2SAL 0x0b0#define PCIX0_PIM2SA PCIX0_PIM2SAL#define PCIX0_PIM2LAL 0x0b4#define PCIX0_PIM2LAH 0x0b8#define PCIX0_OMCAPID 0x0c0#define PCIX0_OMNIPTR 0x0c1#define PCIX0_OMMC 0x0c2#define PCIX0_OMMA 0x0c4#define PCIX0_OMMUA 0x0c8#define PCIX0_OMMDATA 0x0cc#define PCIX0_OMMEOI 0x0ce#define PCIX0_PMCAPID 0x0d0#define PCIX0_PMNIPTR 0x0d1#define PCIX0_PMC 0x0d2#define PCIX0_PMCSR 0x0d4#define PCIX0_PMCSRBSE 0x0d6#define PCIX0_PMDATA 0x0d7#define PCIX0_PMSCRR 0x0d8#define PCIX0_CAPID 0x0dc#define PCIX0_NIPTR 0x0dd#define PCIX0_CMD 0x0de#define PCIX0_STS 0x0e0#define PCIX0_IDR 0x0e4#define PCIX0_CID 0x0e8#define PCIX0_RID 0x0ec#define PCIX0_PIM0SAH 0x0f8#define PCIX0_PIM2SAH 0x0fc#define PCIX0_MSGIL 0x100#define PCIX0_MSGIH 0x104#define PCIX0_MSGOL 0x108#define PCIX0_MSGOH 0x10c#define PCIX0_IM 0x1f8#define IIC_OWN 0x55#define IIC_CLOCK 50#undef NR_UICS#ifdef CONFIG_440GX#define NR_UICS 3#else#define NR_UICS 2#endif#define UIC_CASCADE_MASK 0x0003 /* bits 30 & 31 */#define BD_EMAC_ADDR(e,i) bi_enetaddr[e][i]#include <asm/ibm4xx.h>#endif /* __ASSEMBLY__ */#endif /* __ASM_IBM44x_H__ */#endif /* __KERNEL__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?