xref: /csrg-svn/sys/hp300/include/remote-sl.h (revision 49424)
1*49424Sbostic /*-
2*49424Sbostic  * Copyright (c) 1991 The Regents of the University of California.
347521Skarels  * All rights reserved.
447521Skarels  *
5*49424Sbostic  * This code is derived from software contributed to Berkeley by
6*49424Sbostic  * Steven McCanne of Lawrence Berkeley Laboratory.
747521Skarels  *
8*49424Sbostic  * %sccs.include.redist.c%
9*49424Sbostic  *
10*49424Sbostic  *	@(#)remote-sl.h	7.3 (Berkeley) 05/08/91
11*49424Sbostic  *
12*49424Sbostic  * $Header: remote-sl.h,v 1.3 91/03/22 15:34:27 mccanne Exp $ (LBL)
1347521Skarels  */
1447521Skarels 
1547521Skarels #define FRAME_END		0xc0		/* Frame End */
1647521Skarels #define FRAME_ESCAPE		0xdb		/* Frame Esc */
1747521Skarels #define TRANS_FRAME_END		0xdc		/* transposed frame end */
1847521Skarels #define TRANS_FRAME_ESCAPE	0xdd		/* transposed frame esc */
1947521Skarels 
2047521Skarels /*
2147521Skarels  * Error codes.
2247521Skarels  */
2347521Skarels #define EKGDB_CSUM	1
2447521Skarels #define EKGDB_2BIG	2
2547521Skarels #define EKGDB_RUNT	3
2647521Skarels 
2747521Skarels /*
2847521Skarels  * Message limits.  SL_MAXMSG is the longest message that can be passed
2947521Skarels  * down to the serial link.  The actual MTU is two times the max message
3048459Skarels  * (since each byte might be escaped), plus the two framing bytes.  We add
3148459Skarels  * two to the message length to account for the type byte and check sum.
3248459Skarels  * SL_BUFSIZE is one character larger than SL_MAXMSG so we can stuff
3348459Skarels  * a checksum into the input buffer without special casing.
3447521Skarels  */
3547521Skarels #define SL_MAXMSG 64
3648459Skarels #define SL_BUFSIZE (SL_MAXMSG + 1)
3748459Skarels #define SL_MTU ((2 * (SL_MAXMSG + 2) + 2))
3847521Skarels 
39