Changeset 646849b3 in mainline for uspace/lib/ata/src/ata.c


Ignore:
Timestamp:
2024-05-17T12:25:26Z (14 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/ata/src/ata.c

    r59c0f478 r646849b3  
    446446static errno_t ata_bd_init_irq(ata_channel_t *chan)
    447447{
     448        if (!chan->params.have_irq)
     449                return EOK;
     450
    448451        return chan->params.irq_enable(chan->params.arg);
    449452}
     
    452455static void ata_bd_fini_irq(ata_channel_t *chan)
    453456{
     457        if (!chan->params.have_irq)
     458                return;
     459
    454460        (void)chan->params.irq_disable(chan->params.arg);
    455461}
Note: See TracChangeset for help on using the changeset viewer.