Changes in uspace/drv/vhc/hcd.c [70a9092:1f383dde] in mainline


Ignore:
File:
1 edited

Legend:

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

    r70a9092 r1f383dde  
    4646
    4747#include <usb/usb.h>
    48 #include <usb_iface.h>
    4948#include "vhcd.h"
    5049#include "hc.h"
     
    5352#include "conn.h"
    5453
    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_handle
    66 };
    67 
    6854static device_ops_t vhc_ops = {
    6955        .interfaces[USBHC_DEV_IFACE] = &vhc_iface,
    70         .interfaces[USB_DEV_IFACE] = &hc_usb_iface,
    7156        .default_handler = default_connection_handler
    7257};
     
    8671        dev->ops = &vhc_ops;
    8772
    88         devman_add_device_to_class(dev->handle, "usbhc");
     73        /*
     74         * Initialize address management.
     75         */
     76        address_init();
    8977
    9078        /*
     
    116104        sleep(5);
    117105
    118         usb_dprintf_enable(NAME, 0);
     106        usb_dprintf_enable(NAME, -1);
    119107
    120108        printf(NAME ": virtual USB host controller driver.\n");
    121109
    122         /*
    123          * Initialize address management.
    124          */
    125         address_init();
    126 
    127         /*
    128          * Run the transfer scheduler.
    129          */
    130110        hc_manager();
    131111
    132         /*
    133          * We are also a driver within devman framework.
    134          */
    135112        return driver_main(&vhc_driver);
    136113}
Note: See TracChangeset for help on using the changeset viewer.