Changeset 8820544 in mainline for uspace/srv/hid/input/port/pl050.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/pl050.c

    r83f29e0 r8820544  
    101101};
    102102
    103 static void pl050_irq_handler(ipc_callid_t iid, ipc_call_t *call);
     103static void pl050_irq_handler(ipc_callid_t iid, ipc_call_t *call, void *arg)
     104{
     105        kbd_push_data(kbd_dev, IPC_GET_ARG2(*call));
     106}
    104107
    105108static int pl050_port_init(kbd_dev_t *kdev)
     
    119122                return -1;
    120123       
    121         async_set_interrupt_received(pl050_irq_handler);
    122         irq_register(inr, device_assign_devno(), 0, &pl050_kbd);
     124        async_irq_subscribe(inr, device_assign_devno(), pl050_irq_handler, NULL,
     125            &pl050_kbd);
    123126       
    124127        return 0;
     
    130133}
    131134
    132 static void pl050_irq_handler(ipc_callid_t iid, ipc_call_t *call)
    133 {
    134         kbd_push_data(kbd_dev, IPC_GET_ARG2(*call));
    135 }
    136 
    137135/**
    138136 * @}
Note: See TracChangeset for help on using the changeset viewer.