Changes in uspace/drv/intctl/apic/apic.c [a46e56b:a35b458] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/apic/apic.c
ra46e56b ra35b458 164 164 * @param arg Local argument. 165 165 */ 166 static void apic_connection( cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg)167 { 168 cap_call_handle_t chandle;166 static void apic_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg) 167 { 168 ipc_callid_t callid; 169 169 ipc_call_t call; 170 170 apic_t *apic; … … 173 173 * Answer the first IPC_M_CONNECT_ME_TO call. 174 174 */ 175 async_answer_0(i call_handle, EOK);175 async_answer_0(iid, EOK); 176 176 177 177 apic = (apic_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg)); 178 178 179 179 while (true) { 180 c handle= async_get_call(&call);180 callid = async_get_call(&call); 181 181 182 182 if (!IPC_GET_IMETHOD(call)) { 183 183 /* The other side has hung up. */ 184 async_answer_0(c handle, EOK);184 async_answer_0(callid, EOK); 185 185 return; 186 186 } … … 188 188 switch (IPC_GET_IMETHOD(call)) { 189 189 case IRC_ENABLE_INTERRUPT: 190 async_answer_0(c handle, apic_enable_irq(apic,190 async_answer_0(callid, apic_enable_irq(apic, 191 191 IPC_GET_ARG1(call))); 192 192 break; 193 193 case IRC_DISABLE_INTERRUPT: 194 194 /* XXX TODO */ 195 async_answer_0(c handle, EOK);195 async_answer_0(callid, EOK); 196 196 break; 197 197 case IRC_CLEAR_INTERRUPT: 198 198 /* Noop */ 199 async_answer_0(c handle, EOK);199 async_answer_0(callid, EOK); 200 200 break; 201 201 default: 202 async_answer_0(c handle, EINVAL);202 async_answer_0(callid, EINVAL); 203 203 break; 204 204 }
Note:
See TracChangeset
for help on using the changeset viewer.