Skip to content

Instantly share code, notes, and snippets.

@ao-kenji
Last active December 26, 2015 14:19
Show Gist options
  • Save ao-kenji/7164611 to your computer and use it in GitHub Desktop.
Save ao-kenji/7164611 to your computer and use it in GitHub Desktop.
A patch to recognize OMRON UPS BY35S as a ugen(4) device on NetBSD-6.1.2.
Index: dev/usb/usb_quirks.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usb_quirks.c,v
retrieving revision 1.74
diff -u -r1.74 usb_quirks.c
--- dev/usb/usb_quirks.c 11 Feb 2012 05:27:23 -0000 1.74
+++ dev/usb/usb_quirks.c 23 Oct 2013 11:48:57 -0000
@@ -61,6 +61,7 @@
{ USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS2, ANY, { UQ_HID_IGNORE }},
{ USB_VENDOR_MICROCHIP, USB_PRODUCT_MICROCHIP_PICKIT1,
ANY, { UQ_HID_IGNORE }},
+ { USB_VENDOR_OMRON, USB_PRODUCT_OMRON_BY35S, ANY, { UQ_HID_IGNORE }},
{ USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_UPS,
ANY, { UQ_HID_IGNORE }},
{ USB_VENDOR_MISC, USB_PRODUCT_MISC_WISPY_24X, ANY, { UQ_HID_IGNORE }},
Index: dev/usb/usbdevs
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs,v
retrieving revision 1.607.2.7
diff -u -r1.607.2.7 usbdevs
--- dev/usb/usbdevs 13 Feb 2013 01:36:17 -0000 1.607.2.7
+++ dev/usb/usbdevs 23 Oct 2013 11:48:58 -0000
@@ -191,6 +191,7 @@
vendor RATOC 0x0584 RATOC Systems
vendor ZYXEL 0x0586 ZyXEL Communication
vendor ALCOR 0x058f Alcor Micro
+vendor OMRON 0x0590 OMRON Corporation
vendor IOMEGA 0x059b Iomega
vendor ATREND 0x059c A-Trend Technology
vendor AID 0x059d Advanced Input Devices
@@ -2155,6 +2156,9 @@
product OMNIVISION OV511PLUS 0xa511 OV511+ Camera
product OMNIVISION2 PSEYE 0x2000 Sony PLAYSTATION(R) Eye
+/* OMRON products */
+product OMRON BY35S 0x0080 BY35S UPS
+
/* OnSpec Electronic, Inc. */
product ONSPEC MD2 0x0103 disk
product ONSPEC MDCFEB 0xa000 MDCFE-B USB CF Reader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment