1 #ifndef __ASM_SH_IODATA_LANDISK_H
2 #define __ASM_SH_IODATA_LANDISK_H
5 * linux/include/asm-sh/landisk/iodata_landisk.h
7 * Copyright (C) 2000 Atom Create Engineering Co., Ltd.
9 * IO-DATA LANDISK support
12 /* Box specific addresses. */
14 #define PA_USB 0xa4000000 /* USB Controller M66590 */
16 #define PA_ATARST 0xb0000000 /* ATA/FATA Access Control Register */
17 #define PA_LED 0xb0000001 /* LED Control Register */
18 #define PA_STATUS 0xb0000002 /* Switch Status Register */
19 #define PA_SHUTDOWN 0xb0000003 /* Shutdown Control Register */
20 #define PA_PCIPME 0xb0000004 /* PCI PME Status Register */
21 #define PA_IMASK 0xb0000005 /* Interrupt Mask Register */
22 /* 2003.10.31 I-O DATA NSD NWG add. for shutdown port clear */
23 #define PA_PWRINT_CLR 0xb0000006 /* Shutdown Interrupt clear Register */
25 #define PA_LCD_CLRDSP 0x00 /* LCD Clear Display Offset */
26 #define PA_LCD_RTNHOME 0x00 /* LCD Return Home Offset */
27 #define PA_LCD_ENTMODE 0x00 /* LCD Entry Mode Offset */
28 #define PA_LCD_DSPCTL 0x00 /* LCD Display ON/OFF Control Offset */
29 #define PA_LCD_FUNC 0x00 /* LCD Function Set Offset */
30 #define PA_LCD_CGRAM 0x00 /* LCD Set CGRAM Address Offset */
31 #define PA_LCD_DDRAM 0x00 /* LCD Set DDRAM Address Offset */
32 #define PA_LCD_RDFLAG 0x01 /* LCD Read Busy Flag Offset */
33 #define PA_LCD_WTDATA 0x02 /* LCD Write Datat to RAM Offset */
34 #define PA_LCD_RDDATA 0x03 /* LCD Read Data from RAM Offset */
35 #define PA_PIDE_OFFSET 0x40 /* CF IDE Offset */
36 #define PA_SIDE_OFFSET 0x40 /* HDD IDE Offset */
38 #define IRQ_PCIINTA 5 /* PCI INTA IRQ */
39 #define IRQ_PCIINTB 6 /* PCI INTB IRQ */
40 #define IRQ_PCIINDC 7 /* PCI INTC IRQ */
41 #define IRQ_PCIINTD 8 /* PCI INTD IRQ */
42 #define IRQ_ATA 9 /* ATA IRQ */
43 #define IRQ_FATA 10 /* FATA IRQ */
44 #define IRQ_POWER 11 /* Power Switch IRQ */
45 #define IRQ_BUTTON 12 /* USL-5P Button IRQ */
46 #define IRQ_FAULT 13 /* USL-5P Fault IRQ */
48 #define SHUTDOWN_BTN_MAJOR 99 /* Shutdown button device major no. */
50 #define SHUTDOWN_LOOP_CNT 5 /* Shutdown button Detection loop */
51 #define SHUTDOWN_DELAY 200 /* Shutdown button delay value(ms) */
54 /* added by kogiidena */
58 * led ------10 -6543210 -6543210 -6543210
59 * |000000..|0.......|0.......|U.......|
60 * | HARD |fastblik| blink | on |
62 * led0: power U:update flag
71 extern int landisk_ledparam; /* from setup.c */
72 extern int landisk_buzzerparam; /* from setup.c */
73 extern int landisk_arch; /* from setup.c */
75 #define __IO_PREFIX landisk
76 #include <asm/io_generic.h>
78 #endif /* __ASM_SH_IODATA_LANDISK_H */