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

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

1992/0520/sys/src/9/pc/vga.c:23,341992/0527/sys/src/9/pc/vga.c:23,34 (short | long | prev | next)
1991/0730    
 *  screen dimensions 
 */ 
1992/0502    
 
/* 
#define MAXX	640 
#define MAXY	480 
1992/0520    
*/ 
1992/0527    
/* 
1992/0520    
#define MAXX	800 
#define MAXY	600 
1992/0527    
*/ 
1991/0730    
 
#define SCREENMEM	(0xA0000 | KZERO) 
 
1992/0520/sys/src/9/pc/vga.c:95,1121992/0527/sys/src/9/pc/vga.c:95,112
1992/0414    
}; 
1992/0418    
 
1992/0430    
/* 
1992/0502    
 *  VESA standard (?) 800x600 display, 16 bit color.  
1992/0527    
 *  cardinal (tseng labs) 800x600 display, 16 bit color.  
1992/0430    
 */ 
1992/0501    
VGAmode mode6a =  
1992/0527    
VGAmode mode25 =  
1992/0430    
{ 
	/* general */ 
1992/0520    
	0x67, 0x00,  /* 0x70, 0x04, these are read-only */ 
1992/0527    
	0xe3, 0x00,  /* 0x70, 0x04, these are read-only */ 
1992/0430    
	/* sequence */ 
	0x03, 0x01, 0x0f, 0x00, 0x06, 
	/* crt */ 
1992/0520    
	0x7a, 0x63, 0x65, 0x9d, 0x68, 0x99, 0x38, 0x1f, 
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
	0x2c, 0x8e, 0x2b, 0x32, 0x0f, 0x32, 0x34, 0xe7, 
1992/0527    
	0x5f, 0x4f, 0x50, 0x02, 0x54, 0x80, 0x0b, 0x3e, 
	0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 
	0xea, 0x8c, 0xdf, 0x28, 0x00, 0xe7, 0x04, 0xe3, 
1992/0520    
	0xff, 
	/* graphics */ 
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0f, 
1992/0520/sys/src/9/pc/vga.c:115,1381992/0527/sys/src/9/pc/vga.c:115,120
1992/0520    
	0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 
	0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x3f, 
	0x01, 0x10, 0x0f, 0x00, 0x00, 
#ifdef almost 
	/* general */ 
	0xe7, 0x00,  /* 0x70, 0x04, these are read-only */ 
	/* sequence */ 
	0x03, 0x01, 0x0f, 0x00, 0x06, 
	/* crt */ 
1992/0519    
	0x7a, 0x63, 0x65, 0x9d, 0x67, 0x92, 0x39, 0x1f, 
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
	0x33, 0x82, 0x2b, 0x32, 0x0f, 0x33, 0x36, 0xe7, 
	0xff, 
1992/0430    
	/* graphics */ 
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0f, 
	0xff, 
	/* attribute */ 
	0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 
	0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x3f, 
	0x01, 0x10, 0x0f, 0x00, 0x00, 
1992/0520    
#endif 
1992/0430    
}; 
 
1991/0724    
void 
1992/0520/sys/src/9/pc/vga.c:161,1691992/0527/sys/src/9/pc/vga.c:143,148
1991/0727    
void 
arout(int reg, int val) 
{ 
1992/0414    
	/* 
	 * if this print is missing, we are left with a blank white screen. 
	 */ 
1991/0727    
	inb(0x3DA); 
1992/0423    
	if (reg <= 0xf) { 
		outb(ARW, reg | 0x0); 
1992/0520/sys/src/9/pc/vga.c:321,3281992/0527/sys/src/9/pc/vga.c:300,306
1991/0730    
	ulong *l; 
1992/0519    
	VGAmode testmode; 
1991/0723    
 
1992/0519    
	setmode(&mode6a); 
	getmode(&testmode); 
1992/0527    
	setmode(&mode12); 
1991/0929    
 
1991/0727    
	/* 
1991/0801    
	 *  swizzle the font longs. 
1992/0520/sys/src/9/pc/vga.c:338,3481992/0527/sys/src/9/pc/vga.c:316,321
1991/0730    
	out.pos.x = MINX; 
	out.pos.y = 0; 
	out.bwid = defont0.info[' '].width; 
1992/0519    
delay(50000); 
	setmode(&mode12); 
1992/0520    
	printmode(&testmode); 
	getmode(&testmode); 
1992/0519    
	printmode(&testmode); 
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)