6 typedef struct PPCE500MachineState
{
8 MachineState parent_obj
;
10 } PPCE500MachineState
;
12 typedef struct PPCE500MachineClass
{
14 MachineClass parent_class
;
16 /* required -- must at least add toplevel board compatible */
17 void (*fixup_devtree
)(void *fdt
);
23 bool has_mpc8xxx_gpio
;
24 bool has_platform_bus
;
25 hwaddr platform_bus_base
;
26 hwaddr platform_bus_size
;
27 int platform_bus_first_irq
;
28 int platform_bus_num_irqs
;
32 hwaddr pci_mmio_bus_base
;
34 } PPCE500MachineClass
;
36 void ppce500_init(MachineState
*machine
);
38 hwaddr
booke206_page_size_to_tlb(uint64_t size
);
40 #define TYPE_PPCE500_MACHINE "ppce500-base-machine"
41 #define PPCE500_MACHINE(obj) \
42 OBJECT_CHECK(PPCE500MachineState, (obj), TYPE_PPCE500_MACHINE)
43 #define PPCE500_MACHINE_GET_CLASS(obj) \
44 OBJECT_GET_CLASS(PPCE500MachineClass, obj, TYPE_PPCE500_MACHINE)
45 #define PPCE500_MACHINE_CLASS(klass) \
46 OBJECT_CLASS_CHECK(PPCE500MachineClass, klass, TYPE_PPCE500_MACHINE)