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

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

1994/1006/sys/src/9/pc/ns16552.h:81,971994/1007/sys/src/9/pc/ns16552.h:81,108 (short | long | prev | next)
Publish ns16552install. Add console= support for plan9.ini.
rsc Fri Mar 4 12:44:25 2005
1994/0902    
/* 
 *  install the uarts (called by reset) 
 */ 
static void 
1994/1007    
void 
1994/0902    
ns16552install(void) 
{ 
	int i, j, port; 
1994/1007    
	char *p; 
1994/0902    
	Scard *sc; 
1994/1007    
	static int already; 
1994/0902    
 
1994/1007    
	if(already) 
		return; 
	already = 1; 
 
1994/0902    
	/* first two ports are always there and always the normal frequency */ 
	ns16552setup(0x3F8, UartFREQ); 
	setvec(Uart0vec, ns16552intrx, (void*)0); 
	ns16552setup(0x2F8, UartFREQ); 
	setvec(Uart1vec, ns16552intrx, (void*)1); 
1994/1007    
 
	/* set up a serial console */ 
	p = getconf("console"); 
	if(p) 
		ns16552special(atoi(p), 9600, &kbdq, &printq, kbdcr2nl); 
1994/0902    
 
	/* the rest come out of plan9.ini */ 
	for(i = 0; i < Maxcard; i++){ 


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