Changeset 145d4e2e in mainline for uspace/lib/ata/src/ata.c


Ignore:
Timestamp:
2024-07-22T20:45:12Z (2 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
04e520e
Parents:
48b8928
Message:

Add doxygen group definition and minimal unit tests to libata

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ata/src/ata.c

    r48b8928 r145d4e2e  
    151151{
    152152        ata_channel_t *chan;
     153        int i;
    153154
    154155        chan = calloc(1, sizeof(ata_channel_t));
     
    162163        fibril_mutex_initialize(&chan->irq_lock);
    163164        fibril_condvar_initialize(&chan->irq_cv);
     165
     166        for (i = 0; i < MAX_DEVICES; i++)
     167                chan->device[i].chan = chan;
    164168
    165169        *rchan = chan;
     
    493497        unsigned i;
    494498
    495         d->chan = chan;
    496499        d->device_id = device_id;
    497500        d->present = false;
Note: See TracChangeset for help on using the changeset viewer.