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

1991/1210/pc/devuart.c (diff list | history)

1991/1115/sys/src/9/pc/devuart.c:303,3121991/1210/sys/src/9/pc/devuart.c:303,312 (short | long | prev | next)
1991/0807    
	 *  turn on power to the port 
	 */ 
1991/0808    
	if(up == &uart[Serial]){ 
1991/0807    
		if(serial(0) < 0) 
1991/1210    
		if(serial(1) < 0) 
1991/0807    
			print("can't turn on serial port power\n"); 
1991/1001    
	} else { 
		if(modem(0) < 0) 
1991/1210    
		if(modem(1) < 0) 
1991/1001    
			print("can't turn on modem speaker\n"); 
1991/0807    
	} 
1991/0808    
 
1991/1115/sys/src/9/pc/devuart.c:358,3651991/1210/sys/src/9/pc/devuart.c:358,368
1991/0807    
	 *  turn off power 
	 */ 
1991/0808    
	if(up == &uart[Serial]){ 
1991/0807    
		if(serial(1) < 0) 
1991/1210    
		if(serial(0) < 0) 
1991/0807    
			print("can't turn off serial power\n"); 
1991/1210    
	} else { 
		if(modem(0) < 0) 
			print("can't turn off modem speaker\n"); 
1991/0806    
	} 
1991/0808    
 
	/* 
1991/1115/sys/src/9/pc/devuart.c:532,5381991/1210/sys/src/9/pc/devuart.c:535,541
1991/0808    
	for(;;){ 
1991/0801    
		sleep(&cq->r, cangetc, cq); 
1991/1113    
		if((ints++ & 0x1f) == 0) 
			owl(ints>>5); 
1991/1210    
			lights((ints>>5)&1); 
1991/0808    
		qlock(up); 
		if(up->wq == 0){ 
			cq->out = cq->in; 


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