Changeset 01c3bb4 in mainline for uspace/drv/audio/hdaudio/hdaudio.c


Ignore:
Timestamp:
2017-11-25T15:43:25Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ce4a21a0
Parents:
98cb5e0d
Message:

Convert call-handling syscalls to capabilities

This commit modifies the behavior of sys_ipc_wait_for_call() to return a
capability handle for requests. This capability handle can be used
either by sys_ipc_answer*() to answer the call or by sys_ipc_forward*()
to forward it further along. Answering or forwarding the call results in
destruction of the respective capability. For requests and
notifications, sys_ipc_wait_for_call() returns CAP_NIL and sets call
flags accordingly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/hdaudio/hdaudio.c

    r98cb5e0d r01c3bb4  
    5858static int hda_fun_offline(ddf_fun_t *fun);
    5959
    60 static void hdaudio_interrupt(ipc_callid_t, ipc_call_t *, ddf_dev_t *);
     60static void hdaudio_interrupt(ipc_call_t *, ddf_dev_t *);
    6161
    6262static driver_ops_t driver_ops = {
     
    368368}
    369369
    370 static void hdaudio_interrupt(ipc_callid_t iid, ipc_call_t *icall,
    371     ddf_dev_t *dev)
     370static void hdaudio_interrupt(ipc_call_t *icall, ddf_dev_t *dev)
    372371{
    373372        hda_t *hda = (hda_t *)ddf_dev_data_get(dev);
Note: See TracChangeset for help on using the changeset viewer.