1 /* 2 * Copyright 2011 Michael Lotz <mmlr@mlotz.ch> 3 * Distributed under the terms of the MIT license. 4 */ 5 #ifndef USB_HID_QUIRKY_DEVICES 6 #define USB_HID_QUIRKY_DEVICES 7 8 #include "Driver.h" 9 10 typedef status_t (*quirky_init_function)(usb_device device, 11 const usb_configuration_info *config, size_t interfaceIndex); 12 13 struct usb_hid_quirky_device { 14 uint16 vendor_id; 15 uint16 product_id; 16 size_t descriptor_length; 17 const uint8 * fixed_descriptor; 18 quirky_init_function init_function; 19 }; 20 21 extern usb_hid_quirky_device gQuirkyDevices[]; 22 extern int32 gQuirkyDeviceCount; 23 24 #endif // USB_HID_QUIRKY_DEVICES 25