Changeset 0f191a2 in mainline for uspace/drv/usbhub/usbhub.c
- Timestamp:
- 2011-01-07T09:20:13Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2b0db98, 2c98e78, 43c3937
- Parents:
- ae1f70e (diff), 8f8a0cd6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
rae1f70e r0f191a2 37 37 #include <errno.h> 38 38 39 #include <usb hc_iface.h>39 #include <usb_iface.h> 40 40 #include <usb/usbdrv.h> 41 41 #include <usb/descriptor.h> … … 46 46 #include "usbhub_private.h" 47 47 #include "port_status.h" 48 49 static usb_iface_t hub_usb_iface = { 50 .get_hc_handle = usb_drv_find_hc 51 }; 52 53 static device_ops_t hub_device_ops = { 54 .interfaces[USB_DEV_IFACE] = &hub_usb_iface 55 }; 48 56 49 57 //********************************************* … … 135 143 * connected devices. 136 144 */ 145 dev->ops = &hub_device_ops; 137 146 138 147 //create the hub structure 139 148 //get hc connection 140 int hc = usb_drv_hc_connect(dev, 0); 149 int hc = usb_drv_hc_connect_auto(dev, 0); 150 if (hc < 0) { 151 return hc; 152 } 141 153 142 154 usb_hub_info_t * hub_info = usb_create_hub_info(dev, hc); … … 464 476 * Connect to respective HC. 465 477 */ 466 int hc = usb_drv_hc_connect (hub_info->device, 0);478 int hc = usb_drv_hc_connect_auto(hub_info->device, 0); 467 479 if (hc < 0) { 468 480 continue;
Note:
See TracChangeset
for help on using the changeset viewer.