From owner-freebsd-usb@FreeBSD.ORG Sun Nov 24 08:30:06 2013 Return-Path: Delivered-To: freebsd-usb@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 ESMTPS id E12C4EF9 for ; Sun, 24 Nov 2013 08:30:06 +0000 (UTC) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.203]) by mx1.freebsd.org (Postfix) with ESMTP id A19EC25D9 for ; Sun, 24 Nov 2013 08:30:06 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTPS id 71D2A100298; Sun, 24 Nov 2013 09:29:58 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 48FC78EF745; Sun, 24 Nov 2013 09:30:33 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gjNtPCTa7YRt; Sun, 24 Nov 2013 09:30:32 +0100 (CET) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 809128EEF4D; Sun, 24 Nov 2013 09:30:32 +0100 (CET) Message-ID: <5291B94B.1050905@bitfrost.no> Date: Sun, 24 Nov 2013 09:31:07 +0100 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Chuck Burns , erazor_de@users.sourceforge.net, freebsd-usb@freebsd.org Subject: Re: Question about usb-hid development References: <1385218126.3605.25.camel@neuromancer.tessier-ashpool> <2893309.GTtavP7479@blackbeast.local> In-Reply-To: <2893309.GTtavP7479@blackbeast.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Nov 2013 08:30:06 -0000 On 11/23/13 23:35, Chuck Burns wrote: > On Saturday, November 23, 2013 3:48:46 PM Stefan Achatz wrote: >> Hello, >> I'm writing Linux support for gaming USB keyboards/mice and think > about >> porting functionality to FreeBSD. >> While I'm installing FreeBSD and strolling through the source fighting >> with the differences to Linux, maybe someone could give me a starting >> point: >> In Linux there is a hidraw chardevice from which the unparsed, polled >> reports can be read, and that supports ioctl's to read/write feature >> reports. >> Is there something similar in FreeBSD? >> Thanks and have a nice day >> Stefan > > > Two words for you. "man ugen" it's the generic USB driver. > Hi, If you want a 100% cross platform driver, use libusb for your HID access. Else there is also /usr/ports/multimedia/webcamd, which might attach to your joystick and provide a similar device like under Linux. --HPS