static void openrisc_sim_net_init(MemoryRegion *address_space,

                                  hwaddr base,

                                  hwaddr descriptors,

                                  qemu_irq irq, NICInfo *nd)

{

    DeviceState *dev;

    SysBusDevice *s;



    dev = qdev_create(NULL, "open_eth");

    qdev_set_nic_properties(dev, nd);

    qdev_init_nofail(dev);



    s = SYS_BUS_DEVICE(dev);

    sysbus_connect_irq(s, 0, irq);

    memory_region_add_subregion(address_space, base,

                                sysbus_mmio_get_region(s, 0));

    memory_region_add_subregion(address_space, descriptors,

                                sysbus_mmio_get_region(s, 1));

}

static void openrisc_sim_net_init(MemoryRegion *address_space,

                                  hwaddr base,

                                  hwaddr descriptors,

                                  qemu_irq irq, NICInfo *nd)

{

    DeviceState *dev;

    SysBusDevice *s;



    dev = qdev_create(NULL, "open_eth");

    qdev_set_nic_properties(dev, nd);

    qdev_init_nofail(dev);



    s = SYS_BUS_DEVICE(dev);

    sysbus_connect_irq(s, 0, irq);

    memory_region_add_subregion(address_space, base,

                                sysbus_mmio_get_region(s, 0));

    memory_region_add_subregion(address_space, descriptors,

                                sysbus_mmio_get_region(s, 1));

}

static void FUNC_0(MemoryRegion *VAR_0,

                                  hwaddr VAR_1,

                                  hwaddr VAR_2,

                                  qemu_irq VAR_3, NICInfo *VAR_4)

{

    DeviceState *dev;

    SysBusDevice *s;



    dev = qdev_create(NULL, "open_eth");

    qdev_set_nic_properties(dev, VAR_4);

    qdev_init_nofail(dev);



    s = SYS_BUS_DEVICE(dev);

    sysbus_connect_irq(s, 0, VAR_3);

    memory_region_add_subregion(VAR_0, VAR_1,

                                sysbus_mmio_get_region(s, 0));

    memory_region_add_subregion(VAR_0, VAR_2,

                                sysbus_mmio_get_region(s, 1));

}

static void FUNC_0(MemoryRegion *VAR_0,
hwaddr VAR_1,
hwaddr VAR_2,
qemu_irq VAR_3, NICInfo *VAR_4)
{ DeviceState *dev; SysBusDevice *s; dev = qdev_create(NULL, "open_eth"); qdev_set_nic_properties(dev, VAR_4); qdev_init_nofail(dev); s = SYS_BUS_DEVICE(dev); sysbus_connect_irq(s, 0, VAR_3); memory_region_add_subregion(VAR_0, VAR_1,
sysbus_mmio_get_region(s, 0)); memory_region_add_subregion(VAR_0, VAR_2,
sysbus_mmio_get_region(s, 1)); }