8110fa1d94
Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]') Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <20200831210740.126168-12-ehabkost@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <20200831210740.126168-13-ehabkost@redhat.com> Message-Id: <20200831210740.126168-14-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
53 lines
1.3 KiB
C
53 lines
1.3 KiB
C
#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;
|
|
};
|
|
typedef struct PPCE500MachineState PPCE500MachineState;
|
|
|
|
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;
|
|
bool has_platform_bus;
|
|
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;
|
|
};
|
|
typedef struct PPCE500MachineClass PPCE500MachineClass;
|
|
|
|
void ppce500_init(MachineState *machine);
|
|
|
|
hwaddr booke206_page_size_to_tlb(uint64_t size);
|
|
|
|
#define TYPE_PPCE500_MACHINE "ppce500-base-machine"
|
|
DECLARE_OBJ_CHECKERS(PPCE500MachineState, PPCE500MachineClass,
|
|
PPCE500_MACHINE, TYPE_PPCE500_MACHINE)
|
|
|
|
#endif
|