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

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

1992/0424/sys/src/9/pc/vga.c:22,291992/0430/sys/src/9/pc/vga.c:22,29 (short | long | prev | next)
1991/0730    
/* 
 *  screen dimensions 
 */ 
#define MAXX	640 
#define MAXY	480 
1992/0430    
#define MAXX	800 
#define MAXY	600 
1991/0730    
 
#define SCREENMEM	(0xA0000 | KZERO) 
 
1992/0424/sys/src/9/pc/vga.c:67,731992/0430/sys/src/9/pc/vga.c:67,73
1991/1113    
}; 
 
1991/0727    
/* 
1992/0414    
 *  640x480 display, 16 bit color - attempt at SVGA version...ches 
1992/0430    
 *  640x480 display, 16 bit color. 
1992/0414    
 */ 
VGAmode mode12 =  
{ 
1992/0424/sys/src/9/pc/vga.c:89,941992/0430/sys/src/9/pc/vga.c:89,117
1992/0418    
	0x01, 0x10, 0x0f, 0x00, 0x00, 
1992/0414    
}; 
1992/0418    
 
1992/0430    
/* 
 *  800x600 display, 16 bit color  
 */ 
VGAmode mode41 =  
{ 
	/* general */ 
	0xe7, 0x00,  /* 0x70, 0x04, these are read-only */ 
	/* sequence */ 
	0x03, 0x01, 0x0f, 0x00, 0x06, 
	/* crt */ 
	0x5f, 0x4f, 0x50, 0x82, 0x55, 0x81, 0xbf, 0x1f, 
	0x00, 0x40, 0x0d, 0x0e, 0x00, 0x00, 0x07, 0x80, 
	0x9c, 0x8e, 0x8f, 0x28, 0x1f, 0x96, 0xb9, 0xa3, 
	0xff, 
	/* 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, 
}; 
 
1991/0724    
void 
1991/1113    
genout(int reg, int val) 
{ 
1992/0424/sys/src/9/pc/vga.c:225,2311992/0430/sys/src/9/pc/vga.c:248,254
1991/0727    
	int c; 
1991/0730    
	ulong *l; 
1991/0723    
 
1991/1113    
	setmode(&mode12); 
1992/0430    
	setmode(&mode41); 
1991/0929    
 
1991/0727    
	/* 
1991/0801    
	 *  swizzle the font longs. 


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