mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
usb/hcd-ehci: Split off instance_init from realize
This makes the mem MemoryRegion available to derived instance_inits. Keep the bus in realize for now since naming breaks in instance_init. Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
08f4c90b28
commit
d4614cc312
4 changed files with 44 additions and 20 deletions
|
@ -322,6 +322,7 @@ struct EHCIState {
|
|||
|
||||
extern const VMStateDescription vmstate_ehci;
|
||||
|
||||
void usb_ehci_init(EHCIState *s, DeviceState *dev);
|
||||
void usb_ehci_realize(EHCIState *s, DeviceState *dev, Error **errp);
|
||||
|
||||
#define TYPE_PCI_EHCI "pci-ehci-usb"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue