New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / arch / all-unix / hidd / parallel / parallel_intern.h
blobcc8978e19bd50f0e225968b48037d008b634c07b
1 /*
2 Copyright © 1995-2006 The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef PARALLEL_HIDD_INTERN_H
7 #define PARALLEL_HIDD_INTERN_H
9 /* Include files */
11 #include <sys/termios.h>
13 #ifndef EXEC_LIBRARIES_H
14 # include <exec/libraries.h>
15 #endif
16 #ifndef OOP_OOP_H
17 # include <oop/oop.h>
18 #endif
19 #ifndef HIDD_PARALLEL_H
20 # include <hidd/parallel.h>
21 #endif
22 #include <dos/dos.h>
24 #define PAR_MAX_UNITS 3
26 struct HIDDParallelData
28 OOP_Class *ParallelHIDDClass;
30 OOP_Object *ParallelUnits[PAR_MAX_UNITS];
31 UBYTE usedunits;
35 #define PAR_UNIT_0_F 1
36 #define PAR_UNIT_1_F 2
37 #define PAR_UNIT_2_F 4
40 struct class_static_data
42 struct ExecBase * sysbase;
43 struct Library * utilitybase;
44 struct Library * oopbase;
46 OOP_Class *parallelhiddclass;
47 OOP_Class *parallelunitclass;
50 struct HIDDParallelUnitData
52 VOID (*DataWriteCallBack) (ULONG unitnum, APTR userdata);
53 VOID (*DataReceivedCallBack)(UBYTE *buffer, ULONG len, ULONG unitnum, APTR userdata);
54 VOID *DataWriteUserData;
55 VOID *DataReceivedUserData;
57 ULONG unitnum;
58 int filedescriptor;
60 BOOL stopped;
62 struct MsgPort *replyport_read;
63 struct Interrupt *softint_read;
64 HIDD unixio_read;
66 struct MsgPort *replyport_write;
67 struct Interrupt *softint_write;
68 HIDD unixio_write;
73 /* Library base */
75 struct IntHIDDParallelBase
77 struct Library hdg_LibNode;
78 BPTR hdg_SegList;
79 struct ExecBase *hdg_SysBase;
81 struct class_static_data hdg_csd;
85 #define CSD(cl) (&((struct IntHIDDParallelBase *)cl)->hdg_csd)
87 #endif /* PARALLEL_HIDD_INTERN_H */