aboutsummaryrefslogtreecommitdiff
path: root/hw/ide.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-02-01 00:13:41 +0100
committerAurelien Jarno <aurelien@aurel32.net>2013-02-01 00:13:41 +0100
commit6b2578d678497dbce44ed7999d269fc973ae6e8f (patch)
treea3a036444eb8c52c19c7a37b9f4e958eea446be6 /hw/ide.h
parente62a214cd49f836339fe3fd8126fc81d66c3c917 (diff)
downloadqemu-6b2578d678497dbce44ed7999d269fc973ae6e8f.zip
qemu-6b2578d678497dbce44ed7999d269fc973ae6e8f.tar.gz
qemu-6b2578d678497dbce44ed7999d269fc973ae6e8f.tar.bz2
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.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/ide.h b/hw/ide.h
index 9b357c0..0eb3a74 100644
--- a/hw/ide.h
+++ b/hw/ide.h
@@ -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);