2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Stubs for IRQ class
13 #include <aros/config.h>
14 #include <exec/types.h>
15 #include <exec/libraries.h>
17 #include <proto/oop.h>
19 #include <utility/tagitem.h>
29 #include <aros/debug.h>
32 #define OOPBase (OOP_OOPBASE(obj))
34 #ifdef AROS_CREATE_ROM
35 # define STATIC_MID OOP_MethodID mid = 0
37 # define STATIC_MID static OOP_MethodID mid
39 /***************************************************************/
41 BOOL
HIDD_IRQ_AddHandler(OOP_Object
*obj
, HIDDT_IRQ_Handler
*handler
, HIDDT_IRQ_Id id
)
44 struct pHidd_IRQ_AddHandler p
;
46 if(!mid
) mid
= OOP_GetMethodID(IID_Hidd_IRQ
, moHidd_IRQ_AddHandler
);
49 p
.handlerinfo
= handler
;
52 return((BOOL
) OOP_DoMethod(obj
, (OOP_Msg
) &p
));
55 /***************************************************************/
57 VOID
HIDD_IRQ_RemHandler(OOP_Object
*obj
, HIDDT_IRQ_Handler
*handler
)
60 struct pHidd_IRQ_RemHandler p
;
62 if (!mid
) mid
= OOP_GetMethodID(IID_Hidd_IRQ
, moHidd_IRQ_RemHandler
);
65 p
.handlerinfo
= handler
;
67 OOP_DoMethod(obj
, (OOP_Msg
) &p
);
70 /*****************************************************************/
72 VOID
HIDD_IRQ_CauseIRQ(OOP_Object
*obj
, HIDDT_IRQ_Id id
, HIDDT_IRQ_HwInfo
*hwinfo
)
75 struct pHidd_IRQ_CauseIRQ p
;
77 if (!mid
) mid
= OOP_GetMethodID(IID_Hidd_IRQ
, moHidd_IRQ_CauseIRQ
);
81 p
.hardwareinfo
= hwinfo
;
83 OOP_DoMethod(obj
, (OOP_Msg
) &p
);