Updated PCI IDs to latest snapshot.
[tangerine.git] / arch / common / ata.device / include / scsidisk.h
blob22f06165373125a8c0564ded563033ef6dbcef29
1 #ifndef DEVICES_SCSIDISK_H
2 #define DEVICES_SCSIDISK_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Definitions for scsi.device
9 Lang: english
12 #include <exec/types.h>
14 /* SCSI command code. io_Data points to SCSICmd structure and io_Length is
15 * sizeof(struct SCSICmd) */
16 #define HD_SCSICMD 28
18 struct SCSICmd
20 UWORD *scsi_Data; /* Points to data used in data phase of command */
21 ULONG scsi_Length; /* Length of Data */
22 ULONG scsi_Actual;
23 UBYTE *scsi_Command; /* SCSI command */
24 UWORD scsi_CmdLength; /* length of SCSI command */
25 UWORD scsi_CmdActual;
26 UBYTE scsi_Flags;
27 UBYTE scsi_Status;
28 UWORD scsi_pad1; /* AROS specific pad */
29 UBYTE *scsi_SenseData;
30 UWORD scsi_SenseLength;
31 UWORD scsi_SenseActual;
34 /* SCSI flags */
35 #define SCSIF_WRITE 0
36 #define SCSIF_READ 1
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
46 #define HFERR_DMA 41
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 */