Go to the documentation of this file.
17 #ifndef _M68K_AMIGAYLE_H_
18 #define _M68K_AMIGAYLE_H_
20 #include <linux/types.h>
25 #define GAYLE_RAM (0x600000+zTwoBase)
26 #define GAYLE_RAMSIZE (0x400000)
27 #define GAYLE_ATTRIBUTE (0xa00000+zTwoBase)
28 #define GAYLE_ATTRIBUTESIZE (0x020000)
29 #define GAYLE_IO (0xa20000+zTwoBase)
30 #define GAYLE_IOSIZE (0x010000)
31 #define GAYLE_IO_8BITODD (0xa30000+zTwoBase)
34 #define GAYLE_ODD (GAYLE_IO_8BITODD-GAYLE_IO-1)
52 #define GAYLE_ADDRESS (0xda8000)
54 #define GAYLE_RESET (0xa40000)
57 #define gayle (*(volatile struct GAYLE *)(zTwoBase+GAYLE_ADDRESS))
58 #define gayle_reset (*(volatile u_char *)(zTwoBase+GAYLE_RESET))
60 #define gayle_attribute ((volatile u_char *)(GAYLE_ATTRIBUTE))
63 #define gayle_inb(a) readb( GAYLE_IO+(a)+(((a)&1)*GAYLE_ODD) )
64 #define gayle_outb(v,a) writeb( v, GAYLE_IO+(a)+(((a)&1)*GAYLE_ODD) )
66 #define gayle_inw(a) readw( GAYLE_IO+(a) )
67 #define gayle_outw(v,a) writew( v, GAYLE_IO+(a) )
72 #define GAYLE_CS_CCDET 0x40
73 #define GAYLE_CS_BVD1 0x20
74 #define GAYLE_CS_SC 0x20
75 #define GAYLE_CS_BVD2 0x10
76 #define GAYLE_CS_DA 0x10
77 #define GAYLE_CS_WR 0x08
78 #define GAYLE_CS_BSY 0x04
79 #define GAYLE_CS_IRQ 0x04
83 #define GAYLE_IRQ_IDE 0x80
84 #define GAYLE_IRQ_CCDET 0x40
85 #define GAYLE_IRQ_BVD1 0x20
86 #define GAYLE_IRQ_SC 0x20
87 #define GAYLE_IRQ_BVD2 0x10
88 #define GAYLE_IRQ_DA 0x10
89 #define GAYLE_IRQ_WR 0x08
90 #define GAYLE_IRQ_BSY 0x04
91 #define GAYLE_IRQ_IRQ 0x04
92 #define GAYLE_IRQ_IDEACK1 0x02
93 #define GAYLE_IRQ_IDEACK0 0x01
98 #define GAYLE_CFG_0V 0x00
99 #define GAYLE_CFG_5V 0x01
100 #define GAYLE_CFG_12V 0x02
102 #define GAYLE_CFG_100NS 0x08
103 #define GAYLE_CFG_150NS 0x04
104 #define GAYLE_CFG_250NS 0x00
105 #define GAYLE_CFG_720NS 0x0c