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

1992/1201/port/devscc.c (diff list | history)

1992/1104/sys/src/9/port/devscc.c:118,1231992/1201/sys/src/9/port/devscc.c:118,128 (short | long | prev | next)
1992/0129    
#define CTLS	023 
#define CTLQ	021 
1991/1225    
 
1992/1201    
#ifdef	Zduart 
#define	SCCTYPE	'z' 
#define	onepointseven() 
#else 
#define	SCCTYPE	't' 
1991/0601    
void 
onepointseven(void) 
{ 
1992/1104/sys/src/9/port/devscc.c:125,1301992/1201/sys/src/9/port/devscc.c:130,136
1991/0601    
	for(i = 0; i < 20; i++) 
		; 
} 
1992/1201    
#endif 
1991/0601    
 
/* 
 *  Access registers using the pointer in register 0. 
1992/1104/sys/src/9/port/devscc.c:407,4261992/1201/sys/src/9/port/devscc.c:413,433
1991/0601    
		unlock(cq); 
	} 
} 
void 
1992/1201    
int 
1991/0601    
sccintr(void) 
{ 
	uchar x; 
1991/1225    
	int i; 
1992/1201    
	int i, j; 
1991/0601    
 
1991/1225    
	for(i = 0; i < nscc; i += 2){ 
1992/1201    
	for(i = j = 0; i < nscc; i += 2){ 
1991/1225    
		x = sccrdreg(scc[i], 3); 
		if(x & (ExtPendB|RxPendB|TxPendB)) 
			sccintr0(scc[i+1], x); 
1992/1201    
			++j, sccintr0(scc[i+1], x); 
1991/1225    
		x = x >> 3; 
		if(x & (ExtPendB|RxPendB|TxPendB)) 
			sccintr0(scc[i], x); 
1992/1201    
			++j, sccintr0(scc[i], x); 
1991/1225    
	} 
1992/1201    
	return j; 
1991/0601    
} 
 
1991/1003    
void 
1992/1104/sys/src/9/port/devscc.c:707,7131992/1201/sys/src/9/port/devscc.c:714,720
1991/0601    
Chan* 
sccattach(char *spec) 
{ 
	return devattach('t', spec); 
1992/1201    
	return devattach(SCCTYPE, spec); 
1991/0601    
} 
 
Chan* 


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