xref: /original-bsd/sys/hp300/include/remote-sl.h (revision 514cbc2d)
1 /*-
2  * Copyright (c) 1991, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Steven McCanne of Lawrence Berkeley Laboratory.
7  *
8  * %sccs.include.redist.c%
9  *
10  *	@(#)remote-sl.h	8.1 (Berkeley) 06/10/93
11  *
12  * $Header: remote-sl.h,v 1.2 92/07/23 19:38:20 mccanne Exp $ (LBL)
13  */
14 
15 #define FRAME_START		0xc1		/* Frame End */
16 #define FRAME_END		0xc0		/* Frame End */
17 #define FRAME_ESCAPE		0xdb		/* Frame Esc */
18 #define TRANS_FRAME_START	0xde		/* transposed frame start */
19 #define TRANS_FRAME_END		0xdc		/* transposed frame esc */
20 #define TRANS_FRAME_ESCAPE	0xdd		/* transposed frame esc */
21 
22 /*
23  * Message limits.  SL_MAXDATA is the maximum number of bytes that can
24  * be read or written.  SL_RPCSIZE is the maximum message size for
25  * the serial link.  The actual MTU is two times the max message (since
26  * each byte might be escaped), plus the two framing bytes.  We add two
27  * to the message length to account for the type byte and checksum.
28  */
29 #define SL_MAXDATA 62			/* max data that can be read */
30 #define SL_RPCSIZE (1 + SL_MAXDATA)	/* errno byte + data */
31 #define SL_MTU ((2 * (SL_RPCSIZE + 2) + 2))
32 
33