📄 nvr4131.h
字号:
#define VR4102_RTCL2HREG VR4131_RTCL2HREG#define VR4102_RTCL2CNTLREG VR4131_RTCL2CNTLREG#define VR4102_RTCL2CNTHREG VR4131_RTCL2CNTHREG#define VR4102_TCLKLREG VR4131_TCLKLREG#define VR4102_TCLKHREG VR4131_TCLKHREG#define VR4102_TCLKCNTLREG VR4131_TCLKCNTLREG#define VR4102_TCLKCNTHREG VR4131_TCLKCNTHREG#define VR4102_RTCINTREG VR4131_RTCINTREG#define VR4102_RTC_RTCINTR0 VR4131_RTCINTR0#define VR4102_RTC_RTCINTR1 VR4131_RTCINTR1#define VR4102_RTC_RTCINTR2 VR4131_RTCINTR2#define VR4102_RTC_RTCINTR3 VR4131_RTCINTR3#define VR4102_RTCL1INTR VR4131_RTCL1INTR#define VR4102_RTCL2INTR VR4131_RTCL2INTR#define VR4102_ICU_MSYSINT1REG VR4131_MSYSINT1REG/* GIU registers */#define VR4131_GIUIOSELL VR4131_REG16(0x140)#define VR4131_GIUIOSELH VR4131_REG16(0x142)#define VR4131_GIUPIODL VR4131_REG16(0x144)#define VR4131_GIUPIODH VR4131_REG16(0x146)#define VR4131_GIUINTSTATL VR4131_REG16(0x148)#define VR4131_GIUINTSTATH VR4131_REG16(0x14a)#define VR4131_GIUINTENL VR4131_REG16(0x14c)#define VR4131_GIUINTENH VR4131_REG16(0x14e)#define VR4131_GIUINTTYPL VR4131_REG16(0x150)#define VR4131_GIUINTTYPH VR4131_REG16(0x152)#define VR4131_GIUINTALSELL VR4131_REG16(0x154)#define VR4131_GIUINTALSELH VR4131_REG16(0x156)#define VR4131_GIUINTHTSELL VR4131_REG16(0x158)#define VR4131_GIUINTHTSELH VR4131_REG16(0x15a)#define VR4131_GIUPODATEN VR4131_REG16(0x15c)#define VR4131_GIUPODATL VR4131_REG16(0x15e)/* * The general-purpose I/O pins (GPIO) are enabled and controlled via * identically placed bits in the GIU registers and some of the ICU * registers. This set of pin masks can be used with whichever registers * contain GPIO pin configuration. */#define VR4131_GPIO_PIN_31 0x8000#define VR4131_GPIO_PIN_30 0x4000#define VR4131_GPIO_PIN_29 0x2000#define VR4131_GPIO_PIN_28 0x1000#define VR4131_GPIO_PIN_27 0x0800#define VR4131_GPIO_PIN_26 0x0400#define VR4131_GPIO_PIN_25 0x0200#define VR4131_GPIO_PIN_24 0x0100#define VR4131_GPIO_PIN_23 0x0080#define VR4131_GPIO_PIN_22 0x0040#define VR4131_GPIO_PIN_21 0x0020#define VR4131_GPIO_PIN_20 0x0010#define VR4131_GPIO_PIN_19 0x0008#define VR4131_GPIO_PIN_18 0x0004#define VR4131_GPIO_PIN_17 0x0002#define VR4131_GPIO_PIN_16 0x0001#define VR4131_GPIO_PIN_15 0x8000#define VR4131_GPIO_PIN_14 0x4000#define VR4131_GPIO_PIN_13 0x2000#define VR4131_GPIO_PIN_12 0x1000#define VR4131_GPIO_PIN_11 0x0800#define VR4131_GPIO_PIN_10 0x0400#define VR4131_GPIO_PIN_9 0x0200#define VR4131_GPIO_PIN_8 0x0100#define VR4131_GPIO_PIN_7 0x0080#define VR4131_GPIO_PIN_6 0x0040#define VR4131_GPIO_PIN_5 0x0020#define VR4131_GPIO_PIN_4 0x0010#define VR4131_GPIO_PIN_3 0x0008#define VR4131_GPIO_PIN_2 0x0004#define VR4131_GPIO_PIN_1 0x0002#define VR4131_GPIO_PIN_0 0x0001/* SCI registers */#define VR4131_TIMOUTCNTREG VR4131_REG16(0x1000)#define VR4131_TIMOUTCOUNTREG VR4131_REG16(0x1002)#define VR4131_ERRLADDRESSREG VR4131_REG16(0x1004)#define VR4131_ERRHADDRESSREG VR4131_REG16(0x1006)#define VR4131_SCUINTRREG VR4131_REG16(0x1008)/* SDRAMU registers */#define VR4131_SDRAMMODEREG VR4131_REG16(0x400)#define VR4131_SDRAMCNTREG VR4131_REG16(0x402)#define VR4131_BCURFCNTREG VR4131_REG16(0x404)#define VR4131_BCURFCOUNTREG VR4131_REG16(0x406)#define VR4131_RAMSIZEREG VR4131_REG16(0x408)/* PCIU registers */#define VR4131_PCIMMAW1REG VR4131_REG32(0xc00)#define VR4131_PCIMMAW2REG VR4131_REG32(0xc04)#define VR4131_PCITAW1REG VR4131_REG32(0xc08)#define VR4131_PCITAW2REG VR4131_REG32(0xc0c)#define VR4131_PCIMIOAWREG VR4131_REG32(0xc10)#define VR4131_PCICONFDREG VR4131_REG32(0xc14)#define VR4131_PCICONFAREG VR4131_REG32(0xc18)#define VR4131_PCIMAILREG VR4131_REG32(0xc1c)#define VR4131_BUSERRADREG VR4131_REG32(0xc24)#define VR4131_INTCNTSTAREG VR4131_REG32(0xc28)#define VR4131_PCIEXACCREG VR4131_REG32(0xc2c)#define VR4131_PCIRECONTREG VR4131_REG32(0xc30)#define VR4131_PCIENREG VR4131_REG32(0xc34)#define VR4131_PCICLKSELREG VR4131_REG32(0xc38)#define VR4131_PCITRDYVREG VR4131_REG32(0xc3c)#define VR4131_PCICLKRUNREG VR4131_REG16(0xc60)#define VR4131_PCIDMACTRLREG VR4131_REG32(0xc80)#define VR4131_PCICLKSEL_DIV_1 0x2#define VR4131_PCICLKSEL_DIV_2 0x0#define VR4131_PCICLKSEL_DIV_3 0x3#define VR4131_PCICLKSEL_DIV_4 0x1#define VR4131_PCICONFIGDONE 0x00000004 /* PCIENREG */#define VR4131_PCICLKRUN 0x0001 /* PCICLKRUNREG */#define VR4131_PCISTOPEN 0x8000 /* PCICLKRUNREG */#define VR4131_PCIIBA 0xFF000000 /* PCIM*AW*REG */#define VR4131_PCIMSK 0x000FE000 /* PCIM*AW*REG, PCITAWnREG */#define VR4131_PCIWINEN 0x00001000 /* PCIM*AW*REG, PCITAWnREG */#define VR4131_PCIPCIA 0x000000FF /* PCIM*AW*REG */#define VR4131_PCIITA 0x000007FF /* PCITAWnREG *//* PCI Config Registers */#define VR4131_PCICONF_IDENT VR4131_REG32(0xd00)#define VR4131_PCICONF_CMDSR VR4131_REG32(0xd04)#define VR4131_PCICONF_REVCLASS VR4131_REG32(0xd08)#define VR4131_PCICONF_CACHELAT VR4131_REG32(0xd0c)#define VR4131_PCICONF_MAILBA VR4131_REG32(0xd10)#define VR4131_PCICONF_PCIMBA1 VR4131_REG32(0xd14)#define VR4131_PCICONF_PCIMBA2 VR4131_REG32(0xd18)#define VR4131_PCICONF_PCIINT VR4131_REG32(0xd3c)#define VR4131_PCICONF_RETVAL VR4131_REG32(0xd40)/* DSIU registers */#define VR4131_DSIURB VR4131_REG8(0x820) /* SUILC7 = 0, read */#define VR4131_DSIUTH VR4131_REG8(0x820) /* SUILC7 = 0, write */#define VR4131_DSIUDLL VR4131_REG8(0x820) /* SUILC7 = 1 */#define VR4131_DSIUIE VR4131_REG8(0x821) /* SUILC7 = 0 */#define VR4131_DSIUDLM VR4131_REG8(0x821) /* SUILC7 = 1 */#define VR4131_DSIUIID VR4131_REG8(0x822) /* read */#define VR4131_DSIUFC VR4131_REG8(0x822) /* write */#define VR4131_DSIULC VR4131_REG8(0x823)#define VR4131_DSIUMC VR4131_REG8(0x824)#define VR4131_DSIULS VR4131_REG8(0x825)#define VR4131_DSIUMS VR4131_REG8(0x826)#define VR4131_DSIUSC VR4131_REG8(0x827)#define VR4131_DSIURESET VR4131_SIURESET /* Common with SIU */#define VR4131_DSIU_BASE VR4131_DSIURB#define VR4131_DSIU_DELTA 1#define VR4131_DSIU_XTAL 18432000 /* crystal input to 16550 */#define VR4131_DSIURST 0x0002 /* in SIURESET register *//* LED registers */#define VR4131_LEDHTSREG VR4131_REG16(0x180)#define VR4131_LEDLTSREG VR4131_REG16(0x182)#define VR4131_LEDCNTREG VR4131_REG16(0x188)#define VR4131_LEDASTCREG VR4131_REG16(0x18a)#define VR4131_LEDINTREG VR4131_REG16(0x18c)/* SIU registers */#define VR4131_SIURB VR4131_REG8(0x800) /* SUILC7 = 0, read */#define VR4131_SIUTH VR4131_REG8(0x800) /* SUILC7 = 0, write */#define VR4131_SIUDLL VR4131_REG8(0x800) /* SUILC7 = 1 */#define VR4131_SIUIE VR4131_REG8(0x801) /* SUILC7 = 0 */#define VR4131_SIUDLM VR4131_REG8(0x801) /* SUILC7 = 1 */#define VR4131_SIUIID VR4131_REG8(0x802) /* read */#define VR4131_SIUFC VR4131_REG8(0x802) /* write */#define VR4131_SIULC VR4131_REG8(0x803)#define VR4131_SIUMC VR4131_REG8(0x804)#define VR4131_SIULS VR4131_REG8(0x805)#define VR4131_SIUMS VR4131_REG8(0x806)#define VR4131_SIUSC VR4131_REG8(0x807)#define VR4131_SIUIRSEL VR4131_REG8(0x808)#define VR4131_SIURESET VR4131_REG8(0x809) /* common with DSIU */#define VR4131_SIUCSEL VR4131_REG8(0x80a)#define VR4131_SIU_BASE VR4131_SIURB#define VR4131_SIU_DELTA 1#define VR4131_SIU_XTAL 18432000 /* crystal input to 16550 */#define VR4131_SIURST 0x0001 /* in SIURESET register *//* CSI registers */#define VR4131_CSI_MODEREG VR4131_REG16(0x1a0)#define VR4131_CSI_CLKSELREG VR4131_REG16(0x1a1)#define VR4131_CSI_SIRBREG VR4131_REG16(0x1a2)#define VR4131_CSI_SOTBREG VR4131_REG16(0x1a4)#define VR4131_CSI_SIRBEREG VR4131_REG16(0x1a6)#define VR4131_CSI_SOTBFREG VR4131_REG16(0x1a8)#define VR4131_CSI_SIOREG VR4131_REG16(0x1aa)#define VR4131_CSI_CNTREG VR4131_REG16(0x1b0)#define VR4131_CSI_INTREG VR4131_REG16(0x1b2)#define VR4131_CSI_IFIFOVREG VR4131_REG16(0x1b4)#define VR4131_CSI_OFIFOVREG VR4131_REG16(0x1b6)#define VR4131_CSI_IFIFOREG VR4131_REG16(0x1b8)#define VR4131_CSI_OFIFOREG VR4131_REG16(0x1ba)#define VR4131_CSI_FIFOTRGREG VR4131_REG16(0x1bc)/* FIR registers - not included *//* Clock rate values for different settings of CLKSEL[2:0] pins/jumpers. */#define CPU_PCLOCK_RATE_111 200700000#define CPU_PCLOCK_RATE_110 180600000#define CPU_PCLOCK_RATE_101 164200000#define CPU_PCLOCK_RATE_100 150500000#define CPU_PCLOCK_RATE_011 129000000#define CPU_PCLOCK_RATE_010 100400000#define CPU_PCLOCK_RATE_001 90300000#define CPU_PCLOCK_RATE_000 78500000/* Miscellaneous */#define NUM_4131_TTY 2 /* SIU + DSIU */#ifdef __cplusplus}#endif#endif /* __INCnvr4131h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -