Changes in uspace/drv/vhc/hcd.c [71ed4849:e63a4e1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/hcd.c
r71ed4849 re63a4e1 46 46 47 47 #include <usb/usb.h> 48 #include <usb_iface.h>49 48 #include "vhcd.h" 50 49 #include "hc.h" … … 53 52 #include "conn.h" 54 53 55 static int usb_iface_get_hc_handle(device_t *dev, devman_handle_t *handle)56 {57 /* This shall be called only for VHC device. */58 assert(dev->parent == NULL);59 60 *handle = dev->handle;61 return EOK;62 }63 64 static usb_iface_t hc_usb_iface = {65 .get_hc_handle = usb_iface_get_hc_handle66 };67 68 54 static device_ops_t vhc_ops = { 69 55 .interfaces[USBHC_DEV_IFACE] = &vhc_iface, 70 .interfaces[USB_DEV_IFACE] = &hc_usb_iface,71 56 .default_handler = default_connection_handler 72 57 }; … … 85 70 86 71 dev->ops = &vhc_ops; 72 73 /* 74 * Initialize address management. 75 */ 76 address_init(); 87 77 88 78 /* … … 118 108 printf(NAME ": virtual USB host controller driver.\n"); 119 109 120 /*121 * Initialize address management.122 */123 address_init();124 125 /*126 * Run the transfer scheduler.127 */128 110 hc_manager(); 129 111 130 /*131 * We are also a driver within devman framework.132 */133 112 return driver_main(&vhc_driver); 134 113 }
Note:
See TracChangeset
for help on using the changeset viewer.