Changeset ebb1489 in mainline for uspace/lib/usbhost/src/hcd.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/lib/usbhost/src/hcd.c

    r2a0c827c rebb1489  
    9595 * TODO: Make the bus mechanism less flexible in irq handling and remove the
    9696 * lookup.
    97  */
    98 static void irq_handler(ipc_call_t *call, ddf_dev_t *dev)
    99 {
    100         assert(dev);
    101         hc_device_t *hcd = dev_to_hcd(dev);
     97 *
     98 * @param call Interrupt notification
     99 * @param arg Argument (hc_device_t *)
     100 */
     101static void irq_handler(ipc_call_t *call, void *arg)
     102{
     103        hc_device_t *hcd = (hc_device_t *)arg;
    102104
    103105        const uint32_t status = ipc_get_arg1(call);
     
    178180        cap_irq_handle_t ihandle;
    179181        ret = register_interrupt_handler(hcd->ddf_dev, irq, irq_handler,
    180             &irq_code, &ihandle);
     182            (void *)hcd, &irq_code, &ihandle);
    181183        irq_code_clean(&irq_code);
    182184        if (ret != EOK) {
Note: See TracChangeset for help on using the changeset viewer.