From 5f8e6f389312dc58d7e115698eddf1aadba5d2cf Mon Sep 17 00:00:00 2001 From: Jason Downs Date: Mon, 10 Jun 1996 00:44:01 +0000 Subject: Several changes: * Implemented NetBSD PR#2529, adding ZIP 100. * Added MTIOCTOP support to acd, cd, and sd. * Implemented eject on close for acd, cd, and sd. `mt -f /dev/rcd0d offline' now ejects a mounted {acd|cd|sd} when it is unmounted. --- sys/scsi/scsiconf.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'sys/scsi/scsiconf.h') diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h index 60ccc31c775..6a4991efd7a 100644 --- a/sys/scsi/scsiconf.h +++ b/sys/scsi/scsiconf.h @@ -140,17 +140,19 @@ struct scsi_link { u_int8_t adapter_target; /* what are we on the scsi bus */ u_int8_t openings; /* available operations */ u_int8_t active; /* operations in progress */ - u_int8_t flags; /* flags that all devices have */ -#define SDEV_REMOVABLE 0x01 /* media is removable */ -#define SDEV_MEDIA_LOADED 0x02 /* device figures are still valid */ -#define SDEV_WAITING 0x04 /* a process is waiting for this */ -#define SDEV_OPEN 0x08 /* at least 1 open session */ -#define SDEV_DBX 0xf0 /* debuging flags (scsi_debug.h) */ + u_int16_t flags; /* flags that all devices have */ +#define SDEV_REMOVABLE 0x0001 /* media is removable */ +#define SDEV_MEDIA_LOADED 0x0002 /* device figures are still valid */ +#define SDEV_WAITING 0x0004 /* a process is waiting for this */ +#define SDEV_OPEN 0x0008 /* at least 1 open session */ +#define SDEV_DBX 0x00f0 /* debuging flags (scsi_debug.h) */ +#define SDEV_EJECTING 0x0100 /* eject on device close */ u_int8_t quirks; /* per-device oddities */ #define SDEV_AUTOSAVE 0x01 /* do implicit SAVEDATAPOINTER on disconnect */ #define SDEV_NOSYNCWIDE 0x02 /* does not grok SDTR or WDTR */ #define SDEV_NOLUNS 0x04 /* does not grok LUNs */ #define SDEV_FORCELUNS 0x08 /* prehistoric drive/ctlr groks LUNs */ +#define SDEV_NOMODESENSE 0x10 /* removable media/optical drives */ u_int8_t inquiry_flags; /* copy of flags from probe INQUIRY */ struct scsi_device *device; /* device entry points etc. */ void *device_softc; /* needed for call to foo_start */ -- cgit v1.2.3