summaryrefslogtreecommitdiff
path: root/sys/src/9/sgi/io.h
blob: 4a86c42771e883bbbc056e06f2c546446b2e6fe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
enum {
	Mhz		= 1000*1000,
};

#define	IO(t,x)		((t*)(KSEG1|((ulong)x)))

/* Interrupts */
#define IRQGIO0		0
#define IRQSCSI		1
#define IRQSCSI1	2
#define IRQENET		3
#define IRQGDMA		4
#define IRQPLP		5
#define IRQGIO1		6
#define IRQLCL2		7
#define IRQISDN_ISAC	8
#define IRQPOWER	9
#define IRQISDN_HSCX	10
#define IRQLCL3		11
#define IRQHPCDMA	12
#define IRQACFAIL	13
#define IRQVIDEO	14
#define IRQGIO2		15
#define IRQEISA		19
#define IRQKBDMS	20
#define IRQDUART	21
#define IRQDRAIN0	22
#define IRQDRAIN1	23
#define IRQGIOEXP0	22
#define IRQGIOEXP1	23

/*
 * Local Interrupt registers (INT2)
 */
#define	INT2_IP20	0x1fb801c0
#define	INT2_IP22	0x1fbd9000
#define	INT2_IP24	0x1fbd9880

#define INT2_BASE	INT2_IP24	/* indy */

#define	LIO_0_ISR	(INT2_BASE+0x3)
#define	LIO_0_MASK	(INT2_BASE+0x7)
#define	LIO_1_ISR	(INT2_BASE+0xb)
#define	LIO_1_MASK	(INT2_BASE+0xf)
#define	LIO_2_ISR	(INT2_BASE+0x13)
#define	LIO_2_MASK	(INT2_BASE+0x17)

#define	HPC3_ETHER	0x1fb80000
#define	HPC3_KBDMS	0x1fbd9800
#define	GIO_NEWPORT	0x1f0f0000	/* indy */

#define	MEMCFG0		0x1fa000c4	/* mem. size config. reg. 0 (w, rw) */
#define	MEMCFG1		0x1fa000cc	/* mem. size config. reg. 1 (w, rw) */