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

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

1992/0417/sys/src/9/pc/vga.c:108,1231992/0418/sys/src/9/pc/vga.c:108,125 (short | long | prev | next)
1992/0414    
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0f, 
	0xff, 
	/* attribute */ 
	0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x14, 0x07, 
	0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 
1992/0417    
	0x01, 0x07, 0x0f, 0x00, 0x00, 
1992/0418    
	0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 
	0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0d, 0x0f, 
	0x01, 0x10, 0x0f, 0x00, 0x00, 
1992/0414    
}; 
#endif 
1991/1113    
 
1992/0418    
#define TESTDELAY	1 
 
1991/0724    
void 
1991/1113    
genout(int reg, int val) 
{ 
1992/0414    
delay(1000); 
1992/0418    
delay(TESTDELAY); 
1991/1113    
	if(reg == 0) 
		outb(EMISCW, val); 
	else if (reg == 1) 
1992/0417/sys/src/9/pc/vga.c:129,1351992/0418/sys/src/9/pc/vga.c:131,137
1992/0414    
	/* 
	 * needed or the screen goes blank on an ultra VGA card 
	 */ 
	delay(1000); 
1992/0418    
	delay(TESTDELAY); 
1991/0724    
	outb(SRX, reg); 
	outb(SR, val); 
} 
1992/0417/sys/src/9/pc/vga.c:153,1591992/0418/sys/src/9/pc/vga.c:155,161
1991/0727    
void 
crout(int reg, int val) 
{ 
1992/0414    
	delay(1000);	/* needed for 16bit VGA path on Ultra SVGA */ 
1992/0418    
	delay(TESTDELAY);	/* needed for 16bit VGA path on Ultra SVGA */ 
1991/0727    
	outb(CRX, reg); 
	outb(CR, val); 
} 
1992/0417/sys/src/9/pc/vga.c:224,2291992/0418/sys/src/9/pc/vga.c:226,232
1991/0730    
	out.pos.x = MINX; 
	out.pos.y = 0; 
	out.bwid = defont0.info[' '].width; 
1992/0418    
print("PEL Mask Register = %02x\n", inb(0x3c6)&0xff); 
1991/0723    
} 
1991/0727    
 
1991/0730    
void 


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