Ignore:
Timestamp:
2024-10-13T08:23:40Z (8 weeks 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/virtio-net/virtio-net.c

    r2a0c827c rebb1489  
    7171};
    7272
    73 static void virtio_net_irq_handler(ipc_call_t *icall, ddf_dev_t *dev)
    74 {
    75         nic_t *nic = ddf_dev_data_get(dev);
     73/** VirtIO net IRQ handler.
     74 *
     75 * @param icall IRQ event notification
     76 * @param arg Argument (nic_t *)
     77 */
     78static void virtio_net_irq_handler(ipc_call_t *icall, void *arg)
     79{
     80        nic_t *nic = (nic_t *)arg;
    7681        virtio_net_t *virtio_net = nic_get_specific(nic);
    7782        virtio_dev_t *vdev = &virtio_net->virtio_dev;
     
    165170
    166171        return register_interrupt_handler(dev, virtio_net->irq,
    167             virtio_net_irq_handler, &irq_code, &virtio_net->irq_handle);
     172            virtio_net_irq_handler, (void *)nic, &irq_code,
     173            &virtio_net->irq_handle);
    168174}
    169175
Note: See TracChangeset for help on using the changeset viewer.