Changeset 0a7627b in mainline
- Timestamp:
- 2011-06-01T14:27:24Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 083adbc
- Parents:
- df29f24
- Location:
- uspace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/usbhid.h
rdf29f24 r0a7627b 50 50 typedef int (*usb_hid_driver_init_t)(struct usb_hid_dev *, void **data); 51 51 typedef void (*usb_hid_driver_deinit_t)(struct usb_hid_dev *, void *data); 52 typedef bool (*usb_hid_driver_poll )(struct usb_hid_dev *, void *data, uint8_t *,52 typedef bool (*usb_hid_driver_poll_t)(struct usb_hid_dev *, void *data, uint8_t *, 53 53 size_t); 54 typedef int (*usb_hid_driver_poll_ended )(struct usb_hid_dev *, void *data,54 typedef int (*usb_hid_driver_poll_ended_t)(struct usb_hid_dev *, void *data, 55 55 bool reason); 56 56 … … 61 61 usb_hid_driver_deinit_t deinit; 62 62 /** Function to be called when data arrives from the device. */ 63 usb_hid_driver_poll poll;63 usb_hid_driver_poll_t poll; 64 64 /** Function to be called when polling ends. */ 65 usb_hid_driver_poll_ended poll_end;65 usb_hid_driver_poll_ended_t poll_end; 66 66 /** Arbitrary data needed by the subdriver. */ 67 67 void *data; -
uspace/lib/usbhid/src/hidreq.c
rdf29f24 r0a7627b 82 82 value |= (type << 8); 83 83 84 usb_log_debug("Sending Set _Report request to the device.\n");84 usb_log_debug("Sending Set Report request to the device.\n"); 85 85 86 86 rc = usb_control_request_set(ctrl_pipe, … … 89 89 90 90 if (rc != EOK) { 91 usb_log_warning("Error sending output report to the keyboard:"92 " %s.\n", str_error(rc));91 usb_log_warning("Error sending Set Report request to the " 92 "device: %s.\n", str_error(rc)); 93 93 return rc; 94 94 } … … 129 129 int rc; 130 130 131 usb_log_debug("Sending Set _Protocol request to the device ("131 usb_log_debug("Sending Set Protocol request to the device (" 132 132 "protocol: %d, iface: %d).\n", protocol, iface_no); 133 133 … … 137 137 138 138 if (rc != EOK) { 139 usb_log_warning("Error sending output report to the keyboard:"140 " %s.\n", str_error(rc));139 usb_log_warning("Error sending Set Protocol request to the " 140 "device: %s.\n", str_error(rc)); 141 141 return rc; 142 142 } … … 177 177 int rc; 178 178 179 usb_log_debug("Sending Set _Idle request to the device ("179 usb_log_debug("Sending Set Idle request to the device (" 180 180 "duration: %u, iface: %d).\n", duration, iface_no); 181 181 … … 187 187 188 188 if (rc != EOK) { 189 usb_log_warning("Error sending output report to the keyboard: "189 usb_log_warning("Error sending Set Idle request to the device: " 190 190 "%s.\n", str_error(rc)); 191 191 return rc; … … 235 235 value |= (type << 8); 236 236 237 usb_log_debug("Sending Get _Report request to the device.\n");237 usb_log_debug("Sending Get Report request to the device.\n"); 238 238 239 239 rc = usb_control_request_get(ctrl_pipe, … … 243 243 244 244 if (rc != EOK) { 245 usb_log_warning("Error sending output report to the keyboard: "245 usb_log_warning("Error sending Get Report request to the device: " 246 246 "%s.\n", str_error(rc)); 247 247 return rc; … … 283 283 int rc; 284 284 285 usb_log_debug("Sending Get _Protocol request to the device ("285 usb_log_debug("Sending Get Protocol request to the device (" 286 286 "iface: %d).\n", iface_no); 287 287 … … 294 294 295 295 if (rc != EOK) { 296 usb_log_warning("Error sending output report to the keyboard:"297 " %s.\n", str_error(rc));296 usb_log_warning("Error sending Get Protocol request to the " 297 "device: %s.\n", str_error(rc)); 298 298 return rc; 299 299 } … … 344 344 int rc; 345 345 346 usb_log_debug("Sending Get _Idle request to the device ("346 usb_log_debug("Sending Get Idle request to the device (" 347 347 "iface: %d).\n", iface_no); 348 348 … … 357 357 358 358 if (rc != EOK) { 359 usb_log_warning("Error sending output report to the keyboard: "359 usb_log_warning("Error sending Get Idle request to the device: " 360 360 "%s.\n", str_error(rc)); 361 361 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.