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/lib/drv/include/ddf/interrupt.h

    r83f29e0 r8820544  
    4949 */
    5050
    51 typedef void interrupt_handler_t(ddf_dev_t *, ipc_callid_t, ipc_call_t *);
     51typedef void interrupt_handler_t(ipc_callid_t, ipc_call_t *, ddf_dev_t *);
    5252
    53 typedef struct interrupt_context {
    54         int id;
    55         ddf_dev_t *dev;
    56         int irq;
    57         interrupt_handler_t *handler;
    58         link_t link;
    59 } interrupt_context_t;
    60 
    61 typedef struct interrupt_context_list {
    62         int curr_id;
    63         list_t contexts;
    64         fibril_mutex_t mutex;
    65 } interrupt_context_list_t;
    66 
    67 extern void interrupt_init(void);
    6853extern int register_interrupt_handler(ddf_dev_t *, int, interrupt_handler_t *,
    6954    const irq_code_t *);
Note: See TracChangeset for help on using the changeset viewer.