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

1995/0222/pc/ns16552.h (diff list | history)

1994/1118/sys/src/9/pc/ns16552.h:115,1211995/0222/sys/src/9/pc/ns16552.h:115,121 (short | long | prev | next)
Use cistrcmp. Remove iprint.
rsc Fri Mar 4 12:44:25 2005
1994/1118    
			continue; 
1994/0902    
		} 
 
		if(strcmp(sc->type, "MP008") == 0 || strcmp(sc->type, "mp008") == 0){ 
1995/0222    
		if(cistrcmp(sc->type, "MP008") == 0){ 
1994/0902    
			/* 
			 *  port gives base port address for uarts 
			 *  irq is interrupt 
1994/1118/sys/src/9/pc/ns16552.h:135,1411995/0222/sys/src/9/pc/ns16552.h:135,141
1994/1108    
				ns16552setup(port, sc->freq, name); 
1994/0902    
				port += 8; 
			} 
1994/1106    
		} else if(strcmp(sc->type, "com") == 0 || strcmp(sc->type, "COM") == 0){ 
1995/0222    
		} else if(cistrcmp(sc->type, "com") == 0){ 
1994/0902    
			/* 
			 *  port gives base port address for the uart 
			 *  irq is interrupt 
1994/1118/sys/src/9/pc/ns16552.h:147,1651995/0222/sys/src/9/pc/ns16552.h:147,152
1994/1108    
			ns16552setup(sc->port, sc->freq, name); 
1994/0902    
			setvec(Int0vec+sc->irq, ns16552intrx, (void*)(nuart-1)); 
		} 
1994/1118    
                 
		nscard++; 
1994/0902    
	} 
} 
                 
int 
iprint(char *fmt, ...) 
{ 
	char buf[PRINTSIZE]; 
	int n; 
                 
	n = doprint(buf, buf+sizeof(buf), fmt, (&fmt+1)) - buf; 
	screenputs(buf, n); 
                 
	return n; 
} 


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