diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-04-05 12:13:17 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-04-05 12:13:17 +0000 |
commit | 6925dcc5a6aeebcfd28fd678a39f45cd5e642fc4 (patch) | |
tree | edff0ec67ee1aff67ce310d4cb4f112eb8f2621e /sys/scsi/scsiconf.h | |
parent | b4e7d5833ec209b9297616ebee0f72301a626151 (diff) |
Factor out scsi_mode_sense() and scsi_mode_select() like NetBSD does.
Eliminate some duplicate structures and defines along the way. SCSI CD
drives will now pay attention to the 'flags' parameter for MODE SENSE
and MODE SELECT commands. No other functional change.
ok tdeval@
Diffstat (limited to 'sys/scsi/scsiconf.h')
-rw-r--r-- | sys/scsi/scsiconf.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h index 644fd76eec8..2fcf7e253e5 100644 --- a/sys/scsi/scsiconf.h +++ b/sys/scsi/scsiconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.h,v 1.48 2004/11/30 19:28:37 krw Exp $ */ +/* $OpenBSD: scsiconf.h,v 1.49 2005/04/05 12:13:16 krw Exp $ */ /* $NetBSD: scsiconf.h,v 1.35 1997/04/02 02:29:38 mycroft Exp $ */ /* @@ -330,6 +330,10 @@ int scsi_test_unit_ready(struct scsi_link *, int, int); int scsi_inquire(struct scsi_link *, struct scsi_inquiry_data *, int); int scsi_prevent(struct scsi_link *, int, int); int scsi_start(struct scsi_link *, int, int); +int scsi_mode_sense(struct scsi_link *, int, int, u_char *, size_t, + int, int); +int scsi_mode_select(struct scsi_link *, int, u_char *, size_t, int, + int); void scsi_done(struct scsi_xfer *); void scsi_user_done(struct scsi_xfer *); int scsi_scsi_cmd(struct scsi_link *, struct scsi_generic *, |