Changeset 940f576 in mainline
- Timestamp:
- 2011-10-12T18:54:05Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 196fbb0
- Parents:
- 51f033ce
- Location:
- uspace/drv/bus/usb/usbhub
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/main.c
r51f033ce r940f576 62 62 */ 63 63 static usb_driver_ops_t usb_hub_driver_ops = { 64 .device_add = usb_hub_device_add 64 .device_add = usb_hub_device_add, 65 .device_gone = usb_hub_device_gone, 65 66 }; 66 67 -
uspace/drv/bus/usb/usbhub/port.h
r51f033ce r940f576 40 40 #include <usb/classes/hub.h> 41 41 42 typedef struct usb_hub_info _tusb_hub_info_t;42 typedef struct usb_hub_info usb_hub_info_t; 43 43 44 44 /** Information about single port on a hub. */ -
uspace/drv/bus/usb/usbhub/usbhub.c
r51f033ce r940f576 75 75 static void usb_hub_polling_terminated_callback(usb_device_t *device, 76 76 bool was_error, void *data); 77 77 /** 78 * Initialize hub device driver fibril 79 * 80 * Creates hub representation and fibril that periodically checks hub's status. 81 * Hub representation is passed to the fibril. 82 * @param usb_dev generic usb device information 83 * @return error code 84 */ 85 int usb_hub_device_gone(usb_device_t *usb_dev) 86 { 87 return ENOTSUP; 88 } 89 /*----------------------------------------------------------------------------*/ 78 90 /** 79 91 * Initialize hub device driver fibril -
uspace/drv/bus/usb/usbhub/usbhub.h
r51f033ce r940f576 52 52 53 53 /** Information about attached hub. */ 54 struct usb_hub_info _t{54 struct usb_hub_info { 55 55 /** Number of ports. */ 56 56 size_t port_count; … … 79 79 80 80 int usb_hub_device_add(usb_device_t *usb_dev); 81 int usb_hub_device_gone(usb_device_t *usb_dev); 81 82 82 83 bool hub_port_changes_callback(usb_device_t *dev,
Note:
See TracChangeset
for help on using the changeset viewer.