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

1991/1211/pc/vga.c (diff list | history)

1991/1113/sys/src/9/pc/vga.c:52,591991/1211/sys/src/9/pc/vga.c:52,59 (short | long | prev | next)
1991/0727    
	CRX=		0x3D4,		/* index to crt registers */ 
	CR=		0x3D5,		/* crt registers */ 
1991/1109    
	 Cvre=		 0x11,		/*  vertical retrace end */ 
1991/0727    
	ARX=		0x3C0,		/* index to attribute registers */ 
	AR=		0x3C1,		/* attribute registers */ 
1991/1211    
	ARW=		0x3C0,		/* attribute registers (writing) */ 
	ARR=		0x3C1,		/* attribute registers (reading) */ 
1991/0723    
}; 
 
1991/1113    
typedef struct VGAmode	VGAmode; 
1991/1113/sys/src/9/pc/vga.c:113,1201991/1211/sys/src/9/pc/vga.c:113,120
1991/0727    
arout(int reg, int val) 
{ 
	inb(0x3DA); 
	outb(ARX, reg | 0x20); 
	outb(AR, val); 
1991/1211    
	outb(ARW, reg | 0x20); 
	outb(ARW, val); 
1991/0727    
} 
void 
crout(int reg, int val) 


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