diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-03-10 01:06:12 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-03-10 01:06:12 +0000 |
commit | 458ef3d12608942f97ebd6cc0abee1790f81dc76 (patch) | |
tree | 3bdc69b2218e15b351b4c68330b699c0098dde9d | |
parent | 6dde7bdd6d31e28dd4ed8dc26901956fa891f846 (diff) |
SCSI-2 scanner use READ_BIG, not READ.
-rw-r--r-- | sys/scsi/scsi_scanner.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sys/scsi/scsi_scanner.h b/sys/scsi/scsi_scanner.h index 9880676747b..4bddd242065 100644 --- a/sys/scsi/scsi_scanner.h +++ b/sys/scsi/scsi_scanner.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_scanner.h,v 1.5 1997/03/08 05:39:00 kstailey Exp $ */ +/* $OpenBSD: scsi_scanner.h,v 1.6 1997/03/10 01:06:11 kstailey Exp $ */ /* * Copyright (c) 1995 Kenneth Stailey. All rights reserved. @@ -39,13 +39,25 @@ /* SCSI scanner commands */ #define GET_IMAGE_STATUS 0x0f -#define READ_BIG 0x28 #define WRITE_BIG 0x2a #define OBJECT_POSITION 0x31 #define GET_BUFFER_STATUS 0x34 /* generic scanner command formats */ +struct scsi_r_scanner { +#define READ_BIG 0x28 + u_int8_t opcode; + u_int8_t lun:3; + u_int8_t res1; + u_int8_t code; + u_int8_t res2; + u_int8_t qualifier; + u_int8_t len[3]; + u_int8_t control; +}; + + struct scsi_rw_scanner { #define READ 0x08 #define WRITE 0x0a |