xref: /csrg-svn/sys/hp300/include/remote-sl.h (revision 55674)
149424Sbostic /*-
249424Sbostic  * Copyright (c) 1991 The Regents of the University of California.
347521Skarels  * All rights reserved.
447521Skarels  *
549424Sbostic  * This code is derived from software contributed to Berkeley by
649424Sbostic  * Steven McCanne of Lawrence Berkeley Laboratory.
747521Skarels  *
849424Sbostic  * %sccs.include.redist.c%
949424Sbostic  *
10*55674Smckusick  *	@(#)remote-sl.h	7.4 (Berkeley) 07/24/92
1149424Sbostic  *
12*55674Smckusick  * $Header: remote-sl.h,v 1.2 92/07/23 19:38:20 mccanne Exp $ (LBL)
1347521Skarels  */
1447521Skarels 
15*55674Smckusick #define FRAME_START		0xc1		/* Frame End */
1647521Skarels #define FRAME_END		0xc0		/* Frame End */
1747521Skarels #define FRAME_ESCAPE		0xdb		/* Frame Esc */
18*55674Smckusick #define TRANS_FRAME_START	0xde		/* transposed frame start */
19*55674Smckusick #define TRANS_FRAME_END		0xdc		/* transposed frame esc */
2047521Skarels #define TRANS_FRAME_ESCAPE	0xdd		/* transposed frame esc */
2147521Skarels 
2247521Skarels /*
23*55674Smckusick  * Message limits.  SL_MAXDATA is the maximum number of bytes that can
24*55674Smckusick  * be read or written.  SL_RPCSIZE is the maximum message size for
25*55674Smckusick  * the serial link.  The actual MTU is two times the max message (since
26*55674Smckusick  * each byte might be escaped), plus the two framing bytes.  We add two
27*55674Smckusick  * to the message length to account for the type byte and checksum.
2847521Skarels  */
29*55674Smckusick #define SL_MAXDATA 62			/* max data that can be read */
30*55674Smckusick #define SL_RPCSIZE (1 + SL_MAXDATA)	/* errno byte + data */
31*55674Smckusick #define SL_MTU ((2 * (SL_RPCSIZE + 2) + 2))
3247521Skarels 
33