Changes in uspace/drv/usbhub/usbhub.h [625f1ba:a83e138] in mainline
- File:
-
- 1 edited
-
uspace/drv/usbhub/usbhub.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.h
r625f1ba ra83e138 45 45 46 46 #include <usb/pipes.h> 47 #include <usb/devdrv.h> 47 48 /* Hub endpoints. */ 49 typedef struct { 50 usb_endpoint_pipe_t control; 51 usb_endpoint_pipe_t status_change; 52 } usb_hub_endpoints_t; 53 48 54 49 55 … … 52 58 /** Number of ports. */ 53 59 int port_count; 54 55 60 /** attached device handles, for each port one */ 56 61 usb_hc_attached_device_t * attached_devs; 57 62 /** General usb device info. */ 63 //usb_hcd_attached_device_info_t * usb_device; 64 /** General device info*/ 65 ddf_dev_t * device; 58 66 /** connection to hcd */ 67 //usb_device_connection_t connection; 59 68 usb_hc_connection_t connection; 69 /** */ 70 usb_device_connection_t device_connection; 71 /** hub endpoints */ 72 usb_hub_endpoints_t endpoints; 60 73 61 /** default address is used indicator62 *63 * If default address is requested by this device, it cannot64 * be requested by the same hub again, otherwise a deadlock will occur.65 */66 74 bool is_default_address_used; 67 68 /** convenience pointer to status change pipe69 *70 * Status change pipe is initialized in usb_device structure. This is71 * pointer into this structure, so that it does not have to be72 * searched again and again for the 'right pipe'.73 */74 usb_pipe_t * status_change_pipe;75 76 /** convenience pointer to control pipe77 *78 * Control pipe is initialized in usb_device structure. This is79 * pointer into this structure, so that it does not have to be80 * searched again and again for the 'right pipe'.81 */82 usb_pipe_t * control_pipe;83 84 /** generic usb device data*/85 usb_device_t * usb_device;86 75 } usb_hub_info_t; 87 76 … … 91 80 */ 92 81 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); 93 89 94 90 /** … … 101 97 102 98 103 int usb_hub_add_device(usb_device_t * usb_dev); 99 100 104 101 105 102 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
