qemu

FORK: QEMU emulator
git clone https://git.neptards.moe/neptards/qemu.git
Log | Files | Refs | Submodules | LICENSE

e500.h (1114B)


      1 #ifndef PPCE500_H
      2 #define PPCE500_H
      3 
      4 #include "hw/boards.h"
      5 #include "hw/platform-bus.h"
      6 #include "qom/object.h"
      7 
      8 struct PPCE500MachineState {
      9     /*< private >*/
     10     MachineState parent_obj;
     11 
     12     /* points to instance of TYPE_PLATFORM_BUS_DEVICE if
     13      * board supports dynamic sysbus devices
     14      */
     15     PlatformBusDevice *pbus_dev;
     16 };
     17 
     18 struct PPCE500MachineClass {
     19     /*< private >*/
     20     MachineClass parent_class;
     21 
     22     /* required -- must at least add toplevel board compatible */
     23     void (*fixup_devtree)(void *fdt);
     24 
     25     int pci_first_slot;
     26     int pci_nr_slots;
     27 
     28     int mpic_version;
     29     bool has_mpc8xxx_gpio;
     30     hwaddr platform_bus_base;
     31     hwaddr platform_bus_size;
     32     int platform_bus_first_irq;
     33     int platform_bus_num_irqs;
     34     hwaddr ccsrbar_base;
     35     hwaddr pci_pio_base;
     36     hwaddr pci_mmio_base;
     37     hwaddr pci_mmio_bus_base;
     38     hwaddr spin_base;
     39 };
     40 
     41 void ppce500_init(MachineState *machine);
     42 
     43 hwaddr booke206_page_size_to_tlb(uint64_t size);
     44 
     45 #define TYPE_PPCE500_MACHINE      "ppce500-base-machine"
     46 OBJECT_DECLARE_TYPE(PPCE500MachineState, PPCE500MachineClass, PPCE500_MACHINE)
     47 
     48 #endif