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.3 91/03/22 15:34: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 two framing bytes. We add 37 * two to the message length to account for the type byte and check sum. 38 * SL_BUFSIZE is one character larger than SL_MAXMSG so we can stuff 39 * a checksum into the input buffer without special casing. 40 */ 41 #define SL_MAXMSG 64 42 #define SL_BUFSIZE (SL_MAXMSG + 1) 43 #define SL_MTU ((2 * (SL_MAXMSG + 2) + 2)) 44 45