sh: landisk board support.
[linux-2.6/btrfs-unstable.git] / include / asm-sh / landisk / iodata_landisk.h
blob7189d3a3638409f405dc09b164508d24d74553c9
1 #ifndef __ASM_SH_IODATA_LANDISK_H
2 #define __ASM_SH_IODATA_LANDISK_H
4 /*
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_AREA5_IO 0xb4000000 /* Area 5 IO Memory */
26 #define PA_AREA6_IO 0xb8000000 /* Area 6 IO Memory */
27 #define PA_LCD_CLRDSP 0x00 /* LCD Clear Display Offset */
28 #define PA_LCD_RTNHOME 0x00 /* LCD Return Home Offset */
29 #define PA_LCD_ENTMODE 0x00 /* LCD Entry Mode Offset */
30 #define PA_LCD_DSPCTL 0x00 /* LCD Display ON/OFF Control Offset */
31 #define PA_LCD_FUNC 0x00 /* LCD Function Set Offset */
32 #define PA_LCD_CGRAM 0x00 /* LCD Set CGRAM Address Offset */
33 #define PA_LCD_DDRAM 0x00 /* LCD Set DDRAM Address Offset */
34 #define PA_LCD_RDFLAG 0x01 /* LCD Read Busy Flag Offset */
35 #define PA_LCD_WTDATA 0x02 /* LCD Write Datat to RAM Offset */
36 #define PA_LCD_RDDATA 0x03 /* LCD Read Data from RAM Offset */
37 #define PA_PIDE_OFFSET 0x40 /* CF IDE Offset */
38 #define PA_SIDE_OFFSET 0x40 /* HDD IDE Offset */
40 #define IRQ_PCIINTA 5 /* PCI INTA IRQ */
41 #define IRQ_PCIINTB 6 /* PCI INTB IRQ */
42 #define IRQ_PCIINDC 7 /* PCI INTC IRQ */
43 #define IRQ_PCIINTD 8 /* PCI INTD IRQ */
44 #define IRQ_ATA 9 /* ATA IRQ */
45 #define IRQ_FATA 10 /* FATA IRQ */
46 #define IRQ_POWER 11 /* Power Switch IRQ */
47 #define IRQ_BUTTON 12 /* USL-5P Button IRQ */
48 #define IRQ_FAULT 13 /* USL-5P Fault IRQ */
50 #define SHUTDOWN_BTN_MAJOR 99 /* Shutdown button device major no. */
52 #define SHUTDOWN_LOOP_CNT 5 /* Shutdown button Detection loop */
53 #define SHUTDOWN_DELAY 200 /* Shutdown button delay value(ms) */
56 /* added by kogiidena */
58 * landisk_ledparam
60 * led ------10 -6543210 -6543210 -6543210
61 * |000000..|0.......|0.......|U.......|
62 * | HARD |fastblik| blink | on |
64 * led0: power U:update flag
65 * led1: error
66 * led2: usb1
67 * led3: usb2
68 * led4: usb3
69 * led5: usb4
70 * led6: usb5
73 extern int landisk_ledparam; /* from setup.c */
74 extern int landisk_buzzerparam; /* from setup.c */
75 extern int landisk_arch; /* from setup.c */
77 #endif /* __ASM_SH_IODATA_LANDISK_H */