summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/scsi_all.h6
-rw-r--r--sys/scsi/scsi_disk.h14
2 files changed, 5 insertions, 15 deletions
diff --git a/sys/scsi/scsi_all.h b/sys/scsi/scsi_all.h
index 2517d7ee289..4b560754379 100644
--- a/sys/scsi/scsi_all.h
+++ b/sys/scsi/scsi_all.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_all.h,v 1.13 2002/09/04 23:07:28 tdeval Exp $ */
+/* $OpenBSD: scsi_all.h,v 1.14 2002/12/15 20:53:33 krw Exp $ */
/* $NetBSD: scsi_all.h,v 1.10 1996/09/12 01:57:17 thorpej Exp $ */
/*
@@ -180,8 +180,8 @@ struct scsi_changedef {
#define PREVENT_ALLOW 0x1e
#define POSITION_TO_ELEMENT 0x2b
#define CHANGE_DEFINITION 0x40
-#define MODE_SENSE_BIG 0x54
#define MODE_SELECT_BIG 0x55
+#define MODE_SENSE_BIG 0x5a
/*
* Sort of an extra one, for SCSI_RESET.
@@ -299,7 +299,7 @@ struct scsi_blk_desc {
};
struct scsi_mode_header {
- u_int8_t data_length; /* Sense data length */
+ u_int8_t data_length; /* Sense data length */
u_int8_t medium_type;
u_int8_t dev_spec;
u_int8_t blk_desc_len;
diff --git a/sys/scsi/scsi_disk.h b/sys/scsi/scsi_disk.h
index 347ba8bf4f0..00b137c15b0 100644
--- a/sys/scsi/scsi_disk.h
+++ b/sys/scsi/scsi_disk.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_disk.h,v 1.12 2002/09/04 23:07:28 tdeval Exp $ */
+/* $OpenBSD: scsi_disk.h,v 1.13 2002/12/15 20:53:33 krw Exp $ */
/* $NetBSD: scsi_disk.h,v 1.10 1996/07/05 16:19:05 christos Exp $ */
/*
@@ -149,7 +149,6 @@ struct scsi_reassign_blocks {
* XXX Is this also used by ATAPI?
*/
#define REZERO_UNIT 0x01
-#define SCSI_REZERO_UNIT 0x01
struct scsi_rezero_unit {
u_int8_t opcode;
u_int8_t byte2;
@@ -213,24 +212,15 @@ struct scsi_synchronize_cache {
/*
- * Opcodes
+ * Disk specific opcodes
*/
#define REASSIGN_BLOCKS 0x07
#define READ_COMMAND 0x08
-#define SCSI_READ_COMMAND 0x08
#define WRITE_COMMAND 0x0a
-#define SCSI_WRITE_COMMAND 0x0a
-#define MODE_SELECT 0x15
-#define SCSI_MODE_SELECT 0x15
-#define MODE_SENSE 0x1a
-#define START_STOP 0x1b
-#define PREVENT_ALLOW 0x1e
#define READ_CAPACITY 0x25
#define READ_BIG 0x28
#define WRITE_BIG 0x2a
#define SYNCHRONIZE_CACHE 0x35
-#define SCSI_MODE_SELECT_BIG 0x55
-#define SCSI_MODE_SENSE_BIG 0x5a
struct scsi_read_cap_data {