Changeset 8820544 in mainline for uspace/drv/char


Ignore:
Timestamp:
2014-08-16T00:02:04Z (11 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)
Location:
uspace/drv/char
Files:
4 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);
  • uspace/drv/char/i8042/i8042.h

    r83f29e0 r8820544  
    6868} i8042_t;
    6969
    70 int i8042_init(i8042_t *, addr_range_t *, int, int, ddf_dev_t *);
     70extern int i8042_init(i8042_t *, addr_range_t *, int, int, ddf_dev_t *);
    7171
    7272#endif
  • uspace/drv/char/i8042/main.c

    r83f29e0 r8820544  
    157157         * interrupt storms when the default large stacks are used.
    158158         */
    159         async_set_interrupt_handler_stack_size(PAGE_SIZE);
     159        async_set_notification_handler_stack_size(PAGE_SIZE);
    160160
    161161        return ddf_driver_main(&i8042_driver);
  • uspace/drv/char/ns8250/ns8250.c

    r83f29e0 r8820544  
    764764 * data and reading the line status register.
    765765 *
    766  * @param dev           The serial port device.
    767  */
    768 static inline void ns8250_interrupt_handler(ddf_dev_t *dev, ipc_callid_t iid,
    769     ipc_call_t *icall)
     766 * @param dev The serial port device.
     767 *
     768 */
     769static inline void ns8250_interrupt_handler(ipc_callid_t iid, ipc_call_t *icall,
     770    ddf_dev_t *dev)
    770771{
    771772        ns8250_t *ns = dev_ns8250(dev);
Note: See TracChangeset for help on using the changeset viewer.