xref: /csrg-svn/sys/news3400/sio/sccparam.h (revision 53905)
1*53905Smckusick /*
2*53905Smckusick  * Copyright (c) 1992 The Regents of the University of California.
3*53905Smckusick  * All rights reserved.
4*53905Smckusick  *
5*53905Smckusick  * This code is derived from software contributed to Berkeley by
6*53905Smckusick  * Sony Corp. and Kazumasa Utashiro of Software Research Associates, Inc.
7*53905Smckusick  *
8*53905Smckusick  * %sccs.include.redist.c%
9*53905Smckusick  *
10*53905Smckusick  * from: $Hdr: sccparam.h,v 4.300 91/06/09 06:44:57 root Rel41 $ SONY
11*53905Smckusick  *
12*53905Smckusick  *	@(#)sccparam.h	7.1 (Berkeley) 06/04/92
13*53905Smckusick  */
14*53905Smckusick 
15*53905Smckusick /*
16*53905Smckusick  *	SCC channel parameter
17*53905Smckusick  */
18*53905Smckusick 
19*53905Smckusick #define	BAUD_RATE		0x0000000f
20*53905Smckusick #define	RXE			0x00000010
21*53905Smckusick #define	TXE			0x00000020
22*53905Smckusick #define	CHAR_SIZE		0x000000c0
23*53905Smckusick #define		C5BIT		0x00000000
24*53905Smckusick #define		C7BIT		0x00000040
25*53905Smckusick #define		C6BIT		0x00000080
26*53905Smckusick #define		C8BIT		0x000000c0
27*53905Smckusick #define	PARITY			0x00000100
28*53905Smckusick #define	EVEN			0x00000200
29*53905Smckusick #define	ODD			0x00000000
30*53905Smckusick #define	STOPBIT			0x00000c00
31*53905Smckusick #define		STOP1		0x00000400
32*53905Smckusick #define		STOP1_5		0x00000800
33*53905Smckusick #define		STOP2		0x00000c00
34*53905Smckusick #define	RTS			0x00001000
35*53905Smckusick #define	DTR			0x00002000
36*53905Smckusick #define	XBREAK			0x00004000
37*53905Smckusick #define	NOCHECK			0x00008000
38*53905Smckusick 
39*53905Smckusick #define	DCD			0x00010000
40*53905Smckusick #define	CTS			0x00020000
41*53905Smckusick #define	RI			0x00040000
42*53905Smckusick #define	DSR			0x00080000
43*53905Smckusick #define	RBREAK			0x00100000
44*53905Smckusick #define	SCC_PARITY_ERROR	0x00200000
45*53905Smckusick #define	OVERRUN_ERROR		0x00400000
46*53905Smckusick #define	FRAMING_ERROR		0x00800000
47*53905Smckusick 
48*53905Smckusick #define	AUTO_ENABLE		0x01000000
49*53905Smckusick #define	EXTCLK_ENABLE		0x02000000
50*53905Smckusick 
51*53905Smckusick #define TERM_MODE		0x70000000
52*53905Smckusick #define		CJIS		0x10000000
53*53905Smckusick #define		CSJIS		0x20000000
54*53905Smckusick #define		CEUC		0x40000000
55