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

1994/0810/pc/vgatvp3020.c (diff list | history)

1994/0729/sys/src/9/pc/vgatvp3020.c:9,141994/0810/sys/src/9/pc/vgatvp3020.c:9,16 (short | long | prev | next)
1994/0624    
#include "screen.h" 
#include "vga.h" 
 
1994/0810    
extern Cursor curcursor; 
 
1994/0624    
/* 
 * TVP3020 Viewpoint Video Interface Pallette. 
 * Assumes hooked up to an S3 86C928. 
1994/0729/sys/src/9/pc/vgatvp3020.c:59,651994/0810/sys/src/9/pc/vgatvp3020.c:61,79
1994/0624    
	uchar p, p0, p1; 
	int x, y; 
 
1994/0810    
	/* 
	 * Lock the DAC registers so we can update the 
	 * cursor bitmap if necessary. 
	 * If it's the same as the last cursor we loaded, 
	 * just make sure it's enabled. 
	 */ 
1994/0729    
	lock(&palettelock); 
1994/0810    
	if(memcmp(c, &curcursor, sizeof(Cursor)) == 0){ 
		tvp3020xo(0x06, 0x40|0x10);		/* Cursor Control Register */ 
		unlock(&palettelock); 
		return; 
	} 
	memmove(&curcursor, c, sizeof(Cursor)); 
1994/0624    
 
	/* 
	 * Make sure cursor is off by initialising the cursor 


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