xref: /openbmc/qemu/hw/ppc/e500.h (revision 77a8257e)
1 #ifndef PPCE500_H
2 #define PPCE500_H
3 
4 #include "hw/boards.h"
5 
6 typedef struct PPCE500Params {
7     int pci_first_slot;
8     int pci_nr_slots;
9 
10     /* required -- must at least add toplevel board compatible */
11     void (*fixup_devtree)(struct PPCE500Params *params, void *fdt);
12 
13     int mpic_version;
14     bool has_mpc8xxx_gpio;
15     bool has_platform_bus;
16     hwaddr platform_bus_base;
17     hwaddr platform_bus_size;
18     int platform_bus_first_irq;
19     int platform_bus_num_irqs;
20     hwaddr ccsrbar_base;
21     hwaddr pci_pio_base;
22     hwaddr pci_mmio_base;
23     hwaddr pci_mmio_bus_base;
24     hwaddr spin_base;
25 } PPCE500Params;
26 
27 void ppce500_init(MachineState *machine, PPCE500Params *params);
28 
29 #endif
30