aboutsummaryrefslogtreecommitdiff
path: root/include/hw/isa
diff options
context:
space:
mode:
authorHervé Poussineau <hpoussin@reactos.org>2015-02-01 09:12:50 +0100
committerLeon Alrae <leon.alrae@imgtec.com>2015-02-13 14:09:27 +0000
commitbb2ed009e7e4b278c0234143f6b6c1126f68ba35 (patch)
tree2cb7cb302484dc2ed4a95f511758575b1359dd01 /include/hw/isa
parentcd2d5541271f1934345d8ca42f5fafff1744eee7 (diff)
isa: add memory space parameter to isa_bus_new
Currently, keep current behaviour by always using get_system_memory(). Also use QOM casts when possible. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Diffstat (limited to 'include/hw/isa')
-rw-r--r--include/hw/isa/isa.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/hw/isa/isa.h b/include/hw/isa/isa.h
index e0c749f9e9..c6218224d5 100644
--- a/include/hw/isa/isa.h
+++ b/include/hw/isa/isa.h
@@ -36,6 +36,7 @@ struct ISABus {
BusState parent_obj;
/*< public >*/
+ MemoryRegion *address_space;
MemoryRegion *address_space_io;
qemu_irq *irqs;
};
@@ -50,7 +51,8 @@ struct ISADevice {
int ioport_id;
};
-ISABus *isa_bus_new(DeviceState *dev, MemoryRegion *address_space_io);
+ISABus *isa_bus_new(DeviceState *dev, MemoryRegion *address_space,
+ MemoryRegion *address_space_io);
void isa_bus_irqs(ISABus *bus, qemu_irq *irqs);
qemu_irq isa_get_irq(ISADevice *dev, int isairq);
void isa_init_irq(ISADevice *dev, qemu_irq *p, int isairq);