Changeset e29e09cf in mainline for uspace/srv/hw/netif/ne2000/ne2000.c
- Timestamp:
- 2011-02-04T21:00:56Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 474afc9, 960ff451
- Parents:
- 400575c5 (diff), 17aca1c (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/ne2000/ne2000.c
r400575c5 re29e09cf 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 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); 400 398 } 401 399
Note:
See TracChangeset
for help on using the changeset viewer.