Changes in uspace/srv/hw/netif/ne2000/ne2000.c [ffa2c8ef:fe8dfa6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/ne2000/ne2000.c
rffa2c8ef rfe8dfa6 43 43 #include <malloc.h> 44 44 #include <sysinfo.h> 45 #include <ipc/ipc.h> 45 46 #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 = register_irq(ne2k->irq, device->device_id,318 int rc = ipc_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 unregister_irq(ne2k->irq, device->device_id);325 ipc_unregister_irq(ne2k->irq, device->device_id); 326 326 return rc; 327 327 } … … 342 342 343 343 ne2k_down(ne2k); 344 unregister_irq(ne2k->irq, device->device_id);344 ipc_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 = service_connect_blocking(irc_service, 0, 0); 391 while (irc_phone < 0) { 392 irc_phone = ipc_connect_me_to_blocking(PHONE_NS, irc_service, 393 0, 0); 394 } 393 395 } 394 396 395 397 async_set_interrupt_received(irq_handler); 396 398 397 return async_connect_to_me(PHONE_NS, SERVICE_NE2000, 0, 0, NULL); 399 sysarg_t phonehash; 400 return ipc_connect_to_me(PHONE_NS, SERVICE_NE2000, 0, 0, &phonehash); 398 401 } 399 402
Note:
See TracChangeset
for help on using the changeset viewer.