Changes in uspace/drv/usbhub/usbhub.h [dff940f8:39c3d95d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.h
rdff940f8 r39c3d95d 27 27 */ 28 28 29 /** @addtogroup drvusbhub29 /** @addtogroup usb 30 30 * @{ 31 31 */ … … 36 36 #define DRV_USBHUB_USBHUB_H 37 37 38 #include <ipc/devman.h>39 #include <usb/usb.h>40 #include <ddf/driver.h>41 42 38 #define NAME "usbhub" 43 39 44 #include <usb/hub.h>40 #include "usb/hcdhubd.h" 45 41 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 54 42 /** basic information about device attached to hub */ 43 typedef struct{ 44 usb_address_t address; 45 devman_handle_t devman_handle; 46 }usb_hub_attached_device_t; 55 47 56 48 /** Information about attached hub. */ … … 58 50 /** Number of ports. */ 59 51 int port_count; 60 /** attached device handles , for each port one*/61 usb_h c_attached_device_t * attached_devs;52 /** attached device handles */ 53 usb_hub_attached_device_t * attached_devs; 62 54 /** General usb device info. */ 63 //usb_hcd_attached_device_info_t * usb_device;55 usb_hcd_attached_device_info_t * usb_device; 64 56 /** General device info*/ 65 ddf_dev_t * device; 66 /** connection to hcd */ 67 //usb_device_connection_t connection; 68 usb_hc_connection_t connection; 69 /** */ 70 usb_device_connection_t device_connection; 71 /** hub endpoints */ 72 usb_hub_endpoints_t endpoints; 57 device_t * device; 58 73 59 } usb_hub_info_t; 74 60 75 61 /** 76 62 * function running the hub-controlling loop. 77 * @param hub_info_param hub info pointer63 * @param noparam fundtion does not need any parameters 78 64 */ 79 int usb_hub_control_loop(void * hub_info_param);65 int usb_hub_control_loop(void * noparam); 80 66 81 67 /** Callback when new hub device is detected. … … 84 70 * @return Error code. 85 71 */ 86 int usb_add_hub_device(d df_dev_t *dev);72 int usb_add_hub_device(device_t *dev); 87 73 88 74 /** 89 * check changes on specified hub 90 * @param hub_info_param pointer to usb_hub_info_t structure 75 * check changes on all registered hubs 91 76 */ 92 void usb_hub_check_hub_changes( usb_hub_info_t * hub_info_param);77 void usb_hub_check_hub_changes(void); 93 78 94 79 80 //int usb_add_hub_device(device_t *); 95 81 96 82
Note:
See TracChangeset
for help on using the changeset viewer.