Changes in uspace/drv/nic/ne2k/ne2k.c [e55d2c1:60744cb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ne2k/ne2k.c
re55d2c1 r60744cb 43 43 #include <str_error.h> 44 44 #include <async.h> 45 #include <ddf/log.h>46 45 #include "dp8390.h" 47 46 … … 122 121 }; 123 122 124 static void ne2k_interrupt_handler(ipc_call_t *, ddf_dev_t*);123 static void ne2k_interrupt_handler(ipc_call_t *, void *); 125 124 126 125 static errno_t ne2k_register_interrupt(nic_t *nic_data, … … 162 161 163 162 return register_interrupt_handler(nic_get_ddf_dev(nic_data), 164 ne2k->irq, ne2k_interrupt_handler, &ne2k->code, handle); 163 ne2k->irq, ne2k_interrupt_handler, (void *)nic_data, &ne2k->code, 164 handle); 165 165 } 166 166 … … 238 238 } 239 239 240 void ne2k_interrupt_handler(ipc_call_t *call, ddf_dev_t *dev) 241 { 242 nic_t *nic_data = DRIVER_DATA(dev); 240 /** NE2K interrupt handler 241 * 242 * @param call IRQ event notification 243 * @param arg Argument (nic_t *) 244 */ 245 void ne2k_interrupt_handler(ipc_call_t *call, void *arg) 246 { 247 nic_t *nic_data = (nic_t *)arg; 243 248 ne2k_interrupt(nic_data, IRQ_GET_ISR(*call), IRQ_GET_TSR(*call)); 244 249 } … … 444 449 } 445 450 446 rc = nic_fun_add_to_cats(fun);451 rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC); 447 452 if (rc != EOK) { 448 ddf_msg(LVL_ERROR, "Failed adding function to categories");449 453 ddf_fun_unbind(fun); 454 ddf_fun_destroy(fun); 450 455 return rc; 451 456 } … … 477 482 nic_driver_implement(&ne2k_driver_ops, &ne2k_dev_ops, &ne2k_nic_iface); 478 483 479 ddf_log_init(NAME);480 484 return ddf_driver_main(&ne2k_driver); 481 485 }
Note:
See TracChangeset
for help on using the changeset viewer.