static void pci_bus_init(PCIBus *bus, DeviceState *parent,

                         const char *name,

                         MemoryRegion *address_space_mem,

                         MemoryRegion *address_space_io,

                         uint8_t devfn_min)

{

    assert(PCI_FUNC(devfn_min) == 0);

    bus->devfn_min = devfn_min;

    bus->address_space_mem = address_space_mem;

    bus->address_space_io = address_space_io;





    memory_region_init_io(&bus->master_abort_mem, OBJECT(bus),

                          &master_abort_mem_ops, bus, "pci-master-abort",

                          memory_region_size(bus->address_space_mem));

    memory_region_add_subregion_overlap(bus->address_space_mem,

                                        0, &bus->master_abort_mem,

                                        MASTER_ABORT_MEM_PRIORITY);



    /* host bridge */

    QLIST_INIT(&bus->child);



    pci_host_bus_register(bus, parent);



    vmstate_register(NULL, -1, &vmstate_pcibus, bus);

}

static void pci_bus_init(PCIBus *bus, DeviceState *parent,

                         const char *name,

                         MemoryRegion *address_space_mem,

                         MemoryRegion *address_space_io,

                         uint8_t devfn_min)

{

    assert(PCI_FUNC(devfn_min) == 0);

    bus->devfn_min = devfn_min;

    bus->address_space_mem = address_space_mem;

    bus->address_space_io = address_space_io;





    memory_region_init_io(&bus->master_abort_mem, OBJECT(bus),

                          &master_abort_mem_ops, bus, "pci-master-abort",

                          memory_region_size(bus->address_space_mem));

    memory_region_add_subregion_overlap(bus->address_space_mem,

                                        0, &bus->master_abort_mem,

                                        MASTER_ABORT_MEM_PRIORITY);



    

    QLIST_INIT(&bus->child);



    pci_host_bus_register(bus, parent);



    vmstate_register(NULL, -1, &vmstate_pcibus, bus);

}

    memory_region_init_io(&bus->master_abort_mem, OBJECT(bus),                           &master_abort_mem_ops, bus, "pci-master-abort",                           memory_region_size(bus->address_space_mem));     memory_region_add_subregion_overlap(bus->address_space_mem,                                         0, &bus->master_abort_mem,                                         MASTER_ABORT_MEM_PRIORITY);
static void FUNC_0(PCIBus *VAR_0, DeviceState *VAR_1,

                         const char *VAR_2,

                         MemoryRegion *VAR_3,

                         MemoryRegion *VAR_4,

                         uint8_t VAR_5)

{

    assert(PCI_FUNC(VAR_5) == 0);

    VAR_0->VAR_5 = VAR_5;

    VAR_0->VAR_3 = VAR_3;

    VAR_0->VAR_4 = VAR_4;





    memory_region_init_io(&VAR_0->master_abort_mem, OBJECT(VAR_0),

                          &master_abort_mem_ops, VAR_0, "pci-master-abort",

                          memory_region_size(VAR_0->VAR_3));

    memory_region_add_subregion_overlap(VAR_0->VAR_3,

                                        0, &VAR_0->master_abort_mem,

                                        MASTER_ABORT_MEM_PRIORITY);



    

    QLIST_INIT(&VAR_0->child);



    pci_host_bus_register(VAR_0, VAR_1);



    vmstate_register(NULL, -1, &vmstate_pcibus, VAR_0);

}

static void FUNC_0(PCIBus *VAR_0, DeviceState *VAR_1,
const char *VAR_2,
MemoryRegion *VAR_3,
MemoryRegion *VAR_4,
uint8_t VAR_5)
{ assert(PCI_FUNC(VAR_5) == 0); VAR_0->VAR_5 = VAR_5; VAR_0->VAR_3 = VAR_3; VAR_0->VAR_4 = VAR_4; memory_region_init_io(&VAR_0->master_abort_mem, OBJECT(VAR_0),
&master_abort_mem_ops, VAR_0, "pci-master-abort",
memory_region_size(VAR_0->VAR_3)); memory_region_add_subregion_overlap(VAR_0->VAR_3,
0, &VAR_0->master_abort_mem,
MASTER_ABORT_MEM_PRIORITY); QLIST_INIT(&VAR_0->child); pci_host_bus_register(VAR_0, VAR_1); vmstate_register(NULL, -1, &vmstate_pcibus, VAR_0); }