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

📄 sa1111.h

📁 pxa270的bootloader,linux下的,好不容易搞到的
💻 H
📖 第 1 页 / 共 2 页
字号:
#define SADRCS_RDBDB	(1<<5)#define SADRCS_RDSTB	(1<<6)#define SADRCS_RBIU	(1<<7)#define SAD_CS_DEN	(1<<0)#define SAD_CS_DIE	(1<<1)	/* Not functional on metal 1 */#define SAD_CS_DBDA	(1<<3)	/* Not functional on metal 1 */#define SAD_CS_DSTA	(1<<4)#define SAD_CS_DBDB	(1<<5)	/* Not functional on metal 1 */#define SAD_CS_DSTB	(1<<6)#define SAD_CS_BIU	(1<<7)	/* Not functional on metal 1 */#define SAITR_TFS	(1<<0)#define SAITR_RFS	(1<<1)#define SAITR_TUR	(1<<2)#define SAITR_ROR	(1<<3)#define SAITR_CADT	(1<<4)#define SAITR_SADR	(1<<5)#define SAITR_RSTO	(1<<6)#define SAITR_TDBDA	(1<<8)#define SAITR_TDBDB	(1<<9)#define SAITR_RDBDA	(1<<10)#define SAITR_RDBDB	(1<<11)/* * General-Purpose I/O Interface * * Registers *    PA_DDR		GPIO Block A Data Direction *    PA_DRR/PA_DWR	GPIO Block A Data Value Register (read/write) *    PA_SDR		GPIO Block A Sleep Direction *    PA_SSR		GPIO Block A Sleep State *    PB_DDR		GPIO Block B Data Direction *    PB_DRR/PB_DWR	GPIO Block B Data Value Register (read/write) *    PB_SDR		GPIO Block B Sleep Direction *    PB_SSR		GPIO Block B Sleep State *    PC_DDR		GPIO Block C Data Direction *    PC_DRR/PC_DWR	GPIO Block C Data Value Register (read/write) *    PC_SDR		GPIO Block C Sleep Direction *    PC_SSR		GPIO Block C Sleep State */#define PA_DDR		SA1111_REG(0x1000)#define PA_DRR		SA1111_REG(0x1004)#define PA_DWR		SA1111_REG(0x1004)#define PA_SDR		SA1111_REG(0x1008)#define PA_SSR		SA1111_REG(0x100c)#define PB_DDR		SA1111_REG(0x1010)#define PB_DRR		SA1111_REG(0x1014)#define PB_DWR		SA1111_REG(0x1014)#define PB_SDR		SA1111_REG(0x1018)#define PB_SSR		SA1111_REG(0x101c)#define PC_DDR		SA1111_REG(0x1020)#define PC_DRR		SA1111_REG(0x1024)#define PC_DWR		SA1111_REG(0x1024)#define PC_SDR		SA1111_REG(0x1028)#define PC_SSR		SA1111_REG(0x102c)/* * Interrupt Controller * * Registers *    INTTEST0		Test register 0 *    INTTEST1		Test register 1 *    INTEN0		Interrupt Enable register 0 *    INTEN1		Interrupt Enable register 1 *    INTPOL0		Interrupt Polarity selection 0 *    INTPOL1		Interrupt Polarity selection 1 *    INTTSTSEL		Interrupt source selection *    INTSTATCLR0	Interrupt Status/Clear 0 *    INTSTATCLR1	Interrupt Status/Clear 1 *    INTSET0		Interrupt source set 0 *    INTSET1		Interrupt source set 1 *    WAKE_EN0		Wake-up source enable 0 *    WAKE_EN1		Wake-up source enable 1 *    WAKE_POL0		Wake-up polarity selection 0 *    WAKE_POL1		Wake-up polarity selection 1 */#define SA1111_INTTEST0		0x1600#define SA1111_INTTEST1		0x1604#define SA1111_INTEN0		0x1608#define SA1111_INTEN1		0x160c#define SA1111_INTPOL0		0x1610#define SA1111_INTPOL1		0x1614#define SA1111_INTTSTSEL	0x1618#define SA1111_INTSTATCLR0	0x161c#define SA1111_INTSTATCLR1	0x1620#define SA1111_INTSET0		0x1624#define SA1111_INTSET1		0x1628#define SA1111_WAKE_EN0		0x162c#define SA1111_WAKE_EN1		0x1630#define SA1111_WAKE_POL0	0x1634#define SA1111_WAKE_POL1	0x1638#define INTTEST0	SA1111_REG(SA1111_INTTEST0)#define INTTEST1	SA1111_REG(SA1111_INTTEST1)#define INTEN0		SA1111_REG(SA1111_INTEN0)#define INTEN1		SA1111_REG(SA1111_INTEN1)#define INTPOL0		SA1111_REG(SA1111_INTPOL0)#define INTPOL1		SA1111_REG(SA1111_INTPOL1)#define INTTSTSEL	SA1111_REG(SA1111_INTTSTSEL)#define INTSTATCLR0	SA1111_REG(SA1111_INTSTATCLR0)#define INTSTATCLR1	SA1111_REG(SA1111_INTSTATCLR1)#define INTSET0		SA1111_REG(SA1111_INTSET0)#define INTSET1		SA1111_REG(SA1111_INTSET1)#define WAKE_EN0	SA1111_REG(SA1111_WAKE_EN0)#define WAKE_EN1	SA1111_REG(SA1111_WAKE_EN1)#define WAKE_POL0	SA1111_REG(SA1111_WAKE_POL0)#define WAKE_POL1	SA1111_REG(SA1111_WAKE_POL1)/* * PS/2 Trackpad and Mouse Interfaces * * Registers   (prefix kbd applies to trackpad interface, mse to mouse) *    KBDCR     Control Register *    KBDSTAT       Status Register *    KBDDATA       Transmit/Receive Data register *    KBDCLKDIV     Clock Division Register *    KBDPRECNT     Clock Precount Register *    KBDTEST1      Test register 1 *    KBDTEST2      Test register 2 *    KBDTEST3      Test register 3 *    KBDTEST4      Test register 4 *    MSECR *    MSESTAT *    MSEDATA *    MSECLKDIV *    MSEPRECNT *    MSETEST1 *    MSETEST2 *    MSETEST3 *    MSETEST4 * */#define KBDCR		SA1111_REG(0x0a00)#define KBDSTAT		SA1111_REG(0x0a04)#define KBDDATA		SA1111_REG(0x0a08)#define KBDCLKDIV	SA1111_REG(0x0a0c)#define KBDPRECNT	SA1111_REG(0x0a10)#define MSECR		SA1111_REG(0x0c00)#define MSESTAT		SA1111_REG(0x0c04)#define MSEDATA		SA1111_REG(0x0c08)#define MSECLKDIV	SA1111_REG(0x0c0c)#define MSEPRECNT	SA1111_REG(0x0c10)#define KBDCR_ENA        0x08#define KBDCR_FKD        0x02#define KBDCR_FKC        0x01#define KBDSTAT_TXE      0x80#define KBDSTAT_TXB      0x40#define KBDSTAT_RXF      0x20#define KBDSTAT_RXB      0x10#define KBDSTAT_ENA      0x08#define KBDSTAT_RXP      0x04#define KBDSTAT_KBD      0x02#define KBDSTAT_KBC      0x01#define KBDCLKDIV_DivVal     Fld(4,0)#define MSECR_ENA        0x08#define MSECR_FKD        0x02#define MSECR_FKC        0x01#define MSESTAT_TXE      0x80#define MSESTAT_TXB      0x40#define MSESTAT_RXF      0x20#define MSESTAT_RXB      0x10#define MSESTAT_ENA      0x08#define MSESTAT_RXP      0x04#define MSESTAT_MSD      0x02#define MSESTAT_MSC      0x01#define MSECLKDIV_DivVal     Fld(4,0)#define KBDTEST1_CD      0x80#define KBDTEST1_RC1         0x40#define KBDTEST1_MC      0x20#define KBDTEST1_C       Fld(2,3)#define KBDTEST1_T2      0x40#define KBDTEST1_T1      0x20#define KBDTEST1_T0      0x10#define KBDTEST2_TICBnRES    0x08#define KBDTEST2_RKC         0x04#define KBDTEST2_RKD         0x02#define KBDTEST2_SEL         0x01#define KBDTEST3_ms_16       0x80#define KBDTEST3_us_64       0x40#define KBDTEST3_us_16       0x20#define KBDTEST3_DIV8        0x10#define KBDTEST3_DIn         0x08#define KBDTEST3_CIn         0x04#define KBDTEST3_KD      0x02#define KBDTEST3_KC      0x01#define KBDTEST4_BC12        0x80#define KBDTEST4_BC11        0x40#define KBDTEST4_TRES        0x20#define KBDTEST4_CLKOE       0x10#define KBDTEST4_CRES        0x08#define KBDTEST4_RXB         0x04#define KBDTEST4_TXB         0x02#define KBDTEST4_SRX         0x01#define MSETEST1_CD      0x80#define MSETEST1_RC1         0x40#define MSETEST1_MC      0x20#define MSETEST1_C       Fld(2,3)#define MSETEST1_T2      0x40#define MSETEST1_T1      0x20#define MSETEST1_T0      0x10#define MSETEST2_TICBnRES    0x08#define MSETEST2_RKC         0x04#define MSETEST2_RKD         0x02#define MSETEST2_SEL         0x01#define MSETEST3_ms_16       0x80#define MSETEST3_us_64       0x40#define MSETEST3_us_16       0x20#define MSETEST3_DIV8        0x10#define MSETEST3_DIn         0x08#define MSETEST3_CIn         0x04#define MSETEST3_KD      0x02#define MSETEST3_KC      0x01#define MSETEST4_BC12        0x80#define MSETEST4_BC11        0x40#define MSETEST4_TRES        0x20#define MSETEST4_CLKOE       0x10#define MSETEST4_CRES        0x08#define MSETEST4_RXB         0x04#define MSETEST4_TXB         0x02#define MSETEST4_SRX         0x01/* * PCMCIA Interface * * Registers *    PCSR	Status Register *    PCCR	Control Register *    PCSSR	Sleep State Register */#define PCCR		SA1111_REG(0x1800)#define PCSSR		SA1111_REG(0x1804)#define PCSR		SA1111_REG(0x1808)#define PCSR_S0_READY	(1<<0)#define PCSR_S1_READY	(1<<1)#define PCSR_S0_DETECT	(1<<2)#define PCSR_S1_DETECT	(1<<3)#define PCSR_S0_VS1	(1<<4)#define PCSR_S0_VS2	(1<<5)#define PCSR_S1_VS1	(1<<6)#define PCSR_S1_VS2	(1<<7)#define PCSR_S0_WP	(1<<8)#define PCSR_S1_WP	(1<<9)#define PCSR_S0_BVD1	(1<<10)#define PCSR_S0_BVD2	(1<<11)#define PCSR_S1_BVD1	(1<<12)#define PCSR_S1_BVD2	(1<<13)#define PCCR_S0_RST	(1<<0)#define PCCR_S1_RST	(1<<1)#define PCCR_S0_FLT	(1<<2)#define PCCR_S1_FLT	(1<<3)#define PCCR_S0_PWAITEN	(1<<4)#define PCCR_S1_PWAITEN	(1<<5)#define PCCR_S0_PSE	(1<<6)#define PCCR_S1_PSE	(1<<7)#define PCSSR_S0_SLEEP	(1<<0)#define PCSSR_S1_SLEEP	(1<<1)#endif

⌨️ 快捷键说明

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