Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/main.c

    rb00163f r71ed4849  
    11/*
    2  * Copyright (c) 2010 Vojtech Horky, Jan Vesely
     2 * Copyright (c) 2010 Vojtech Horky
    33 * All rights reserved.
    44 *
     
    2828#include <usb/hcdhubd.h>
    2929#include <usb_iface.h>
     30#include <usb/debug.h>
    3031#include <errno.h>
    31 
    32 #include "debug.h"
    33 #include "iface.h"
    34 #include "name.h"
     32#include <driver.h>
    3533#include "uhci.h"
    3634
     
    5553static int uhci_add_device(device_t *device)
    5654{
    57         uhci_print_info( "uhci_add_device() called\n" );
     55        usb_dprintf(NAME, 1, "uhci_add_device() called\n");
    5856        device->ops = &uhci_ops;
    5957
    60         // TODO: get this value out of pci driver
    61         uhci_init(device, (void*)0xc020);
     58        /*
     59         * We need to announce the presence of our root hub.
     60         */
     61        usb_dprintf(NAME, 2, "adding root hub\n");
     62        usb_hcd_add_root_hub(device);
    6263
    6364        return EOK;
     
    7980         */
    8081        sleep(5);
    81         usb_dprintf_enable(NAME, DEBUG_LEVEL_MAX);
     82        usb_dprintf_enable(NAME, 5);
    8283
    8384        return driver_main(&uhci_driver);
Note: See TracChangeset for help on using the changeset viewer.