1
2
3
4
5
6
7
8
9
10
11
12 #ifndef _SGI_IP22_H
13 #define _SGI_IP22_H
14
15
16
17
18
19
20
21
22
23
24 #include <irq.h>
25 #include <asm/sgi/ioc.h>
26
27 #define SGINT_EISA 0
28 #define SGINT_CPU MIPS_CPU_IRQ_BASE
29 #define SGINT_LOCAL0 (SGINT_CPU+8)
30 #define SGINT_LOCAL1 (SGINT_CPU+16)
31 #define SGINT_LOCAL2 (SGINT_CPU+24)
32 #define SGINT_LOCAL3 (SGINT_CPU+32)
33 #define SGINT_END (SGINT_CPU+40)
34
35
36
37
38
39 #define SGI_SOFT_0_IRQ SGINT_CPU + 0
40 #define SGI_SOFT_1_IRQ SGINT_CPU + 1
41 #define SGI_LOCAL_0_IRQ SGINT_CPU + 2
42 #define SGI_LOCAL_1_IRQ SGINT_CPU + 3
43 #define SGI_8254_0_IRQ SGINT_CPU + 4
44 #define SGI_8254_1_IRQ SGINT_CPU + 5
45 #define SGI_BUSERR_IRQ SGINT_CPU + 6
46 #define SGI_TIMER_IRQ SGINT_CPU + 7
47
48 #define SGI_FIFO_IRQ SGINT_LOCAL0 + 0
49 #define SGI_GIO_0_IRQ SGI_FIFO_IRQ
50 #define SGI_WD93_0_IRQ SGINT_LOCAL0 + 1
51 #define SGI_WD93_1_IRQ SGINT_LOCAL0 + 2
52 #define SGI_ENET_IRQ SGINT_LOCAL0 + 3
53 #define SGI_MCDMA_IRQ SGINT_LOCAL0 + 4
54 #define SGI_PARPORT_IRQ SGINT_LOCAL0 + 5
55 #define SGI_GIO_1_IRQ SGINT_LOCAL0 + 6
56 #define SGI_MAP_0_IRQ SGINT_LOCAL0 + 7
57
58 #define SGI_GPL0_IRQ SGINT_LOCAL1 + 0
59 #define SGI_PANEL_IRQ SGINT_LOCAL1 + 1
60 #define SGI_GPL2_IRQ SGINT_LOCAL1 + 2
61 #define SGI_MAP_1_IRQ SGINT_LOCAL1 + 3
62 #define SGI_HPCDMA_IRQ SGINT_LOCAL1 + 4
63 #define SGI_ACFAIL_IRQ SGINT_LOCAL1 + 5
64 #define SGI_VINO_IRQ SGINT_LOCAL1 + 6
65 #define SGI_GIO_2_IRQ SGINT_LOCAL1 + 7
66
67
68 #define SGI_VERT_IRQ SGINT_LOCAL2 + 0
69 #define SGI_EISA_IRQ SGINT_LOCAL2 + 3
70 #define SGI_KEYBD_IRQ SGINT_LOCAL2 + 4
71 #define SGI_SERIAL_IRQ SGINT_LOCAL2 + 5
72 #define SGI_GIOEXP0_IRQ (SGINT_LOCAL2 + 6)
73 #define SGI_GIOEXP1_IRQ (SGINT_LOCAL2 + 7)
74
75 #define ip22_is_fullhouse() (sgioc->sysid & SGIOC_SYSID_FULLHOUSE)
76
77 extern unsigned short ip22_eeprom_read(unsigned int *ctrl, int reg);
78 extern unsigned short ip22_nvram_read(int reg);
79
80 #endif