void stellaris_enet_init(NICInfo *nd, uint32_t base, qemu_irq irq)

{

    stellaris_enet_state *s;

    int iomemtype;



    qemu_check_nic_model(nd, "stellaris");



    s = (stellaris_enet_state *)qemu_mallocz(sizeof(stellaris_enet_state));

    iomemtype = cpu_register_io_memory(0, stellaris_enet_readfn,

                                       stellaris_enet_writefn, s);

    cpu_register_physical_memory(base, 0x00001000, iomemtype);

    s->irq = irq;

    memcpy(s->macaddr, nd->macaddr, 6);



    if (nd->vlan) {

        s->vc = qemu_new_vlan_client(nd->vlan, nd->model, nd->name,

                                     stellaris_enet_receive, stellaris_enet_can_receive, s);

        qemu_format_nic_info_str(s->vc, s->macaddr);

    }



    stellaris_enet_reset(s);

    register_savevm("stellaris_enet", -1, 1,

                    stellaris_enet_save, stellaris_enet_load, s);

}

void stellaris_enet_init(NICInfo *nd, uint32_t base, qemu_irq irq)

{

    stellaris_enet_state *s;

    int iomemtype;



    qemu_check_nic_model(nd, "stellaris");



    s = (stellaris_enet_state *)qemu_mallocz(sizeof(stellaris_enet_state));

    iomemtype = cpu_register_io_memory(0, stellaris_enet_readfn,

                                       stellaris_enet_writefn, s);

    cpu_register_physical_memory(base, 0x00001000, iomemtype);

    s->irq = irq;

    memcpy(s->macaddr, nd->macaddr, 6);



    if (nd->vlan) {

        s->vc = qemu_new_vlan_client(nd->vlan, nd->model, nd->name,

                                     stellaris_enet_receive, stellaris_enet_can_receive, s);

        qemu_format_nic_info_str(s->vc, s->macaddr);

    }



    stellaris_enet_reset(s);

    register_savevm("stellaris_enet", -1, 1,

                    stellaris_enet_save, stellaris_enet_load, s);

}

    int iomemtype;     int iomemtype;     int iomemtype;     int iomemtype;     iomemtype = cpu_register_io_memory(0, stellaris_enet_readfn,                                        stellaris_enet_writefn, s);     cpu_register_physical_memory(base, 0x00001000, iomemtype);                                      stellaris_enet_receive, stellaris_enet_can_receive, s);
void FUNC_0(NICInfo *VAR_0, uint32_t VAR_1, qemu_irq VAR_2)

{

    stellaris_enet_state *s;

    int VAR_3;



    qemu_check_nic_model(VAR_0, "stellaris");



    s = (stellaris_enet_state *)qemu_mallocz(sizeof(stellaris_enet_state));

    VAR_3 = cpu_register_io_memory(0, stellaris_enet_readfn,

                                       stellaris_enet_writefn, s);

    cpu_register_physical_memory(VAR_1, 0x00001000, VAR_3);

    s->VAR_2 = VAR_2;

    memcpy(s->macaddr, VAR_0->macaddr, 6);



    if (VAR_0->vlan) {

        s->vc = qemu_new_vlan_client(VAR_0->vlan, VAR_0->model, VAR_0->name,

                                     stellaris_enet_receive, stellaris_enet_can_receive, s);

        qemu_format_nic_info_str(s->vc, s->macaddr);

    }



    stellaris_enet_reset(s);

    register_savevm("stellaris_enet", -1, 1,

                    stellaris_enet_save, stellaris_enet_load, s);

}

void FUNC_0(NICInfo *VAR_0, uint32_t VAR_1, qemu_irq VAR_2)
{ stellaris_enet_state *s; int VAR_3; qemu_check_nic_model(VAR_0, "stellaris"); s = (stellaris_enet_state *)qemu_mallocz(sizeof(stellaris_enet_state)); VAR_3 = cpu_register_io_memory(0, stellaris_enet_readfn,
stellaris_enet_writefn, s); cpu_register_physical_memory(VAR_1, 0x00001000, VAR_3); s->VAR_2 = VAR_2; memcpy(s->macaddr, VAR_0->macaddr, 6); if (VAR_0->vlan) { s->vc = qemu_new_vlan_client(VAR_0->vlan, VAR_0->model, VAR_0->name,
stellaris_enet_receive, stellaris_enet_can_receive, s); qemu_format_nic_info_str(s->vc, s->macaddr); } stellaris_enet_reset(s); register_savevm("stellaris_enet", -1, 1,
stellaris_enet_save, stellaris_enet_load, s); }