Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
amigayle.h File Reference
#include <linux/types.h>
#include <asm/amigahw.h>

Go to the source code of this file.

Data Structures

struct  GAYLE
 
struct  gayle_ide_platform_data
 

Macros

#define GAYLE_RAM   (0x600000+zTwoBase)
 
#define GAYLE_RAMSIZE   (0x400000)
 
#define GAYLE_ATTRIBUTE   (0xa00000+zTwoBase)
 
#define GAYLE_ATTRIBUTESIZE   (0x020000)
 
#define GAYLE_IO   (0xa20000+zTwoBase) /* 16bit and even 8bit registers */
 
#define GAYLE_IOSIZE   (0x010000)
 
#define GAYLE_IO_8BITODD   (0xa30000+zTwoBase) /* odd 8bit registers */
 
#define GAYLE_ODD   (GAYLE_IO_8BITODD-GAYLE_IO-1)
 
#define GAYLE_ADDRESS   (0xda8000) /* gayle main registers base address */
 
#define GAYLE_RESET
 
#define gayle   (*(volatile struct GAYLE *)(zTwoBase+GAYLE_ADDRESS))
 
#define gayle_reset   (*(volatile u_char *)(zTwoBase+GAYLE_RESET))
 
#define gayle_attribute   ((volatile u_char *)(GAYLE_ATTRIBUTE))
 
#define GAYLE_CS_CCDET   0x40 /* credit card detect */
 
#define GAYLE_CS_BVD1   0x20 /* battery voltage detect 1 */
 
#define GAYLE_CS_SC   0x20 /* credit card status change */
 
#define GAYLE_CS_BVD2   0x10 /* battery voltage detect 2 */
 
#define GAYLE_CS_DA   0x10 /* digital audio */
 
#define GAYLE_CS_WR   0x08 /* write enable (1 == enabled) */
 
#define GAYLE_CS_BSY   0x04 /* credit card busy */
 
#define GAYLE_CS_IRQ   0x04 /* interrupt request */
 
#define GAYLE_IRQ_IDE   0x80
 
#define GAYLE_IRQ_CCDET   0x40
 
#define GAYLE_IRQ_BVD1   0x20
 
#define GAYLE_IRQ_SC   0x20
 
#define GAYLE_IRQ_BVD2   0x10
 
#define GAYLE_IRQ_DA   0x10
 
#define GAYLE_IRQ_WR   0x08
 
#define GAYLE_IRQ_BSY   0x04
 
#define GAYLE_IRQ_IRQ   0x04
 
#define GAYLE_IRQ_IDEACK1   0x02
 
#define GAYLE_IRQ_IDEACK0   0x01
 
#define GAYLE_CFG_0V   0x00
 
#define GAYLE_CFG_5V   0x01
 
#define GAYLE_CFG_12V   0x02
 
#define GAYLE_CFG_100NS   0x08
 
#define GAYLE_CFG_150NS   0x04
 
#define GAYLE_CFG_250NS   0x00
 
#define GAYLE_CFG_720NS   0x0c
 

Macro Definition Documentation

#define gayle   (*(volatile struct GAYLE *)(zTwoBase+GAYLE_ADDRESS))

Definition at line 56 of file amigayle.h.

#define GAYLE_ADDRESS   (0xda8000) /* gayle main registers base address */

Definition at line 52 of file amigayle.h.

#define GAYLE_ATTRIBUTE   (0xa00000+zTwoBase)

Definition at line 27 of file amigayle.h.

#define gayle_attribute   ((volatile u_char *)(GAYLE_ATTRIBUTE))

Definition at line 59 of file amigayle.h.

#define GAYLE_ATTRIBUTESIZE   (0x020000)

Definition at line 28 of file amigayle.h.

#define GAYLE_CFG_0V   0x00

Definition at line 97 of file amigayle.h.

#define GAYLE_CFG_100NS   0x08

Definition at line 101 of file amigayle.h.

#define GAYLE_CFG_12V   0x02

Definition at line 99 of file amigayle.h.

#define GAYLE_CFG_150NS   0x04

Definition at line 102 of file amigayle.h.

#define GAYLE_CFG_250NS   0x00

Definition at line 103 of file amigayle.h.

#define GAYLE_CFG_5V   0x01

Definition at line 98 of file amigayle.h.

#define GAYLE_CFG_720NS   0x0c

Definition at line 104 of file amigayle.h.

#define GAYLE_CS_BSY   0x04 /* credit card busy */

Definition at line 77 of file amigayle.h.

#define GAYLE_CS_BVD1   0x20 /* battery voltage detect 1 */

Definition at line 72 of file amigayle.h.

#define GAYLE_CS_BVD2   0x10 /* battery voltage detect 2 */

Definition at line 74 of file amigayle.h.

#define GAYLE_CS_CCDET   0x40 /* credit card detect */

Definition at line 71 of file amigayle.h.

#define GAYLE_CS_DA   0x10 /* digital audio */

Definition at line 75 of file amigayle.h.

#define GAYLE_CS_IRQ   0x04 /* interrupt request */

Definition at line 78 of file amigayle.h.

#define GAYLE_CS_SC   0x20 /* credit card status change */

Definition at line 73 of file amigayle.h.

#define GAYLE_CS_WR   0x08 /* write enable (1 == enabled) */

Definition at line 76 of file amigayle.h.

#define GAYLE_IO   (0xa20000+zTwoBase) /* 16bit and even 8bit registers */

Definition at line 29 of file amigayle.h.

#define GAYLE_IO_8BITODD   (0xa30000+zTwoBase) /* odd 8bit registers */

Definition at line 31 of file amigayle.h.

#define GAYLE_IOSIZE   (0x010000)

Definition at line 30 of file amigayle.h.

#define GAYLE_IRQ_BSY   0x04

Definition at line 89 of file amigayle.h.

#define GAYLE_IRQ_BVD1   0x20

Definition at line 84 of file amigayle.h.

#define GAYLE_IRQ_BVD2   0x10

Definition at line 86 of file amigayle.h.

#define GAYLE_IRQ_CCDET   0x40

Definition at line 83 of file amigayle.h.

#define GAYLE_IRQ_DA   0x10

Definition at line 87 of file amigayle.h.

#define GAYLE_IRQ_IDE   0x80

Definition at line 82 of file amigayle.h.

#define GAYLE_IRQ_IDEACK0   0x01

Definition at line 92 of file amigayle.h.

#define GAYLE_IRQ_IDEACK1   0x02

Definition at line 91 of file amigayle.h.

#define GAYLE_IRQ_IRQ   0x04

Definition at line 90 of file amigayle.h.

#define GAYLE_IRQ_SC   0x20

Definition at line 85 of file amigayle.h.

#define GAYLE_IRQ_WR   0x08

Definition at line 88 of file amigayle.h.

#define GAYLE_ODD   (GAYLE_IO_8BITODD-GAYLE_IO-1)

Definition at line 34 of file amigayle.h.

#define GAYLE_RAM   (0x600000+zTwoBase)

Definition at line 25 of file amigayle.h.

#define GAYLE_RAMSIZE   (0x400000)

Definition at line 26 of file amigayle.h.

#define GAYLE_RESET
Value:
(0xa40000) /* write 0x00 to start reset,
read 1 byte to stop reset */

Definition at line 54 of file amigayle.h.

#define gayle_reset   (*(volatile u_char *)(zTwoBase+GAYLE_RESET))

Definition at line 57 of file amigayle.h.