11.3Schristos/* $NetBSD: remote-sl.h,v 1.3 2005/12/11 12:19:44 christos 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.2Sagc * 3. Neither the name of the University nor the names of its contributors 251.1Soki * may be used to endorse or promote products derived from this software 261.1Soki * without specific prior written permission. 271.1Soki * 281.1Soki * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 291.1Soki * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 301.1Soki * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 311.1Soki * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 321.1Soki * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 331.1Soki * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 341.1Soki * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 351.1Soki * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 361.1Soki * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 371.1Soki * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 381.1Soki * SUCH DAMAGE. 391.1Soki * 401.1Soki * @(#)remote-sl.h 8.1 (Berkeley) 6/11/93 411.1Soki */ 421.1Soki 431.1Soki/* 441.1Soki * These definitions are factored out into an include file so 451.1Soki * the kernel stub has access to them. 461.1Soki */ 471.1Soki#define FRAME_START 0xc1 /* Frame End */ 481.1Soki#define FRAME_END 0xc0 /* Frame End */ 491.1Soki#define FRAME_ESCAPE 0xdb /* Frame Esc */ 501.1Soki#define TRANS_FRAME_START 0xde /* transposed frame start */ 511.1Soki#define TRANS_FRAME_END 0xdc /* transposed frame esc */ 521.1Soki#define TRANS_FRAME_ESCAPE 0xdd /* transposed frame esc */ 531.1Soki 541.1Soki/* 551.1Soki * Message limits. SL_MAXDATA is the maximum number of bytes that can 561.1Soki * be read or written. SL_BUFSIZE is the maximum amount of data that 571.1Soki * can be passed across the serial link. The actual MTU is two times 581.1Soki * the max message (since each byte might be escaped), plus the two 591.1Soki * framing bytes. We add two to the message length to account for the 601.1Soki * type byte and checksum. 611.1Soki */ 621.1Soki#define SL_MAXDATA 62 /* max data that can be read */ 631.1Soki#define SL_RPCSIZE (1 + SL_MAXDATA) /* errno byte + data */ 641.1Soki#define SL_MTU ((2 * (SL_RPCSIZE + 2) + 2)) 65