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