summaryrefslogtreecommitdiff
path: root/hw/ppc/e500.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2014-07-01 16:27:09 +0200
committerAlexander Graf <agraf@suse.de>2014-11-04 23:26:14 +0100
commitf70873438d40ccda3d1614ec18a141aad5da2778 (patch)
tree6ca9129c3c51f6021956bfc0038c599ad5e7404f /hw/ppc/e500.h
parent7634fe3c273ca2f2eb992b3b6bb7796b85558377 (diff)
downloadqemu-f70873438d40ccda3d1614ec18a141aad5da2778.tar.gz
PPC: e500: Support dynamically spawned sysbus devices
For e500 our approach to supporting dynamically spawned sysbus devices is to create a simple bus from the guest's point of view within which we map those devices dynamically. We allocate memory regions always within the "platform" hole in address space and map IRQs to predetermined IRQ lines that are reserved for platform device usage. This maps really nicely into device tree logic, so we can just tell the guest about our virtual simple bus in device tree as well. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc/e500.h')
-rw-r--r--hw/ppc/e500.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/ppc/e500.h b/hw/ppc/e500.h
index 83c5b8bf0f..9f61ab2b1c 100644
--- a/hw/ppc/e500.h
+++ b/hw/ppc/e500.h
@@ -12,6 +12,11 @@ typedef struct PPCE500Params {
int mpic_version;
bool has_mpc8xxx_gpio;
+ bool has_platform_bus;
+ hwaddr platform_bus_base;
+ hwaddr platform_bus_size;
+ int platform_bus_first_irq;
+ int platform_bus_num_irqs;
} PPCE500Params;
void ppce500_init(MachineState *machine, PPCE500Params *params);