Changeset fa8f1f7 in mainline for uspace/drv/usbhub/usbhub.h
- Timestamp:
- 2011-03-20T23:00:30Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c1f24c
- Parents:
- 8373f53 (diff), 33577f81 (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.h
r8373f53 rfa8f1f7 45 45 46 46 #include <usb/pipes.h> 47 #include <usb/devdrv.h> 48 49 50 /** Hub status-change endpoint description 51 * 52 * For more see usb hub specification in 11.15.1 of 53 */ 54 extern usb_endpoint_description_t hub_status_change_endpoint_description; 55 56 47 57 48 58 /* Hub endpoints. */ 49 typedef struct {59 /*typedef struct { 50 60 usb_endpoint_pipe_t control; 51 61 usb_endpoint_pipe_t status_change; 52 62 } usb_hub_endpoints_t; 53 63 */ 54 64 55 65 … … 58 68 /** Number of ports. */ 59 69 int port_count; 70 60 71 /** attached device handles, for each port one */ 61 72 usb_hc_attached_device_t * attached_devs; 62 /** General usb device info. */ 63 //usb_hcd_attached_device_info_t * usb_device; 64 /** General device info*/ 65 ddf_dev_t * device; 73 66 74 /** connection to hcd */ 67 //usb_device_connection_t connection;68 75 usb_hc_connection_t connection; 69 /** */70 usb_device_connection_t device_connection;71 /** hub endpoints */72 usb_hub_endpoints_t endpoints;73 76 77 /** default address is used indicator 78 * 79 * If default address is requested by this device, it cannot 80 * be requested by the same hub again, otherwise a deadlock will occur. 81 */ 74 82 bool is_default_address_used; 83 84 /** convenience pointer to status change pipe 85 * 86 * Status change pipe is initialized in usb_device structure. This is 87 * pointer into this structure, so that it does not have to be 88 * searched again and again for the 'right pipe'. 89 */ 90 usb_endpoint_pipe_t * status_change_pipe; 91 92 /** convenience pointer to control pipe 93 * 94 * Control pipe is initialized in usb_device structure. This is 95 * pointer into this structure, so that it does not have to be 96 * searched again and again for the 'right pipe'. 97 */ 98 usb_endpoint_pipe_t * control_pipe; 99 100 /** generic usb device data*/ 101 usb_device_t * usb_device; 75 102 } usb_hub_info_t; 76 103 … … 80 107 */ 81 108 int usb_hub_control_loop(void * hub_info_param); 82 83 /** Callback when new hub device is detected.84 *85 * @param dev New device.86 * @return Error code.87 */88 int usb_add_hub_device(ddf_dev_t *dev);89 109 90 110 /** … … 97 117 98 118 99 100 119 int usb_hub_add_device(usb_device_t * usb_dev); 101 120 102 121 #endif
Note:
See TracChangeset
for help on using the changeset viewer.