155125Storek /* 2*63320Sbostic * Copyright (c) 1992, 1993 3*63320Sbostic * The Regents of the University of California. All rights reserved. 455125Storek * 555125Storek * This software was developed by the Computer Systems Engineering group 655125Storek * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 755125Storek * contributed to Berkeley. 855125Storek * 955501Sbostic * All advertising materials mentioning features or use of this software 1055501Sbostic * must display the following acknowledgement: 1155501Sbostic * This product includes software developed by the University of 1259210Storek * California, Lawrence Berkeley Laboratory. 1355501Sbostic * 1455125Storek * %sccs.include.redist.c% 1555125Storek * 16*63320Sbostic * @(#)remote-sl.h 8.1 (Berkeley) 06/11/93 1755125Storek * 1859210Storek * from: $Header: remote-sl.h,v 1.6 92/11/26 02:04:45 torek Exp $ (LBL) 1955125Storek */ 2055125Storek 2155125Storek /* 2255125Storek * These definitions are factored out into an include file so 2355125Storek * the kernel stub has access to them. 2455125Storek */ 2555125Storek #define FRAME_START 0xc1 /* Frame End */ 2655125Storek #define FRAME_END 0xc0 /* Frame End */ 2755125Storek #define FRAME_ESCAPE 0xdb /* Frame Esc */ 2855125Storek #define TRANS_FRAME_START 0xde /* transposed frame start */ 2955125Storek #define TRANS_FRAME_END 0xdc /* transposed frame esc */ 3055125Storek #define TRANS_FRAME_ESCAPE 0xdd /* transposed frame esc */ 3155125Storek 3255125Storek /* 3355125Storek * Message limits. SL_MAXDATA is the maximum number of bytes that can 3455125Storek * be read or written. SL_BUFSIZE is the maximum amount of data that 3555125Storek * can be passed across the serial link. The actual MTU is two times 3655125Storek * the max message (since each byte might be escaped), plus the two 3755125Storek * framing bytes. We add two to the message length to account for the 3855125Storek * type byte and checksum. 3955125Storek */ 4055125Storek #define SL_MAXDATA 62 /* max data that can be read */ 4155125Storek #define SL_RPCSIZE (1 + SL_MAXDATA) /* errno byte + data */ 4255125Storek #define SL_MTU ((2 * (SL_RPCSIZE + 2) + 2)) 43