From 9fbefa26dde463334568d2043a6cc6a9b61576bf Mon Sep 17 00:00:00 2001 From: kstailey Date: Mon, 10 Mar 1997 01:06:11 +0000 Subject: [PATCH] SCSI-2 scanner use READ_BIG, not READ. --- sys/scsi/scsi_scanner.h | 16 ++++++++++++++-- 1 file 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 -- 2.20.1