Changeset ebb1489 in mainline for uspace/drv/char/i8042/i8042.c
- Timestamp:
- 2024-10-13T08:23:40Z (8 weeks 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/char/i8042/i8042.c
r2a0c827c rebb1489 123 123 * Write new data to the corresponding buffer. 124 124 * 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 */ 128 static void i8042_irq_handler(ipc_call_t *call, void *arg) 129 { 130 i8042_t *controller = (i8042_t *)arg; 132 131 errno_t rc; 133 132 … … 147 146 fibril_condvar_broadcast(&port->buf_cv); 148 147 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); 150 149 hw_res_clear_interrupt(parent_sess, port->irq); 151 150 } … … 178 177 bool aux_bound = false; 179 178 179 dev->dev = ddf_dev; 180 180 181 if (regs->size < sizeof(i8042_regs_t)) { 181 182 rc = EINVAL; … … 288 289 cap_irq_handle_t kbd_ihandle; 289 290 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); 291 292 if (rc != EOK) { 292 293 ddf_msg(LVL_ERROR, "Failed set handler for kbd: %s.", … … 297 298 cap_irq_handle_t mouse_ihandle; 298 299 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); 300 301 if (rc != EOK) { 301 302 ddf_msg(LVL_ERROR, "Failed set handler for mouse: %s.",
Note:
See TracChangeset
for help on using the changeset viewer.