1 #ifndef DEVICES_SCSIDISK_H
2 #define DEVICES_SCSIDISK_H
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 Desc: Definitions for scsi.device
12 #include <exec/types.h>
14 /* SCSI command code. io_Data points to SCSICmd structure and io_Length is
15 * sizeof(struct SCSICmd) */
20 UWORD
*scsi_Data
; /* Points to data used in data phase of command */
21 ULONG scsi_Length
; /* Length of Data */
23 UBYTE
*scsi_Command
; /* SCSI command */
24 UWORD scsi_CmdLength
; /* length of SCSI command */
28 UWORD scsi_pad1
; /* AROS specific pad */
29 UBYTE
*scsi_SenseData
;
30 UWORD scsi_SenseLength
;
31 UWORD scsi_SenseActual
;
37 #define SCSIB_READ_WRITE 0
38 #define SCSIF_NOSENSE 0
39 #define SCSIF_AUTOSENSE 2
40 #define SCSIF_OLDAUTOSENSE 6
41 #define SCSIB_AUTOSENSE 1
42 #define SCSIB_OLDAUTOSENSE 2
44 /* SCSI io_Error values */
45 #define HFERR_SelfUnit 40
47 #define HFERR_Phase 42
48 #define HFERR_Parity 43
49 #define HFERR_SelfTimeout 44
50 #define HFERR_BadStatus 45
52 /* SCSI OpenDevice io_Error values */
53 #define HFERR_NoBoard 50
55 #endif /* DEVICES_SCSIDISK_H */