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