Changeset 474afc9 in mainline for uspace/srv/hw/netif/ne2000/ne2000.c


Ignore:
Timestamp:
2011-02-04T22:40:13Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4d73d71
Parents:
89acf204 (diff), e29e09cf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

development branch changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/netif/ne2000/ne2000.c

    r89acf204 r474afc9  
    4343#include <malloc.h>
    4444#include <sysinfo.h>
    45 #include <ipc/ipc.h>
    4645#include <ipc/services.h>
     46#include <ipc/ns.h>
    4747#include <ipc/irc.h>
    4848#include <net/modules.h>
     
    316316                ne2k_cmds[5].addr = ne2k->port + DP_TSR;
    317317               
    318                 int rc = ipc_register_irq(ne2k->irq, device->device_id,
     318                int rc = register_irq(ne2k->irq, device->device_id,
    319319                    device->device_id, &ne2k_code);
    320320                if (rc != EOK)
     
    323323                rc = ne2k_up(ne2k);
    324324                if (rc != EOK) {
    325                         ipc_unregister_irq(ne2k->irq, device->device_id);
     325                        unregister_irq(ne2k->irq, device->device_id);
    326326                        return rc;
    327327                }
     
    342342               
    343343                ne2k_down(ne2k);
    344                 ipc_unregister_irq(ne2k->irq, device->device_id);
     344                unregister_irq(ne2k->irq, device->device_id);
    345345                change_state(device, NETIF_STOPPED);
    346346        }
     
    389389       
    390390        if (irc_service) {
    391                 while (irc_phone < 0) {
    392                         irc_phone = ipc_connect_me_to_blocking(PHONE_NS, irc_service,
    393                             0, 0);
    394                 }
     391                while (irc_phone < 0)
     392                        irc_phone = service_connect_blocking(irc_service, 0, 0);
    395393        }
    396394       
    397395        async_set_interrupt_received(irq_handler);
    398396       
    399         return ipc_connect_to_me(PHONE_NS, SERVICE_NE2000, 0, 0, NULL, NULL);
     397        return async_connect_to_me(PHONE_NS, SERVICE_NE2000, 0, 0, NULL);
    400398}
    401399
Note: See TracChangeset for help on using the changeset viewer.