Changeset ebb1489 in mainline for uspace/drv/nic/ne2k/ne2k.c


Ignore:
Timestamp:
2024-10-13T08:23:40Z (2 months ago)
Author:
GitHub <noreply@…>
Children:
0472cf17
Parents:
2a0c827c (diff), b3b79981 (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.
git-author:
boba-buba <120932204+boba-buba@…> (2024-10-13 08:23:40)
git-committer:
GitHub <noreply@…> (2024-10-13 08:23:40)
Message:

Merge branch 'HelenOS:master' into topic/packet-capture

File:
1 edited

Legend:

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

    r2a0c827c rebb1489  
    122122};
    123123
    124 static void ne2k_interrupt_handler(ipc_call_t *, ddf_dev_t *);
     124static void ne2k_interrupt_handler(ipc_call_t *, void *);
    125125
    126126static errno_t ne2k_register_interrupt(nic_t *nic_data,
     
    162162
    163163        return register_interrupt_handler(nic_get_ddf_dev(nic_data),
    164             ne2k->irq, ne2k_interrupt_handler, &ne2k->code, handle);
     164            ne2k->irq, ne2k_interrupt_handler, (void *)nic_data, &ne2k->code,
     165            handle);
    165166}
    166167
     
    238239}
    239240
    240 void ne2k_interrupt_handler(ipc_call_t *call, ddf_dev_t *dev)
    241 {
    242         nic_t *nic_data = DRIVER_DATA(dev);
     241/** NE2K interrupt handler
     242 *
     243 * @param call IRQ event notification
     244 * @param arg Argument (nic_t *)
     245 */
     246void ne2k_interrupt_handler(ipc_call_t *call, void *arg)
     247{
     248        nic_t *nic_data = (nic_t *)arg;
    243249        ne2k_interrupt(nic_data, IRQ_GET_ISR(*call), IRQ_GET_TSR(*call));
    244250}
Note: See TracChangeset for help on using the changeset viewer.