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

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

1992/0404/sys/src/9/pc/kbd.c:188,1971992/0408/sys/src/9/pc/kbd.c:188,194 (short | long | prev | next)
1991/0731    
	int c, s; 
1991/0803    
	int tries; 
1991/0730    
 
1991/0703    
	initq(&kbdq); 
1991/0716    
	setvec(Kbdvec, kbdintr); 
1991/0731    
	initq(&mouseq); 
	setvec(Mousevec, kbdintr); 
1991/0730    
 
	/* wait for a quiescent controller */ 
	while((c = inb(Status)) & (Outbusy | Inready)) 
1992/0404/sys/src/9/pc/kbd.c:200,2051992/0408/sys/src/9/pc/kbd.c:197,205
1991/0730    
 
1991/1210    
	switch(machtype){ 
	case Attnsx: 
1992/0408    
		bigcursor(); 
		setvec(Mousevec, kbdintr); 
 
1991/1210    
		/* enable kbd/mouse xfers and interrupts */ 
		outb(Cmd, 0x60); 
		if(outready() < 0) 
1992/0404/sys/src/9/pc/kbd.c:220,2251992/0408/sys/src/9/pc/kbd.c:220,230
1991/1210    
		if(outready() < 0) 
			print("kbd init failed\n"); 
		outb(Data, 0x65); 
1992/0408    
 
		/* set up /dev/eia0 as the mouse */ 
		uartspecial(0, 0, &mouseq, 1200); 
print("uartspecial done\n"); 
delay(1000); 
1991/1210    
		break; 
	} 
1991/0731    
} 


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