summaryrefslogtreecommitdiffstats
path: root/hw/ppc/e500.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2025-06-06 10:05:23 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2025-06-06 10:05:23 +0000
commit755cc582a2473d06f3a2131d506d0311cc70e9f9 (patch)
tree3efb1ddb8d57bbb4539ac0d229b384871c57820f /hw/ppc/e500.h
parentInitial commit. (diff)
downloadqemu-upstream.tar.xz
qemu-upstream.zip
Adding upstream version 1:7.2+dfsg.upstream/1%7.2+dfsgupstream
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'hw/ppc/e500.h')
-rw-r--r--hw/ppc/e500.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/hw/ppc/e500.h b/hw/ppc/e500.h
new file mode 100644
index 00000000..68f754ce
--- /dev/null
+++ b/hw/ppc/e500.h
@@ -0,0 +1,48 @@
+#ifndef PPCE500_H
+#define PPCE500_H
+
+#include "hw/boards.h"
+#include "hw/platform-bus.h"
+#include "qom/object.h"
+
+struct PPCE500MachineState {
+ /*< private >*/
+ MachineState parent_obj;
+
+ /* points to instance of TYPE_PLATFORM_BUS_DEVICE if
+ * board supports dynamic sysbus devices
+ */
+ PlatformBusDevice *pbus_dev;
+};
+
+struct PPCE500MachineClass {
+ /*< private >*/
+ MachineClass parent_class;
+
+ /* required -- must at least add toplevel board compatible */
+ void (*fixup_devtree)(void *fdt);
+
+ int pci_first_slot;
+ int pci_nr_slots;
+
+ int mpic_version;
+ bool has_mpc8xxx_gpio;
+ hwaddr platform_bus_base;
+ hwaddr platform_bus_size;
+ int platform_bus_first_irq;
+ int platform_bus_num_irqs;
+ hwaddr ccsrbar_base;
+ hwaddr pci_pio_base;
+ hwaddr pci_mmio_base;
+ hwaddr pci_mmio_bus_base;
+ hwaddr spin_base;
+};
+
+void ppce500_init(MachineState *machine);
+
+hwaddr booke206_page_size_to_tlb(uint64_t size);
+
+#define TYPE_PPCE500_MACHINE "ppce500-base-machine"
+OBJECT_DECLARE_TYPE(PPCE500MachineState, PPCE500MachineClass, PPCE500_MACHINE)
+
+#endif