diff options
author | Andreas Färber <afaerber@suse.de> | 2013-02-01 00:13:41 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2013-02-01 00:13:41 +0100 |
commit | 6b2578d678497dbce44ed7999d269fc973ae6e8f (patch) | |
tree | a3a036444eb8c52c19c7a37b9f4e958eea446be6 /hw/ide.h | |
parent | e62a214cd49f836339fe3fd8126fc81d66c3c917 (diff) |
ide/mmio: QOM'ify MMIO IDE for R2D
It was not qdev'ified before, so turn it into a SysBusDevice.
Keep mmio_ide_init_drives() around to attach the hard drive.
Signed-off-by: Andreas Färberr <afaerber@suse.de>
Cc: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/ide.h')
-rw-r--r-- | hw/ide.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -20,10 +20,7 @@ PCIDevice *pci_piix4_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn); void vt82c686b_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn); /* ide-mmio.c */ -void mmio_ide_init (hwaddr membase, hwaddr membase2, - MemoryRegion *address_space, - qemu_irq irq, int shift, - DriveInfo *hd0, DriveInfo *hd1); +void mmio_ide_init_drives(DeviceState *dev, DriveInfo *hd0, DriveInfo *hd1); int ide_get_geometry(BusState *bus, int unit, int16_t *cyls, int8_t *heads, int8_t *secs); |