On Wed, Sep 30, 2020 at 11:26:06AM -0400, Kevin O'Connor wrote:
> On Wed, Sep 30, 2020 at 01:14:31PM +0200, Gerd Hoffmann wrote:
> > Add mmio field to usb controller struct, add support for mmio-mapped
> > usb host adapters to boot order handling.
> > 
> > Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
> > ---
> >  src/hw/usb.h |  1 +
> >  src/boot.c   | 10 +++++++++-
> >  2 files changed, 10 insertions(+), 1 deletion(-)
> > 
> > diff --git a/src/hw/usb.h b/src/hw/usb.h
> > index 2cfb5721775a..887f2064cf3a 100644
> > --- a/src/hw/usb.h
> > +++ b/src/hw/usb.h
> > @@ -35,6 +35,7 @@ struct usb_s {
> >      struct usb_pipe *freelist;
> >      struct mutex_s resetlock;
> >      struct pci_device *pci;
> > +    void *mmio;
> >      u8 type;
> >      u8 maxaddr;
> >  };
> > diff --git a/src/boot.c b/src/boot.c
> > index a715e37356e2..bd78fb907c5a 100644
> > --- a/src/boot.c
> > +++ b/src/boot.c
> > @@ -425,7 +425,15 @@ int bootprio_find_usb(struct usbdevice_s *usbdev, int 
> > lun)
> >          return -1;
> >      // Find usb - for example: 
> > /pci@i0cf8/usb@1,2/storage@1/channel@0/disk@0,0
> 
> What does an example usb descriptor look like with mmio?

/sysbus-xhci@00000000fe900000/storage@1/channel@0/disk@0,0

I'll update the comment for v2.

take care,
  Gerd
_______________________________________________
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-le...@seabios.org

Reply via email to