Changes in uspace/drv/vhc/hcd.c [70a9092:357a302] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/hcd.c
r70a9092 r357a302 27 27 */ 28 28 29 /** @addtogroup usb29 /** @addtogroup drvusbvhc 30 30 * @{ 31 31 */ … … 35 35 36 36 #include <devmap.h> 37 #include <ipc/ipc.h>38 37 #include <async.h> 39 38 #include <unistd.h> … … 46 45 47 46 #include <usb/usb.h> 47 #include <usb/ddfiface.h> 48 48 #include <usb_iface.h> 49 49 #include "vhcd.h" … … 53 53 #include "conn.h" 54 54 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 55 static device_ops_t vhc_ops = { 69 56 .interfaces[USBHC_DEV_IFACE] = &vhc_iface, 70 .interfaces[USB_DEV_IFACE] = &hc_usb_iface, 57 .interfaces[USB_DEV_IFACE] = &vhc_usb_iface, 58 .close = on_client_close, 71 59 .default_handler = default_connection_handler 72 60 }; … … 93 81 virtual_hub_device_init(dev); 94 82 95 printf("%s: virtual USB host controller ready.\n", NAME); 83 usb_log_info("Virtual USB host controller ready (id = %zu).\n", 84 (size_t) dev->handle); 96 85 97 86 return EOK; … … 116 105 sleep(5); 117 106 118 usb_ dprintf_enable(NAME, 0);107 usb_log_enable(USB_LOG_LEVEL_INFO, NAME); 119 108 120 109 printf(NAME ": virtual USB host controller driver.\n");
Note:
See TracChangeset
for help on using the changeset viewer.