2 Copyright © 1995-2010 The AROS Development Team. All rights reserved.
6 #ifndef PARALLEL_HIDD_INTERN_H
7 #define PARALLEL_HIDD_INTERN_H
11 #include <exec/libraries.h>
13 #include <hidd/parallel.h>
14 #include <hidd/unixio.h>
17 #define PAR_MAX_UNITS 3
19 struct HIDDParallelData
21 OOP_Class
*ParallelHIDDClass
;
23 OOP_Object
*ParallelUnits
[PAR_MAX_UNITS
];
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
;
54 struct MsgPort
*replyport_read
;
55 struct Interrupt
*softint_read
;
58 struct MsgPort
*replyport_write
;
59 struct Interrupt
*softint_write
;
62 struct uioInterrupt unixio_int
;
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 */