123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
-
- #define W83C553F_VID 0x10AD
- #define W83C553F_DID 0x0565
- #define WINBOND_PCICONTR 0x40
- #define WINBOND_SGBAR 0x41
- #define WINBOND_LBCR 0x42
- #define WINBOND_IDEIRCR 0x43
- #define WINBOND_PCIIRCR 0x44
- #define WINBOND_BTBAR 0x46
- #define WINBOND_IPADCR 0x48
- #define WINBOND_IRADCR 0x49
- #define WINBOND_IPMHSAR 0x4a
- #define WINBOND_IPMHSR 0x4b
- #define WINBOND_CDR 0x4c
- #define WINBOND_CSCR 0x4d
- #define WINBOND_ATSCR 0x4e
- #define WINBOND_ATBCR 0x4f
- #define WINBOND_IRQBEE0R 0x60
- #define WINBOND_IRQBEE1R 0x61
- #define WINBOND_ABEER 0x62
- #define WINBOND_DMABEER 0x63
- #define WINDOND_IDECSR 0x40
- #define IPADCR_MBE512 0x1
- #define IPADCR_MBE640 0x2
- #define IPADCR_IPATOM4 0x10
- #define IPADCR_IPATOM5 0x20
- #define IPADCR_IPATOM6 0x40
- #define IPADCR_IPATOM7 0x80
- #define CSCR_UBIOSCSE 0x10
- #define CSCR_BIOSWP 0x20
- #define IDECSR_P0EN 0x01
- #define IDECSR_P0F16 0x02
- #define IDECSR_P1EN 0x10
- #define IDECSR_P1F16 0x20
- #define IDECSR_LEGIRQ 0x800
- #define W83C553F_PIC1_ICW1 CONFIG_SYS_ISA_IO + 0x20
- #define W83C553F_PIC1_ICW2 CONFIG_SYS_ISA_IO + 0x21
- #define W83C553F_PIC1_ICW3 CONFIG_SYS_ISA_IO + 0x21
- #define W83C553F_PIC1_ICW4 CONFIG_SYS_ISA_IO + 0x21
- #define W83C553F_PIC1_OCW1 CONFIG_SYS_ISA_IO + 0x21
- #define W83C553F_PIC1_OCW2 CONFIG_SYS_ISA_IO + 0x20
- #define W83C553F_PIC1_OCW3 CONFIG_SYS_ISA_IO + 0x20
- #define W83C553F_PIC1_ELC CONFIG_SYS_ISA_IO + 0x4D0
- #define W83C553F_PIC2_ICW1 CONFIG_SYS_ISA_IO + 0xA0
- #define W83C553F_PIC2_ICW2 CONFIG_SYS_ISA_IO + 0xA1
- #define W83C553F_PIC2_ICW3 CONFIG_SYS_ISA_IO + 0xA1
- #define W83C553F_PIC2_ICW4 CONFIG_SYS_ISA_IO + 0xA1
- #define W83C553F_PIC2_OCW1 CONFIG_SYS_ISA_IO + 0xA1
- #define W83C553F_PIC2_OCW2 CONFIG_SYS_ISA_IO + 0xA0
- #define W83C553F_PIC2_OCW3 CONFIG_SYS_ISA_IO + 0xA0
- #define W83C553F_PIC2_ELC CONFIG_SYS_ISA_IO + 0x4D1
- #define W83C553F_TMR1_CMOD CONFIG_SYS_ISA_IO + 0x43
- #define W83C553F_DMA1 CONFIG_SYS_ISA_IO + 0x000
- #define W83C553F_DMA2 CONFIG_SYS_ISA_IO + 0x0C0
- #define W83C553F_CS_COM_DACKAL (1<<7)
- #define W83C553F_CS_COM_DREQSAL (1<<6)
- #define W83C553F_CS_COM_GAP (1<<4)
- #define W83C553F_CS_COM_CGE (1<<2)
- #define W83C553F_CS_STAT_CH0REQ (1<<4)
- #define W83C553F_CS_STAT_CH1REQ (1<<5)
- #define W83C553F_CS_STAT_CH2REQ (1<<6)
- #define W83C553F_CS_STAT_CH3REQ (1<<7)
- #define W83C553F_CS_STAT_CH0TC (1<<0)
- #define W83C553F_CS_STAT_CH1TC (1<<1)
- #define W83C553F_CS_STAT_CH2TC (1<<2)
- #define W83C553F_CS_STAT_CH3TC (1<<3)
- #define W83C553F_MODE_TM_DEMAND (0<<6)
- #define W83C553F_MODE_TM_SINGLE (1<<6)
- #define W83C553F_MODE_TM_BLOCK (2<<6)
- #define W83C553F_MODE_TM_CASCADE (3<<6)
- #define W83C553F_MODE_ADDRDEC (1<<5)
- #define W83C553F_MODE_AUTOINIT (1<<4)
- #define W83C553F_MODE_TT_VERIFY (0<<2)
- #define W83C553F_MODE_TT_WRITE (1<<2)
- #define W83C553F_MODE_TT_READ (2<<2)
- #define W83C553F_MODE_TT_ILLEGAL (3<<2)
- #define W83C553F_MODE_CH0SEL (0<<0)
- #define W83C553F_MODE_CH1SEL (1<<0)
- #define W83C553F_MODE_CH2SEL (2<<0)
- #define W83C553F_MODE_CH3SEL (3<<0)
- #define W83C553F_REQ_CHSERREQ (1<<2)
- #define W83C553F_REQ_CH0SEL (0<<0)
- #define W83C553F_REQ_CH1SEL (1<<0)
- #define W83C553F_REQ_CH2SEL (2<<0)
- #define W83C553F_REQ_CH3SEL (3<<0)
- #define W83C553F_WSMB_CHMASKSEL (1<<2)
- #define W83C553F_WSMB_CH0SEL (0<<0)
- #define W83C553F_WSMB_CH1SEL (1<<0)
- #define W83C553F_WSMB_CH2SEL (2<<0)
- #define W83C553F_WSMB_CH3SEL (3<<0)
- #define W83C553F_RWAMB_CH0MASK (1<<0)
- #define W83C553F_RWAMB_CH1MASK (1<<1)
- #define W83C553F_RWAMB_CH2MASK (1<<2)
- #define W83C553F_RWAMB_CH3MASK (1<<3)
- #define W83C553F_DMA1_CS 0x8
- #define W83C553F_DMA1_WR 0x9
- #define W83C553F_DMA1_WSMB 0xA
- #define W83C553F_DMA1_WM 0xB
- #define W83C553F_DMA1_CBP 0xC
- #define W83C553F_DMA1_MC 0xD
- #define W83C553F_DMA1_CM 0xE
- #define W83C553F_DMA1_RWAMB 0xF
- #define W83C553F_DMA2_CS 0x10
- #define W83C553F_DMA2_WR 0x12
- #define W83C553F_DMA2_WSMB 0x14
- #define W83C553F_DMA2_WM 0x16
- #define W83C553F_DMA2_CBP 0x18
- #define W83C553F_DMA2_MC 0x1A
- #define W83C553F_DMA2_CM 0x1C
- #define W83C553F_DMA2_RWAMB 0x1E
- void initialise_w83c553f(void);
|