summaryrefslogtreecommitdiff
path: root/sys/scsi/scsiconf.h
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-06-10 00:44:01 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-06-10 00:44:01 +0000
commit5f8e6f389312dc58d7e115698eddf1aadba5d2cf (patch)
tree3cbfbe54a59611a5998349f98f02141dca907fe3 /sys/scsi/scsiconf.h
parent34e21fa7427630a0fd22a30e611f27d844a36035 (diff)
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.
Diffstat (limited to 'sys/scsi/scsiconf.h')
-rw-r--r--sys/scsi/scsiconf.h14
1 files changed, 8 insertions, 6 deletions
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 */