Changes in uspace/drv/bus/usb/usbhub/main.c [54d1ad9:5203e256] in mainline
- File:
-
- 1 edited
-
uspace/drv/bus/usb/usbhub/main.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/main.c
r54d1ad9 r5203e256 1 1 /* 2 2 * Copyright (c) 2010 Vojtech Horky 3 * Copyright (c) 2011 Jan Vesely4 3 * All rights reserved. 5 4 * … … 39 38 #include <usb/dev/driver.h> 40 39 #include <usb/classes/classes.h> 41 #include <usb/debug.h>42 40 43 41 #include "usbhub.h" 42 #include "usbhub_private.h" 44 43 45 44 /** Hub status-change endpoint description. … … 47 46 * For more information see section 11.15.1 of USB 1.1 specification. 48 47 */ 49 static const usb_endpoint_description_t hub_status_change_endpoint_description = 50 { 48 static usb_endpoint_description_t hub_status_change_endpoint_description = { 51 49 .transfer_type = USB_TRANSFER_INTERRUPT, 52 50 .direction = USB_DIRECTION_IN, … … 57 55 }; 58 56 59 /** USB hub driver operations. */ 60 static const usb_driver_ops_t usb_hub_driver_ops = { 61 .device_add = usb_hub_device_add, 62 // .device_rem = usb_hub_device_remove, 63 .device_gone = usb_hub_device_gone, 57 /** 58 * usb hub driver operations 59 * 60 * The most important one is add_device, which is set to usb_hub_add_device. 61 */ 62 static usb_driver_ops_t usb_hub_driver_ops = { 63 .add_device = usb_hub_add_device 64 64 }; 65 65 66 /** Hub endpoints, excluding control endpoint. */ 67 static const usb_endpoint_description_t *usb_hub_endpoints[] = { 66 /** 67 * hub endpoints, excluding control endpoint 68 */ 69 static usb_endpoint_description_t *usb_hub_endpoints[] = { 68 70 &hub_status_change_endpoint_description, 69 NULL ,71 NULL 70 72 }; 71 /** Static usb hub driver information. */ 72 static const usb_driver_t usb_hub_driver = { 73 74 /** 75 * static usb hub driver information 76 */ 77 static usb_driver_t usb_hub_driver = { 73 78 .name = NAME, 74 79 .ops = &usb_hub_driver_ops, … … 76 81 }; 77 82 83 78 84 int main(int argc, char *argv[]) 79 85 { 80 86 printf(NAME ": HelenOS USB hub driver.\n"); 87 81 88 usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME); 82 89 … … 87 94 * @} 88 95 */ 96
Note:
See TracChangeset
for help on using the changeset viewer.
