From f27d2d7c493aa0d7e48d4e8f700807846f4c7c13 Mon Sep 17 00:00:00 2001 From: Constantine Sapuntzakis Date: Mon, 29 Jan 2001 02:33:18 +0000 Subject: Prepend SCSI_ to some of the SCSI opcodes to aid in sharing code w/NetBSD --- sys/scsi/scsi_disk.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/scsi') diff --git a/sys/scsi/scsi_disk.h b/sys/scsi/scsi_disk.h index 6e09b02e9ec..25de75a7992 100644 --- a/sys/scsi/scsi_disk.h +++ b/sys/scsi/scsi_disk.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_disk.h,v 1.9 2001/01/25 03:50:53 todd Exp $ */ +/* $OpenBSD: scsi_disk.h,v 1.10 2001/01/29 02:33:17 csapuntz Exp $ */ /* $NetBSD: scsi_disk.h,v 1.10 1996/07/05 16:19:05 christos Exp $ */ /* @@ -149,6 +149,7 @@ 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; @@ -216,8 +217,11 @@ struct scsi_synchronize_cache { */ #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 @@ -225,6 +229,8 @@ struct scsi_synchronize_cache { #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 { -- cgit v1.2.3