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

{

    smc91c111_state *s;

    int iomemtype;



    qemu_check_nic_model(nd, "smc91c111");



    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->irq = irq;

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



    smc91c111_reset(s);



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

                                 smc91c111_receive, smc91c111_can_receive, s);

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

    /* ??? Save/restore.  */

}

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

{

    smc91c111_state *s;

    int iomemtype;



    qemu_check_nic_model(nd, "smc91c111");



    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->irq = irq;

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



    smc91c111_reset(s);



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

                                 smc91c111_receive, smc91c111_can_receive, s);

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

    

}

    int iomemtype;     int iomemtype;     int iomemtype;     iomemtype = cpu_register_io_memory(0, smc91c111_readfn,                                        smc91c111_writefn, s);     cpu_register_physical_memory(base, 16, iomemtype);                                  smc91c111_receive, smc91c111_can_receive, s);     int iomemtype;
void FUNC_0(NICInfo *VAR_0, uint32_t VAR_1, qemu_irq VAR_2)

{

    smc91c111_state *s;

    int VAR_3;



    qemu_check_nic_model(VAR_0, "smc91c111");



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

    VAR_3 = cpu_register_io_memory(0, smc91c111_readfn,

                                       smc91c111_writefn, s);

    cpu_register_physical_memory(VAR_1, 16, VAR_3);

    s->VAR_2 = VAR_2;

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



    smc91c111_reset(s);



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

                                 smc91c111_receive, smc91c111_can_receive, s);

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

    

}

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