Hi,

> > +            uint32_t irq = VIRTIO_IRQ_BASE + index;
> > +            hwaddr base = VIRTIO_MMIO_BASE + index * 512;
> > +            hwaddr size = 512;
> is it possible to fish these values out from device without poking in its guts
> like using sysbus_get_connected_irq() and make up something to do get mmio 
> parameters from sysbus device

Had a brief look at this while making VIRTIO_IRQ_BASE configurable.
The virtio-mmio proxy gets passed an qemu_irq struct on initialization,
so it doesn't know what the irq number is ...

cheers,
  Gerd


Reply via email to