/* SCCS_ID @(#)ccb.h    	3.1	 01:06:20 - 81/10/27 */

#ifndef LOCALS_INCLUDED
# include <sys/local.h>
#endif

/*
 * Auto-driver channel control block
 */

struct ccb {
	short	cc_ccw;		/* channel command word */
	short	cc_cnt0;	/* buffer 0 count */
	char	*cc_buf0;	/* buffer 0 end address */
	short	cc_chk;		/* check word */
	short	cc_cnt1;	/* buffer 1 count */
	char	*cc_buf1;	/* buffer 1 end address */
	char	*cc_tab;	/* translate table address */
	short	cc_subr;	/* subroutine entry address */
	short	cc_pad;
};

extern struct ccb	ccb[];	/* defined in L.s (addresses must be <64K) */
#define CCBEXECUTE      0x80
#define CCBFAST         0x01
#define CCBREAD         0x00
#define CCBWRITE        0x04
#define CCBXLATE        0x02
#define CCBBUFSW        0x08
#define CCBLRC          0x00
#define CCBBISYNC       0x10
#define CCBSDLC         0x30
