147521Skarels /* 247521Skarels * Copyright (c) 1990 Regents of the University of California. 347521Skarels * All rights reserved. 447521Skarels * 547521Skarels * Redistribution and use in source and binary forms are permitted 647521Skarels * provided that the above copyright notice and this paragraph are 747521Skarels * duplicated in all such forms and that any documentation, 847521Skarels * advertising materials, and other materials related to such 947521Skarels * distribution and use acknowledge that the software was developed 1047521Skarels * by the University of California, Lawrence Berkeley Laboratory, 1147521Skarels * Berkeley, CA. The name of the University may not be used to 1247521Skarels * endorse or promote products derived from this software without 1347521Skarels * specific prior written permission. 1447521Skarels * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 1547521Skarels * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 1647521Skarels * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 1747521Skarels * 18*48459Skarels * @(#) $Header: remote-sl.h,v 1.3 91/03/22 15:34:27 mccanne Exp $ (LBL) 1947521Skarels */ 2047521Skarels 2147521Skarels #define FRAME_END 0xc0 /* Frame End */ 2247521Skarels #define FRAME_ESCAPE 0xdb /* Frame Esc */ 2347521Skarels #define TRANS_FRAME_END 0xdc /* transposed frame end */ 2447521Skarels #define TRANS_FRAME_ESCAPE 0xdd /* transposed frame esc */ 2547521Skarels 2647521Skarels /* 2747521Skarels * Error codes. 2847521Skarels */ 2947521Skarels #define EKGDB_CSUM 1 3047521Skarels #define EKGDB_2BIG 2 3147521Skarels #define EKGDB_RUNT 3 3247521Skarels 3347521Skarels /* 3447521Skarels * Message limits. SL_MAXMSG is the longest message that can be passed 3547521Skarels * down to the serial link. The actual MTU is two times the max message 36*48459Skarels * (since each byte might be escaped), plus the two framing bytes. We add 37*48459Skarels * two to the message length to account for the type byte and check sum. 38*48459Skarels * SL_BUFSIZE is one character larger than SL_MAXMSG so we can stuff 39*48459Skarels * a checksum into the input buffer without special casing. 4047521Skarels */ 4147521Skarels #define SL_MAXMSG 64 42*48459Skarels #define SL_BUFSIZE (SL_MAXMSG + 1) 43*48459Skarels #define SL_MTU ((2 * (SL_MAXMSG + 2) + 2)) 4447521Skarels 45