Changeset 07039850 in mainline for uspace/drv/block/isa-ide
- Timestamp:
- 2025-03-05T21:41:03Z (12 months ago)
- Branches:
- master
- Children:
- 1c7b0db7
- Parents:
- a64970e1
- Location:
- uspace/drv/block/isa-ide
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/isa-ide/isa-ide.c
ra64970e1 r07039850 101 101 ata_params_t params; 102 102 103 ddf_msg(LVL_DEBUG, "isa_ide_c trl_init()");103 ddf_msg(LVL_DEBUG, "isa_ide_channel_init()"); 104 104 105 105 memset(¶ms, 0, sizeof(params)); … … 135 135 irq_inited = true; 136 136 137 ddf_msg(LVL_DEBUG, "isa_ide_c trl_init(): Initialize IDE channel");137 ddf_msg(LVL_DEBUG, "isa_ide_channel_init(): Initialize IDE channel"); 138 138 139 139 params.arg = (void *)chan; … … 163 163 goto error; 164 164 165 ddf_msg(LVL_DEBUG, "isa_ide_c trl_init: DONE");165 ddf_msg(LVL_DEBUG, "isa_ide_channel_init: DONE"); 166 166 return EOK; 167 167 error: … … 181 181 errno_t rc; 182 182 183 ddf_msg(LVL_DEBUG, ": isa_ide_c trl_remove()");183 ddf_msg(LVL_DEBUG, ": isa_ide_channel_fini()"); 184 184 185 185 fibril_mutex_lock(&chan->lock); … … 196 196 197 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); 198 208 } 199 209 -
uspace/drv/block/isa-ide/isa-ide.h
ra64970e1 r07039850 1 1 /* 2 * Copyright (c) 202 4Jiri Svoboda2 * Copyright (c) 2025 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 104 104 unsigned, isa_ide_hwres_t *); 105 105 extern errno_t isa_ide_channel_fini(isa_ide_channel_t *); 106 extern void isa_ide_channel_quiesce(isa_ide_channel_t *); 106 107 107 108 #endif -
uspace/drv/block/isa-ide/main.c
ra64970e1 r07039850 49 49 static errno_t isa_ide_dev_remove(ddf_dev_t *dev); 50 50 static errno_t isa_ide_dev_gone(ddf_dev_t *dev); 51 static errno_t isa_ide_dev_quiesce(ddf_dev_t *dev); 51 52 static errno_t isa_ide_fun_online(ddf_fun_t *fun); 52 53 static errno_t isa_ide_fun_offline(ddf_fun_t *fun); … … 55 56 56 57 static driver_ops_t driver_ops = { 57 .dev_add = &isa_ide_dev_add, 58 .dev_remove = &isa_ide_dev_remove, 59 .dev_gone = &isa_ide_dev_gone, 60 .fun_online = &isa_ide_fun_online, 61 .fun_offline = &isa_ide_fun_offline 58 .dev_add = isa_ide_dev_add, 59 .dev_remove = isa_ide_dev_remove, 60 .dev_gone = isa_ide_dev_gone, 61 .dev_quiesce = isa_ide_dev_quiesce, 62 .fun_online = isa_ide_fun_online, 63 .fun_offline = isa_ide_fun_offline 62 64 }; 63 65 … … 379 381 } 380 382 383 static errno_t isa_ide_dev_quiesce(ddf_dev_t *dev) 384 { 385 isa_ide_ctrl_t *ctrl = (isa_ide_ctrl_t *)ddf_dev_data_get(dev); 386 387 ddf_msg(LVL_DEBUG, "isa_ide_dev_quiesce(%p)", dev); 388 389 isa_ide_channel_quiesce(&ctrl->channel[0]); 390 isa_ide_channel_quiesce(&ctrl->channel[1]); 391 return EOK; 392 } 393 381 394 static errno_t isa_ide_fun_online(ddf_fun_t *fun) 382 395 {
Note:
See TracChangeset
for help on using the changeset viewer.
