static int ssi_slave_init(DeviceState *dev, DeviceInfo *base_info)

{

    SSISlaveInfo *info = container_of(base_info, SSISlaveInfo, qdev);

    SSISlave *s = SSI_SLAVE_FROM_QDEV(dev);

    SSIBus *bus;



    bus = FROM_QBUS(SSIBus, qdev_get_parent_bus(dev));

    if (LIST_FIRST(&bus->qbus.children) != dev

        || LIST_NEXT(dev, sibling) != NULL) {

        hw_error("Too many devices on SSI bus");

    }



    s->info = info;

    return info->init(s);

}

static int ssi_slave_init(DeviceState *dev, DeviceInfo *base_info)

{

    SSISlaveInfo *info = container_of(base_info, SSISlaveInfo, qdev);

    SSISlave *s = SSI_SLAVE_FROM_QDEV(dev);

    SSIBus *bus;



    bus = FROM_QBUS(SSIBus, qdev_get_parent_bus(dev));

    if (LIST_FIRST(&bus->qbus.children) != dev

        || LIST_NEXT(dev, sibling) != NULL) {

        hw_error("Too many devices on SSI bus");

    }



    s->info = info;

    return info->init(s);

}

static int FUNC_0(DeviceState *VAR_0, DeviceInfo *VAR_1)

{

    SSISlaveInfo *info = container_of(VAR_1, SSISlaveInfo, qdev);

    SSISlave *s = SSI_SLAVE_FROM_QDEV(VAR_0);

    SSIBus *bus;



    bus = FROM_QBUS(SSIBus, qdev_get_parent_bus(VAR_0));

    if (LIST_FIRST(&bus->qbus.children) != VAR_0

        || LIST_NEXT(VAR_0, sibling) != NULL) {

        hw_error("Too many devices on SSI bus");

    }



    s->info = info;

    return info->init(s);

}

static int FUNC_0(DeviceState *VAR_0, DeviceInfo *VAR_1)
{ SSISlaveInfo *info = container_of(VAR_1, SSISlaveInfo, qdev); SSISlave *s = SSI_SLAVE_FROM_QDEV(VAR_0); SSIBus *bus; bus = FROM_QBUS(SSIBus, qdev_get_parent_bus(VAR_0)); if (LIST_FIRST(&bus->qbus.children) != VAR_0
|| LIST_NEXT(VAR_0, sibling) != NULL) { hw_error("Too many devices on SSI bus"); } s->info = info; return info->init(s); }