Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Add a fix to turn on the Hosiden ParaParaParadid...



details:   https://anonhg.NetBSD.org/src/rev/163dfaab3bdb
branches:  trunk
changeset: 582160:163dfaab3bdb
user:      augustss <augustss%NetBSD.org@localhost>
date:      Sun Jun 19 10:29:47 2005 +0000

description:
Add a fix to turn on the Hosiden ParaParaParadide controller.  From
Sergey Svishchev in kern/30554.

diffstat:

 sys/dev/usb/uhidev.c |  17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r 21eeef33a34a -r 163dfaab3bdb sys/dev/usb/uhidev.c
--- a/sys/dev/usb/uhidev.c      Sun Jun 19 10:26:36 2005 +0000
+++ b/sys/dev/usb/uhidev.c      Sun Jun 19 10:29:47 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhidev.c,v 1.26 2005/05/11 10:02:28 augustss Exp $     */
+/*     $NetBSD: uhidev.c,v 1.27 2005/06/19 10:29:47 augustss Exp $     */
 
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhidev.c,v 1.26 2005/05/11 10:02:28 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhidev.c,v 1.27 2005/06/19 10:29:47 augustss Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -230,6 +230,19 @@
                USB_ATTACH_ERROR_RETURN;
        }
 
+       if (uaa->vendor == USB_VENDOR_HOSIDEN && 
+           uaa->product == USB_PRODUCT_HOSIDEN_PPP) {
+               static uByte reportbuf[] = { 1 };
+               /*
+                *  This device was sold by Konami with its ParaParaParadise 
+                *  game for PlayStation2.  It needs to be "turned on"
+                *  before it will send any reports.
+                */
+
+               usbd_set_report(uaa->iface, UHID_FEATURE_REPORT, 0,
+                   &reportbuf, sizeof reportbuf);
+       }
+
        sc->sc_repdesc = desc;
        sc->sc_repdesc_size = size;
 



Home | Main Index | Thread Index | Old Index