Changeset e50cd7f in mainline for uspace/drv/usbhub/usbhub.h
- Timestamp:
- 2011-04-17T19:17:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63517c2, cfbbe1d3
- Parents:
- ef354b6 (diff), 8595577b (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
ref354b6 re50cd7f 37 37 38 38 #include <ipc/devman.h> 39 #include <usb/usb.h>40 39 #include <ddf/driver.h> 41 40 42 #define NAME "usbhub"43 44 41 #include <usb/hub.h> 42 #include <usb/classes/hub.h> 45 43 46 44 #include <usb/pipes.h> 47 45 #include <usb/devdrv.h> 46 47 #include <fibril_synch.h> 48 49 #define NAME "usbhub" 48 50 49 51 #include "ports.h" … … 52 54 53 55 /** Information about attached hub. */ 54 typedef struct{56 struct usb_hub_info_t{ 55 57 /** Number of ports. */ 56 58 size_t port_count; 57 59 58 /** Ports.*/60 /** attached device handles, for each port one */ 59 61 usb_hub_port_t *ports; 60 62 61 63 /** connection to hcd */ 62 64 usb_hc_connection_t connection; … … 87 89 /** generic usb device data*/ 88 90 usb_device_t * usb_device; 89 } usb_hub_info_t;91 }; 90 92 91 /** 92 * function running the hub-controlling loop. 93 * @param hub_info_param hub info pointer 94 */ 95 int usb_hub_control_loop(void * hub_info_param); 96 97 /** 98 * Check changes on specified hub 99 * @param hub_info_param pointer to usb_hub_info_t structure 100 * @return error code if there is problem when initializing communication with 101 * hub, EOK otherwise 102 */ 103 int usb_hub_check_hub_changes(usb_hub_info_t * hub_info_param); 104 105 void usb_hub_removed_device(usb_hub_info_t *, uint16_t); 106 void usb_hub_over_current(usb_hub_info_t *, uint16_t); 93 //int usb_hub_control_loop(void * hub_info_param); 107 94 108 95 int usb_hub_add_device(usb_device_t * usb_dev); 96 97 bool hub_port_changes_callback(usb_device_t *dev, 98 uint8_t *change_bitmap, size_t change_bitmap_size, void *arg); 109 99 110 100 #endif
Note:
See TracChangeset
for help on using the changeset viewer.