Skip to contentSkip to conversation

USB-HID: IOWarrior added to blacklist

PATCH New [email protected] 1 participant 1 message May 11, 2004 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 USB-HID: IOWarrior added to blacklist

Hi all,

this is a simple patch of USB's hid-core.c to add Codemercs' IOWarrior 24 and IOWarrior 40 to the blacklist as it's not a "real" HID device.
It should be used via Codemercs' driver or via libusb.

The datasheet for IOwarrior can be found here:
http://www.codemercs.com/Downloads/IOWarriorDatasheet.pdf

Regards,
Carsten

drivers/usb/input/hid-core.c renamed from drivers/usb/input/hid-core.c-orig +8 -0
@@ -1412,6 +1412,11 @@
 #define USB_VENDOR_ID_CHIC		0x05fe
 #define USB_DEVICE_ID_CHIC_GAMEPAD	0x0014
 
+#define USB_VENDOR_ID_CODEMERCS         0x07c0
+#define USB_DEVICE_ID_CODEMERCS_IOW40   0x1500
+#define USB_DEVICE_ID_CODEMERCS_IOW24   0x1501
+
+
 struct hid_blacklist {
 	__u16 idVendor;
 	__u16 idProduct;
@@ -1479,6 +1484,9 @@
 	{ USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_RUMBLEPAD, HID_QUIRK_BADPAD },
 	{ USB_VENDOR_ID_TOPMAX, USB_DEVICE_ID_TOPMAX_COBRAPAD, HID_QUIRK_BADPAD },
 
+	{ USB_VENDOR_ID_CODEMERCS, USB_DEVICE_ID_CODEMERCS_IOW40, HID_QUIRK_IGNORE },
+	{ USB_VENDOR_ID_CODEMERCS, USB_DEVICE_ID_CODEMERCS_IOW24, HID_QUIRK_IGNORE },
+
 	{ 0, 0 }
 };