Snoopy: print correct title for OpenResource patch.
[AROS.git] / compiler / include / devices / scsidisk.h
blob7840b92f448a09fe875d11cbe4a84c23407fc863
1 #ifndef DEVICES_SCSIDISK_H
2 #define DEVICES_SCSIDISK_H
4 /*
5 Copyright © 1995-2009, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Definitions for scsi.device
9 Lang: english
12 #ifndef EXEC_TYPES_H
13 # include <exec/types.h>
14 #endif
16 #define HD_SCSICMD 28
18 #define HD_WIDESCSI 8 /* Used as part of unit number when a wide SCSI
19 * address is used */
21 struct SCSICmd
23 UWORD *scsi_Data; /* Points to data used in data phase of command */
24 ULONG scsi_Length; /* Length of Data */
25 ULONG scsi_Actual;
26 UBYTE *scsi_Command; /* SCSI command */
27 UWORD scsi_CmdLength; /* length of SCSI command */
28 UWORD scsi_CmdActual;
29 UBYTE scsi_Flags;
30 UBYTE scsi_Status;
31 UBYTE *scsi_SenseData;
32 UWORD scsi_SenseLength;
33 UWORD scsi_SenseActual;
36 /* SCSI flags */
38 #define SCSIF_WRITE 0
39 #define SCSIF_READ 1
40 #define SCSIB_READ_WRITE 0
42 #define SCSIF_NOSENSE 0
43 #define SCSIF_AUTOSENSE 2
44 #define SCSIB_AUTOSENSE 1
46 #define SCSIF_OLDAUTOSENSE 6
47 #define SCSIB_OLDAUTOSENSE 2
49 /* SCSI io_Error values */
51 #define HFERR_SelfUnit 40
52 #define HFERR_DMA 41
53 #define HFERR_Phase 42
54 #define HFERR_Parity 43
55 #define HFERR_SelTimeout 44
56 #define HFERR_BadStatus 45
58 /* SCSI OpenDevice() io_Error values */
60 #define HFERR_NoBoard 50
62 #endif /* DEVICES_SCSIDISK_H */