Changeset 984a9ba in mainline for uspace/drv/intctl/apic/apic.c
- Timestamp:
- 2018-07-05T09:34:09Z (7 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/apic/apic.c
r76f566d r984a9ba 160 160 /** Handle one connection to APIC. 161 161 * 162 * @param iid Hash of the request that opened the connection.163 162 * @param icall Call data of the request that opened the connection. 164 * @param arg 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; 163 * @param arg Local argument. 164 * 165 */ 166 static void apic_connection(ipc_call_t *icall, void *arg) 167 { 169 168 ipc_call_t call; 170 169 apic_t *apic; … … 173 172 * Answer the first IPC_M_CONNECT_ME_TO call. 174 173 */ 175 async_answer_0(icall _handle, EOK);176 177 apic = (apic_t *) ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg));174 async_answer_0(icall, EOK); 175 176 apic = (apic_t *) ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *) arg)); 178 177 179 178 while (true) { 180 chandle =async_get_call(&call);179 async_get_call(&call); 181 180 182 181 if (!IPC_GET_IMETHOD(call)) { 183 182 /* The other side has hung up. */ 184 async_answer_0( chandle, EOK);183 async_answer_0(&call, EOK); 185 184 return; 186 185 } … … 188 187 switch (IPC_GET_IMETHOD(call)) { 189 188 case IRC_ENABLE_INTERRUPT: 190 async_answer_0( chandle, apic_enable_irq(apic,189 async_answer_0(&call, apic_enable_irq(apic, 191 190 IPC_GET_ARG1(call))); 192 191 break; 193 192 case IRC_DISABLE_INTERRUPT: 194 193 /* XXX TODO */ 195 async_answer_0( chandle, EOK);194 async_answer_0(&call, EOK); 196 195 break; 197 196 case IRC_CLEAR_INTERRUPT: 198 197 /* Noop */ 199 async_answer_0( chandle, EOK);198 async_answer_0(&call, EOK); 200 199 break; 201 200 default: 202 async_answer_0( chandle, EINVAL);201 async_answer_0(&call, EINVAL); 203 202 break; 204 203 }
Note:
See TracChangeset
for help on using the changeset viewer.