- Removed unused HandleEvent method.
[AROS.git] / compiler / include / scsi / values.h
blob3bacfb16231b6873186dae6961f9f1de867bd0f3
1 /* scsi/values.h
3 Error codes for SCSI-2 commands
5 20-Mar-02 Chris Hodges Created files
7 */
10 #define SCSI_GOOD 0x00
11 #define SCSI_CHECK_CONDITION 0x02
12 #define SCSI_CONDITION_MET 0x04
13 #define SCSI_BUSY 0x08
14 #define SCSI_INTERMEDIATE 0x10
15 #define SCSI_IM_CONDITION_MET 0x14
16 #define SCSI_RESERVATION_CONFLICT 0x18
17 #define SCSI_TASK_SET_FULL 0x28
18 #define SCSI_ACA_ACTIVE 0x30
19 #define SCSI_TASK_ABORTED 0x40
21 /* Peripheral qualifiers */
23 #define PQ_MASK 0xe0
24 #define PQ_CONNECTED 0x00
25 #define PQ_NOT_CONNECTED 0x20
26 #define PQ_DEAD_LUN 0x60
28 /* Peripheral device type */
30 #define PDT_MASK 0x1f
31 #define PDT_DIRECT_ACCESS 0x00
32 #define PDT_SEQUENTIAL_ACCESS 0x01
33 #define PDT_PRINTER 0x02
34 #define PDT_PROCESSOR 0x03
35 #define PDT_WORM 0x04
36 #define PDT_CDROM 0x05
37 #define PDT_SCANNER 0x06
38 #define PDT_OPTICAL 0x07
39 #define PDT_MEDIUM_CHANGER 0x08
40 #define PDT_COMMUNICATIONS 0x09
41 #define PDT_RAID 0x0c
42 #define PDT_ENCLOSURE 0x0d
43 #define PDT_SIMPLE_DIRECT_ACCESS 0x0e
44 #define PDT_OPTICAL_CARD 0x0f
45 #define PDT_OBJECT_BASED 0x11
46 #define PDT_UNKNOWN 0x1f
48 /* Sense keys */
49 #define SK_MASK 0x0f
50 #define SK_NO_SENSE 0x00
51 #define SK_RECOVERED_ERROR 0x01
52 #define SK_NOT_READY 0x02
53 #define SK_MEDIUM_ERROR 0x03
54 #define SK_HARDWARE_ERROR 0x04
55 #define SK_ILLEGAL_REQUEST 0x05
56 #define SK_UNIT_ATTENTION 0x06
57 #define SK_DATA_PROTECT 0x07
58 #define SK_BLANK_CHECK 0x08
59 #define SK_VENDOR_SPECIFIC 0x09
60 #define SK_COPY_ABORTED 0x0a
61 #define SK_ABORTED_COMMAND 0x0b
62 #define SK_VOLUME_OVERFLOW 0x0d
63 #define SK_MISCOMPARE 0x0e