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

1992/0825/pc/kbd.c (diff list | history)

1992/0811/sys/src/9/pc/kbd.c:214,2201992/0825/sys/src/9/pc/kbd.c:214,220 (short | long | prev | next)
1991/1210    
			print("can't initialize mouse\n"); 
1992/0811    
 
		/* turn on mouse acceleration */ 
		mousecmd(0xE7); 
1992/0825    
		mouseaccelerate(0); 
1991/1210    
		break; 
	case At: 
		/* enable kbd xfers and interrupts */ 
1992/0811/sys/src/9/pc/kbd.c:225,2301992/0825/sys/src/9/pc/kbd.c:225,247
1992/0408    
 
		/* set up /dev/eia0 as the mouse */ 
		uartspecial(0, 0, &mouseq, 1200); 
1992/0825    
		break; 
	} 
} 
 
/* 
 *  turn mouse acceleration on/off 
 */ 
void 
mouseaccelerate(int on) 
{ 
 
	switch(machtype){ 
	case Attnsx: 
		if(on) 
			mousecmd(0xE7); 
		else 
			mousecmd(0xE6); 
1991/1210    
		break; 
	} 
1991/0731    
} 


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