5 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 Desc: Include for the kbd HIDD.
12 #ifndef EXEC_LIBRARIES_H
13 # include <exec/libraries.h>
20 #ifndef EXEC_SEMAPHORES_H
21 # include <exec/semaphores.h>
24 #ifndef EXEC_INTRERRUPTS_H
25 # include <exec/interrupts.h>
30 /****************************************************************************************/
32 /***** Kbd HIDD *******************/
35 #define IID_Hidd_HwKbd "hidd.kbd.hw"
36 #define CLID_Hidd_HwKbd "hidd.kbd.hw"
41 moHidd_Kbd_HandleEvent
44 struct pHidd_Kbd_HandleEvent
55 OOP_AttrBase
*attrbase
;
60 struct SignalSemaphore sema
; /* Protexting this whole struct */
61 struct Interrupt kbint
;
62 struct Resource
*ciares
;
63 struct timerequest
*timerio
;
64 struct Library
*TimerBase
;
68 OOP_AttrBase hiddKbdAB
;
69 OOP_MethodID hiddKbdBase
;
72 struct Library
*cs_OOPBase
;
77 struct Library library
;
78 struct kbd_staticdata ksd
;
83 VOID (*kbd_callback
)(APTR
, UWORD
);
85 struct Library
*TimerBase
;
89 /****************************************************************************************/
91 BOOL
obtainattrbases(struct abdescr
*abd
, struct Library
*OOPBase
);
92 VOID
releaseattrbases(struct abdescr
*abd
, struct Library
*OOPBase
);
94 /****************************************************************************************/
96 #define XSD(cl) (&((struct kbdbase *)cl->UserData)->ksd)
98 /****************************************************************************************/
100 #endif /* HIDD_KBD_H */