From owner-freebsd-usb@FreeBSD.ORG Mon Jul 29 12:00:02 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 696A0AD1 for ; Mon, 29 Jul 2013 12:00:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3F34021E0 for ; Mon, 29 Jul 2013 12:00:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6TC01jL074385 for ; Mon, 29 Jul 2013 12:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6TC01bu074383; Mon, 29 Jul 2013 12:00:01 GMT (envelope-from gnats) Date: Mon, 29 Jul 2013 12:00:01 GMT Message-Id: <201307291200.r6TC01bu074383@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/180923: SNES USB gamepad controller does not work. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jul 2013 12:00:02 -0000 The following reply was made to PR usb/180923; it has been noted by GNATS. From: Hans Petter Selasky To: Michael Terrell Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: usb/180923: SNES USB gamepad controller does not work. Date: Mon, 29 Jul 2013 14:01:16 +0200 On 07/29/13 13:39, Michael Terrell wrote: > >> Number: 180923 >> Category: usb >> Synopsis: SNES USB gamepad controller does not work. >> Confidential: no >> Severity: non-critical >> Priority: low >> Responsible: freebsd-usb >> State: open >> Quarter: >> Keywords: >> Date-Required: >> Class: sw-bug >> Submitter-Id: current-users >> Arrival-Date: Mon Jul 29 11:40:00 UTC 2013 >> Closed-Date: >> Last-Modified: >> Originator: Michael Terrell >> Release: FreeBSD 9.1 >> Organization: > Jackson State University >> Environment: > FreeBSD subzero 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec 4 06:55:39 UTC 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > >> Description: > I have a DragonRise SNES USB gamepad controller(VendorID= 0x0079; ProductID= 0x0011) and it doesn't work out of the box for FreeBSD. I created a device driver for it and it works fine now. >> How-To-Repeat: > Boot up a system running FreeBSD 9.1. Plug in the SNES USB gamepad into an available USB port on the system. The system will not be able to recognize the controller and the user will not be able to use it with user applications. >> Fix: > Create a device driver to recognize the device and allow user applications to access it. The code for the driver is here: > https://github.com/lispandtrees/dragon_rise_driver > >> Release-Note: >> Audit-Trail: >> Unformatted: Hi, If you work a bit more on the code, it can be included into the FreeBSD base system. 1) .basename[0] = "uhid" You will need to call this something else, like "uhid.snes". 2) Remove structure elements from "snes_usb_softc" which are not used. 3) Add FreeBSD 2-clause copyright to C- and H- files. 4) Are you aware about similar projects like uhidd and webcamd which might already support your device? Thank you! --HPS