Ignore:
File:
1 edited

Legend:

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

    r60744cb r807be7e  
    12441244 *
    12451245 * @param icall IPC call structure
    1246  * @param arg   Argument (nic_t *)
    1247  *
    1248  */
    1249 static void e1000_interrupt_handler(ipc_call_t *icall, void *arg)
     1246 * @param dev   E1000 device
     1247 *
     1248 */
     1249static void e1000_interrupt_handler(ipc_call_t *icall,
     1250    ddf_dev_t *dev)
    12501251{
    12511252        uint32_t icr = (uint32_t) ipc_get_arg2(icall);
    1252         nic_t *nic = (nic_t *)arg;
     1253        nic_t *nic = NIC_DATA_DEV(dev);
    12531254        e1000_t *e1000 = DRIVER_DATA_NIC(nic);
    12541255
     
    12821283
    12831284        errno_t rc = register_interrupt_handler(nic_get_ddf_dev(nic), e1000->irq,
    1284             e1000_interrupt_handler, (void *)nic, &e1000_irq_code, handle);
     1285            e1000_interrupt_handler, &e1000_irq_code, handle);
    12851286
    12861287        fibril_mutex_unlock(&irq_reg_mutex);
Note: See TracChangeset for help on using the changeset viewer.