Changeset 60744cb in mainline for uspace/lib/drv/generic


Ignore:
Timestamp:
2024-05-17T17:51:56Z (14 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
1801005
Parents:
646849b3
Message:

Let driver specify any argument to IRQ handler

This allows the driver to register a single handler for multiple
interrupts and still distinguish between them. It also removes
the extra step of having to get softstate from ddf_dev_t.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/interrupt.c

    r646849b3 r60744cb  
    4444
    4545errno_t register_interrupt_handler(ddf_dev_t *dev, int irq,
    46     interrupt_handler_t *handler, const irq_code_t *irq_code,
    47     cap_irq_handle_t *handle)
    48 {
    49         return async_irq_subscribe(irq, (async_notification_handler_t) handler,
    50             dev, irq_code, handle);
    51 }
    52 
    53 errno_t register_interrupt_handler_arg(ddf_dev_t *dev, int irq,
    5446    interrupt_handler_t *handler, void *arg, const irq_code_t *irq_code,
    5547    cap_irq_handle_t *handle)
Note: See TracChangeset for help on using the changeset viewer.