xref: /csrg-svn/sys/sparc/include/remote-sl.h (revision 55125)
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  * %sccs.include.redist.c%
10  *
11  *	@(#)remote-sl.h	7.1 (Berkeley) 07/13/92
12  *
13  * from: $Header: remote-sl.h,v 1.5 92/06/17 06:10:27 torek Exp $ (LBL)
14  */
15 
16 /*
17  * These definitions are factored out into an include file so
18  * the kernel stub has access to them.
19  */
20 #define FRAME_START		0xc1		/* Frame End */
21 #define FRAME_END		0xc0		/* Frame End */
22 #define FRAME_ESCAPE		0xdb		/* Frame Esc */
23 #define TRANS_FRAME_START	0xde		/* transposed frame start */
24 #define TRANS_FRAME_END		0xdc		/* transposed frame esc */
25 #define TRANS_FRAME_ESCAPE	0xdd		/* transposed frame esc */
26 
27 /*
28  * Message limits. SL_MAXDATA is the maximum number of bytes that can
29  * be read or written. SL_BUFSIZE is the maximum amount of data that
30  * can be passed across the serial link. The actual MTU is two times
31  * the max message (since each byte might be escaped), plus the two
32  * framing bytes. We add two to the message length to account for the
33  * type byte and checksum.
34  */
35 #define SL_MAXDATA 62			/* max data that can be read */
36 #define SL_RPCSIZE (1 + SL_MAXDATA)	/* errno byte + data */
37 #define SL_MTU ((2 * (SL_RPCSIZE + 2) + 2))
38