from LBL
[unix-history] / usr / src / sys / hp300 / include / remote-sl.h
/*
* Copyright (c) 1990 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
* advertising materials, and other materials related to such
* distribution and use acknowledge that the software was developed
* by the University of California, Lawrence Berkeley Laboratory,
* Berkeley, CA. The name of the University may not be used to
* endorse or promote products derived from this software without
* specific prior written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* @(#) $Header: remote-sl.h,v 1.1 91/01/13 13:18:27 mccanne Exp $ (LBL)
*/
#define FRAME_END 0xc0 /* Frame End */
#define FRAME_ESCAPE 0xdb /* Frame Esc */
#define TRANS_FRAME_END 0xdc /* transposed frame end */
#define TRANS_FRAME_ESCAPE 0xdd /* transposed frame esc */
/*
* Error codes.
*/
#define EKGDB_CSUM 1
#define EKGDB_2BIG 2
#define EKGDB_RUNT 3
/*
* Message limits. SL_MAXMSG is the longest message that can be passed
* down to the serial link. The actual MTU is two times the max message
* (since each byte might be escaped), plus the framing byte. We add 2
* to the message length to account for the type byte and check sum.
*/
#define SL_MAXMSG 64
#define SL_MTU ((2 * (SL_MAXMSG + 2) + 1))