Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/ne2k/ne2k.c

    r60744cb rfafb8e5  
    121121};
    122122
    123 static void ne2k_interrupt_handler(ipc_call_t *, void *);
     123static void ne2k_interrupt_handler(ipc_call_t *, ddf_dev_t *);
    124124
    125125static errno_t ne2k_register_interrupt(nic_t *nic_data,
     
    161161
    162162        return register_interrupt_handler(nic_get_ddf_dev(nic_data),
    163             ne2k->irq, ne2k_interrupt_handler, (void *)nic_data, &ne2k->code,
    164             handle);
     163            ne2k->irq, ne2k_interrupt_handler, &ne2k->code, handle);
    165164}
    166165
     
    238237}
    239238
    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;
     239void ne2k_interrupt_handler(ipc_call_t *call, ddf_dev_t *dev)
     240{
     241        nic_t *nic_data = DRIVER_DATA(dev);
    248242        ne2k_interrupt(nic_data, IRQ_GET_ISR(*call), IRQ_GET_TSR(*call));
    249243}
Note: See TracChangeset for help on using the changeset viewer.