Re: OHCI/usb pass through

2021-10-01 Thread Gerd Hoffmann
Hi, > > > We can get the endpoint from a packet and from ohci so > > > I wonder if we can get the active packet from ep->queue (and how to do > > > that) > > > > I think ohci never looks beyond the active td so there should never be > > more than one packet on the list. > > OK, how to get

Re: OHCI/usb pass through

2021-10-01 Thread BALATON Zoltan
Hello, On Fri, 1 Oct 2021, Gerd Hoffmann wrote: [...] /* Active packets. */ uint32_t old_ctl; USBPacket usb_packet; uint8_t usb_buf[8192]; uint32_t async_td; bool async_complete; void (*ohci_die)(struct OHCIState *ohci); } OHCIState; Then everything in hcd-ohci

Re: OHCI/usb pass through

2021-09-30 Thread Gerd Hoffmann
Hi, > [...] > /* Active packets. */ > uint32_t old_ctl; > USBPacket usb_packet; > uint8_t usb_buf[8192]; > uint32_t async_td; > bool async_complete; > > void (*ohci_die)(struct OHCIState *ohci); > } OHCIState; > > Then everything in hcd-ohci seems to reuse

OHCI/usb pass through

2021-09-30 Thread BALATON Zoltan
Hello, We're trying to find out why passing through an usb sound card fails with MacOS/OS X on mac99 and came across some things in OHCI that I don't understand so some help from those who know more about USB handling in QEMU or OHCI would be needed. From traces Howard collected we see that