/*
 * 5799-WZQ (C) COPYRIGHT IBM CORPORATION 1987
 * LICENSED MATERIALS - PROPERTY OF IBM
 * REFER TO COPYRIGHT INSTRUCTIONS FORM NUMBER G120-2083
 */
/* $Header:scsiio.h 12.0$ */
/* $ACIS:scsiio.h 12.0$ */
/* $Source: /ibm/acis/usr/sys/caio/RCS/scsiio.h,v $ */

#if !defined(lint) && !defined(LOCORE) && defined(RCS_HDRS)
static char *rcsidscsiio = "$Header:scsiio.h 12.0$";
#endif

/* Include for ioctl commands to SCSI driver */
#define SCSIIOCFORMAT	_IOW(S,0,struct scsiformat)

struct scsiformat {
	u_char level;		/* Fomat Level */
	u_char interleave;	/* Interleave Factor */
};

#define MIN_INTERLEAVE 0	/* Lun will Use Default in this case */
#define MAX_INTERLEAVE 8

/* Format Levels P = (Manufactures Defect list), G = (Grown Defect list)  */
#define FL_CHIL		0x00	/* Level 1 - Just changes interleave factor */
#define FL_ONLYP	0x18	/* Level 2 - Format with only P list */
#define FL_PANDG	0x10	/* Level 3 - Format with P and G list */
