📄 ep9302addr.h
字号:
//=============================================================================
// File Name : EP9302addr.h
// Function : EP9302 Define Address Register
// Program : tsczz
// Date : March 11, 2007
// Version : 1.0
// History
// 1.0 : Programming start (March 11,2007)
//=============================================================================
#ifndef __9302ADDR_H__
#define __9302ADDR_H__
#ifdef __cplusplus
extern "C" {
#endif
// System Control Registers
#define EP9302_PwrSts (*(volatile unsigned *)0x80930000)
#define EP9302_PwrCnt (*(volatile unsigned *)0x80930004)
#define EP9302_Halt (*(volatile unsigned *)0x80930008)
#define EP9302_Stby (*(volatile unsigned *)0x8093000c)
#define EP9302_TEOI (*(volatile unsigned *)0x80930018)
#define EP9302_STFCLr (*(volatile unsigned *)0x8093001c)
#define EP9302_ClkSet1 (*(volatile unsigned *)0x80930020)
#define EP9302_ClkSet2 (*(volatile unsigned *)0x80930024)
#define EP9302_ScratchReg0 (*(volatile unsigned *)0x80930040)
#define EP9302_ScratchReg1 (*(volatile unsigned *)0x80930044)
#define EP9302_APBWait (*(volatile unsigned *)0x80930050)
#define EP9302_BusMstrArb (*(volatile unsigned *)0x80930054)
#define EP9302_BootModeClr (*(volatile unsigned *)0x80930058)
#define EP9302_DeviceCfg (*(volatile unsigned *)0x80930080)
#define EP9302_MIRClkdiv (*(volatile unsigned *)0x80930088)
#define EP9302_IS2ClkDiv (*(volatile unsigned *)0x8093008C)
#define EP9302_ADCClkDiv (*(volatile unsigned *)0x80930090)
#define EP9302_ChipID (*(volatile unsigned *)0x80930094)
#define EP9302_SysCfg (*(volatile unsigned *)0x8093009C)
#define EP9302_SysSWLock (*(volatile unsigned *)0x809300C0)
// Watchdog control Register
#define EP9302_Watchdog (*(volatile unsigned *)0x80940000)
#define EP9302_WDStatus (*(volatile unsigned *)0x80940004)
/*
// DMA control registers
#define EP9302_M2P_Channel0Tx (*(volatile unsigned *)0x8000003c)
#define EP9302_M2P_Channel1Rx (*(volatile unsigned *)0x8000007c)
#define EP9302_M2P_Channel2Tx (*(volatile unsigned *)0x800000bc)
#define EP9302_M2P_Channel3Rx (*(volatile unsigned *)0x800000fc)
#define EP9302_M2P_Channel0 (*(volatile unsigned *)0x8000013c)
#define EP9302_M2P_Channel1 (*(volatile unsigned *)0x8000017c)
#define EP9302_M2P_Channel4Tx (*(volatile unsigned *)0x8000027c)
#define EP9302_M2P_Channel5Rx (*(volatile unsigned *)0x8000023c)
#define EP9302_M2P_Channel6Tx (*(volatile unsigned *)0x800002fc)
#define EP9302_M2P_Channel7Rx (*(volatile unsigned *)0x800002bc)
#define EP9302_M2P_Channel8Tx (*(volatile unsigned *)0x8000037c)
#define EP9302_M2P_Channel9Rx (*(volatile unsigned *)0x8000033c)
#define EP9302_DMAChArb (*(volatile unsigned *)0x80000380)
#define EP9302_DMAGIInt (*(volatile unsigned *)0x800003c0)
*/
// Ethernet MAC
#define EP9302_RXCtl (*(volatile unsigned *)0x80010000)
#define EP9302_TXCtl (*(volatile unsigned *)0x80010004)
#define EP9302_TestCtl (*(volatile unsigned *)0x80010008)
#define EP9302_MIICmd (*(volatile unsigned *)0x80010010)
#define EP9302_MIIData (*(volatile unsigned *)0x80010014)
#define EP9302_MIISts (*(volatile unsigned *)0x80010018)
#define EP9302_SelfCtl (*(volatile unsigned *)0x80010020)
#define EP9302_IntEn (*(volatile unsigned *)0x80010024)
#define EP9302_IntStsP (*(volatile unsigned *)0x80010028)
#define EP9302_IntStsC (*(volatile unsigned *)0x8001002c)
#define EP9302_DiagAd (*(volatile unsigned *)0x80010038)
#define EP9302_DiagDa (*(volatile unsigned *)0x8001003c)
#define EP9302_GT (*(volatile unsigned *)0x80010040)
#define EP9302_FCT (*(volatile unsigned *)0x80010044)
#define EP9302_FCF (*(volatile unsigned *)0x80010048)
#define EP9302_AFP (*(volatile unsigned *)0x8001004C)
#define EP9302_GIIntSts (*(volatile unsigned *)0x80010060)
#define EP9302_GIIntMsk (*(volatile unsigned *)0x80010064)
#define EP9302_GIIntROSts (*(volatile unsigned *)0x80010068)
#define EP9302_GIIntFrc (*(volatile unsigned *)0x8001006c)
#define EP9302_TXCoIIcnt (*(volatile unsigned *)0x80010070)
#define EP9302_RXMissCnt (*(volatile unsigned *)0x80010074)
#define EP9302_RXRuntCnt (*(volatile unsigned *)0x80010078)
#define EP9302_BMCtI (*(volatile unsigned *)0x80010080)
#define EP9302_BMSts (*(volatile unsigned *)0x80010084)
#define EP9302_RXBCA (*(volatile unsigned *)0x80010088)
#define EP9302_RXDQBAdd (*(volatile unsigned *)0x80010090)
#define EP9302_RXDQBLen (*(volatile unsigned *)0x80010094)
#define EP9302_RXDQCurLen (*(volatile unsigned *)0x80010096)
#define EP9302_RXDCurAdd (*(volatile unsigned *)0x80010098)
#define EP9302_RXDEnq (*(volatile unsigned *)0x8001009c)
#define EP9302_RXStsQBAdd (*(volatile unsigned *)0x800100a0)
#define EP9302_RXStsQBLen (*(volatile unsigned *)0x800100a4)
#define EP9302_RXStsQCurLen (*(volatile unsigned *)0x800100a6)
#define EP9302_RXStsQCurAdd (*(volatile unsigned *)0x800100a8)
#define EP9302_RXStsEnq (*(volatile unsigned *)0x800100ac)
#define EP9302_TXDQBAdd (*(volatile unsigned *)0x800100b0)
#define EP9302_TXDQBLen (*(volatile unsigned *)0x800100b4)
#define EP9302_TXDQQCurLen (*(volatile unsigned *)0x800100b6)
#define EP9302_TXDQCurAdd (*(volatile unsigned *)0x800100b8)
#define EP9302_TXDEnq (*(volatile unsigned *)0x800100bc)
#define EP9302_TXStsQBAdd (*(volatile unsigned *)0x800100c0)
#define EP9302_TXStsQBLen (*(volatile unsigned *)0x800100c4)
#define EP9302_TXStsQBCurLen (*(volatile unsigned *)0x800100c6)
#define EP9302_TXStsQBCurAdd (*(volatile unsigned *)0x800100c8)
#define EP9302_RXBufThrshld (*(volatile unsigned *)0x800100d0)
#define EP9302_TXBufThrshld (*(volatile unsigned *)0x800100d4)
#define EP9302_RXStsThrshld (*(volatile unsigned *)0x800100d8)
#define EP9302_TXStsThrshld (*(volatile unsigned *)0x800100dc)
#define EP9302_RXDThrshld (*(volatile unsigned *)0x800100e0)
#define EP9302_TXDThrshld (*(volatile unsigned *)0x800100e4)
#define EP9302_MaxFrmLen (*(volatile unsigned *)0x800100e8)
#define EP9302_RXHdrmLen (*(volatile unsigned *)0x800100ec)
// USB
#define EP9302_HcRevision (*(volatile unsigned *)0x80020000)
#define EP9302_HcControl (*(volatile unsigned *)0x80020004)
#define EP9302_HcCommandStatus (*(volatile unsigned *)0x80020008)
#define EP9302_HcInterruptStatus (*(volatile unsigned *)0x8002000c)
#define EP9302_HcInterruptEnable (*(volatile unsigned *)0x80020010)
#define EP9302_HcInterruptDisable (*(volatile unsigned *)0x80020014)
#define EP9302_HcHCCA (*(volatile unsigned *)0x80020018)
#define EP9302_HcPeriodCurrentED (*(volatile unsigned *)0x8002001c)
#define EP9302_HcControlHeadED (*(volatile unsigned *)0x80020020)
#define EP9302_HcControlCurrentED (*(volatile unsigned *)0x80020024)
#define EP9302_HcBulkHeadED (*(volatile unsigned *)0x80020028)
#define EP9302_HcBulkCurrentED (*(volatile unsigned *)0x8002002c)
#define EP9302_HcDoneHead (*(volatile unsigned *)0x80020030)
#define EP9302_HcFmInterval (*(volatile unsigned *)0x80020034)
#define EP9302_HcFmRemaining (*(volatile unsigned *)0x80020038)
#define EP9302_HcFmNumber (*(volatile unsigned *)0x8002003c)
#define EP9302_HcPeriodicStart (*(volatile unsigned *)0x80020040)
#define EP9302_HcLSThreshold (*(volatile unsigned *)0x80020044)
#define EP9302_HcRhDescriptorA (*(volatile unsigned *)0x80020048)
#define EP9302_HcRhDescriptorB (*(volatile unsigned *)0x8002004c)
#define EP9302_HcRhStatus (*(volatile unsigned *)0x80020050)
#define EP9302_HcRhPortStatus1 (*(volatile unsigned *)0x80020054)
#define EP9302_HcRhPortStatus2 (*(volatile unsigned *)0x80020058)
#define EP9302_HcRhPortStatus3 (*(volatile unsigned *)0x8002005c)
#define EP9302_USBCtrl (*(volatile unsigned *)0x80020080)
#define EP9302_USBHCl (*(volatile unsigned *)0x80020084)
// I2S
#define EP9302_I2STXClkCfg (*(volatile unsigned *)0x80820000)
#define EP9302_I2SRXClkCfg (*(volatile unsigned *)0x80820004)
#define EP9302_I2SGlSts (*(volatile unsigned *)0x80820008)
#define EP9302_I2SGlCtrl (*(volatile unsigned *)0x8082000c)
#define EP9302_I2STX0Lft (*(volatile unsigned *)0x80820010)
#define EP9302_I2STX0Rt (*(volatile unsigned *)0x80820014)
#define EP9302_I2STX1Lft (*(volatile unsigned *)0x80820018)
#define EP9302_I2STX1Rt (*(volatile unsigned *)0x8082001c)
#define EP9302_I2STX2Lft (*(volatile unsigned *)0x80820020)
#define EP9302_I2STX2Rt (*(volatile unsigned *)0x80820024)
#define EP9302_I2STXLinCtrlData (*(volatile unsigned *)0x80820028)
#define EP9302_I2STXCtrl (*(volatile unsigned *)0x8082002c)
#define EP9302_I2STXWrdLen (*(volatile unsigned *)0x80820030)
#define EP9302_I2STX0En (*(volatile unsigned *)0x80820034)
#define EP9302_I2STX1En (*(volatile unsigned *)0x80820038)
#define EP9302_I2STX2En (*(volatile unsigned *)0x8082003c)
#define EP9302_I2SRX0Lft (*(volatile unsigned *)0x80820040)
#define EP9302_I2SRX0Rt (*(volatile unsigned *)0x80820044)
#define EP9302_I2SRX1Lft (*(volatile unsigned *)0x80820048)
#define EP9302_I2SRX1Rt (*(volatile unsigned *)0x8082004C)
#define EP9302_I2SRX2Lft (*(volatile unsigned *)0x80820050)
#define EP9302_I2SRX2Rt (*(volatile unsigned *)0x80820054)
#define EP9302_I2SRXLinCtrlData (*(volatile unsigned *)0x80820058)
#define EP9302_I2SRXCtrl (*(volatile unsigned *)0x8082005c)
#define EP9302_I2SRXWrdLen (*(volatile unsigned *)0x80820060)
#define EP9302_I2SRX0En (*(volatile unsigned *)0x80820064)
#define EP9302_I2SRX1En (*(volatile unsigned *)0x80820068)
#define EP9302_I2SRX2En (*(volatile unsigned *)0x8082006c)
// SMC
#define EP9302_SMCBCR0 (*(volatile unsigned *)0x80080000)
#define EP9302_SMCBCR1 (*(volatile unsigned *)0x80080004)
#define EP9302_SMCBCR2 (*(volatile unsigned *)0x80080008)
#define EP9302_SMCBCR3 (*(volatile unsigned *)0x8006000C)
#define EP9302_SMCBCR6 (*(volatile unsigned *)0x80060018)
#define EP9302_SMCBCR7 (*(volatile unsigned *)0x8006001C)
// SDRAM Registers
#define EP9302_GlConfig (*(volatile unsigned *)0x80060004)
#define EP9302_Refrsh (*(volatile unsigned *)0x80060008)
#define EP9302_BootSts (*(volatile unsigned *)0x8006000c)
#define EP9302_SDRAMDevCfg0 (*(volatile unsigned *)0x80060010)
#define EP9302_SDRAMDevCfg1 (*(volatile unsigned *)0x80060014)
#define EP9302_SDRAMDevCfg2 (*(volatile unsigned *)0x80060018)
#define EP9302_SDRAMDevCfg3 (*(volatile unsigned *)0x8006001c)
// Boot ROM Memory Locations Registers
#define EP9302_BootROMStart (*(volatile unsigned *)0x80090000)
#define EP9302_BootROMEnd (*(volatile unsigned *)0x80093fff)
// Vectored Interrupt controller 1 Registers
#define EP9302_VIC1IRQStatus (*(volatile unsigned *)0x800b0000)
#define EP9302_VIC1FRQStatus (*(volatile unsigned *)0x800b0004)
#define EP9302_VIC1RawIntr (*(volatile unsigned *)0x800b0008)
#define EP9302_VIC1IntSelect (*(volatile unsigned *)0x800b000c)
#define EP9302_VIC1IntEnable (*(volatile unsigned *)0x800b0010)
#define EP9302_VIC1IntEnClear (*(volatile unsigned *)0x800b0014)
#define EP9302_VIC1SoftInt (*(volatile unsigned *)0x800b0018)
#define EP9302_VIC1SoftIntClear (*(volatile unsigned *)0x800b001c)
#define EP9302_VIC1Protection (*(volatile unsigned *)0x800b0020)
#define EP9302_VIC1VecAddr (*(volatile unsigned *)0x800b0030)
#define EP9302_VIC1DefVectAddr (*(volatile unsigned *)0x800b0034)
#define EP9302_VIC1VecAddr0 (*(volatile unsigned *)0x800b0100)
#define EP9302_VIC1VecAddr1 (*(volatile unsigned *)0x800b0104)
#define EP9302_VIC1VecAddr2 (*(volatile unsigned *)0x800b0108)
#define EP9302_VIC1VecAddr3 (*(volatile unsigned *)0x800b010c)
#define EP9302_VIC1VecAddr4 (*(volatile unsigned *)0x800b0110)
#define EP9302_VIC1VecAddr5 (*(volatile unsigned *)0x800b0114)
#define EP9302_VIC1VecAddr6 (*(volatile unsigned *)0x800b0118)
#define EP9302_VIC1VecAddr7 (*(volatile unsigned *)0x800b011c)
#define EP9302_VIC1VecAddr8 (*(volatile unsigned *)0x800b0120)
#define EP9302_VIC1VecAddr9 (*(volatile unsigned *)0x800b0124)
#define EP9302_VIC1VecAddr10 (*(volatile unsigned *)0x800b0128)
#define EP9302_VIC1VecAddr11 (*(volatile unsigned *)0x800b012c)
#define EP9302_VIC1VecAddr12 (*(volatile unsigned *)0x800b0130)
#define EP9302_VIC1VecAddr13 (*(volatile unsigned *)0x800b0134)
#define EP9302_VIC1VecAddr14 (*(volatile unsigned *)0x800b0138)
#define EP9302_VIC1VecAddr15 (*(volatile unsigned *)0x800b013c)
#define EP9302_VIC1VecCntl0 (*(volatile unsigned *)0x800b0200)
#define EP9302_VIC1VecCntl1 (*(volatile unsigned *)0x800b0204)
#define EP9302_VIC1VecCntl2 (*(volatile unsigned *)0x800b0208)
#define EP9302_VIC1VecCntl3 (*(volatile unsigned *)0x800b020c)
#define EP9302_VIC1VecCntl4 (*(volatile unsigned *)0x800b0210)
#define EP9302_VIC1VecCntl5 (*(volatile unsigned *)0x800b0214)
#define EP9302_VIC1VecCntl6 (*(volatile unsigned *)0x800b0218)
#define EP9302_VIC1VecCntl7 (*(volatile unsigned *)0x800b021c)
#define EP9302_VIC1VecCntl8 (*(volatile unsigned *)0x800b0220)
#define EP9302_VIC1VecCntl9 (*(volatile unsigned *)0x800b0224)
#define EP9302_VIC1VecCntl10 (*(volatile unsigned *)0x800b0228)
#define EP9302_VIC1VecCntl11 (*(volatile unsigned *)0x800b022c)
#define EP9302_VIC1VecCntl12 (*(volatile unsigned *)0x800b0230)
#define EP9302_VIC1VecCntl13 (*(volatile unsigned *)0x800b0234)
#define EP9302_VIC1VecCntl14 (*(volatile unsigned *)0x800b0238)
#define EP9302_VIC1VecCntl15 (*(volatile unsigned *)0x800b023c)
#define EP9302_VIC1PeriphID0 (*(volatile unsigned *)0x800b0fe0)
#define EP9302_VIC1PeriphID1 (*(volatile unsigned *)0x800b0fe4)
#define EP9302_VIC1PeriphID2 (*(volatile unsigned *)0x800b0fe8)
#define EP9302_VIC1PeriphID3 (*(volatile unsigned *)0x800b0fec)
// Vectored Interrupt controller 2 Registers
#define EP9302_VIC2IRQStatus (*(volatile unsigned *)0x800c0000)
#define EP9302_VIC2FRQStatus (*(volatile unsigned *)0x800c0004)
#define EP9302_VIC2RawIntr (*(volatile unsigned *)0x800c0008)
#define EP9302_VIC2IntSelect (*(volatile unsigned *)0x800c000c)
#define EP9302_VIC2IntEnable (*(volatile unsigned *)0x800c0010)
#define EP9302_VIC2IntEnClear (*(volatile unsigned *)0x800c0014)
#define EP9302_VIC2SoftInt (*(volatile unsigned *)0x800c0018)
#define EP9302_VIC2SoftIntClear (*(volatile unsigned *)0x800c001c)
#define EP9302_VIC2Protection (*(volatile unsigned *)0x800c0020)
#define EP9302_VIC2VecAddr (*(volatile unsigned *)0x800c0030)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -