Changeset 01c3bb4 in mainline for uspace/drv/nic/ne2k/ne2k.c


Ignore:
Timestamp:
2017-11-25T15:43:25Z (8 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/nic/ne2k/ne2k.c

    r98cb5e0d r01c3bb4  
    122122};
    123123
    124 static void ne2k_interrupt_handler(ipc_callid_t, ipc_call_t *, ddf_dev_t *);
     124static void ne2k_interrupt_handler(ipc_call_t *, ddf_dev_t *);
    125125
    126126static int ne2k_register_interrupt(nic_t *nic_data)
     
    239239}
    240240
    241 void ne2k_interrupt_handler(ipc_callid_t iid, ipc_call_t *call, ddf_dev_t *dev)
     241void ne2k_interrupt_handler(ipc_call_t *call, ddf_dev_t *dev)
    242242{
    243243        nic_t *nic_data = DRIVER_DATA(dev);
    244244        ne2k_interrupt(nic_data, IRQ_GET_ISR(*call), IRQ_GET_TSR(*call));
    245        
    246         async_answer_0(iid, EOK);
    247245}
    248246
Note: See TracChangeset for help on using the changeset viewer.