Changeset 145d4e2e in mainline
- Timestamp:
- 2024-07-22T20:45:12Z (6 months ago)
- Branches:
- master
- Children:
- 04e520e
- Parents:
- 48b8928
- Location:
- uspace
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/isa-ide/isa-ide.c
r48b8928 r145d4e2e 163 163 return EOK; 164 164 error: 165 if (chan->channel != NULL) { 166 (void) ata_channel_destroy(chan->channel); 167 chan->channel = NULL; 168 } 165 169 if (irq_inited) 166 170 isa_ide_fini_irq(chan); -
uspace/drv/block/pci-ide/pci-ide.c
r48b8928 r145d4e2e 294 294 return EOK; 295 295 error: 296 if (chan->channel != NULL) { 297 (void) ata_channel_destroy(chan->channel); 298 chan->channel = NULL; 299 } 296 300 if (buffer != NULL) 297 301 dmamem_unmap_anonymous(buffer); -
uspace/lib/ata/meson.build
r48b8928 r145d4e2e 31 31 'src/ata.c' 32 32 ) 33 34 test_src = files( 35 'test/ata.c', 36 'test/main.c' 37 ) -
uspace/lib/ata/src/ata.c
r48b8928 r145d4e2e 151 151 { 152 152 ata_channel_t *chan; 153 int i; 153 154 154 155 chan = calloc(1, sizeof(ata_channel_t)); … … 162 163 fibril_mutex_initialize(&chan->irq_lock); 163 164 fibril_condvar_initialize(&chan->irq_cv); 165 166 for (i = 0; i < MAX_DEVICES; i++) 167 chan->device[i].chan = chan; 164 168 165 169 *rchan = chan; … … 493 497 unsigned i; 494 498 495 d->chan = chan;496 499 d->device_id = device_id; 497 500 d->present = false;
Note:
See TracChangeset
for help on using the changeset viewer.