Changeset a46e56b in mainline for uspace/drv/intctl/icp-ic/icp-ic.c
- Timestamp:
- 2018-03-22T06:49:35Z (6 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/icp-ic/icp-ic.c
r3e242d2 ra46e56b 69 69 * @param arg Local argument. 70 70 */ 71 static void icpic_connection(cap_call_handle_t i id, ipc_call_t *icall, void *arg)71 static void icpic_connection(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg) 72 72 { 73 cap_call_handle_t c allid;73 cap_call_handle_t chandle; 74 74 ipc_call_t call; 75 75 icpic_t *icpic; … … 78 78 * Answer the first IPC_M_CONNECT_ME_TO call. 79 79 */ 80 async_answer_0(i id, EOK);80 async_answer_0(icall_handle, EOK); 81 81 82 82 icpic = (icpic_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg)); 83 83 84 84 while (true) { 85 c allid= async_get_call(&call);85 chandle = async_get_call(&call); 86 86 87 87 if (!IPC_GET_IMETHOD(call)) { 88 88 /* The other side has hung up. */ 89 async_answer_0(c allid, EOK);89 async_answer_0(chandle, EOK); 90 90 return; 91 91 } … … 93 93 switch (IPC_GET_IMETHOD(call)) { 94 94 case IRC_ENABLE_INTERRUPT: 95 async_answer_0(c allid,95 async_answer_0(chandle, 96 96 icpic_enable_irq(icpic, IPC_GET_ARG1(call))); 97 97 break; 98 98 case IRC_DISABLE_INTERRUPT: 99 99 /* XXX TODO */ 100 async_answer_0(c allid, EOK);100 async_answer_0(chandle, EOK); 101 101 break; 102 102 case IRC_CLEAR_INTERRUPT: 103 103 /* Noop */ 104 async_answer_0(c allid, EOK);104 async_answer_0(chandle, EOK); 105 105 break; 106 106 default: 107 async_answer_0(c allid, EINVAL);107 async_answer_0(chandle, EINVAL); 108 108 break; 109 109 }
Note:
See TracChangeset
for help on using the changeset viewer.