void spapr_create_phb(sPAPREnvironment *spapr,

                      const char *busname, uint64_t buid,

                      uint64_t mem_win_addr, uint64_t mem_win_size,

                      uint64_t io_win_addr, uint64_t msi_win_addr)

{

    DeviceState *dev;



    dev = qdev_create(NULL, TYPE_SPAPR_PCI_HOST_BRIDGE);



    if (busname) {

        qdev_prop_set_string(dev, "busname", g_strdup(busname));

    }

    qdev_prop_set_uint64(dev, "buid", buid);

    qdev_prop_set_uint64(dev, "mem_win_addr", mem_win_addr);

    qdev_prop_set_uint64(dev, "mem_win_size", mem_win_size);

    qdev_prop_set_uint64(dev, "io_win_addr", io_win_addr);

    qdev_prop_set_uint64(dev, "msi_win_addr", msi_win_addr);



    qdev_init_nofail(dev);

}

void spapr_create_phb(sPAPREnvironment *spapr,

                      const char *busname, uint64_t buid,

                      uint64_t mem_win_addr, uint64_t mem_win_size,

                      uint64_t io_win_addr, uint64_t msi_win_addr)

{

    DeviceState *dev;



    dev = qdev_create(NULL, TYPE_SPAPR_PCI_HOST_BRIDGE);



    if (busname) {

        qdev_prop_set_string(dev, "busname", g_strdup(busname));

    }

    qdev_prop_set_uint64(dev, "buid", buid);

    qdev_prop_set_uint64(dev, "mem_win_addr", mem_win_addr);

    qdev_prop_set_uint64(dev, "mem_win_size", mem_win_size);

    qdev_prop_set_uint64(dev, "io_win_addr", io_win_addr);

    qdev_prop_set_uint64(dev, "msi_win_addr", msi_win_addr);



    qdev_init_nofail(dev);

}

void spapr_create_phb(sPAPREnvironment *spapr,                       const char *busname, uint64_t buid,                       uint64_t mem_win_addr, uint64_t mem_win_size,                       uint64_t io_win_addr, uint64_t msi_win_addr)     if (busname) {         qdev_prop_set_string(dev, "busname", g_strdup(busname));     qdev_prop_set_uint64(dev, "buid", buid);     qdev_prop_set_uint64(dev, "mem_win_addr", mem_win_addr);     qdev_prop_set_uint64(dev, "mem_win_size", mem_win_size);     qdev_prop_set_uint64(dev, "io_win_addr", io_win_addr);     qdev_prop_set_uint64(dev, "msi_win_addr", msi_win_addr); void spapr_create_phb(sPAPREnvironment *spapr,                       const char *busname, uint64_t buid,                       uint64_t mem_win_addr, uint64_t mem_win_size,
void FUNC_0(sPAPREnvironment *VAR_0,

                      const char *VAR_1, uint64_t VAR_2,

                      uint64_t VAR_3, uint64_t VAR_4,

                      uint64_t VAR_5, uint64_t VAR_6)

{

    DeviceState *dev;



    dev = qdev_create(NULL, TYPE_SPAPR_PCI_HOST_BRIDGE);



    if (VAR_1) {

        qdev_prop_set_string(dev, "VAR_1", g_strdup(VAR_1));

    }

    qdev_prop_set_uint64(dev, "VAR_2", VAR_2);

    qdev_prop_set_uint64(dev, "VAR_3", VAR_3);

    qdev_prop_set_uint64(dev, "VAR_4", VAR_4);

    qdev_prop_set_uint64(dev, "VAR_5", VAR_5);

    qdev_prop_set_uint64(dev, "VAR_6", VAR_6);



    qdev_init_nofail(dev);

}

void FUNC_0(sPAPREnvironment *VAR_0,
const char *VAR_1, uint64_t VAR_2,
uint64_t VAR_3, uint64_t VAR_4,
uint64_t VAR_5, uint64_t VAR_6)
{ DeviceState *dev; dev = qdev_create(NULL, TYPE_SPAPR_PCI_HOST_BRIDGE); if (VAR_1) { qdev_prop_set_string(dev, "VAR_1", g_strdup(VAR_1)); } qdev_prop_set_uint64(dev, "VAR_2", VAR_2); qdev_prop_set_uint64(dev, "VAR_3", VAR_3); qdev_prop_set_uint64(dev, "VAR_4", VAR_4); qdev_prop_set_uint64(dev, "VAR_5", VAR_5); qdev_prop_set_uint64(dev, "VAR_6", VAR_6); qdev_init_nofail(dev); }