2 Driver for USB Human Interface Devices.
3 Copyright (C) 2008 Michael Lotz <mmlr@mlotz.ch>
4 Distributed under the terms of the MIT license.
6 #ifndef _USB_HID_DRIVER_H_
7 #define _USB_HID_DRIVER_H_
10 #include <KernelExport.h>
13 #include <util/kernel_cpp.h>
15 #include "DeviceList.h"
17 #define DRIVER_NAME "usb_hid"
19 #define USB_INTERFACE_CLASS_HID 3
20 #define USB_INTERFACE_SUBCLASS_HID_BOOT 1
21 #define USB_DEFAULT_CONFIGURATION 0
22 #define USB_VENDOR_WACOM 0x056a
24 extern usb_module_info
*gUSBModule
;
25 extern DeviceList
*gDeviceList
;
28 status_t
usb_hid_device_added(usb_device device
, void **cookie
);
29 status_t
usb_hid_device_removed(void *cookie
);
31 status_t
init_hardware();
33 const char ** publish_devices();
34 device_hooks
* find_device(const char *name
);
37 #define TRACE(x...) /*dprintf(DRIVER_NAME ": " x)*/
38 #define TRACE_ALWAYS(x...) dprintf(DRIVER_NAME ": " x)
40 #endif //_USB_HID_DRIVER_H_