Changes in uspace/lib/usbdev/src/devpoll.c [58563585:ff0258f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/devpoll.c
r58563585 rff0258f 33 33 * USB device driver framework - automatic interrupt polling. 34 34 */ 35 36 35 #include <usb/dev/device.h> 37 36 #include <usb/dev/pipes.h> … … 86 85 87 86 if (params->debug > 0) { 88 const usb_endpoint_mapping_t *mapping =89 data->polling_mapping;87 const usb_endpoint_mapping_t *mapping 88 = data->polling_mapping; 90 89 usb_log_debug("Poll (%p): started polling of `%s' - " \ 91 90 "interface %d (%s,%d,%d), %zuB/%zu.\n", … … 155 154 156 155 /* Take a rest before next request. */ 157 158 // FIXME TODO: This is broken, the time is in ms not us. 156 //TODO: This is broken, the time is in ms not us. 159 157 // but first we need to fix drivers to actually stop using this, 160 // since polling de lay should be implemented in HC schedule158 // since polling dealy should be implemented in HC schedule 161 159 async_usleep(params->delay); 162 160 } … … 215 213 if (request_size == 0) 216 214 return EINVAL; 217 215 218 216 if (!epm || (epm->pipe.transfer_type != USB_TRANSFER_INTERRUPT) || 219 217 (epm->pipe.direction != USB_DIRECTION_IN)) 220 218 return EINVAL; 221 219 222 220 223 221 polling_data_t *polling_data = malloc(sizeof(polling_data_t));
Note:
See TracChangeset
for help on using the changeset viewer.