2 Copyright © 2004, The AROS Development Team. All rights reserved.
5 Desc: Stub functions for PCI subsystem
14 #include <exec/libraries.h>
15 #include <exec/interrupts.h>
17 #include <utility/tagitem.h>
18 #include <utility/hooks.h>
21 #include <oop/static_mid.h>
23 #include <hidd/hidd.h>
27 #include <proto/oop.h>
30 #define OOPBase (OOP_OOPBASE(obj))
32 BOOL
HIDD_USBHID_GetReportDescriptor(OOP_Object
*obj
, uint16_t length
, void *buffer
)
35 struct pHidd_USBHID_GetReportDescriptor p
;
37 if (!static_mid
) static_mid
= OOP_GetMethodID((STRPTR
)IID_Hidd_USBHID
, moHidd_USBHID_GetReportDescriptor
);
43 return OOP_DoMethod(obj
, &p
.mID
);
46 usb_hid_descriptor_t
*HIDD_USBHID_GetHidDescriptor(OOP_Object
*obj
)
49 struct pHidd_USBHID_GetHidDescriptor p
;
51 if (!static_mid
) static_mid
= OOP_GetMethodID((STRPTR
)IID_Hidd_USBHID
, moHidd_USBHID_GetHidDescriptor
);
55 return (usb_hid_descriptor_t
*)OOP_DoMethod(obj
, &p
.mID
);
58 BOOL
HIDD_USBHID_SetIdle(OOP_Object
*obj
, uint8_t duration
, uint8_t id
)
62 struct pHidd_USBHID_SetIdle p
;
64 if (!static_mid
) static_mid
= OOP_GetMethodID((STRPTR
)IID_Hidd_USBHID
, moHidd_USBHID_SetIdle
);
67 p
.duration
= duration
;
70 return OOP_DoMethod(obj
, &p
.mID
);
73 BOOL
HIDD_USBHID_SetProtocol(OOP_Object
*obj
, uint8_t protocol
)
77 struct pHidd_USBHID_SetProtocol p
;
79 if (!static_mid
) static_mid
= OOP_GetMethodID((STRPTR
)IID_Hidd_USBHID
, moHidd_USBHID_SetProtocol
);
82 p
.protocol
= protocol
;
84 return OOP_DoMethod(obj
, &p
.mID
);
87 BOOL
HIDD_USBHID_SetReport(OOP_Object
*obj
, uint8_t type
, uint8_t id
, void *report
, uint16_t length
)
91 struct pHidd_USBHID_SetReport p
;
93 if (!static_mid
) static_mid
= OOP_GetMethodID((STRPTR
)IID_Hidd_USBHID
, moHidd_USBHID_SetReport
);
101 return OOP_DoMethod(obj
, &p
.mID
);
104 void HIDD_USBHID_ParseReport(OOP_Object
*obj
, uint8_t id
, void *report
, uint32_t report_length
)
107 struct pHidd_USBHID_ParseReport p
;
109 if (!static_mid
) static_mid
= OOP_GetMethodID((STRPTR
)IID_Hidd_USBHID
, moHidd_USBHID_ParseReport
);
114 p
.report_length
= report_length
;
116 OOP_DoMethod(obj
, &p
.mID
);