summaryrefslogtreecommitdiff
path: root/sys/scsi/scsiconf.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2005-05-25 20:52:42 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2005-05-25 20:52:42 +0000
commit8864d54939803f5c472b21b73056f2f8de3d31c2 (patch)
treef48986aba38da3c117de4a5896d88caaf539aad5 /sys/scsi/scsiconf.h
parent5c433857e84069e8f66922a2975b92e208971563 (diff)
Introduce safer, more general mode sense capability. Transparently use
both 10 byte and 6 byte MODE SENSE commands and just return error checked values. Convert sd_scsi.c to use new mechanism for non-optical drives. USB umass devices will now display actual mode sense info if it is available via a 10 byte MODE SENSE. Which may mean 0 heads, etc. is shown until cosmetics are finalized. ok marco@ 'that is pretty cool' deraadt@
Diffstat (limited to 'sys/scsi/scsiconf.h')
-rw-r--r--sys/scsi/scsiconf.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h
index 52c09756127..87d1e270ff4 100644
--- a/sys/scsi/scsiconf.h
+++ b/sys/scsi/scsiconf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsiconf.h,v 1.52 2005/05/14 00:20:43 krw Exp $ */
+/* $OpenBSD: scsiconf.h,v 1.53 2005/05/25 20:52:41 krw Exp $ */
/* $NetBSD: scsiconf.h,v 1.35 1997/04/02 02:29:38 mycroft Exp $ */
/*
@@ -335,6 +335,11 @@ int scsi_mode_sense(struct scsi_link *, int, int, struct scsi_mode_header *,
size_t, int, int);
int scsi_mode_sense_big(struct scsi_link *, int, int,
struct scsi_mode_header_big *, size_t, int, int);
+void * scsi_mode_sense_page(struct scsi_mode_header *, int);
+void * scsi_mode_sense_big_page(struct scsi_mode_header_big *, int);
+int scsi_do_mode_sense(struct scsi_link *, int,
+ struct scsi_mode_sense_buf *, void **, int *, int *, int *, int,
+ int);
int scsi_mode_select(struct scsi_link *, int, struct scsi_mode_header *,
size_t, int, int);
int scsi_mode_select_big(struct scsi_link *, int,