Changes in uspace/drv/block/isa-ide/isa-ide.c [07039850:443695e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/isa-ide/isa-ide.c
r07039850 r443695e 1 1 /* 2 * Copyright (c) 202 5Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 101 101 ata_params_t params; 102 102 103 ddf_msg(LVL_DEBUG, "isa_ide_channel_init()"); 104 105 memset(¶ms, 0, sizeof(params)); 103 ddf_msg(LVL_DEBUG, "isa_ide_ctrl_init()"); 106 104 107 105 chan->ctrl = ctrl; … … 135 133 irq_inited = true; 136 134 137 ddf_msg(LVL_DEBUG, "isa_ide_c hannel_init(): Initialize IDE channel");135 ddf_msg(LVL_DEBUG, "isa_ide_ctrl_init(): Initialize IDE channel"); 138 136 139 137 params.arg = (void *)chan; 140 params.use_dma = false;141 138 params.have_irq = (chan->irq >= 0) ? true : false; 142 139 params.write_data_16 = isa_ide_write_data_16; … … 163 160 goto error; 164 161 165 ddf_msg(LVL_DEBUG, "isa_ide_c hannel_init: DONE");162 ddf_msg(LVL_DEBUG, "isa_ide_ctrl_init: DONE"); 166 163 return EOK; 167 164 error: 168 if (chan->channel != NULL) {169 (void) ata_channel_destroy(chan->channel);170 chan->channel = NULL;171 }172 165 if (irq_inited) 173 166 isa_ide_fini_irq(chan); … … 181 174 errno_t rc; 182 175 183 ddf_msg(LVL_DEBUG, ": isa_ide_c hannel_fini()");176 ddf_msg(LVL_DEBUG, ": isa_ide_ctrl_remove()"); 184 177 185 178 fibril_mutex_lock(&chan->lock); … … 196 189 197 190 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);208 191 } 209 192
Note:
See TracChangeset
for help on using the changeset viewer.