Changeset 8820544 in mainline for uspace/drv/char/i8042/i8042.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/drv/char/i8042/i8042.c

    r83f29e0 r8820544  
    6464#define i8042_KBD_TRANSLATE  0x40  /* Use this to switch to XT scancodes */
    6565
    66 void default_handler(ddf_fun_t *, ipc_callid_t, ipc_call_t *);
     66static void default_handler(ddf_fun_t *, ipc_callid_t, ipc_call_t *);
    6767
    6868/** Port function operations. */
    6969static ddf_dev_ops_t ops = {
    70         .default_handler = default_handler,
     70        .default_handler = default_handler
    7171};
    7272
     
    123123 * Write new data to the corresponding buffer.
    124124 *
    125  * @param dev  Device that caued the interrupt.
    126125 * @param iid  Call id.
    127126 * @param call pointerr to call data.
    128  *
    129  */
    130 static void i8042_irq_handler(ddf_dev_t *dev, ipc_callid_t iid,
    131     ipc_call_t *call)
     127 * @param dev  Device that caued the interrupt.
     128 *
     129 */
     130static void i8042_irq_handler(ipc_callid_t iid, ipc_call_t *call,
     131    ddf_dev_t *dev)
    132132{
    133133        i8042_t *controller = dev_i8042(dev);
     
    361361 *
    362362 */
    363 void default_handler(ddf_fun_t *fun, ipc_callid_t id, ipc_call_t *call)
     363static void default_handler(ddf_fun_t *fun, ipc_callid_t id, ipc_call_t *call)
    364364{
    365365        const sysarg_t method = IPC_GET_IMETHOD(*call);
Note: See TracChangeset for help on using the changeset viewer.