Changeset ebb1489 in mainline for uspace/drv/nic/ne2k/ne2k.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/ne2k/ne2k.c
r2a0c827c rebb1489 122 122 }; 123 123 124 static void ne2k_interrupt_handler(ipc_call_t *, ddf_dev_t*);124 static void ne2k_interrupt_handler(ipc_call_t *, void *); 125 125 126 126 static errno_t ne2k_register_interrupt(nic_t *nic_data, … … 162 162 163 163 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); 165 166 } 166 167 … … 238 239 } 239 240 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 */ 246 void ne2k_interrupt_handler(ipc_call_t *call, void *arg) 247 { 248 nic_t *nic_data = (nic_t *)arg; 243 249 ne2k_interrupt(nic_data, IRQ_GET_ISR(*call), IRQ_GET_TSR(*call)); 244 250 }
Note:
See TracChangeset
for help on using the changeset viewer.