2012-07-02 13:03:20 +00:00
|
|
|
#ifndef PPCE500_H
|
|
|
|
#define PPCE500_H
|
|
|
|
|
2013-08-16 11:13:49 +00:00
|
|
|
#include "hw/boards.h"
|
|
|
|
|
2012-07-02 13:03:20 +00:00
|
|
|
typedef struct PPCE500Params {
|
2012-12-12 12:53:53 +00:00
|
|
|
int pci_first_slot;
|
|
|
|
int pci_nr_slots;
|
2012-07-02 13:03:20 +00:00
|
|
|
|
|
|
|
/* required -- must at least add toplevel board compatible */
|
|
|
|
void (*fixup_devtree)(struct PPCE500Params *params, void *fdt);
|
2013-01-21 15:53:55 +00:00
|
|
|
|
|
|
|
int mpic_version;
|
2014-10-01 14:00:49 +00:00
|
|
|
bool has_mpc8xxx_gpio;
|
2014-07-01 14:27:09 +00:00
|
|
|
bool has_platform_bus;
|
|
|
|
hwaddr platform_bus_base;
|
|
|
|
hwaddr platform_bus_size;
|
|
|
|
int platform_bus_first_irq;
|
|
|
|
int platform_bus_num_irqs;
|
2014-11-07 15:50:44 +00:00
|
|
|
hwaddr ccsrbar_base;
|
|
|
|
hwaddr pci_pio_base;
|
2014-11-12 21:44:52 +00:00
|
|
|
hwaddr pci_mmio_base;
|
|
|
|
hwaddr pci_mmio_bus_base;
|
2014-11-07 15:50:44 +00:00
|
|
|
hwaddr spin_base;
|
2012-07-02 13:03:20 +00:00
|
|
|
} PPCE500Params;
|
|
|
|
|
2014-05-07 14:42:57 +00:00
|
|
|
void ppce500_init(MachineState *machine, PPCE500Params *params);
|
2012-07-02 13:03:20 +00:00
|
|
|
|
2016-06-28 13:50:05 +00:00
|
|
|
hwaddr booke206_page_size_to_tlb(uint64_t size);
|
|
|
|
|
2012-07-02 13:03:20 +00:00
|
|
|
#endif
|