Changeset 19a1800 in mainline for uspace/drv/usbhub/usbhub.h
- Timestamp:
- 2011-03-01T22:20:56Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e24e7b1
- Parents:
- 976f546 (diff), ac8285d (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
r976f546 r19a1800 27 27 */ 28 28 29 /** @addtogroup usb29 /** @addtogroup drvusbhub 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 38 42 #define NAME "usbhub" 39 43 40 #include "usb/hcdhubd.h"44 #include <usb/hub.h> 41 45 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; 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 47 55 48 56 /** Information about attached hub. */ … … 50 58 /** Number of ports. */ 51 59 int port_count; 52 /** attached device handles */53 usb_h ub_attached_device_t * attached_devs;60 /** attached device handles, for each port one */ 61 usb_hc_attached_device_t * attached_devs; 54 62 /** General usb device info. */ 55 usb_hcd_attached_device_info_t * usb_device;63 //usb_hcd_attached_device_info_t * usb_device; 56 64 /** General device info*/ 57 device_t * device; 58 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; 59 73 } usb_hub_info_t; 60 74 61 75 /** 62 76 * function running the hub-controlling loop. 63 * @param noparam fundtion does not need any parameters77 * @param hub_info_param hub info pointer 64 78 */ 65 int usb_hub_control_loop(void * noparam);79 int usb_hub_control_loop(void * hub_info_param); 66 80 67 81 /** Callback when new hub device is detected. … … 70 84 * @return Error code. 71 85 */ 72 int usb_add_hub_device(d evice_t *dev);86 int usb_add_hub_device(ddf_dev_t *dev); 73 87 74 88 /** 75 * check changes on all registered hubs 89 * check changes on specified hub 90 * @param hub_info_param pointer to usb_hub_info_t structure 76 91 */ 77 void usb_hub_check_hub_changes( void);92 void usb_hub_check_hub_changes(usb_hub_info_t * hub_info_param); 78 93 79 94 80 //int usb_add_hub_device(device_t *);81 95 82 96
Note:
See TracChangeset
for help on using the changeset viewer.