diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2003-05-16 19:54:06 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2003-05-16 19:54:06 +0000 |
commit | af98e47ac496ec0d5f53f22a08c6ed052b86265e (patch) | |
tree | 32f0ce07e296f8617c84ebda6b19dd53abc3f052 /sys/scsi/scsiconf.h | |
parent | 9db59f70e24b22031be7af711fcdf5b881ff174a (diff) |
Provide most if not all the support required for the usb changes Nate
is trying to bring in.
1) Change name of SDEV_NOCDB6 to SDEV_ONLYBIG to align it with the
same quirk in NetBSD, and make it more clear what it is trying to do.
i.e. force the use of READ_BIG/WRITE_BIG commands, not suppress all
use of 6 byte CDB's.
2) Check SDEV_ONLYBIG in cd.c as well as sd.c. i.e. both places where
a choice is made to use the 6 or 10 byte versions of READ/WRITE.
3) Actually make use of the ADEV_NOTUR (No TEST UNIT READY) quirk to
suppress the emission of TEST UNIT READY commands.
4) Add some explanatory comments from NetBSD to scsiconf.h so that the
use of the quirks is made clear.
ok miod@ tdeval@ nate@
Diffstat (limited to 'sys/scsi/scsiconf.h')
-rw-r--r-- | sys/scsi/scsiconf.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h index 9b1342fe8f9..c34f2b8de00 100644 --- a/sys/scsi/scsiconf.h +++ b/sys/scsi/scsiconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.h,v 1.37 2003/02/20 04:02:06 krw Exp $ */ +/* $OpenBSD: scsiconf.h,v 1.38 2003/05/16 19:54:05 krw Exp $ */ /* $NetBSD: scsiconf.h,v 1.35 1997/04/02 02:29:38 mycroft Exp $ */ /* @@ -182,10 +182,10 @@ struct scsi_link { #define SDEV_NOSYNCCACHE 0x0100 /* no SYNCHRONIZE_CACHE */ #define ADEV_NOSENSE 0x0200 /* No request sense - ATAPI */ #define ADEV_LITTLETOC 0x0400 /* little-endian TOC - ATAPI */ -#define ADEV_NOCAPACITY 0x0800 -#define ADEV_NOTUR 0x1000 -#define ADEV_NODOORLOCK 0x2000 -#define SDEV_NOCDB6 0x4000 /* does not support 6 byte CDB */ +#define ADEV_NOCAPACITY 0x0800 /* no READ CD CAPACITY */ +#define ADEV_NOTUR 0x1000 /* No TEST UNIT READY */ +#define ADEV_NODOORLOCK 0x2000 /* can't lock door */ +#define SDEV_ONLYBIG 0x4000 /* always use READ_BIG and WRITE_BIG */ u_int8_t inquiry_flags; /* copy of flags from probe INQUIRY */ u_int8_t inquiry_flags2; /* copy of flags2 from probe INQUIRY */ struct scsi_device *device; /* device entry points etc. */ |