plan 9 kernel history: overview | file list | diff list

1991/0709/pc/io.h (diff list | history)

1991/0706/sys/src/9/pc/io.h:1,211991/0709/sys/src/9/pc/io.h:1,12 (short | long | prev | next)
1991/0703    
/* 
1991/0704    
 *  8259 interrupt controllers 
1991/0709    
 *  programmable interrupt vectors (for the 8259) 
1991/0703    
 */ 
1991/0704    
enum 
{ 
	Int0ctl=	0x20,		/* control port */ 
	Int0aux=	0x21,		/* everything else port */ 
	Int1ctl=	0xA0,		/* control port */ 
	Int1aux=	0xA1,		/* everything else port */ 
                 
	Intena=		0x20,		/* written to Intctlport, enables next int */ 
                 
1991/0706    
	Int0vec=	16,		/* first interrupt vector used by the 8259 */ 
1991/0704    
	Clockvec=	Int0vec+0,	/* clock interrupts */ 
	Kbdvec=		Int0vec+1,	/* keyboard interrupts */ 
1991/0703    
}; 
1991/0704    
#define	INT0ENABLE	outb(Int0ctl, Intena) 
#define	INT1ENABLE	outb(Int1ctl, Intena) 
1991/0703    
 
/* 
1991/0704    
 *  8237 dma controllers 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)