Commit | Line | Data |
---|---|---|
ca6d6ca3 | 1 | /*- |
df7778ec KB |
2 | * Copyright (c) 1991, 1993 |
3 | * The Regents of the University of California. All rights reserved. | |
314bc72b | 4 | * |
ca6d6ca3 KB |
5 | * This code is derived from software contributed to Berkeley by |
6 | * Steven McCanne of Lawrence Berkeley Laboratory. | |
7 | * | |
8 | * %sccs.include.redist.c% | |
9 | * | |
df7778ec | 10 | * @(#)remote-sl.h 8.1 (Berkeley) %G% |
314bc72b | 11 | * |
2af009e9 | 12 | * $Header: remote-sl.h,v 1.2 92/07/23 19:38:20 mccanne Exp $ (LBL) |
314bc72b MK |
13 | */ |
14 | ||
2af009e9 | 15 | #define FRAME_START 0xc1 /* Frame End */ |
314bc72b MK |
16 | #define FRAME_END 0xc0 /* Frame End */ |
17 | #define FRAME_ESCAPE 0xdb /* Frame Esc */ | |
2af009e9 KM |
18 | #define TRANS_FRAME_START 0xde /* transposed frame start */ |
19 | #define TRANS_FRAME_END 0xdc /* transposed frame esc */ | |
314bc72b MK |
20 | #define TRANS_FRAME_ESCAPE 0xdd /* transposed frame esc */ |
21 | ||
22 | /* | |
2af009e9 KM |
23 | * Message limits. SL_MAXDATA is the maximum number of bytes that can |
24 | * be read or written. SL_RPCSIZE is the maximum message size for | |
25 | * the serial link. The actual MTU is two times the max message (since | |
26 | * each byte might be escaped), plus the two framing bytes. We add two | |
27 | * to the message length to account for the type byte and checksum. | |
314bc72b | 28 | */ |
2af009e9 KM |
29 | #define SL_MAXDATA 62 /* max data that can be read */ |
30 | #define SL_RPCSIZE (1 + SL_MAXDATA) /* errno byte + data */ | |
31 | #define SL_MTU ((2 * (SL_RPCSIZE + 2) + 2)) | |
314bc72b | 32 |