Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/intctl/i8259/i8259.c

    ra35b458 ra46e56b  
    9393 * @param arg   Local argument.
    9494 */
    95 static void i8259_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    96 {
    97         ipc_callid_t callid;
     95static void i8259_connection(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg)
     96{
     97        cap_call_handle_t chandle;
    9898        ipc_call_t call;
    9999        i8259_t *i8259 = NULL /* XXX */;
     
    102102         * Answer the first IPC_M_CONNECT_ME_TO call.
    103103         */
    104         async_answer_0(iid, EOK);
     104        async_answer_0(icall_handle, EOK);
    105105
    106106        i8259 = (i8259_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg));
    107107
    108108        while (true) {
    109                 callid = async_get_call(&call);
     109                chandle = async_get_call(&call);
    110110
    111111                if (!IPC_GET_IMETHOD(call)) {
    112112                        /* The other side has hung up. */
    113                         async_answer_0(callid, EOK);
     113                        async_answer_0(chandle, EOK);
    114114                        return;
    115115                }
     
    117117                switch (IPC_GET_IMETHOD(call)) {
    118118                case IRC_ENABLE_INTERRUPT:
    119                         async_answer_0(callid, pic_enable_irq(i8259,
     119                        async_answer_0(chandle, pic_enable_irq(i8259,
    120120                            IPC_GET_ARG1(call)));
    121121                        break;
    122122                case IRC_DISABLE_INTERRUPT:
    123123                        /* XXX TODO */
    124                         async_answer_0(callid, EOK);
     124                        async_answer_0(chandle, EOK);
    125125                        break;
    126126                case IRC_CLEAR_INTERRUPT:
    127127                        /* Noop */
    128                         async_answer_0(callid, EOK);
     128                        async_answer_0(chandle, EOK);
    129129                        break;
    130130                default:
    131                         async_answer_0(callid, EINVAL);
     131                        async_answer_0(chandle, EINVAL);
    132132                        break;
    133133                }
Note: See TracChangeset for help on using the changeset viewer.