Changeset ebb1489 in mainline for uspace/drv/nic/virtio-net/virtio-net.c
- Timestamp:
- 2024-10-13T08:23:40Z (8 weeks ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/virtio-net/virtio-net.c
r2a0c827c rebb1489 71 71 }; 72 72 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 */ 78 static void virtio_net_irq_handler(ipc_call_t *icall, void *arg) 79 { 80 nic_t *nic = (nic_t *)arg; 76 81 virtio_net_t *virtio_net = nic_get_specific(nic); 77 82 virtio_dev_t *vdev = &virtio_net->virtio_dev; … … 165 170 166 171 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); 168 174 } 169 175
Note:
See TracChangeset
for help on using the changeset viewer.