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

📄 mpc107.h

📁 IXP425的BSP代码
💻 H
📖 第 1 页 / 共 2 页
字号:
/* mpc107.h - MPC107 General Configuration registers   *//* Copyright 1984-2000 Wind River Systems, Inc. *//*modification history--------------------01c,15sep01,dat  Gnu-diab, use of WRS_ASM macro01b,11sep00,rcs  Add MCP107_DELTA macro01a,23may00,bri written*/#ifndef	__INCmpc107h#define	__INCmpc107h#ifdef __cplusplusextern "C" {#endif/* defines *//* MPC107 device and vendor ID's */#define MPC107_VEN_ID		0x1057	     /* Motorola Vendor ID */#define MPC107_DEV_ID		0x0003	     /* MPC107 Device ID */#define MPC107_DEV_VEN_ID   	0x00031057   /* (DevId << 16) + VenId *//* MPC107 configuration adrs and data register for map A & B */#define MPC107_CFG_ADDR_PREP	0x80000cf8   /* MPC107 cfg reg map A */#define MPC107_CFG_DATA_PREP	0x80000cfc   /* MPC107 cfg data map A */#define MPC107_CFG_ADDR_CHRP	0xfec00000   /* MPC107 cfg reg map B */#define MPC107_CFG_DATA_CHRP	0xfee00000   /* MPC107 cfg data map B */#define MPC107_PICR1_MAPB	0x0  	     /* PICR1 bit 16 map B */#define MPC107_PICR1_MAPA	0x1          /* PICR1 bit 16 map A *//* MPC107 indirect configuration registers */#define MPC107_CFG_BASE		0x80000000   /* Base adrs of cfg regs */#define MPC107_CFG_BASE_16 	0x8000	     /* MPC107_CFG_BASE >> 16 */#define MPC107_PCICMD_ADRS	(MPC107_CFG_BASE + 0x04) /* PCI Cmd reg */#define MPC107_PCISTAT_ADRS	(MPC107_CFG_BASE + 0x06) /* PCI status reg */#define MPC107_PCIREVID_ADRS	(MPC107_CFG_BASE + 0x08) /* PCI RevId reg */#define MPC107_PCISTDPROG_ADRS	(MPC107_CFG_BASE + 0x09) /* PCI Standard */                                                         /* Program Interface */#define MPC107_PCISUBCLAS_ADRS	(MPC107_CFG_BASE + 0x0a) /* PCI SubClass reg */#define MPC107_PCIBASECLAS_ADRS (MPC107_CFG_BASE + 0x0b) /* PCI BaseClas reg */#define MPC107_PCICACHLINE_ADRS	(MPC107_CFG_BASE + 0x0c) /* PCI Cache Line */                                                         /* Size reg */#define MPC107_PCIHEADER_ADRS	(MPC107_CFG_BASE + 0x0d) /* PCI Head Typ reg */#define MPC107_PCIBIST_ADRS	(MPC107_CFG_BASE + 0x0e) /* PCI BIST reg */#define MPC107_LOCMEMBAR_ADRS	(MPC107_CFG_BASE + 0x10) /* Local Memory Base */                                                         /* Address Register */#define MPC107_PCSRBAR_ADRS	(MPC107_CFG_BASE + 0x14) /* Peripheral Cont */                                                         /* & Status Register */                                                         /* Base Address Reg */#define MPC107_PCIINTLINE_ADRS	(MPC107_CFG_BASE + 0x3c) /* PCI Int Line reg */#define MPC107_PCIINTPIN_ADRS	(MPC107_CFG_BASE + 0x3d) /* PCI Int Pin reg */#define MPC107_PCIMINGNT_ADRS	(MPC107_CFG_BASE + 0x3e) /* PCI Min Gran reg */#define MPC107_PCIMAXLAT_ADRS	(MPC107_CFG_BASE + 0x3f) /* PCI Max Lat reg */#define MPC107_PCIARBCONT_ADRS	(MPC107_CFG_BASE + 0x46) /* PCI Arb Cont reg */#define MPC107_PMCR1_ADRS	(MPC107_CFG_BASE + 0x70) /* Power Management */                                                         /* Config Reg-1 */#define MPC107_PMCR2_ADRS	(MPC107_CFG_BASE + 0x72) /* Power Management */                                                         /* Config Reg-2 */#define MPC107_ODCR_ADRS	(MPC107_CFG_BASE + 0x73) /* out driver reg */#define MPC107_CDCR_ADRS	(MPC107_CFG_BASE + 0x74) /* Clk Driv Cnt reg */#define MPC107_MIOCR_ADRS	(MPC107_CFG_BASE + 0x76) /* Misc i/o Cnt reg */#define MPC107_EUMBBAR_ADRS	(MPC107_CFG_BASE + 0x78) /* Embedded Utilitie */                                                         /* Memory Block Base */                                                         /* address */#define MPC107_MSAR1_ADRS	(MPC107_CFG_BASE + 0x80) /* MSAR1 */#define MPC107_XMSAR1_ADRS	(MPC107_CFG_BASE + 0x88) /* XMSAR1 */#define MPC107_MEAR1_ADRS	(MPC107_CFG_BASE + 0x90) /* MEAR1 */#define MPC107_XMEAR1_ADRS	(MPC107_CFG_BASE + 0x98) /* XMEAR1 */#define MPC107_MSAR2_ADRS  	(MPC107_CFG_BASE + 0x84) /* MSAR2 */#define MPC107_XMSAR2_ADRS	(MPC107_CFG_BASE + 0x8c) /* XMSAR2 */#define MPC107_MEAR2_ADRS	(MPC107_CFG_BASE + 0x94) /* MEAR2 */#define MPC107_XMEAR2_ADRS	(MPC107_CFG_BASE + 0x9c) /* XMEAR2 */#define MPC107_MBER_ADRS	(MPC107_CFG_BASE + 0xa0) /* MBER */#define MPC107_MPMR_ADRS	(MPC107_CFG_BASE + 0xa3) /* Page mode reg */#define MPC107_PICR1_ADRS   	(MPC107_CFG_BASE + 0xa8) /* PICR1 adrs */#define MPC107_PICR2_ADRS   	(MPC107_CFG_BASE + 0xac) /* PICR2 adrs *//* MPC107 Diagnostic Registers */#define MPC107_DIAGS_BASE	(EUMB_BASE + 0x80000)#define MCP107_MDP_ERR_INJ_MASK_DH 	0xF_F000 /* Data High Err Inject Msk */#define MCP107_MDP_ERR_INJ_MASK_DL 	0xF_F004 /* Data Low Err Inject Msk */#define MCP107_MDP_ERR_INJ_MASK_PAR	0xF_F008 /* Data Par Err Inject Msk */#define MCP107_MDP_ERR_CAP_MON_DH 	0xF_F00c /* Data High Err Capture Mon */#define MCP107_MDP_ERR_CAP_MON_DL 	0xF_F010 /* Data Low Err Capture Mon */#define MCP107_MDP_ERR_CAP_MON_PAR	0xF_F014 /* Data Par Err Capture Mon */#define MPC107_PICR1_ADRSMAP_MSK 0x00010000 /* Mask to determine address Map */					    /* PREP or CHRP */#define MPC107_ECCSBEC_ADRS  (MPC107_CFG_BASE + 0xb8) /* ECC single Bit */                                                      /* error count Reg */#define MPC107_ECCSBETR_ADRS (MPC107_CFG_BASE + 0xb9) /* ECC single Bit */                                                      /* error trig Reg */#define MPC107_ERRENR1_ADRS  (MPC107_CFG_BASE + 0xc0) /* Err Enable Reg-1 */#define MPC107_ERRDR1_ADRS   (MPC107_CFG_BASE + 0xc1) /* Err Detect Reg-1 */#define MPC107_PBSES_ADRS    (MPC107_CFG_BASE + 0xc3) /* Processor Err Bus */#define MPC107_ERRENR2_ADRS  (MPC107_CFG_BASE + 0xc4) /* Err Enable reg-2 */#define MPC107_ERRDR2_ADRS   (MPC107_CFG_BASE + 0xc5) /* Err Detect Reg-2 */#define MPC107_PCIBES_ADRS   (MPC107_CFG_BASE + 0xc7) /* PCI Bus/Stat Err */#define MPC107_PPCIEAR_ADRS  (MPC107_CFG_BASE + 0xc8) /* Processor/PCI Bus */                                                      /* Error address Reg */#define MPC107_ADMBO_ADRS    (MPC107_CFG_BASE + 0xe0) /* Addr Map B Opt */#define MPC107_MCCR1_ADRS    (MPC107_CFG_BASE + 0xf0) /* MCCR1 */#define MPC107_MCCR2_ADRS    (MPC107_CFG_BASE + 0xf4) /* MCCR2 */#define MPC107_MCCR3_ADRS    (MPC107_CFG_BASE + 0xf8) /* MCCR3 */#define MPC107_MCCR4_ADRS    (MPC107_CFG_BASE + 0xfc) /* MCCR4 *//* MPC107 Latency Timer register */#define MPC107_LAT_MAX_HOLD	0xf8	     /* max PCI clocks for bus hold */#define MPC107_LAT_MIN_LAT	0x07	     /* min latency timer value *//* MPC107 - PCI arbiter control Register */#define MPC107_PAC_IAE		0x00008000 /* internal arbiter enabled */#define MPC107_PAC_PARK_MASK    0x00006000 /* park mode control mask */#define MPC107_PAC_PARK_LAST    0x00000000 /* park mode cntrl, last device */#define MPC107_PAC_PARK_REQ0    0x00002000 /* park mode using REQ0/GNT0) */#define MPC107_PAC_PARK_MPC107  0x00004000 /* park mode control (MPC107) */#define MPC107_PAC_RPCC         0x00000400 /* retry PCI configuration cycle */#define MPC107_PAC_PPRI_LVL     0x00000080 /* MPC107 priority level: 1=high */#define MPC107_PAC_EDPL_MASK    0x0000000f /* ext dev priority lvl mask */#define MPC107_PAC_EDPL_REQ0    0x00000008 /* ext dev pty lvl REQ3/GNT3 */#define MPC107_PAC_EDPL_REQ1    0x00000004 /* ext dev pty lvl REQ2/GNT2 */#define MPC107_PAC_EDPL_REQ2    0x00000002 /* ext dev pty lvl REQ1/GNT1 */#define MPC107_PAC_EDPL_REQ3    0x00000001 /* ext dev pty lvl REQ0/GNT0 *//* MPC107 - power management configuration #1 Register */#define MPC107_PMC1_NO_NAP_MSG    0x00008000 /* no message before nap */#define MPC107_PMC1_NO_SLEEP_MSG  0x00004000 /* no message before sleep */#define MPC107_PMC1_LP_REF_EN     0x00001000 /* rfrsh enbl in low pwr mode */#define MPC107_PMC1_SUSP_QACK     0x00000400 /* QACK_ enable */#define MPC107_PMC1_PM            0x00000080 /* power mananagement enable */#define MPC107_PMC1_DOZE          0x00000020 /* doze mode */#define MPC107_PMC1_NAP           0x00000010 /* nap mode */#define MPC107_PMC1_SLEEP         0x00000008 /* sleep mode */#define MPC107_PMC1_CKO_MODE_MASK 0x00000006 /* clock output mode - mask */#define MPC107_PMC1_CKO_MODE_D    0x00000000 /* clk output mode - disable */#define MPC107_PMC1_CKO_MODE_S    0x00000002 /* clk out mode - system clk */#define MPC107_PMC1_CKO_MODE_1H   0x00000004 /* clk out mode - 1/2 PCI rate */#define MPC107_PMC1_CKO_MODE_P    0x00000006 /* clk out mode - PCI rate */#define MPC107_PMC1_CKO_SEL       0x00000001 /* clk out mode select *//* MPC107 - power management configuration #2 Register */#define MPC107_PMC2_DLL_EXTEND    0x00000080 /* extend DLL by a half clock */#define MPC107_PMC2_PCI_OHD_MASK  0x00000070 /* PCI out hold delay (mask) */#define MPC107_PMC2_PCI_OHD_SHIFT 4          /* PCI out hold delay (shift) */#define MPC107_PMC2_SLEEP         0x00000004 /* get PLL when exiting sleep */#define MPC107_PMC2_SUSPEND       0x00000002 /* get PLL when exiting suspend*/#define MPC107_PMC2_SHARED_MCP    0x00000001 /* disable MCP assertion *//* MPC107 - output driver control Register */#define MPC107_ODC_DRV_PCI           0x00000080 /* PCI drive: 0=hi, 1=med */#define MPC107_ODC_DRV_STD           0x00000040 /* STD drive: 0=hi, 1=med */#define MPC107_ODC_DRV_MEM_CTRL_MASK 0x00000030 /* mem ctrl drive: mask */#define MPC107_ODC_DRV_MEM_CTRL_40   0x00000000 /* mem ctrl drive: 40-ohms */#define MPC107_ODC_DRV_MEM_CTRL_20   0x00000010 /* mem ctrl drive: 20-ohms */#define MPC107_ODC_DRV_MEM_CTRL_13_3 0x00000020 /* mem ctrl drive: 13.3-ohms */#define MPC107_ODC_DRV_MEM_CTRL_8    0x00000030 /* mem ctrl drive: 8-ohms */#define MPC107_ODC_DRV_PCI_CLK_MASK  0x0000000c /* PCI clock drive: mask */#define MPC107_ODC_DRV_PCI_CLK_40    0x00000000 /* PCI clock drive: 40-ohms */#define MPC107_ODC_DRV_PCI_CLK_20    0x00000004 /* PCI clock drive: 20-ohms */#define MPC107_ODC_DRV_PCI_CLK_13_3  0x00000008 /* PCI clock drive: 13.3-ohms */#define MPC107_ODC_DRV_PCI_CLK_8     0x0000000c /* PCI clock drive: 8-ohms */#define MPC107_ODC_DRV_MEM_CLK_MASK  0x00000003 /* mem clock drive: mask */#define MPC107_ODC_DRV_MEM_CLK_40    0x00000000 /* mem clock drive: 40-ohms */#define MPC107_ODC_DRV_MEM_CLK_20    0x00000001 /* mem clock drive: 20-ohms */

⌨️ 快捷键说明

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