Changes in uspace/drv/vhc/hcd.c [357a302:70a9092] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/vhc/hcd.c

    r357a302 r70a9092  
    2727 */
    2828
    29 /** @addtogroup drvusbvhc
     29/** @addtogroup usb
    3030 * @{
    3131 */
     
    3535
    3636#include <devmap.h>
     37#include <ipc/ipc.h>
    3738#include <async.h>
    3839#include <unistd.h>
     
    4546
    4647#include <usb/usb.h>
    47 #include <usb/ddfiface.h>
    4848#include <usb_iface.h>
    4949#include "vhcd.h"
     
    5353#include "conn.h"
    5454
     55static 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
     64static usb_iface_t hc_usb_iface = {
     65        .get_hc_handle = usb_iface_get_hc_handle
     66};
     67
    5568static device_ops_t vhc_ops = {
    5669        .interfaces[USBHC_DEV_IFACE] = &vhc_iface,
    57         .interfaces[USB_DEV_IFACE] = &vhc_usb_iface,
    58         .close = on_client_close,
     70        .interfaces[USB_DEV_IFACE] = &hc_usb_iface,
    5971        .default_handler = default_connection_handler
    6072};
     
    8193        virtual_hub_device_init(dev);
    8294
    83         usb_log_info("Virtual USB host controller ready (id = %zu).\n",
    84             (size_t) dev->handle);
     95        printf("%s: virtual USB host controller ready.\n", NAME);
    8596
    8697        return EOK;
     
    105116        sleep(5);
    106117
    107         usb_log_enable(USB_LOG_LEVEL_INFO, NAME);
     118        usb_dprintf_enable(NAME, 0);
    108119
    109120        printf(NAME ": virtual USB host controller driver.\n");
Note: See TracChangeset for help on using the changeset viewer.