Changeset ebb1489 in mainline for uspace/drv/block/ddisk/ddisk.c
- Timestamp:
- 2024-10-13T08:23:40Z (2 months ago)
- Children:
- 0472cf17
- Parents:
- 2a0c827c (diff), b3b79981 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2024-10-13 08:23:40)
- git-committer:
- GitHub <noreply@…> (2024-10-13 08:23:40)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ddisk/ddisk.c
r2a0c827c rebb1489 64 64 static void ddisk_bd_connection(ipc_call_t *, void *); 65 65 66 static void ddisk_irq_handler(ipc_call_t *, ddf_dev_t*);66 static void ddisk_irq_handler(ipc_call_t *, void *); 67 67 68 68 static driver_ops_t driver_ops = { … … 176 176 }; 177 177 178 void ddisk_irq_handler(ipc_call_t *icall, ddf_dev_t *dev) 178 /** Ddisk IRQ handler. 179 * 180 * @param icall IRQ event notification 181 * @param arg Argument (ddisk_t *) 182 */ 183 void ddisk_irq_handler(ipc_call_t *icall, void *arg) 179 184 { 180 185 ddf_msg(LVL_DEBUG, "ddisk_irq_handler(), status=%" PRIx32, 181 186 (uint32_t) ipc_get_arg1(icall)); 182 187 183 ddisk_t *ddisk = (ddisk_t *) ddf_dev_data_get(dev);188 ddisk_t *ddisk = (ddisk_t *)arg; 184 189 185 190 fibril_mutex_lock(&ddisk->lock); … … 512 517 ddisk_irq_commands[3].addr = (void *) &res_phys->command; 513 518 rc = register_interrupt_handler(dev, ddisk->ddisk_res.irq, 514 ddisk_irq_handler, &ddisk_irq_code, &ddisk->irq_cap);519 ddisk_irq_handler, (void *)ddisk, &ddisk_irq_code, &ddisk->irq_cap); 515 520 if (rc != EOK) { 516 521 ddf_msg(LVL_ERROR, "Failed to register interrupt handler.");
Note:
See TracChangeset
for help on using the changeset viewer.