From owner-freebsd-current@FreeBSD.ORG Tue Apr 7 06:56:44 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1806106574F for ; Tue, 7 Apr 2009 06:56:44 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 2C09C8FC2A for ; Tue, 7 Apr 2009 06:56:43 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=h3PaVDJQdt8A:10 a=pBoq6-D-7GSPRIL2PyUA:9 a=rUQdPk2bpHRmc4C_ugkA:7 a=uV4crLJfOJqpUwH89D9tW_su_wsA:4 a=50e4U0PicR4A:10 Received: from [193.217.167.6] (account mc467741@c2i.net HELO [10.0.0.188]) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1221422205; Tue, 07 Apr 2009 08:56:42 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Tue, 7 Apr 2009 08:58:26 +0200 User-Agent: KMail/1.9.7 References: <49D99F42.5040104@delphij.net> <3a142e750904061407nc0d24ceme07edfaf4fb3c7a5@mail.gmail.com> <1239052841.1868.3.camel@balrog.2hip.net> In-Reply-To: <1239052841.1868.3.camel@balrog.2hip.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904070858.27259.hselasky@c2i.net> Cc: d@delphij.net, Robert Noland Subject: Re: ddb can't use USB keyboard? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2009 06:56:45 -0000 Hi, The polling error is just there to inform you that USB polling is not supported: void usb2_do_poll(struct usb2_xfer **ppxfer, uint16_t max) { static uint8_t once = 0; /* polling is currently not supported */ if (!once) { once = 1; printf("usb2_do_poll: USB polling is " "not supported!\n"); } } The biggest problem getting polling working is that USB is now multithreaded. But I don't rule out that we could have some special mechanism to get one of the system USB keyboards up in DDB. Secondly, ukbd is Giant locked, and actually DDB calls into the keyboard routines without locking Giant, and that will not work with USB. --HPS