revert between 56095 -> 55830 in arch
[AROS.git] / rom / filesys / SFS / FS / deviceio.h
blob09ce718e7cdb1f2f1ebef6a175f7712dd4cecc64
1 #ifndef _DEVICEIO_H
2 #define _DEVICEIO_H
4 #include <devices/scsidisk.h>
6 struct SCSI10Cmd {
7 UBYTE Opcode;
8 UBYTE Lun;
9 ULONG LBA;
10 UBYTE Reserved;
11 UBYTE Length[2];
12 UBYTE Control;
15 struct Read10Cmd {
16 UBYTE Opcode;
17 UBYTE Lun;
18 ULONG LBA;
19 UBYTE Reserved;
20 UBYTE Length[2];
21 UBYTE Control;
24 struct Write10Cmd {
25 UBYTE Opcode;
26 UBYTE Lun;
27 ULONG LBA;
28 UBYTE Reserved;
29 UBYTE Length[2];
30 UBYTE Control;
33 #define SCSICMD_READ10 0x28
34 #define SCSICMD_WRITE10 0x2a
36 #define DIO_READ (1)
37 #define DIO_WRITE (2)
39 /* Errorcodes returned by device io functions, in addition to the
40 errors which can be returned by the OpenDevice() call when
41 calling initdeviceio(): */
43 #define ERROR_NO_64BIT_SUPPORT (95) /* Returned when the partition requires 64-bit support
44 to function, but no 64-bit support is present. */
45 #define ERROR_OUTSIDE_PARTITION (99)
48 /* Values returned by deviceapiused() */
50 #define DAU_NORMAL (0)
51 #define DAU_NSD (1)
52 #define DAU_TD64 (2)
53 #define DAU_SCSIDIRECT (3)
55 struct fsIORequest {
56 struct fsIORequest *next;
57 struct IOStdReq *ioreq;
58 struct SCSICmd scsicmd;
59 struct SCSI10Cmd scsi10cmd;
60 UWORD action;
63 #endif // _DEVICEIO_H