Fixed compatibility of output.
[AROS.git] / compiler / include / devices / parallel.h
blobd1632c5bf194e4977fb6d9dcf8118a7a71793ccd
1 #ifndef DEVICES_PARALLEL_H
2 #define DEVICES_PARALLEL_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Parallel device commands, structures, defintions etc.
9 Lang: english
12 #include "exec/io.h"
14 struct IOPArray {
15 ULONG PTermArray0;
16 ULONG PTermArray1;
19 struct IOExtPar {
20 struct IOStdReq IOPar;
21 ULONG io_PExtFlags;
22 UBYTE io_Status;
23 UBYTE io_ParFlags;
24 struct IOPArray io_PTermArray;
27 #define PARB_SHARED 5
28 #define PARF_SHARED (1<<5)
29 #define PARB_SLOWMODE 4
30 #define PARF_SLOWMODE (1<<4)
31 #define PARB_FASTMODE 3
32 #define PARF_FASTMODE (1<<3)
33 #define PARB_RAD_BOOGIE 3
34 #define PARF_RAD_BOOGIE (1<<3)
36 #define PARB_ACKMODE 2
37 #define PARF_ACKMODE (1<<2)
39 #define PARB_EOFMODE 1
40 #define PARF_EOFMODE (1<<1)
42 #define IOPARB_QUEUED 6
43 #define IOPARF_QUEUED (1<<6)
44 #define IOPARB_ABORT 5
45 #define IOPARF_ABORT (1<<5)
46 #define IOPARB_ACTIVE 4
47 #define IOPARF_ACTIVE (1<<4)
48 #define IOPTB_RWDIR 3
49 #define IOPTF_RWDIR (1<<3)
50 #define IOPTB_PARSEL 2
51 #define IOPTF_PARSEL (1<<2)
52 #define IOPTB_PAPEROUT 1
53 #define IOPTF_PAPEROUT (1<<1)
54 #define IOPTB_PARBUSY 0
55 #define IOPTF_PARBUSY (1<<0)
58 #define PARALLELNAME "parallel.device"
60 #define PDCMD_QUERY (CMD_NONSTD)
61 #define PDCMD_SETPARAMS (CMD_NONSTD+1)
63 #define ParErr_DevBusy 1
64 #define ParErr_BufTooBig 2
65 #define ParErr_InvParam 3
66 #define ParErr_LineErr 4
67 #define ParErr_NotOpen 5
68 #define ParErr_PortReset 6
69 #define ParErr_InitErr 7
71 #endif /* DEVICES_PARALLEL_H */