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

1995/0126/pc/vgas3.c (diff list | history)

1994/0810/sys/src/9/pc/vgas3.c:26,341995/0126/sys/src/9/pc/vgas3.c:26,31 (short | long | prev | next)
1994/0803    
{ 
	uchar crt51; 
 
	/* 
	 * I don't understand why these are different. 
	 */ 
	if(gscreen.ldepth == 3){ 
		/* 
		 * The S3 registers need to be unlocked for this. 
1994/0810/sys/src/9/pc/vgas3.c:84,971995/0126/sys/src/9/pc/vgas3.c:81,94
1994/0803    
	 * stack in case we are using a 16-bit RAMDAC. 
1994/0804    
	 * Why are these colours reversed? 
1994/0803    
	 */ 
1994/0804    
	vgaxo(Crtx, 0x0E, 0xFF); 
	vgaxo(Crtx, 0x0F, 0x00); 
1995/0126    
	vgaxo(Crtx, 0x0E, Pwhite); 
	vgaxo(Crtx, 0x0F, Pblack); 
1994/0803    
	vgaxi(Crtx, 0x45); 
	for(i = 0; i < 4; i++) 
1994/0804    
		vgaxo(Crtx, 0x4A, 0xFF); 
1995/0126    
		vgaxo(Crtx, 0x4A, Pwhite); 
1994/0803    
	vgaxi(Crtx, 0x45); 
	for(i = 0; i < 4; i++) 
1994/0804    
		vgaxo(Crtx, 0x4B, 0x00); 
1995/0126    
		vgaxo(Crtx, 0x4B, Pblack); 
1994/0803    
 
	/* 
	 * Find a place for the cursor data in display memory. 
1994/0810/sys/src/9/pc/vgas3.c:230,2351995/0126/sys/src/9/pc/vgas3.c:227,234
1994/0803    
	load, 
	move, 
	disable, 
1995/0126    
 
	0, 
1994/0803    
}; 
 
void 
1994/0810/sys/src/9/pc/vgas3.c:242,2451995/0126/sys/src/9/pc/vgas3.c:241,258
1994/0803    
	} 
	else 
		sets3page(page); 
1995/0126    
} 
 
static Vgac s3 = { 
	"s3", 
	s3page, 
 
	0, 
}; 
 
void 
vgas3link(void) 
{ 
	addvgaclink(&s3); 
	addhwgclink(&s3hwgc); 
1994/0803    
} 


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