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

📄 ppc405ep.h

📁 移植好的Ibm405ep bsp板极支持包
💻 H
📖 第 1 页 / 共 2 页
字号:
#define UCR_UART_DMA_RX_1        0x00010000#define UCR_DIV_1_MASK           0x00007F00     /* UART 1 serial clock divide */#define UCR_DIV_0_MASK           0x0000007F     /* UART 0 serial clock divide */#define SRR_PCI                  0x00040000     /* PCI core in soft reset     */#define JTAG_VERS_MASK           0xF0000000     /* version                    */#define JTAG_LOC_MASK            0x0F000000     /* location                   */#define JTAG_PART_MASK           0x00FFF000     /* part number                */#define JTAG_MANF_MASK           0x00000FFF     /* manufacturer ID            */#define PCI_EBC_WE_N             0x00000010#define PCI_HOST_CFG_EN          0x00000008     /* Enable outside config      */#define PCI_ARB_EN               0x00000001     /* Internal PCI arbiter       *//* * PLL Voltage Controlled Oscillator (VCO) definitions * Maximum and minimum values (in MHz) for correct PLL operation. */#define VCO_MIN     500#define VCO_MAX    1000/* * On-chip memory controller configuration register definitions. */#define OCM0_ISARC  (OCM0_DCR_BASE+0x00)  /* Instruction-side Addr range cmp  */#define OCM0_ISCNTL (OCM0_DCR_BASE+0x01)  /* Instruction-side control reg     */#define OCM0_DSARC  (OCM0_DCR_BASE+0x02)  /* Data-side Addr range cmp         */#define OCM0_DSCNTL (OCM0_DCR_BASE+0x03)  /* Data-side control reg            *//* OCM register bits */#define OCM_DSAR    0xFC000000            /* OCM D-side address mask          */#define OCM_DSEN    0x80000000            /* OCM D-side enable                */#define OCM_ISAR    0xFC000000            /* OCM I-side address mask          */#define OCM_ISEN    0x80000000            /* OCM I-side enable                */#define OCM_ISTCM   0x40000000            /* OCM I-side 2 cycle mode          *//* * PLB Bus Error, Arbiter and PLB to OPB Bridge DCR registers. */#define PLB0_BESR     0x84    /* PLB Error Status Reg                 */#define PLB0_BEAR     0x86    /* PLB Error Address Reg                */#define PLB0_ACR      0x87    /* PLB Arbiter Control Reg              */#define POB0_BESR0    0xa0    /* PLB to OPB Bridge Error Status Reg 0 */#define POB0_BEAR     0xa2    /* PLB to OPB Bridge Error Address Reg  */#define POB0_BESR1    0xa4    /* PLB to OPB Bridge Error Status Reg 1 *//* * OPB Bus Arbiter registers (memory mapped) */#define OPBA_PR       0xEF600600     /* OPB Arbiter Priority Register */#define OPBA_CR       0xEF600601     /* OPB Aribter Control Register  *//* * IIC Base Address definition and register offsets. */#define IIC0_BASE       0xEF600500#define    IIC_MDBUF         0x00#define    IIC_SDBUF         0x02#define    IIC_LMADR         0x04#define    IIC_HMADR         0x05#define    IIC_CNTL          0x06#define    IIC_MDCNTL        0x07#define    IIC_STS           0x08#define    IIC_EXTSTS        0x09#define    IIC_LSADR         0x0A#define    IIC_HSADR         0x0B#define    IIC_CLKDIV        0x0C#define    IIC_INTRMSK       0x0D#define    IIC_XFRCNT        0x0E#define    IIC_XTCNTLSS      0x0F#define    IIC_DIRECTCNTL    0x10/* * UART (2 of them) Base Address definitions.  Both UARTs are 16550-like. */#define UART0_BASE      0xEF600300#define UART1_BASE      0xEF600400#define UART_REG_ADDR_INTERVAL   1#define UART_MEMORY_START   0xEF600000#define UART_MEMORY_END     0xEF600FFF/* * PCI address map *//* * PCI memory space from the PLB. * PLB to PCI address translation is controlled by the 3 pairs of PTM registers. */#define PCI_MEMORY_START            0x80000000#define PCI_MEMORY_END              0xE7FFFFFF/* * For the MMU to conserve page table space, we map only 64 MB of the PCI * memory space (needed by VGA card). */#define PCI_MEMORY_MAP_END      0x83FFFFFF  /* 64 MB mapped in MMU *//* * PCI I/O space from the PLB and the PCI translation. */#define PLB_PCI_IO_REGION_1_START   0xE8000000     /* PLB side */#define PLB_PCI_IO_REGION_1_END     0xE800FFFF#define PLB_PCI_IO_REGION_1_SIZE    0x00010000#define PLB_PCI_IO_REGION_2_START   0xE8800000#define PLB_PCI_IO_REGION_2_END     0xEBFFFFFF#define PLB_PCI_IO_REGION_2_SIZE    0x03800000#define PLB_PCI_IO_REGION_2_MAP_END 0xE88FFFFF     /* 1 MB mapped in MMU */                           						   /* increase if needed */#define PCI_IO_REGION_1_START       0x00000000     /* PCI side */#define PCI_IO_REGION_1_END         0x0000FFFF#define PCI_IO_REGION_2_START       0x00800000#define PCI_IO_REGION_2_END         0x03FFFFFF#define PCI_INTERRUPT_ACK           0xEED00000     /* read */#define PCI_SPECIAL_CYCLE           0xEED00000     /* write */#define PCI_INTERRUPT_ACK_END       0xEED00FFF     /* 1 page in MMU *//* * Register pair used to generate configuration cycles on the PCI bus * and access the chips own PCI configuration registers. */#define PCI_CFGADDR        0xEEC00000#define PCI_CFGDATA        0xEEC00004#define PCI_CFGEND         0xEEC00FFF  /* 1 page in MMU *//* * PP Bridge Local Config registers space */#define PP_BRIDGE_CR        0xEF400000#define PP_BRIDGE_CR_END    0xEF400FFF  /* 1 page in MMU *//* * Register addresses for the 3 sets of PCI Master Mode (PMM) * local configuration registers.  These registers control how local memory * addresses are translated to PCI memory addresses when the chip is a * PCI bus master (initiator).  The contents of the PMMxLA register must be * set to an address that is within the PCI memory range * (PCI_MEMORY_START - PCI_MEMORY_END). */#define PCIL_PMM0LA        0xEF400000       /* Local Address                  */#define PCIL_PMM0MA        0xEF400004       /* Mask/Attribute register        */#define PCIL_PMM0PCILA     0xEF400008       /* Local address is translated to */#define PCIL_PMM0PCIHA     0xEF40000C       /* this 64 bit PCI address        */#define PCIL_PMM1LA        0xEF400010       /* Local Address                  */#define PCIL_PMM1MA        0xEF400014       /* Mask/Attribute register        */#define PCIL_PMM1PCILA     0xEF400018       /* Local address is translated to */#define PCIL_PMM1PCIHA     0xEF40001C       /* this 64 bit PCI address        */#define PCIL_PMM2LA        0xEF400020       /* Local Address                  */#define PCIL_PMM2MA        0xEF400024       /* Mask/Attribute register        */#define PCIL_PMM2PCILA     0xEF400028       /* Local address is translated to */#define PCIL_PMM2PCIHA     0xEF40002C       /* this 64 bit PCI address        *//* * Bit definitions for PMM Mask Attribute registers */#define PMM_MASK           0xFFFFF000#define PMM_MASK_4KB       0xFFFFF000#define PMM_MASK_8KB       0xFFFFE000#define PMM_MASK_16KB      0xFFFFC000#define PMM_MASK_32KB      0xFFFF8000#define PMM_MASK_64KB      0xFFFF0000#define PMM_MASK_128KB     0xFFFE0000#define PMM_MASK_256KB     0xFFFC0000#define PMM_MASK_512KB     0xFFF80000#define PMM_MASK_1MB       0xFFF00000#define PMM_MASK_2MB       0xFFE00000#define PMM_MASK_4MB       0xFFC00000#define PMM_MASK_8MB       0xFF800000#define PMM_MASK_16MB      0xFF000000#define PMM_MASK_32MB      0xFE000000#define PMM_MASK_64MB      0xFC000000#define PMM_MASK_128MB     0xF8000000#define PMM_MASK_256MB     0xF0000000#define PMM_MASK_512MB     0xE0000000#define PMM_PREFETCH       0x00000002#define PMM_ENABLE         0x00000001#define PMM_UNUSED         0x00000000/* * Register addresses for the 2 sets of PCI Target Mode (PTM) * local configuration registers.  These registers control how PCI memory * addresses are translated to Local memory addresses when the chip is a * PCI bus target.  PTMxLA must be set to an address that is within the * Local SDRAM Memory or ROM regions (0x00000000 - 7FFFFFFF, or * F0000000 - FFFFFFFF). */#define PCIL_PTM1MS        0xEF400030       /* Memory Size/Attribute register */#define PCIL_PTM1LA        0xEF400034       /* Local Address                  */#define PCIL_PTM2MS        0xEF400038       /* Memory Size/Attribute register */#define PCIL_PTM2LA        0xEF40003C       /* Local Address                  *//* * Bit definitions for PTM Memory Size/Attribute registers */#define PTM_SIZE           0xFFFFF000#define PTM_SIZE_4KB       0xFFFFF000#define PTM_SIZE_8KB       0xFFFFE000#define PTM_SIZE_16KB      0xFFFFC000#define PTM_SIZE_32KB      0xFFFF8000#define PTM_SIZE_64KB      0xFFFF0000#define PTM_SIZE_128KB     0xFFFE0000#define PTM_SIZE_256KB     0xFFFC0000#define PTM_SIZE_512KB     0xFFF80000#define PTM_SIZE_1MB       0xFFF00000#define PTM_SIZE_2MB       0xFFE00000#define PTM_SIZE_4MB       0xFFC00000#define PTM_SIZE_8MB       0xFF800000#define PTM_SIZE_16MB      0xFF000000#define PTM_SIZE_32MB      0xFE000000#define PTM_SIZE_64MB      0xFC000000#define PTM_SIZE_128MB     0xF8000000#define PTM_SIZE_256MB     0xF0000000#define PTM_SIZE_512MB     0xE0000000#define PTM_SIZE_1GB       0xC0000000#define PTM_SIZE_2GB       0x80000000#define PTM_ENABLE         0x00000001#define PTM_UNUSED         0x00000000/* * Bus/Device/Function used to access the PCI configuration registers * that belong to the host bridge itself (Bus = Device = Function = 0). */#define PCI_HOST_BUS        0#define PCI_HOST_DEVICE     0#define PCI_HOST_FUNCTION   0/* * Chip-specific PCI configuration register offsets.  These are found * immediately following the architected 64 byte PCI configuration header. */#define PCI_CFG_ICS          0x44       /* PCI Interrupt Control/Status       */#define PCI_CFG_ERREN        0x48       /* Error Enable                       */#define PCI_CFG_ERRSTS       0x49       /* Error Status                       */#define PCI_CFG_BRDGOPT1     0x4A       /* Bridge Options 1                   */#define PCI_CFG_PLBBESR0     0x4C       /* PLB Slave Error Syndrome 0         */#define PCI_CFG_PLBBESR1     0x50       /* PLB Slave Error Syndrome 1         */#define PCI_CFG_PLBBEAR      0x54       /* PLB Slave Error Address            */#define PCI_CFG_CAPID        0x58       /* Capability Identifier              */#define PCI_CFG_NEXTIPTR     0x59       /* Next Item Pointer                  */#define PCI_CFG_PMC          0x5A       /* Power Management Capabilities      */#define PCI_CFG_PMCSR        0x5C       /* Power Management Control Status    */#define PCI_CFG_PMCSRBSE     0x5E       /* PMCSR PCI to PCI bridge exten      */#define PCI_CFG_DATA         0x5F       /* Data                               */#define PCI_CFG_BRDGOPT2     0x60       /* Bridge Options 2                   */#define PCI_CFG_PMSCRR       0x64       /* Power Management State Change Req. *//* * General Purpose I/O (GPIO) */#define GPIO0_BASE          0xEF600700#define GPIO0_OR               (GPIO0_BASE+0x0)   /* Output Register          */#define GPIO0_TCR              (GPIO0_BASE+0x4)   /* Three-State Control      */#define GPIO0_OSRH             (GPIO0_BASE+0x8)   /* Output Select High       */#define GPIO0_OSRL             (GPIO0_BASE+0xC)   /* Output Select Low        */#define GPIO0_TSRH             (GPIO0_BASE+0x10)  /* Three-State Select High  */#define GPIO0_TSRL             (GPIO0_BASE+0x14)  /* Three-State Select Low   */#define GPIO0_ODR              (GPIO0_BASE+0x18)  /* Open Drain Register      */#define GPIO0_IR               (GPIO0_BASE+0x1C)  /* Input Register           */#define GPIO0_RR1              (GPIO0_BASE+0x20)  /* Receive Register 1       */#define GPIO0_RR2              (GPIO0_BASE+0x24)  /* Receive Register 2       */#define GPIO0_ISR1H            (GPIO0_BASE+0x30)  /* Input Select 1 High      */#define GPIO0_ISR1L            (GPIO0_BASE+0x34)  /* Input Select 1 Low       */#define GPIO0_ISR2H            (GPIO0_BASE+0x34)  /* Input Select 2 High      */#define GPIO0_ISR2L            (GPIO0_BASE+0x3C)  /* Input Select 2 Low       *//* * Base address of Ethernet (EMAC) registers both controllers */#define EMAC0_BASE        0xEF600800#define EMAC1_BASE        0xEF600900/* * Flash / Boot ROM area */#define FLASH_START 0xFFF80000#define FLASH_END   0xFFFFFFFF/* * Header files for other cores in the chip */#include "sysDcr.h"            /* generic DCR access functions   */#include "uicDcr.h"            /* Universal Interrupt Controller */#include "malDcr.h"            /* Memory Access Layer DCR        */#include "sdramDcr.h"          /* SDRAM Controller               */#include "ebcDcr.h"            /* External Bus Controller        */#include "dmaDcr.h"            /* DMA Controller                 */#endif  /* INCppc405EPh */

⌨️ 快捷键说明

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