2 Copyright © 1995-2007 The AROS Development Team. All rights reserved.
6 #ifndef PARALLEL_HIDD_INTERN_H
7 #define PARALLEL_HIDD_INTERN_H
11 #include <sys/termios.h>
13 #ifndef EXEC_LIBRARIES_H
14 # include <exec/libraries.h>
19 #ifndef HIDD_PARALLEL_H
20 # include <hidd/parallel.h>
24 #define PAR_MAX_UNITS 3
26 struct HIDDParallelData
28 OOP_Class
*ParallelHIDDClass
;
30 OOP_Object
*ParallelUnits
[PAR_MAX_UNITS
];
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 Library
* utilitybase
;
43 struct Library
* oopbase
;
45 OOP_Class
*parallelhiddclass
;
46 OOP_Class
*parallelunitclass
;
49 struct HIDDParallelUnitData
51 VOID (*DataWriteCallBack
) (ULONG unitnum
, APTR userdata
);
52 VOID (*DataReceivedCallBack
)(UBYTE
*buffer
, ULONG len
, ULONG unitnum
, APTR userdata
);
53 VOID
*DataWriteUserData
;
54 VOID
*DataReceivedUserData
;
61 struct MsgPort
*replyport_read
;
62 struct Interrupt
*softint_read
;
65 struct MsgPort
*replyport_write
;
66 struct Interrupt
*softint_write
;
74 struct IntHIDDParallelBase
76 struct Library hdg_LibNode
;
78 struct class_static_data hdg_csd
;
82 #define CSD(cl) (&((struct IntHIDDParallelBase *)cl)->hdg_csd)
84 #endif /* PARALLEL_HIDD_INTERN_H */