Johannes Erdfelt wrote:
> >
> > On Thu, Feb 21, 2002, Sebastien Lelarge <[EMAIL PROTECTED]> wrote:
> > > I'm trying to poll a keyboard with interrupts disabled. This is for
> > > using an USB Keyboard in a debugger (INTs are disabled in order to do
> > > not disturb the CPU when debugging). I've tried to poll the USBINT bit
> > > in the UHCI Status register but a keystroke doesn't set this bit. Is
> > > this possible to poll the status and conclude that a data is present ?
> > > And when that occures, how to fetch the data from the host controller ?
> >
> > It should set USBINT if the TD finishes.
> >
> > Did you take one of the Linux drivers and modify it? If so, which one?
> >
 
For now, I'm trying to decode the usb-uhci.[hc] code. In the alloc_uhci
routine, the driver request an IRQ and then use this line of IRQ for all
the attached devices, isn't it ? Maybe is this possible to disable this
interrupt and make the USB Controller to detect transfer requests
another way.

There is one thing I'm not understanding : what is the link between the
URBs, declared in the drivers (like usbkbd, usbmouse, ...) and the way
they are processed. How does the UHCI detect that a device has a
request, and how does it know how to build the good queue or chain. I
have the UHCI Design Guide, it gives good explanations but there is a
shadow between the Hardware layer and the Software layer... Can you help
me with some good links, or explanations ?

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to