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

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

1992/0321/sys/src/9/port/devscc.c:33,381992/0326/sys/src/9/port/devscc.c:33,42 (short | long | prev | next)
1991/0601    
	Rx8bits=	3<<6, 
 
	/* wr 4 */ 
1992/0326    
	ParEven=	3<<0, 
	ParOdd=		1<<0, 
	ParOff=		0<<0, 
	ParMask=	3<<0, 
1991/0601    
	SyncMode=	0<<2, 
	Rx1stop=	1<<2, 
	Rx1hstop=	2<<2, 
1992/0321/sys/src/9/port/devscc.c:163,1681992/0326/sys/src/9/port/devscc.c:167,192
1991/0601    
	sccwrreg(sp, 13, (brconst>>8) & 0xff); 
} 
 
1992/0326    
void 
sccparity(SCC *sp, char type) 
{ 
	int val; 
 
	switch(type){ 
	case 'e': 
		val = ParEven; 
		break; 
	case 'o': 
		val = ParOdd; 
		break; 
	default: 
		val = ParOff; 
		break; 
	} 
	sp->sticky[4] = (sp->sticky[4] & ~ParMask) | val; 
	sccwrreg(sp, 4, 0); 
} 
 
1991/0601    
/* 
 *  toggle DTR 
 */ 
1992/0321/sys/src/9/port/devscc.c:507,5121992/0326/sys/src/9/port/devscc.c:531,540
1991/0601    
		case 'D': 
		case 'd': 
			sccdtr(sp, n); 
1992/0326    
			break; 
		case 'P': 
		case 'p': 
			sccparity(sp, *(bp->rptr+1)); 
1991/0601    
			break; 
		case 'K': 
		case 'k': 


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