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