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

1995/0623/pc/vgaark2000pv.c (diff list | history)

1995/0516/sys/src/9/pc/vgaark2000pv.c:80,941995/0623/sys/src/9/pc/vgaark2000pv.c:80,95 (short | long | prev | next)
1995/0516    
	 * If it's the same as the last cursor we loaded, 
	 * just make sure it's enabled. 
	 */ 
	seq20 = vgaxi(Seqx, 0x20); 
	lock(&ark2000pvlock); 
1995/0623    
	seq20 = vgaxi(Seqx, 0x20); 
1995/0516    
	if(memcmp(c, &curcursor, sizeof(Cursor)) == 0){ 
		vgaxo(Seqx, 0x20, 0x80|seq20); 
1995/0623    
		vgaxo(Seqx, 0x20, seq20|0x08); 
1995/0516    
		unlock(&ark2000pvlock); 
		return; 
	} 
	memmove(&curcursor, c, sizeof(Cursor)); 
 
1995/0623    
	vgaxo(Seqx, 0x20, seq20 & ~0x08); 
1995/0516    
	/* 
	 * Is linear addressing turned on? This will determine 
	 * how we access the cursor storage. 
1995/0516/sys/src/9/pc/vgaark2000pv.c:129,1351995/0623/sys/src/9/pc/vgaark2000pv.c:130,136
1995/0516    
	 * Set the cursor hotpoint and enable the cursor. 
	 */ 
	hotpoint = c->offset; 
	vgaxo(Seqx, 0x20, 0x80|seq20); 
1995/0623    
	vgaxo(Seqx, 0x20, seq20|0x08); 
1995/0516    
 
	unlock(&ark2000pvlock); 
} 


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