void empty_slot_init(target_phys_addr_t addr, uint64_t slot_size)

{

    if (slot_size > 0) {

        /* Only empty slots larger than 0 byte need handling. */

        DeviceState *dev;

        SysBusDevice *s;

        EmptySlot *e;



        dev = qdev_create(NULL, "empty_slot");

        s = sysbus_from_qdev(dev);

        e = FROM_SYSBUS(EmptySlot, s);

        e->size = slot_size;



        qdev_init_nofail(dev);



        sysbus_mmio_map(s, 0, addr);

    }

}

void empty_slot_init(target_phys_addr_t addr, uint64_t slot_size)

{

    if (slot_size > 0) {

        

        DeviceState *dev;

        SysBusDevice *s;

        EmptySlot *e;



        dev = qdev_create(NULL, "empty_slot");

        s = sysbus_from_qdev(dev);

        e = FROM_SYSBUS(EmptySlot, s);

        e->size = slot_size;



        qdev_init_nofail(dev);



        sysbus_mmio_map(s, 0, addr);

    }

}

void FUNC_0(target_phys_addr_t VAR_0, uint64_t VAR_1)

{

    if (VAR_1 > 0) {

        

        DeviceState *dev;

        SysBusDevice *s;

        EmptySlot *e;



        dev = qdev_create(NULL, "empty_slot");

        s = sysbus_from_qdev(dev);

        e = FROM_SYSBUS(EmptySlot, s);

        e->size = VAR_1;



        qdev_init_nofail(dev);



        sysbus_mmio_map(s, 0, VAR_0);

    }

}

void FUNC_0(target_phys_addr_t VAR_0, uint64_t VAR_1)
{ if (VAR_1 > 0) { DeviceState *dev; SysBusDevice *s; EmptySlot *e; dev = qdev_create(NULL, "empty_slot"); s = sysbus_from_qdev(dev); e = FROM_SYSBUS(EmptySlot, s); e->size = VAR_1; qdev_init_nofail(dev); sysbus_mmio_map(s, 0, VAR_0); } }