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

1992/0528/pc/vga.c (diff list | history)

1992/0527/sys/src/9/pc/vga.c:8,131992/0528/sys/src/9/pc/vga.c:8,14 (short | long | prev | next)
1991/0730    
#include	<libg.h> 
#include	<gnot.h> 
#include	"screen.h" 
1992/0528    
#include	"vga.h" 
1991/0730    
 
#define	MINX	8 
 
1992/0527/sys/src/9/pc/vga.c:42,661992/0528/sys/src/9/pc/vga.c:43,48
1991/0730    
	0 
}; 
 
1991/0723    
enum 
{ 
1991/1112    
	EMISCR=		0x3CC,		/* control sync polarity */ 
	EMISCW=		0x3C2, 
	EFCW=		0x3DA,		/* feature control */ 
	EFCR=		0x3CA, 
1991/0723    
	GRX=		0x3CE,		/* index to graphics registers */ 
1991/0727    
	GR=		0x3CF,		/* graphics registers */ 
	 Grms=		 0x04,		/*  read map select register */ 
1991/0724    
	SRX=		0x3C4,		/* index to sequence registers */ 
1991/0727    
	SR=		0x3C5,		/* sequence registers */ 
	 Smmask=	 0x02,		/*  map mask */ 
	CRX=		0x3D4,		/* index to crt registers */ 
	CR=		0x3D5,		/* crt registers */ 
1991/1109    
	 Cvre=		 0x11,		/*  vertical retrace end */ 
1991/1211    
	ARW=		0x3C0,		/* attribute registers (writing) */ 
	ARR=		0x3C1,		/* attribute registers (reading) */ 
1991/0723    
}; 
                 
1991/1113    
typedef struct VGAmode	VGAmode; 
struct VGAmode 
{ 
1992/0527/sys/src/9/pc/vga.c:128,1361992/0528/sys/src/9/pc/vga.c:110,115
1991/1113    
void 
1991/0724    
srout(int reg, int val) 
{ 
1992/0414    
	/* 
	 * needed or the screen goes blank on an ultra VGA card 
	 */ 
1991/0724    
	outb(SRX, reg); 
	outb(SR, val); 
} 


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