Changeset bb70637 in mainline for uspace/drv/bus/usb/usbhub
- Timestamp:
- 2013-01-26T23:35:12Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 35bc430
- Parents:
- 3e23316
- Location:
- uspace/drv/bus/usb/usbhub
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/main.c
r3e23316 rbb70637 43 43 #include "usbhub.h" 44 44 45 /** Hub status-change endpoint description.46 *47 * For more information see section 11.15.1 of USB 1.1 specification.48 */49 static const usb_endpoint_description_t hub_status_change_endpoint_description =50 {51 .transfer_type = USB_TRANSFER_INTERRUPT,52 .direction = USB_DIRECTION_IN,53 .interface_class = USB_CLASS_HUB,54 .interface_subclass = 0,55 .interface_protocol = 0,56 .flags = 057 };58 45 59 46 /** USB hub driver operations. */ -
uspace/drv/bus/usb/usbhub/usbhub.c
r3e23316 rbb70637 57 57 58 58 #define HUB_FNC_NAME "hub" 59 /** Hub status-change endpoint description. 60 * 61 * For more information see section 11.15.1 of USB 1.1 specification. 62 */ 63 const usb_endpoint_description_t hub_status_change_endpoint_description = 64 { 65 .transfer_type = USB_TRANSFER_INTERRUPT, 66 .direction = USB_DIRECTION_IN, 67 .interface_class = USB_CLASS_HUB, 68 .interface_subclass = 0, 69 .interface_protocol = 0, 70 .flags = 0 71 }; 59 72 60 73 /** Standard get hub global status request */ … … 147 160 148 161 /* Start hub operation. */ 149 opResult = usb_device_auto_poll(hub_dev->usb_device, 0, 162 opResult = usb_device_auto_poll_desc(hub_dev->usb_device, 163 &hub_status_change_endpoint_description, 150 164 hub_port_changes_callback, ((hub_dev->port_count + 1 + 7) / 8), 151 255000, 152 usb_hub_polling_terminated_callback, hub_dev); 165 -1, usb_hub_polling_terminated_callback, hub_dev); 153 166 if (opResult != EOK) { 154 167 usb_pipe_end_long_transfer(control_pipe); -
uspace/drv/bus/usb/usbhub/usbhub.h
r3e23316 rbb70637 80 80 }; 81 81 82 extern const usb_endpoint_description_t hub_status_change_endpoint_description; 83 82 84 int usb_hub_device_add(usb_device_t *usb_dev); 83 85 int usb_hub_device_remove(usb_device_t *usb_dev);
Note:
See TracChangeset
for help on using the changeset viewer.