Changeset ebb1489 in mainline for uspace/drv/char/i8042/i8042.c


Ignore:
Timestamp:
2024-10-13T08:23:40Z (8 weeks 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/char/i8042/i8042.c

    r2a0c827c rebb1489  
    123123 * Write new data to the corresponding buffer.
    124124 *
    125  * @param call pointerr to call data.
    126  * @param dev  Device that caued the interrupt.
    127  *
    128  */
    129 static void i8042_irq_handler(ipc_call_t *call, ddf_dev_t *dev)
    130 {
    131         i8042_t *controller = ddf_dev_data_get(dev);
     125 * @param call Pointer to call data.
     126 * @param arg  Argument (i8042_t *)
     127 */
     128static void i8042_irq_handler(ipc_call_t *call, void *arg)
     129{
     130        i8042_t *controller = (i8042_t *)arg;
    132131        errno_t rc;
    133132
     
    147146        fibril_condvar_broadcast(&port->buf_cv);
    148147
    149         async_sess_t *parent_sess = ddf_dev_parent_sess_get(dev);
     148        async_sess_t *parent_sess = ddf_dev_parent_sess_get(controller->dev);
    150149        hw_res_clear_interrupt(parent_sess, port->irq);
    151150}
     
    178177        bool aux_bound = false;
    179178
     179        dev->dev = ddf_dev;
     180
    180181        if (regs->size < sizeof(i8042_regs_t)) {
    181182                rc = EINVAL;
     
    288289        cap_irq_handle_t kbd_ihandle;
    289290        rc = register_interrupt_handler(ddf_dev, irq_kbd,
    290             i8042_irq_handler, &irq_code, &kbd_ihandle);
     291            i8042_irq_handler, (void *)dev, &irq_code, &kbd_ihandle);
    291292        if (rc != EOK) {
    292293                ddf_msg(LVL_ERROR, "Failed set handler for kbd: %s.",
     
    297298        cap_irq_handle_t mouse_ihandle;
    298299        rc = register_interrupt_handler(ddf_dev, irq_mouse,
    299             i8042_irq_handler, &irq_code, &mouse_ihandle);
     300            i8042_irq_handler, (void *)dev, &irq_code, &mouse_ihandle);
    300301        if (rc != EOK) {
    301302                ddf_msg(LVL_ERROR, "Failed set handler for mouse: %s.",
Note: See TracChangeset for help on using the changeset viewer.