Changeset 984a9ba in mainline for uspace/drv/intctl/icp-ic/icp-ic.c
- Timestamp:
- 2018-07-05T09:34:09Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63d46341
- Parents:
- 76f566d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/icp-ic/icp-ic.c
r76f566d r984a9ba 65 65 /** Client connection handler. 66 66 * 67 * @param iid Hash of the request that opened the connection.68 67 * @param icall Call data of the request that opened the connection. 69 * @param arg Local argument. 68 * @param arg Local argument. 69 * 70 70 */ 71 static void icpic_connection( cap_call_handle_t icall_handle,ipc_call_t *icall, void *arg)71 static void icpic_connection(ipc_call_t *icall, void *arg) 72 72 { 73 cap_call_handle_t chandle;74 73 ipc_call_t call; 75 74 icpic_t *icpic; … … 78 77 * Answer the first IPC_M_CONNECT_ME_TO call. 79 78 */ 80 async_answer_0(icall _handle, EOK);79 async_answer_0(icall, EOK); 81 80 82 icpic = (icpic_t *) ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg));81 icpic = (icpic_t *) ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *) arg)); 83 82 84 83 while (true) { 85 chandle =async_get_call(&call);84 async_get_call(&call); 86 85 87 86 if (!IPC_GET_IMETHOD(call)) { 88 87 /* The other side has hung up. */ 89 async_answer_0( chandle, EOK);88 async_answer_0(&call, EOK); 90 89 return; 91 90 } … … 93 92 switch (IPC_GET_IMETHOD(call)) { 94 93 case IRC_ENABLE_INTERRUPT: 95 async_answer_0( chandle,94 async_answer_0(&call, 96 95 icpic_enable_irq(icpic, IPC_GET_ARG1(call))); 97 96 break; 98 97 case IRC_DISABLE_INTERRUPT: 99 98 /* XXX TODO */ 100 async_answer_0( chandle, EOK);99 async_answer_0(&call, EOK); 101 100 break; 102 101 case IRC_CLEAR_INTERRUPT: 103 102 /* Noop */ 104 async_answer_0( chandle, EOK);103 async_answer_0(&call, EOK); 105 104 break; 106 105 default: 107 async_answer_0( chandle, EINVAL);106 async_answer_0(&call, EINVAL); 108 107 break; 109 108 }
Note:
See TracChangeset
for help on using the changeset viewer.