Changeset 646849b3 in mainline for uspace/lib/drv/generic/interrupt.c


Ignore:
Timestamp:
2024-05-17T12:25:26Z (7 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
60744cb
Parents:
59c0f478
git-author:
Jiri Svoboda <jiri@…> (2024-05-16 19:25:07)
git-committer:
Jiri Svoboda <jiri@…> (2024-05-17 12:25:26)
Message:

Handle both IDE channels in the same driver instance

We need to work around libdrv not allowing us to distinguish
between two interrupts registered with the same device.

File:
1 edited

Legend:

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

    r59c0f478 r646849b3  
    11/*
     2 * Copyright (c) 2024 Jiri Svoboda
    23 * Copyright (c) 2010 Lenka Trochtova
    34 * All rights reserved.
     
    5051}
    5152
     53errno_t register_interrupt_handler_arg(ddf_dev_t *dev, int irq,
     54    interrupt_handler_t *handler, void *arg, const irq_code_t *irq_code,
     55    cap_irq_handle_t *handle)
     56{
     57        (void)dev;
     58        return async_irq_subscribe(irq, (async_notification_handler_t) handler,
     59            arg, irq_code, handle);
     60}
     61
    5262errno_t unregister_interrupt_handler(ddf_dev_t *dev, cap_irq_handle_t handle)
    5363{
Note: See TracChangeset for help on using the changeset viewer.