void smc91c111_init(NICInfo *nd, uint32_t base, void *pic, int irq)

{

    smc91c111_state *s;

    int iomemtype;



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

    iomemtype = cpu_register_io_memory(0, smc91c111_readfn,

                                       smc91c111_writefn, s);

    cpu_register_physical_memory(base, 16, iomemtype);

    s->base = base;

    s->pic = pic;

    s->irq = irq;

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



    smc91c111_reset(s);



    s->vc = qemu_new_vlan_client(nd->vlan, smc91c111_receive, s);

    /* ??? Save/restore.  */

}

void smc91c111_init(NICInfo *nd, uint32_t base, void *pic, int irq)

{

    smc91c111_state *s;

    int iomemtype;



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

    iomemtype = cpu_register_io_memory(0, smc91c111_readfn,

                                       smc91c111_writefn, s);

    cpu_register_physical_memory(base, 16, iomemtype);

    s->base = base;

    s->pic = pic;

    s->irq = irq;

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



    smc91c111_reset(s);



    s->vc = qemu_new_vlan_client(nd->vlan, smc91c111_receive, s);

    

}

    s->vc = qemu_new_vlan_client(nd->vlan, smc91c111_receive, s);
void FUNC_0(NICInfo *VAR_0, uint32_t VAR_1, void *VAR_2, int VAR_3)

{

    smc91c111_state *s;

    int VAR_4;



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

    VAR_4 = cpu_register_io_memory(0, smc91c111_readfn,

                                       smc91c111_writefn, s);

    cpu_register_physical_memory(VAR_1, 16, VAR_4);

    s->VAR_1 = VAR_1;

    s->VAR_2 = VAR_2;

    s->VAR_3 = VAR_3;

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



    smc91c111_reset(s);



    s->vc = qemu_new_vlan_client(VAR_0->vlan, smc91c111_receive, s);

    

}

void FUNC_0(NICInfo *VAR_0, uint32_t VAR_1, void *VAR_2, int VAR_3)
{ smc91c111_state *s; int VAR_4; s = (smc91c111_state *)qemu_mallocz(sizeof(smc91c111_state)); VAR_4 = cpu_register_io_memory(0, smc91c111_readfn,
smc91c111_writefn, s); cpu_register_physical_memory(VAR_1, 16, VAR_4); s->VAR_1 = VAR_1; s->VAR_2 = VAR_2; s->VAR_3 = VAR_3; memcpy(s->macaddr, VAR_0->macaddr, 6); smc91c111_reset(s); s->vc = qemu_new_vlan_client(VAR_0->vlan, smc91c111_receive, s); }