/* <ccbdef.h>
 *
 *	Channel control block definitions (not available from Starlet).
 */
#ifndef _CCBDEF_H
#define _CCBDEF_H

#define CCB$V_AMB	0
#define CCB$V_IMGTMP	1
#define CCB$V_RDCHKDON	2
#define CCB$V_WRTCHKDON 3
#define CCB$V_LOGCHKDON 4
#define CCB$V_PHYCHKDON 5
#define CCB$M_AMB	(1<<CCB$V_AMB)		/* 0x01 */
#define CCB$M_IMGTMP	(1<<CCB$V_IMGTMP)	/* 0x02 */
#define CCB$M_RDCHKDON	(1<<CCB$V_RDCHKDON)	/* 0x04 */
#define CCB$M_WRTCHKDON (1<<CCB$V_WRTCHKDON)	/* 0x08 */
#define CCB$M_LOGCHKDON (1<<CCB$V_LOGCHKDON)	/* 0x10 */
#define CCB$M_PHYCHKDON (1<<CCB$V_PHYCHKDON)	/* 0x20 */

struct ccbdef {
    long	    ccb$l_ucb;
    long	    ccb$l_wind;
    unsigned char   ccb$b_sts;
    unsigned char   ccb$b_amod;
    unsigned short  ccb$w_ioc;
    long	    ccb$l_dirp;
};
#endif	/*_CCBDEF_H*/
