Changeset 8820544 in mainline for uspace/srv/hid/input/port/msim.c


Ignore:
Timestamp:
2014-08-16T00:02:04Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
35b8bfe, 8cd680c
Parents:
83f29e0
Message:

support for kernel notification multiplexing in the async framework

  • rename SYS_EVENT_* and SYS_IRQ_* syscalls to unify the terminology
  • add SYS_IPC_EVENT_UNSUBSCRIBE
  • remove IRQ handler multiplexing from DDF, the generic mechanism replaces it (unfortunatelly the order of arguments used by interrupt_handler_t needs to be permutated to align with the async framework conventions)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/port/msim.c

    r83f29e0 r8820544  
    7878};
    7979
    80 static void msim_irq_handler(ipc_callid_t iid, ipc_call_t *call);
     80static void msim_irq_handler(ipc_callid_t iid, ipc_call_t *call, void *arg)
     81{
     82        kbd_push_data(kbd_dev, IPC_GET_ARG2(*call));
     83}
    8184
    8285static int msim_port_init(kbd_dev_t *kdev)
     
    9497        msim_ranges[0].base = paddr;
    9598        msim_cmds[0].addr = (void *) paddr;
    96         async_set_interrupt_received(msim_irq_handler);
    97         irq_register(inr, device_assign_devno(), 0, &msim_kbd);
     99        async_irq_subscribe(inr, device_assign_devno(), msim_irq_handler, NULL,
     100            &msim_kbd);
    98101       
    99102        return 0;
     
    105108}
    106109
    107 static void msim_irq_handler(ipc_callid_t iid, ipc_call_t *call)
    108 {
    109         kbd_push_data(kbd_dev, IPC_GET_ARG2(*call));
    110 }
    111 
    112110/** @}
    113111 */
Note: See TracChangeset for help on using the changeset viewer.