2012-07-02 17:03:20 +04:00
|
|
|
#ifndef PPCE500_H
|
|
|
|
#define PPCE500_H
|
|
|
|
|
2013-08-16 15:13:49 +04:00
|
|
|
#include "hw/boards.h"
|
2018-05-10 20:10:56 +03:00
|
|
|
#include "hw/platform-bus.h"
|
2020-09-03 23:43:22 +03:00
|
|
|
#include "qom/object.h"
|
2013-08-16 15:13:49 +04:00
|
|
|
|
2020-09-03 23:43:22 +03:00
|
|
|
struct PPCE500MachineState {
|
2018-04-18 17:28:02 +03:00
|
|
|
/*< private >*/
|
|
|
|
MachineState parent_obj;
|
|
|
|
|
2018-05-10 20:10:56 +03:00
|
|
|
/* points to instance of TYPE_PLATFORM_BUS_DEVICE if
|
|
|
|
* board supports dynamic sysbus devices
|
|
|
|
*/
|
|
|
|
PlatformBusDevice *pbus_dev;
|
2020-09-03 23:43:22 +03:00
|
|
|
};
|
2018-04-18 17:28:02 +03:00
|
|
|
|
2020-09-03 23:43:22 +03:00
|
|
|
struct PPCE500MachineClass {
|
2018-04-18 17:28:02 +03:00
|
|
|
/*< private >*/
|
|
|
|
MachineClass parent_class;
|
2012-07-02 17:03:20 +04:00
|
|
|
|
|
|
|
/* required -- must at least add toplevel board compatible */
|
2018-04-18 17:28:02 +03:00
|
|
|
void (*fixup_devtree)(void *fdt);
|
|
|
|
|
|
|
|
int pci_first_slot;
|
|
|
|
int pci_nr_slots;
|
2013-01-21 19:53:55 +04:00
|
|
|
|
|
|
|
int mpic_version;
|
2014-10-01 18:00:49 +04:00
|
|
|
bool has_mpc8xxx_gpio;
|
2022-11-02 01:29:34 +03:00
|
|
|
bool has_esdhc;
|
2014-07-01 18:27:09 +04:00
|
|
|
hwaddr platform_bus_base;
|
|
|
|
hwaddr platform_bus_size;
|
|
|
|
int platform_bus_first_irq;
|
|
|
|
int platform_bus_num_irqs;
|
2014-11-07 18:50:44 +03:00
|
|
|
hwaddr ccsrbar_base;
|
|
|
|
hwaddr pci_pio_base;
|
2014-11-13 00:44:52 +03:00
|
|
|
hwaddr pci_mmio_base;
|
|
|
|
hwaddr pci_mmio_bus_base;
|
2014-11-07 18:50:44 +03:00
|
|
|
hwaddr spin_base;
|
2020-09-03 23:43:22 +03:00
|
|
|
};
|
2012-07-02 17:03:20 +04:00
|
|
|
|
2018-04-18 17:28:02 +03:00
|
|
|
void ppce500_init(MachineState *machine);
|
2012-07-02 17:03:20 +04:00
|
|
|
|
2016-06-28 16:50:05 +03:00
|
|
|
hwaddr booke206_page_size_to_tlb(uint64_t size);
|
|
|
|
|
2018-04-18 17:28:02 +03:00
|
|
|
#define TYPE_PPCE500_MACHINE "ppce500-base-machine"
|
2020-09-16 21:25:18 +03:00
|
|
|
OBJECT_DECLARE_TYPE(PPCE500MachineState, PPCE500MachineClass, PPCE500_MACHINE)
|
2018-04-18 17:28:02 +03:00
|
|
|
|
2012-07-02 17:03:20 +04:00
|
|
|
#endif
|