Changes in uspace/srv/hw/netif/ne2000/ne2000.c [fe8dfa6:ffa2c8ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/ne2000/ne2000.c
rfe8dfa6 rffa2c8ef 43 43 #include <malloc.h> 44 44 #include <sysinfo.h> 45 #include <ipc/ipc.h>46 45 #include <ipc/services.h> 46 #include <ipc/ns.h> 47 47 #include <ipc/irc.h> 48 48 #include <net/modules.h> … … 316 316 ne2k_cmds[5].addr = ne2k->port + DP_TSR; 317 317 318 int rc = ipc_register_irq(ne2k->irq, device->device_id,318 int rc = register_irq(ne2k->irq, device->device_id, 319 319 device->device_id, &ne2k_code); 320 320 if (rc != EOK) … … 323 323 rc = ne2k_up(ne2k); 324 324 if (rc != EOK) { 325 ipc_unregister_irq(ne2k->irq, device->device_id);325 unregister_irq(ne2k->irq, device->device_id); 326 326 return rc; 327 327 } … … 342 342 343 343 ne2k_down(ne2k); 344 ipc_unregister_irq(ne2k->irq, device->device_id);344 unregister_irq(ne2k->irq, device->device_id); 345 345 change_state(device, NETIF_STOPPED); 346 346 } … … 389 389 390 390 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); 395 393 } 396 394 397 395 async_set_interrupt_received(irq_handler); 398 396 399 sysarg_t phonehash; 400 return ipc_connect_to_me(PHONE_NS, SERVICE_NE2000, 0, 0, &phonehash); 397 return async_connect_to_me(PHONE_NS, SERVICE_NE2000, 0, 0, NULL); 401 398 } 402 399
Note:
See TracChangeset
for help on using the changeset viewer.