Changeset 71f211f in mainline for uspace/drv
- Timestamp:
- 2018-01-13T20:47:58Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8a0c52a
- Parents:
- 7dddd7b
- git-author:
- Petr Manek <petr.manek@…> (2018-01-13 20:44:08)
- git-committer:
- Petr Manek <petr.manek@…> (2018-01-13 20:47:58)
- Location:
- uspace/drv
- Files:
-
- 4 edited
-
bus/usb/usbhub/usbhub.c (modified) (2 diffs)
-
bus/usb/usbhub/usbhub.h (modified) (2 diffs)
-
hid/usbhid/main.c (modified) (2 diffs)
-
hid/usbhid/usbhid.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/usbhub.c
r7dddd7b r71f211f 164 164 165 165 /* Start hub operation. */ 166 const usb_device_ auto_polling_t auto_polling = {166 const usb_device_polling_config_t config = { 167 167 .debug = 1, 168 168 .auto_clear_halt = true, … … 178 178 usb_device_get_mapped_ep_desc(hub_dev->usb_device, 179 179 &hub_status_change_endpoint_description); 180 opResult = usb_device_ auto_polling(hub_dev->usb_device, epm,181 &auto_polling, ((hub_dev->port_count + 1 + 7) / 8));180 opResult = usb_device_poll(hub_dev->usb_device, epm, &config, 181 ((hub_dev->port_count + 1 + 7) / 8), &hub_dev->polling); 182 182 183 183 if (opResult != EOK) { -
uspace/drv/bus/usb/usbhub/usbhub.h
r7dddd7b r71f211f 44 44 #include <usb/dev/pipes.h> 45 45 #include <usb/dev/driver.h> 46 #include <usb/dev/poll.h> 46 47 47 48 #include <fibril_synch.h> … … 59 60 /** Generic usb device data*/ 60 61 usb_device_t *usb_device; 61 62 /** Data polling handle. */ 63 usb_device_polling_t *polling; 62 64 /** Number of pending operations on the mutex to prevent shooting 63 65 * ourselves in the foot. -
uspace/drv/hid/usbhid/main.c
r7dddd7b r71f211f 90 90 * This will create a separate fibril that will query the device 91 91 * for the data continuously. */ 92 const usb_device_ auto_polling_t auto_polling = {92 const usb_device_polling_config_t config = { 93 93 .debug = 1, 94 94 .auto_clear_halt = true, … … 101 101 }; 102 102 103 rc = usb_device_ auto_polling(dev, hid_dev->poll_pipe_mapping,104 &auto_polling, hid_dev->poll_pipe_mapping->pipe.desc.max_transfer_size);103 rc = usb_device_poll(dev, hid_dev->poll_pipe_mapping, &config, 104 hid_dev->poll_pipe_mapping->pipe.desc.max_transfer_size, &hid_dev->polling); 105 105 106 106 if (rc != EOK) { -
uspace/drv/hid/usbhid/usbhid.h
r7dddd7b r71f211f 43 43 #include <usb/dev/pipes.h> 44 44 #include <usb/dev/driver.h> 45 #include <usb/dev/poll.h> 45 46 #include <usb/hid/hid.h> 46 47 #include <stdbool.h> … … 107 108 usb_endpoint_mapping_t *poll_pipe_mapping; 108 109 110 /** Device polling handle. */ 111 usb_device_polling_t *polling; 112 109 113 /** Subdrivers. */ 110 114 usb_hid_subdriver_t *subdrivers;
Note:
See TracChangeset
for help on using the changeset viewer.
