> Please try this 1-line change and rebuild the kernel

here's a more complete diff, bringing across other HID quirks from
FreeBSD - a couple of MGE UPS, and a GPS receiver.

Index: sys/dev/usb/usb_quirks.c
===================================================================
RCS file: /data/cvsroot/OpenBSD/src/sys/dev/usb/usb_quirks.c,v
retrieving revision 1.22
diff -u -r1.22 usb_quirks.c
--- sys/dev/usb/usb_quirks.c    14 May 2006 12:00:04 -0000      1.22
+++ sys/dev/usb/usb_quirks.c    31 May 2006 17:56:38 -0000
@@ -128,6 +128,11 @@
  { USB_VENDOR_NEC, USB_PRODUCT_NEC_PICTY920,       ANY,   { UQ_BROKEN_BIDIR }},
  { USB_VENDOR_NEC, USB_PRODUCT_NEC_PICTY800,       ANY,   { UQ_BROKEN_BIDIR }},
  { USB_VENDOR_METAGEEK, USB_PRODUCT_METAGEEK_WISPY, ANY,   { UQ_BAD_HID }},
+ { USB_VENDOR_APC, USB_PRODUCT_APC_UPSPRO500,      ANY,   { UQ_BAD_HID }},
+ { USB_VENDOR_DELORME, USB_PRODUCT_DELORME_EARTHMATE,
+                                                   ANY,   { UQ_BAD_HID }},
+ { USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS1,           ANY,   { UQ_BAD_HID }},
+ { USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS2,           ANY,   { UQ_BAD_HID }},
  { 0, 0, 0, { 0 } }
 };
 
Index: sys/dev/usb/usbdevs
===================================================================
RCS file: /data/cvsroot/OpenBSD/src/sys/dev/usb/usbdevs,v
retrieving revision 1.200
diff -u -r1.200 usbdevs
--- sys/dev/usb/usbdevs 13 May 2006 20:32:52 -0000      1.200
+++ sys/dev/usb/usbdevs 31 May 2006 17:55:36 -0000
@@ -89,6 +89,7 @@
 vendor DIAMOND2                0x045a  Diamond (Supra)
 vendor MICROSOFT       0x045e  Microsoft
 vendor PRIMAX          0x0461  Primax Electronics
+vendor MGE             0x0463  MGE UPS Systems
 vendor AMP             0x0464  AMP
 vendor CHERRY          0x046a  Cherry Mikroschalter
 vendor MEGATRENDS      0x046b  American Megatrends
@@ -1375,6 +1376,10 @@
 
 /* Metricom products */
 product METRICOM RICOCHET_GS   0x0001  Ricochet GS
+
+/* MGE UPS Systems products */
+product MGE UPS1               0x0001  Protection Center 1 UPS
+product MGE UPS2               0xffff  Protection Center 2 UPS
 
 /* Micro Star International products */
 product MSI WLAN               0x1020  WLAN
Index: sys/dev/usb/usbdevs.h
===================================================================
RCS file: /data/cvsroot/OpenBSD/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.204
diff -u -r1.204 usbdevs.h
--- sys/dev/usb/usbdevs.h       13 May 2006 20:33:32 -0000      1.204
+++ sys/dev/usb/usbdevs.h       31 May 2006 17:55:55 -0000
@@ -1,4 +1,4 @@
-/*     $OpenBSD: usbdevs.h,v 1.204 2006/05/13 20:33:32 matthieu Exp $  */
+/*     $OpenBSD$       */
 
 /*
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -96,6 +96,7 @@
 #define        USB_VENDOR_DIAMOND2     0x045a          /* Diamond (Supra) */
 #define        USB_VENDOR_MICROSOFT    0x045e          /* Microsoft */
 #define        USB_VENDOR_PRIMAX       0x0461          /* Primax Electronics */
+#define        USB_VENDOR_MGE  0x0463          /* MGE UPS Systems */
 #define        USB_VENDOR_AMP  0x0464          /* AMP */
 #define        USB_VENDOR_CHERRY       0x046a          /* Cherry Mikroschalter 
*/
 #define        USB_VENDOR_MEGATRENDS   0x046b          /* American Megatrends 
*/
@@ -1382,6 +1383,10 @@
 
 /* Metricom products */
 #define        USB_PRODUCT_METRICOM_RICOCHET_GS        0x0001          /* 
Ricochet GS */
+
+/* MGE UPS Systems products */
+#define        USB_PRODUCT_MGE_UPS1    0x0001          /* Protection Center 1 
UPS */
+#define        USB_PRODUCT_MGE_UPS2    0xffff          /* Protection Center 2 
UPS */
 
 /* Micro Star International products */
 #define        USB_PRODUCT_MSI_WLAN    0x1020          /* WLAN */
Index: sys/dev/usb/usbdevs_data.h
===================================================================
RCS file: /data/cvsroot/OpenBSD/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.204
diff -u -r1.204 usbdevs_data.h
--- sys/dev/usb/usbdevs_data.h  13 May 2006 20:33:32 -0000      1.204
+++ sys/dev/usb/usbdevs_data.h  31 May 2006 17:55:55 -0000
@@ -1,4 +1,4 @@
-/*     $OpenBSD: usbdevs_data.h,v 1.204 2006/05/13 20:33:32 matthieu Exp $     
*/
+/*     $OpenBSD$       */
 
 /*
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -2355,6 +2355,14 @@
            "Ricochet GS",
        },
        {
+           USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS1,
+           "Protection Center 1 UPS",
+       },
+       {
+           USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS2,
+           "Protection Center 2 UPS",
+       },
+       {
            USB_VENDOR_MSI, USB_PRODUCT_MSI_WLAN,
            "WLAN",
        },
@@ -4137,6 +4145,10 @@
        {
            USB_VENDOR_PRIMAX,
            "Primax Electronics",
+       },
+       {
+           USB_VENDOR_MGE,
+           "MGE UPS Systems",
        },
        {
            USB_VENDOR_AMP,

Reply via email to