/* * datakit common-control interface definitions * @(#)dkcmc.h 1.3 Garage 84/03/27 */ /* * protocol codes generated by driver */ #define T_SRV 1 /* service request */ #define D_REINIT 7 /* re-init after splice */ #define T_CHG 3 /* status change to/from cmc */ #define D_CLOSE 1 /* close a channel */ #define D_ISCLOSED 2 /* channel is closed */ #define D_CLOSEALL 3 /* close all channels */ #define D_SPLICE 4 /* splice two calls together */ #define T_LSTNR 4 /* keep-alive message */ #define T_REPLY 2 /* reply to channel setup */ #define D_OK 1 /* setup OK */ #define D_OPEN 2 /* channel now open */ #define D_FAIL 3 /* setup failed */ #define T_RESTART 8 /* cmc crashed, we should init circuit */ struct lmsg { char type ; /* message type T_??? */ char srv ; /* message code D_??? */ short param0 ; /* various aditional info */ short param1 ; short param2 ; short param3 ; short param4 ; } ; #define CMCFMT "bbsssss" #define CMCSIZ 12 /* * active setup requests * (used in dkctl.c) */ struct dksetupreq { int (*rq_endfcn)() ; caddr_t rq_endparm ; struct lmsg rq_msg ; };