Changeset ebb1489 in mainline for uspace/drv/block/ddisk/ddisk.c


Ignore:
Timestamp:
2024-10-13T08:23:40Z (2 months ago)
Author:
GitHub <noreply@…>
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)
Message:

Merge branch 'HelenOS:master' into topic/packet-capture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/ddisk/ddisk.c

    r2a0c827c rebb1489  
    6464static void ddisk_bd_connection(ipc_call_t *, void *);
    6565
    66 static void ddisk_irq_handler(ipc_call_t *, ddf_dev_t *);
     66static void ddisk_irq_handler(ipc_call_t *, void *);
    6767
    6868static driver_ops_t driver_ops = {
     
    176176};
    177177
    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 */
     183void ddisk_irq_handler(ipc_call_t *icall, void *arg)
    179184{
    180185        ddf_msg(LVL_DEBUG, "ddisk_irq_handler(), status=%" PRIx32,
    181186            (uint32_t) ipc_get_arg1(icall));
    182187
    183         ddisk_t *ddisk = (ddisk_t *) ddf_dev_data_get(dev);
     188        ddisk_t *ddisk = (ddisk_t *)arg;
    184189
    185190        fibril_mutex_lock(&ddisk->lock);
     
    512517        ddisk_irq_commands[3].addr = (void *) &res_phys->command;
    513518        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);
    515520        if (rc != EOK) {
    516521                ddf_msg(LVL_ERROR, "Failed to register interrupt handler.");
Note: See TracChangeset for help on using the changeset viewer.