Changes in uspace/drv/usbhub/usbhub.h [1e1b1a9:578a2547] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.h
r1e1b1a9 r578a2547 37 37 38 38 #include <ipc/devman.h> 39 #include <usb/usb.h> 39 40 #include <ddf/driver.h> 40 41 42 #define NAME "usbhub" 43 41 44 #include <usb/hub.h> 42 #include <usb/classes/hub.h>43 45 44 46 #include <usb/pipes.h> 45 47 #include <usb/devdrv.h> 46 47 #include <fibril_synch.h>48 49 #define NAME "usbhub"50 48 51 49 #include "ports.h" … … 54 52 55 53 /** Information about attached hub. */ 56 typedef struct usb_hub_info_t{54 typedef struct { 57 55 /** Number of ports. */ 58 56 size_t port_count; 59 57 60 /** attached device handles, for each port one*/58 /** Ports. */ 61 59 usb_hub_port_t *ports; 62 60 63 61 /** connection to hcd */ 64 62 usb_hc_connection_t connection; … … 91 89 } usb_hub_info_t; 92 90 93 //int usb_hub_control_loop(void * hub_info_param); 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); 94 107 95 108 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);99 100 int usb_hub_release_default_address(usb_hub_info_t * hub);101 109 102 110 #endif
Note:
See TracChangeset
for help on using the changeset viewer.