From owner-freebsd-usb@FreeBSD.ORG Mon Sep 24 06:03:44 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD21816A418 for ; Mon, 24 Sep 2007 06:03:44 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from pobox.codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 77B1F13C448 for ; Mon, 24 Sep 2007 06:03:43 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Message-ID:MIME-Version:Content-Type:Content-Disposition:Sender:X-Spam-Status:Subject; b=HI2r9qmPf63V9xCGQRKIVflkBPqVpBs9Ia0XlO4kJmJOXpaCTO/VZObzQAU+Bu81tcGflMb/fjOc+8YS98Nq+oiUWtdYxhjIHiGgF9QWLQvOrEhjdIrMKS2eTMKWRuQcW4nJakWcBIT3eyATrgsJC51w2H0G8LXW193DUU6Ppm0=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by pobox.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1IZgkl-000Lzr-Jy; Mon, 24 Sep 2007 09:45:07 +0400 Date: Mon, 24 Sep 2007 09:45:03 +0400 From: Eygene Ryabinkin To: hselasky@c2i.net Message-ID: <20070924054503.GE99140@void.codelabs.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Sender: rea-fbsd@codelabs.ru X-Spam-Status: No, score=-2.0 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_50 Cc: freebsd-usb@freebsd.org Subject: [HPS USB stack] How to read USB events from userland? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Sep 2007 06:03:44 -0000 Hans Petter, list, good day. Had not found the answer by googling, so I have to ask here. How one is supposed to get the access to the USB events from the userland code, provided one is running new usb stack? The reason I am asking is that the port sysutils/hal is trying to access the events via the /dev/usb interface, but it is not present in the new stack. So, the port even not compiles, because things like 'struct usb_event' and macros 'USB_EVENT_*' are non-existent. HAL is the dependency of the xorg-server these days, so I am a bit disappointed that portupgrade does not work for me (since hal port is broken) and am I eager to fix this, if it is possible. Thank you! -- Eygene