Changeset a46e56b in mainline for uspace/drv/intctl/apic/apic.c


Ignore:
Timestamp:
2018-03-22T06:49:35Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
77f0a1d
Parents:
3e242d2
git-author:
Jakub Jermar <jakub@…> (2018-03-21 23:29:06)
git-committer:
Jakub Jermar <jakub@…> (2018-03-22 06:49:35)
Message:

Prefer handle over ID in naming handle variables

File:
1 edited

Legend:

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

    r3e242d2 ra46e56b  
    164164 * @param arg   Local argument.
    165165 */
    166 static void apic_connection(cap_call_handle_t iid, ipc_call_t *icall, void *arg)
    167 {
    168         cap_call_handle_t callid;
     166static void apic_connection(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg)
     167{
     168        cap_call_handle_t chandle;
    169169        ipc_call_t call;
    170170        apic_t *apic;
     
    173173         * Answer the first IPC_M_CONNECT_ME_TO call.
    174174         */
    175         async_answer_0(iid, EOK);
     175        async_answer_0(icall_handle, EOK);
    176176
    177177        apic = (apic_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg));
    178178
    179179        while (true) {
    180                 callid = async_get_call(&call);
     180                chandle = async_get_call(&call);
    181181
    182182                if (!IPC_GET_IMETHOD(call)) {
    183183                        /* The other side has hung up. */
    184                         async_answer_0(callid, EOK);
     184                        async_answer_0(chandle, EOK);
    185185                        return;
    186186                }
     
    188188                switch (IPC_GET_IMETHOD(call)) {
    189189                case IRC_ENABLE_INTERRUPT:
    190                         async_answer_0(callid, apic_enable_irq(apic,
     190                        async_answer_0(chandle, apic_enable_irq(apic,
    191191                            IPC_GET_ARG1(call)));
    192192                        break;
    193193                case IRC_DISABLE_INTERRUPT:
    194194                        /* XXX TODO */
    195                         async_answer_0(callid, EOK);
     195                        async_answer_0(chandle, EOK);
    196196                        break;
    197197                case IRC_CLEAR_INTERRUPT:
    198198                        /* Noop */
    199                         async_answer_0(callid, EOK);
     199                        async_answer_0(chandle, EOK);
    200200                        break;
    201201                default:
    202                         async_answer_0(callid, EINVAL);
     202                        async_answer_0(chandle, EINVAL);
    203203                        break;
    204204                }
Note: See TracChangeset for help on using the changeset viewer.