1 /* 2 * DATAKIT VCS Interface Definitions 3 * @(#)dkit.h 1.4 Garage 84/03/30 4 */ 5 6 /* 7 * Host Software Version number 8 */ 9 10 #define HOSTVERSION 2 /* Change the string below when you update this */ 11 #define S_HOSTVERSION "@(#) Datakit Host Protocol Version 2" 12 13 /* 14 * bits defined in channel flag 15 */ 16 17 #define DK_OPEN 01 /* channel is open flag */ 18 #define DK_LINGR 02 /* closed by user, waiting sync */ 19 #define DK_BUSY 04 /* output in progress */ 20 #define DK_RESET 010 /* cmc told us to close this channel */ 21 #define DK_RCV 020 /* receive active on channel */ 22 #define DK_RCVQ 040 /* receive done queued 'cause timer */ 23 #define DK_SPND 0100 /* output is currently suspended */ 24 25 26 27 /* 28 * command codes passed to dkit_cmd 29 */ 30 31 #define DKC_XINIT 01 /* re-init transmitter section */ 32 #define DKC_FLUSH 02 /* flush all pending output */ 33 #define DKC_SPND 04 /* suspend further output */ 34 #define DKC_RSME 010 /* resume output after suspend */ 35 36 37 /* 38 * receive mode, and completion indicators 39 */ 40 41 #define DKR_FULL 01 /* buffer full, normal read done */ 42 #define DKR_CNTL 02 /* read terminated on control character */ 43 #define DKR_ABORT 010 /* receive aborted by higher level command */ 44 #define DKR_BLOCK 040 /* end of block */ 45 #define DKR_TIME 0100 /* end of time limit reached */ 46 47 /* 48 * Datakit-specific mbuf types 49 */ 50 #define DKMT_HDR 128 /* Header packet with driver stuff */ 51 #define DKMT_DATA DKMT_HDR+1 /* Data */ 52 #define DKMT_CTL DKMT_HDR+2 /* Control bytes */ 53 #define DKMT_PCB DKMT_HDR+3 /* Setup request block */ 54 #define DKMT_ROUTE DKMT_HDR+4 /* dkip routing table entry */ 55 #define DKMT_ITTY DKMT_HDR+5 /* dktty input buffer */ 56 #define DKMT_OTTY DKMT_HDR+6 /* dktty output buffer */ 57 #define DKMT_CTYPE DKMT_HDR+7 /* Connection source/dest */ 58