remote-sl.h revision 1.1
11.1Soki/* $NetBSD: remote-sl.h,v 1.1 1996/05/05 12:17:11 oki Exp $ */ 21.1Soki 31.1Soki/* 41.1Soki * Copyright (c) 1992, 1993 51.1Soki * The Regents of the University of California. All rights reserved. 61.1Soki * 71.1Soki * This software was developed by the Computer Systems Engineering group 81.1Soki * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 91.1Soki * contributed to Berkeley. 101.1Soki * 111.1Soki * All advertising materials mentioning features or use of this software 121.1Soki * must display the following acknowledgement: 131.1Soki * This product includes software developed by the University of 141.1Soki * California, Lawrence Berkeley Laboratory. 151.1Soki * 161.1Soki * Redistribution and use in source and binary forms, with or without 171.1Soki * modification, are permitted provided that the following conditions 181.1Soki * are met: 191.1Soki * 1. Redistributions of source code must retain the above copyright 201.1Soki * notice, this list of conditions and the following disclaimer. 211.1Soki * 2. Redistributions in binary form must reproduce the above copyright 221.1Soki * notice, this list of conditions and the following disclaimer in the 231.1Soki * documentation and/or other materials provided with the distribution. 241.1Soki * 3. All advertising materials mentioning features or use of this software 251.1Soki * must display the following acknowledgement: 261.1Soki * This product includes software developed by the University of 271.1Soki * California, Berkeley and its contributors. 281.1Soki * 4. Neither the name of the University nor the names of its contributors 291.1Soki * may be used to endorse or promote products derived from this software 301.1Soki * without specific prior written permission. 311.1Soki * 321.1Soki * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 331.1Soki * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 341.1Soki * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 351.1Soki * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 361.1Soki * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 371.1Soki * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 381.1Soki * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 391.1Soki * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 401.1Soki * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 411.1Soki * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 421.1Soki * SUCH DAMAGE. 431.1Soki * 441.1Soki * @(#)remote-sl.h 8.1 (Berkeley) 6/11/93 451.1Soki */ 461.1Soki 471.1Soki/* 481.1Soki * These definitions are factored out into an include file so 491.1Soki * the kernel stub has access to them. 501.1Soki */ 511.1Soki#define FRAME_START 0xc1 /* Frame End */ 521.1Soki#define FRAME_END 0xc0 /* Frame End */ 531.1Soki#define FRAME_ESCAPE 0xdb /* Frame Esc */ 541.1Soki#define TRANS_FRAME_START 0xde /* transposed frame start */ 551.1Soki#define TRANS_FRAME_END 0xdc /* transposed frame esc */ 561.1Soki#define TRANS_FRAME_ESCAPE 0xdd /* transposed frame esc */ 571.1Soki 581.1Soki/* 591.1Soki * Message limits. SL_MAXDATA is the maximum number of bytes that can 601.1Soki * be read or written. SL_BUFSIZE is the maximum amount of data that 611.1Soki * can be passed across the serial link. The actual MTU is two times 621.1Soki * the max message (since each byte might be escaped), plus the two 631.1Soki * framing bytes. We add two to the message length to account for the 641.1Soki * type byte and checksum. 651.1Soki */ 661.1Soki#define SL_MAXDATA 62 /* max data that can be read */ 671.1Soki#define SL_RPCSIZE (1 + SL_MAXDATA) /* errno byte + data */ 681.1Soki#define SL_MTU ((2 * (SL_RPCSIZE + 2) + 2)) 69