149424Sbostic /*- 2*63160Sbostic * Copyright (c) 1991, 1993 3*63160Sbostic * The Regents of the University of California. All rights reserved. 447521Skarels * 549424Sbostic * This code is derived from software contributed to Berkeley by 649424Sbostic * Steven McCanne of Lawrence Berkeley Laboratory. 747521Skarels * 849424Sbostic * %sccs.include.redist.c% 949424Sbostic * 10*63160Sbostic * @(#)remote-sl.h 8.1 (Berkeley) 06/10/93 1149424Sbostic * 1255674Smckusick * $Header: remote-sl.h,v 1.2 92/07/23 19:38:20 mccanne Exp $ (LBL) 1347521Skarels */ 1447521Skarels 1555674Smckusick #define FRAME_START 0xc1 /* Frame End */ 1647521Skarels #define FRAME_END 0xc0 /* Frame End */ 1747521Skarels #define FRAME_ESCAPE 0xdb /* Frame Esc */ 1855674Smckusick #define TRANS_FRAME_START 0xde /* transposed frame start */ 1955674Smckusick #define TRANS_FRAME_END 0xdc /* transposed frame esc */ 2047521Skarels #define TRANS_FRAME_ESCAPE 0xdd /* transposed frame esc */ 2147521Skarels 2247521Skarels /* 2355674Smckusick * Message limits. SL_MAXDATA is the maximum number of bytes that can 2455674Smckusick * be read or written. SL_RPCSIZE is the maximum message size for 2555674Smckusick * the serial link. The actual MTU is two times the max message (since 2655674Smckusick * each byte might be escaped), plus the two framing bytes. We add two 2755674Smckusick * to the message length to account for the type byte and checksum. 2847521Skarels */ 2955674Smckusick #define SL_MAXDATA 62 /* max data that can be read */ 3055674Smckusick #define SL_RPCSIZE (1 + SL_MAXDATA) /* errno byte + data */ 3155674Smckusick #define SL_MTU ((2 * (SL_RPCSIZE + 2) + 2)) 3247521Skarels 33