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

1994/1106/pc/ns16552.h (diff list | history)

1994/1007/sys/src/9/pc/ns16552.h:131,1421994/1106/sys/src/9/pc/ns16552.h:131,144 (short | long | prev | next)
Add com serial type.
rsc Fri Mar 4 12:44:25 2005
1994/0902    
				ns16552setup(port, sc->freq); 
				port += 8; 
			} 
		} else { 
1994/1106    
		} else if(strcmp(sc->type, "com") == 0 || strcmp(sc->type, "COM") == 0){ 
1994/0902    
			/* 
			 *  port gives base port address for the uart 
			 *  irq is interrupt 
			 *  freq is the baud rate generator frequency 
			 */ 
1994/1106    
			if(sc->freq == 0) 
				sc->freq = UartFREQ; 
1994/0902    
			ns16552setup(sc->port, sc->freq); 
			setvec(Int0vec+sc->irq, ns16552intrx, (void*)(nuart-1)); 
		} 


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