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/hw/bus/cuda_adb/cuda_adb.c

    r83f29e0 r8820544  
    5555static void cuda_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg);
    5656static int cuda_init(void);
    57 static void cuda_irq_handler(ipc_callid_t iid, ipc_call_t *call);
     57static void cuda_irq_handler(ipc_callid_t iid, ipc_call_t *call, void *arg);
    5858
    5959static void cuda_irq_listen(void);
     
    282282        cuda_irq_code.ranges[0].base = (uintptr_t) instance->cuda_physical;
    283283        cuda_irq_code.cmds[0].addr = (void *) &((cuda_t *) instance->cuda_physical)->ifr;
    284         async_set_interrupt_received(cuda_irq_handler);
    285         irq_register(10, device_assign_devno(), 0, &cuda_irq_code);
     284        async_irq_subscribe(10, device_assign_devno(), cuda_irq_handler, NULL,
     285            &cuda_irq_code);
    286286
    287287        /* Enable SR interrupt. */
     
    295295}
    296296
    297 static void cuda_irq_handler(ipc_callid_t iid, ipc_call_t *call)
     297static void cuda_irq_handler(ipc_callid_t iid, ipc_call_t *call, void *arg)
    298298{
    299299        uint8_t rbuf[CUDA_RCV_BUF_SIZE];
Note: See TracChangeset for help on using the changeset viewer.