Changeset 129b821f in mainline for uspace/drv/bus/usb/uhci
- Timestamp:
- 2018-01-20T12:34:50Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 682c9354
- Parents:
- 60d3f35
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-20 12:33:42)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-20 12:34:50)
- Location:
- uspace/drv/bus/usb/uhci
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.c
r60d3f35 r129b821f 51 51 #include <usb/host/utils/malloc32.h> 52 52 #include <usb/host/bandwidth.h> 53 #include <usb/host/utility.h> 53 54 54 55 #include "uhci_batch.h" … … 258 259 } 259 260 261 int hc_setup_roothub(hc_device_t *hcd) 262 { 263 return hc_setup_virtual_root_hub(hcd, USB_SPEED_FULL); 264 } 265 260 266 /** Safely dispose host controller internal structures 261 267 * … … 330 336 331 337 // Check for the roothub, as it does not schedule into lists 332 if (ep->device-> speed == USB_SPEED_MAX) {338 if (ep->device->address == uhci_rh_get_address(&hc->rh)) { 333 339 // FIXME: We shall check the roothub for active transfer. But 334 340 // as it is polling, there is no way to make it stop doing so. -
uspace/drv/bus/usb/uhci/hc.h
r60d3f35 r129b821f 150 150 extern int hc_gen_irq_code(irq_code_t *, hc_device_t *, const hw_res_list_parsed_t *); 151 151 extern int hc_start(hc_device_t *); 152 extern int hc_setup_roothub(hc_device_t *); 152 153 extern int hc_gone(hc_device_t *); 153 154 -
uspace/drv/bus/usb/uhci/main.c
r60d3f35 r129b821f 58 58 .hc_add = hc_add, 59 59 .start = hc_start, 60 .setup_root_hub = hc_setup_ virtual_root_hub,60 .setup_root_hub = hc_setup_roothub, 61 61 .hc_gone = hc_gone, 62 62 };
Note:
See TracChangeset
for help on using the changeset viewer.
