Changeset 58563585 in mainline for uspace/lib/usbdev/src/devpoll.c
- Timestamp:
- 2016-08-31T11:15:39Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 10cb47e
- Parents:
- 7a67416
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/devpoll.c
r7a67416 r58563585 33 33 * USB device driver framework - automatic interrupt polling. 34 34 */ 35 35 36 #include <usb/dev/device.h> 36 37 #include <usb/dev/pipes.h> … … 85 86 86 87 if (params->debug > 0) { 87 const usb_endpoint_mapping_t *mapping 88 =data->polling_mapping;88 const usb_endpoint_mapping_t *mapping = 89 data->polling_mapping; 89 90 usb_log_debug("Poll (%p): started polling of `%s' - " \ 90 91 "interface %d (%s,%d,%d), %zuB/%zu.\n", … … 154 155 155 156 /* Take a rest before next request. */ 156 //TODO: This is broken, the time is in ms not us. 157 158 // FIXME TODO: This is broken, the time is in ms not us. 157 159 // but first we need to fix drivers to actually stop using this, 158 // since polling de aly should be implemented in HC schedule160 // since polling delay should be implemented in HC schedule 159 161 async_usleep(params->delay); 160 162 } … … 213 215 if (request_size == 0) 214 216 return EINVAL; 215 217 216 218 if (!epm || (epm->pipe.transfer_type != USB_TRANSFER_INTERRUPT) || 217 219 (epm->pipe.direction != USB_DIRECTION_IN)) 218 220 return EINVAL; 219 221 220 222 221 223 polling_data_t *polling_data = malloc(sizeof(polling_data_t));
Note:
See TracChangeset
for help on using the changeset viewer.