summaryrefslogtreecommitdiffstats
path: root/hw/ide
diff options
context:
space:
mode:
authorMark Cave-Ayland2018-08-29 18:59:07 +0200
committerDavid Gibson2018-08-30 02:42:18 +0200
commit5c8e3d17eda655ee7644a41cc0df646c7280ab2f (patch)
tree354ce4069e3c567908594ec042b44a8e578b4c4b /hw/ide
parentmacio: add macio bus to help with fw path generation (diff)
downloadqemu-5c8e3d17eda655ee7644a41cc0df646c7280ab2f.tar.gz
qemu-5c8e3d17eda655ee7644a41cc0df646c7280ab2f.tar.xz
qemu-5c8e3d17eda655ee7644a41cc0df646c7280ab2f.zip
macio: add addr property to macio IDE object
This contains the offset of the IDE controller within the macio address space and is required to allow the address to be included within the fw path. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ide')
-rw-r--r--hw/ide/macio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ide/macio.c b/hw/ide/macio.c
index f23961e241..bab8c45a43 100644
--- a/hw/ide/macio.c
+++ b/hw/ide/macio.c
@@ -461,6 +461,7 @@ static void macio_ide_initfn(Object *obj)
static Property macio_ide_properties[] = {
DEFINE_PROP_UINT32("channel", MACIOIDEState, channel, 0),
+ DEFINE_PROP_UINT32("addr", MACIOIDEState, addr, -1),
DEFINE_PROP_END_OF_LIST(),
};