From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 15 17:02:06 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EFC116A41A for ; Thu, 15 Jun 2006 17:02:06 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9127643D46 for ; Thu, 15 Jun 2006 17:02:05 +0000 (GMT) (envelope-from asmrookie@gmail.com) Received: by wx-out-0102.google.com with SMTP id s17so301362wxc for ; Thu, 15 Jun 2006 10:02:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=XhyeowC6jsFm1smjAMS3A5X333LQ25iOldImSORXpqqw1PcKfHmawbthUNlFJuITZbD4UNXQj69mhEonR5RuIE7we73PAtJV0P4gCECm8dwxJXDRUrRTmUCU/xyw1Xog1202sbjd0PJYzTXVZYp3y9p7aXGKIgfst3o7bgWEwq0= Received: by 10.70.103.16 with SMTP id a16mr2528846wxc; Thu, 15 Jun 2006 10:02:04 -0700 (PDT) Received: by 10.70.11.15 with HTTP; Thu, 15 Jun 2006 10:02:04 -0700 (PDT) Message-ID: <3bbf2fe10606151002k3f0ef021o1361a3cc8f3a469b@mail.gmail.com> Date: Thu, 15 Jun 2006 19:02:04 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "Marcin Cylke" , "Hans Petter Selasky" , freebsd-hackers@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200606151609.35267.hselasky@c2i.net> X-Google-Sender-Auth: f34849b6ef5b559b Cc: Subject: Re: interfacing uhid devs from kernel module X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 17:02:06 -0000 2006/6/15, Marcin Cylke : > On 6/15/06, Hans Petter Selasky wrote: > > > What functions do you need? Have you looked at uhid.c under /sys/dev/usb ? > > I would like to use the whole infrastructure: > struct hid_item > hid_usage_page() > hid_usage_in_page() > hid_init() > hid_get_report_desc() Give a look at USB mouse (ums.c) which give a good overview about HID kernelspace API. However I don't know if Hans has plans to change it in the new stack... Attilio -- Peace can only be achieved by understanding - A. Einstein