Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Apr 2009 08:58:26 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-current@freebsd.org
Cc:        d@delphij.net, Robert Noland <rnoland@freebsd.org>
Subject:   Re: ddb can't use USB keyboard?
Message-ID:  <200904070858.27259.hselasky@c2i.net>
In-Reply-To: <1239052841.1868.3.camel@balrog.2hip.net>
References:  <49D99F42.5040104@delphij.net> <3a142e750904061407nc0d24ceme07edfaf4fb3c7a5@mail.gmail.com> <1239052841.1868.3.camel@balrog.2hip.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904070858.27259.hselasky>