Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/isa-ide/isa-ide.c

    r07039850 r443695e  
    11/*
    2  * Copyright (c) 2025 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    101101        ata_params_t params;
    102102
    103         ddf_msg(LVL_DEBUG, "isa_ide_channel_init()");
    104 
    105         memset(&params, 0, sizeof(params));
     103        ddf_msg(LVL_DEBUG, "isa_ide_ctrl_init()");
    106104
    107105        chan->ctrl = ctrl;
     
    135133        irq_inited = true;
    136134
    137         ddf_msg(LVL_DEBUG, "isa_ide_channel_init(): Initialize IDE channel");
     135        ddf_msg(LVL_DEBUG, "isa_ide_ctrl_init(): Initialize IDE channel");
    138136
    139137        params.arg = (void *)chan;
    140         params.use_dma = false;
    141138        params.have_irq = (chan->irq >= 0) ? true : false;
    142139        params.write_data_16 = isa_ide_write_data_16;
     
    163160                goto error;
    164161
    165         ddf_msg(LVL_DEBUG, "isa_ide_channel_init: DONE");
     162        ddf_msg(LVL_DEBUG, "isa_ide_ctrl_init: DONE");
    166163        return EOK;
    167164error:
    168         if (chan->channel != NULL) {
    169                 (void) ata_channel_destroy(chan->channel);
    170                 chan->channel = NULL;
    171         }
    172165        if (irq_inited)
    173166                isa_ide_fini_irq(chan);
     
    181174        errno_t rc;
    182175
    183         ddf_msg(LVL_DEBUG, ": isa_ide_channel_fini()");
     176        ddf_msg(LVL_DEBUG, ": isa_ide_ctrl_remove()");
    184177
    185178        fibril_mutex_lock(&chan->lock);
     
    196189
    197190        return EOK;
    198 }
    199 
    200 /** Quiesce ISA IDE channel. */
    201 void isa_ide_channel_quiesce(isa_ide_channel_t *chan)
    202 {
    203         ddf_msg(LVL_DEBUG, ": isa_ide_channel_quiesce()");
    204 
    205         fibril_mutex_lock(&chan->lock);
    206         ata_channel_quiesce(chan->channel);
    207         fibril_mutex_unlock(&chan->lock);
    208191}
    209192
Note: See TracChangeset for help on using the changeset viewer.