1 #ifndef DEVICES_PARALLEL_H
2 #define DEVICES_PARALLEL_H
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 Desc: Parallel device commands, structures, defintions etc.
20 struct IOStdReq IOPar
;
24 struct IOPArray io_PTermArray
;
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)
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 */