Changeset ebb1489 in mainline for uspace/drv/nic/rtl8139/driver.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/rtl8139/driver.c
r2a0c827c rebb1489 820 820 * 821 821 * @param icall The IPC call structure 822 * @param dev The rtl8139 device 823 * 824 */ 825 static void rtl8139_interrupt_handler(ipc_call_t *icall, ddf_dev_t *dev) 826 { 827 assert(dev); 828 assert(icall); 829 822 * @param arg Argument (nic_t *) 823 * 824 */ 825 static void rtl8139_interrupt_handler(ipc_call_t *icall, void *arg) 826 { 830 827 uint16_t isr = (uint16_t) ipc_get_arg2(icall); 831 nic_t *nic_data = nic_get_from_ddf_dev(dev);828 nic_t *nic_data = (nic_t *)arg; 832 829 rtl8139_t *rtl8139 = nic_get_specific(nic_data); 833 830 … … 862 859 rtl8139_irq_code.cmds[3].addr = rtl8139->io_addr + IMR; 863 860 errno_t rc = register_interrupt_handler(nic_get_ddf_dev(nic_data), 864 rtl8139->irq, rtl8139_interrupt_handler, &rtl8139_irq_code, handle); 861 rtl8139->irq, rtl8139_interrupt_handler, (void *)nic_data, 862 &rtl8139_irq_code, handle); 865 863 866 864 RTL8139_IRQ_STRUCT_UNLOCK();
Note:
See TracChangeset
for help on using the changeset viewer.