Changeset ea30cc1 in mainline
- Timestamp:
- 2013-01-06T02:36:27Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c95c00e
- Parents:
- dc1d499
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/main.c
rdc1d499 rea30cc1 96 96 /* How much data to request. */ 97 97 dev->pipes[hid_dev->poll_pipe_index].pipe.max_packet_size, 98 /* Delay */ 99 0, 98 100 /* Callback when the polling ends. */ 99 101 usb_hid_polling_ended_callback, -
uspace/drv/bus/usb/usbhub/usbhub.c
rdc1d499 rea30cc1 147 147 /* Start hub operation. */ 148 148 opResult = usb_device_auto_poll(hub_dev->usb_device, 0, 149 hub_port_changes_callback, ((hub_dev->port_count + 1 + 8) / 8), 149 hub_port_changes_callback, ((hub_dev->port_count + 1 + 7) / 8), 150 255000, 150 151 usb_hub_polling_terminated_callback, hub_dev); 151 152 if (opResult != EOK) { … … 247 248 248 249 /* N + 1 bit indicates change on port N */ 249 for (size_t port = 0; port < hub->port_count + 1; port++) {250 for (size_t port = 0; port < hub->port_count; ++port) { 250 251 const size_t bit = port + 1; 251 252 const bool change = (change_bitmap[bit / 8] >> (bit % 8)) & 1; -
uspace/lib/usbdev/include/usb/dev/poll.h
rdc1d499 rea30cc1 95 95 96 96 int usb_device_auto_poll(usb_device_t *, size_t, 97 usb_polling_callback_t, size_t, usb_polling_terminted_callback_t, void *);97 usb_polling_callback_t, size_t, int, usb_polling_terminted_callback_t, void *); 98 98 99 99 #endif -
uspace/lib/usbdev/src/devpoll.c
rdc1d499 rea30cc1 194 194 */ 195 195 int usb_device_auto_poll(usb_device_t *dev, size_t pipe_index, 196 usb_polling_callback_t callback, size_t request_size, 196 usb_polling_callback_t callback, size_t request_size, int delay, 197 197 usb_polling_terminted_callback_t terminated_callback, void *arg) 198 198 { … … 200 200 .debug = 1, 201 201 .auto_clear_halt = true, 202 .delay = 0,202 .delay = delay, 203 203 .max_failures = MAX_FAILED_ATTEMPTS, 204 204 .on_data = callback,
Note:
See TracChangeset
for help on using the changeset viewer.