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