Changeset 984a9ba in mainline for uspace/drv/intctl/obio/obio.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/obio/obio.c
r76f566d r984a9ba 69 69 /** Handle one connection to obio. 70 70 * 71 * @param i id Hashof the request that opened the connection.72 * @param icall Call data of the request that opened the connection.73 * @param arg Local argument.71 * @param icall Call data of the request that opened the connection. 72 * @param arg Local argument. 73 * 74 74 */ 75 static void obio_connection( cap_call_handle_t icall_handle,ipc_call_t *icall, void *arg)75 static void obio_connection(ipc_call_t *icall, void *arg) 76 76 { 77 cap_call_handle_t chandle;78 77 ipc_call_t call; 79 78 obio_t *obio; … … 82 81 * Answer the first IPC_M_CONNECT_ME_TO call. 83 82 */ 84 async_answer_0(icall _handle, EOK);83 async_answer_0(icall, EOK); 85 84 86 obio = (obio_t *) ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg));85 obio = (obio_t *) ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *) arg)); 87 86 88 87 while (true) { 89 88 int inr; 90 89 91 chandle = async_get_call(&call); 90 async_get_call(&call); 91 92 92 switch (IPC_GET_IMETHOD(call)) { 93 93 case IRC_ENABLE_INTERRUPT: … … 95 95 pio_set_64(&obio->regs[OBIO_IMR(inr & INO_MASK)], 96 96 1UL << 31, 0); 97 async_answer_0( chandle, EOK);97 async_answer_0(&call, EOK); 98 98 break; 99 99 case IRC_DISABLE_INTERRUPT: 100 100 /* XXX TODO */ 101 async_answer_0( chandle, EOK);101 async_answer_0(&call, EOK); 102 102 break; 103 103 case IRC_CLEAR_INTERRUPT: 104 104 inr = IPC_GET_ARG1(call); 105 105 pio_write_64(&obio->regs[OBIO_CIR(inr & INO_MASK)], 0); 106 async_answer_0( chandle, EOK);106 async_answer_0(&call, EOK); 107 107 break; 108 108 default: 109 async_answer_0( chandle, EINVAL);109 async_answer_0(&call, EINVAL); 110 110 break; 111 111 }
Note:
See TracChangeset
for help on using the changeset viewer.