xref: /original-bsd/sys/hp300/include/remote-sl.h (revision 179d6f6f)
1 /*
2  * Copyright (c) 1990 Regents of the University of California.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted
6  * provided that the above copyright notice and this paragraph are
7  * duplicated in all such forms and that any documentation,
8  * advertising materials, and other materials related to such
9  * distribution and use acknowledge that the software was developed
10  * by the University of California, Lawrence Berkeley Laboratory,
11  * Berkeley, CA.  The name of the University may not be used to
12  * endorse or promote products derived from this software without
13  * specific prior written permission.
14  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17  *
18  * @(#) $Header: remote-sl.h,v 1.1 91/01/13 13:18:27 mccanne Exp $ (LBL)
19  */
20 
21 #define FRAME_END		0xc0		/* Frame End */
22 #define FRAME_ESCAPE		0xdb		/* Frame Esc */
23 #define TRANS_FRAME_END		0xdc		/* transposed frame end */
24 #define TRANS_FRAME_ESCAPE	0xdd		/* transposed frame esc */
25 
26 /*
27  * Error codes.
28  */
29 #define EKGDB_CSUM	1
30 #define EKGDB_2BIG	2
31 #define EKGDB_RUNT	3
32 
33 /*
34  * Message limits.  SL_MAXMSG is the longest message that can be passed
35  * down to the serial link.  The actual MTU is two times the max message
36  * (since each byte might be escaped), plus the framing byte.  We add 2
37  * to the message length to account for the type byte and check sum.
38  */
39 #define SL_MAXMSG 64
40 #define SL_MTU ((2 * (SL_MAXMSG + 2) + 1))
41 
42