Source to scsi/stdefs.h
/*
* stdefs.h,v 1.3 1993/05/20 03:46:55 cgd Exp
*/
#define STQSIZE 4
struct st_data {
struct scsi_switch *sc_sw; /* address of scsi low level switch */
int flags;
int ctlr; /* so they know which one we want */
int targ; /* our scsi target ID */
int lu; /* our scsi lu */
int blkmin; /* min blk size */
int blkmax; /* max blk size */
int numblks; /* nominal blocks capacity */
int blksiz; /* nominal block size */
int info_valid; /* the info about the device is valid */
int initialized;
struct buf buf[STQSIZE]; /* buffer for raw io (one per device) */
struct buf buf_queue;
struct scsi_xfer scsi_xfer;
int blockwait;
};
#define ST_OPEN 0x01
#define ST_NOREWIND 0x02
#define ST_WRITTEN 0x04
#define ST_FIXEDBLOCKS 0x10
#define ST_AT_FILEMARK 0x20
#define ST_AT_EOM 0x40
#define ST_PER_ACTION (ST_AT_FILEMARK | ST_AT_EOM)
#define ST_PER_OPEN (ST_OPEN | ST_NOREWIND | ST_WRITTEN | ST_PER_ACTION)