Updated PCI IDs to latest snapshot.
[tangerine.git] / compiler / include / exec / io.h
blob3a176103f59779dd074f64e403643996904e9581
1 #ifndef EXEC_IO_H
2 #define EXEC_IO_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Device communication
9 Lang: english
12 #ifndef EXEC_PORTS_H
13 # include <exec/ports.h>
14 #endif
16 #define DEV_BEGINIO (-30)
17 #define DEV_ABORTIO (-36)
19 struct IORequest
21 struct Message io_Message;
22 struct Device * io_Device;
23 struct Unit * io_Unit;
24 UWORD io_Command;
25 UBYTE io_Flags;
26 BYTE io_Error;
29 struct IOStdReq
31 struct Message io_Message;
32 struct Device * io_Device;
33 struct Unit * io_Unit;
34 UWORD io_Command;
35 UBYTE io_Flags;
36 BYTE io_Error;
37 /* fields that are different from IORequest */
38 ULONG io_Actual;
39 ULONG io_Length;
40 APTR io_Data;
41 ULONG io_Offset;
44 #define CMD_INVALID 0
45 #define CMD_RESET 1
46 #define CMD_READ 2
47 #define CMD_WRITE 3
48 #define CMD_UPDATE 4
49 #define CMD_CLEAR 5
50 #define CMD_STOP 6
51 #define CMD_START 7
52 #define CMD_FLUSH 8
53 #define CMD_NONSTD 9
55 #define IOB_QUICK 0
56 #define IOF_QUICK (1<<0)
58 #endif /* EXEC_IO_H */