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

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

1991/0730/sys/src/9/pc/io.h:1,311991/0731/sys/src/9/pc/io.h:1,16 (short | long | prev | next)
1991/0703    
/* 
1991/0709    
 *  programmable interrupt vectors (for the 8259) 
1991/0731    
 *  programmable interrupt vectors (for the 8259's) 
1991/0703    
 */ 
1991/0704    
enum 
{ 
1991/0710    
	Faultvec=	14,		/* page fault */ 
1991/0706    
	Int0vec=	16,		/* first interrupt vector used by the 8259 */ 
1991/0704    
	Clockvec=	Int0vec+0,	/* clock interrupts */ 
	Kbdvec=		Int0vec+1,	/* keyboard interrupts */ 
1991/0730    
	Mousevec=	Int0vec+12,	/* mouse interrupt */ 
1991/0703    
}; 
                 
/* 
1991/0704    
 *  8237 dma controllers 
 */ 
enum 
{ 
	/* 
	 *  the byte registers for DMA0 are all one byte apart 
	 */ 
	Dma0=		0x00, 
	Dma0status=	Dma0+0x8,	/* status port */ 
	Dma0reset=	Dma0+0xD,	/* reset port */ 
                 
	/* 
	 *  the byte registers for DMA1 are all two bytes apart (why?) 
	 */ 
	Dma1=		0xC0, 
	Dma1status=	Dma1+2*0x8,	/* status port */ 
1991/0705    
	Dma1reset=	Dma1+2*0xD,	/* reset port */ 
1991/0731    
	Int0vec=	16,		/* first 8259 */ 
	 Clockvec=	Int0vec+0,	/*  clock interrupts */ 
	 Kbdvec=	Int0vec+1,	/*  keyboard interrupts */ 
	 ComBvec=	Int0vec+3,	/*  inerrupt from uart b */ 
	 ComAvec=	Int0vec+4,	/*  inerrupt from uart a */ 
	 Floppyvec=	Int0vec+6,	/*  floppy interrupts */ 
	Int1vec=	Int0vec+8,	/* second 8259 */ 
	 Mousevec=	Int1vec+4,	/*  mouse interrupt */ 
	 Hardvec=	Int1vec+6,	/*  hard disk */ 
1991/0704    
}; 


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