xref: /original-bsd/sys/sparc/include/remote-sl.h (revision d990c837)
1 /*
2  * Copyright (c) 1992 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * This software was developed by the Computer Systems Engineering group
6  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
7  * contributed to Berkeley.
8  *
9  * All advertising materials mentioning features or use of this software
10  * must display the following acknowledgement:
11  *	This product includes software developed by the University of
12  *	California, Lawrence Berkeley Laboratory.
13  *
14  * %sccs.include.redist.c%
15  *
16  *	@(#)remote-sl.h	7.3 (Berkeley) 04/20/93
17  *
18  * from: $Header: remote-sl.h,v 1.6 92/11/26 02:04:45 torek Exp $ (LBL)
19  */
20 
21 /*
22  * These definitions are factored out into an include file so
23  * the kernel stub has access to them.
24  */
25 #define FRAME_START		0xc1		/* Frame End */
26 #define FRAME_END		0xc0		/* Frame End */
27 #define FRAME_ESCAPE		0xdb		/* Frame Esc */
28 #define TRANS_FRAME_START	0xde		/* transposed frame start */
29 #define TRANS_FRAME_END		0xdc		/* transposed frame esc */
30 #define TRANS_FRAME_ESCAPE	0xdd		/* transposed frame esc */
31 
32 /*
33  * Message limits. SL_MAXDATA is the maximum number of bytes that can
34  * be read or written. SL_BUFSIZE is the maximum amount of data that
35  * can be passed across the serial link. The actual MTU is two times
36  * the max message (since each byte might be escaped), plus the two
37  * framing bytes. We add two to the message length to account for the
38  * type byte and checksum.
39  */
40 #define SL_MAXDATA 62			/* max data that can be read */
41 #define SL_RPCSIZE (1 + SL_MAXDATA)	/* errno byte + data */
42 #define SL_MTU ((2 * (SL_RPCSIZE + 2) + 2))
43