Indentation fix, cleanup.
[AROS.git] / arch / all-unix / hidd / parallel / parallel_intern.h
blob92510c3265d62ede00ee758e894def1e809c51b8
1 /*
2 Copyright © 1995-2010 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 <exec/libraries.h>
12 #include <oop/oop.h>
13 #include <hidd/parallel.h>
14 #include <hidd/unixio.h>
15 #include <dos/dos.h>
17 #define PAR_MAX_UNITS 3
19 struct HIDDParallelData
21 OOP_Class *ParallelHIDDClass;
23 OOP_Object *ParallelUnits[PAR_MAX_UNITS];
24 UBYTE usedunits;
28 #define PAR_UNIT_0_F 1
29 #define PAR_UNIT_1_F 2
30 #define PAR_UNIT_2_F 4
33 struct class_static_data
35 struct Library * utilitybase;
36 struct Library * oopbase;
38 OOP_Class *parallelhiddclass;
39 OOP_Class *parallelunitclass;
42 struct HIDDParallelUnitData
44 VOID (*DataWriteCallBack) (ULONG unitnum, APTR userdata);
45 VOID (*DataReceivedCallBack)(UBYTE *buffer, ULONG len, ULONG unitnum, APTR userdata);
46 VOID *DataWriteUserData;
47 VOID *DataReceivedUserData;
49 ULONG unitnum;
50 int filedescriptor;
52 BOOL stopped;
54 struct MsgPort *replyport_read;
55 struct Interrupt *softint_read;
56 HIDD unixio_read;
58 struct MsgPort *replyport_write;
59 struct Interrupt *softint_write;
60 HIDD unixio_write;
62 struct uioInterrupt unixio_int;
63 OOP_Object *unixio;
67 /* Library base */
69 struct IntHIDDParallelBase
71 struct Library hdg_LibNode;
73 struct class_static_data hdg_csd;
77 #define CSD(cl) (&((struct IntHIDDParallelBase *)cl)->hdg_csd)
79 #endif /* PARALLEL_HIDD_INTERN_H */