Changeset 984a9ba in mainline for uspace/drv/hid/usbhid/kbd/kbddev.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/hid/usbhid/kbd/kbddev.c
r76f566d r984a9ba 72 72 #include "../usbhid.h" 73 73 74 static void default_connection_handler(ddf_fun_t *, cap_call_handle_t,ipc_call_t *);74 static void default_connection_handler(ddf_fun_t *, ipc_call_t *); 75 75 static ddf_dev_ops_t kbdops = { .default_handler = default_connection_handler }; 76 76 … … 148 148 /* IPC method handler */ 149 149 150 /** 151 * Default handler for IPC methods not handled by DDF. 150 /** Default handler for IPC methods not handled by DDF. 152 151 * 153 152 * Currently recognizes only two methods (IPC_M_CONNECT_TO_ME and KBDEV_SET_IND) … … 156 155 * KBDEV_SET_IND sets LED keyboard indicators. 157 156 * 158 * @param fun Device function handling the call. 159 * @param icall_handle Call handle. 160 * @param icall Call data. 161 */ 162 static void 163 default_connection_handler(ddf_fun_t *fun, cap_call_handle_t icall_handle, 164 ipc_call_t *icall) 157 * @param fun Device function handling the call. 158 * @param icall Call data. 159 * 160 */ 161 static void default_connection_handler(ddf_fun_t *fun, ipc_call_t *icall) 165 162 { 166 163 const sysarg_t method = IPC_GET_IMETHOD(*icall); … … 172 169 kbd_dev->mods = IPC_GET_ARG1(*icall); 173 170 usb_kbd_set_led(kbd_dev->hid_dev, kbd_dev); 174 async_answer_0(icall _handle, EOK);171 async_answer_0(icall, EOK); 175 172 break; 176 173 /* … … 184 181 usb_log_warning( 185 182 "Failed to create start console session.\n"); 186 async_answer_0(icall _handle, EAGAIN);183 async_answer_0(icall, EAGAIN); 187 184 break; 188 185 } … … 190 187 kbd_dev->client_sess = sess; 191 188 usb_log_debug("%s: OK", __FUNCTION__); 192 async_answer_0(icall _handle, EOK);189 async_answer_0(icall, EOK); 193 190 } else { 194 191 usb_log_error("%s: console session already set", 195 192 __FUNCTION__); 196 async_answer_0(icall _handle, ELIMIT);193 async_answer_0(icall, ELIMIT); 197 194 } 198 195 break; … … 200 197 usb_log_error("%s: Unknown method: %d.", 201 198 __FUNCTION__, (int) method); 202 async_answer_0(icall _handle, EINVAL);199 async_answer_0(icall, EINVAL); 203 200 break; 204 201 }
Note:
See TracChangeset
for help on using the changeset viewer.