Changeset bf5a3be in mainline for uspace/drv/uhci/main.c


Ignore:
Timestamp:
2010-12-19T14:40:29Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2972e21
Parents:
f088c00
Message:

added creation of device match ids

new debug output system
TODO: set address

get descriptor/parse descriptor

device removal

File:
1 edited

Legend:

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

    rf088c00 rbf5a3be  
    2727 */
    2828#include <usb/hcdhubd.h>
    29 #include <usb/debug.h>
    3029#include <errno.h>
    3130
     31#include "debug.h"
    3232#include "iface.h"
    3333#include "name.h"
     
    4141static int uhci_add_device(device_t *device)
    4242{
    43         usb_dprintf(NAME, 1, "uhci_add_device() called\n");
     43//      usb_dprintf(NAME, DEBUG, "uhci_add_device() called\n");
     44        uhci_print_info( "uhci_add_device() called\n" );
    4445        device->ops = &uhci_ops;
    4546
    4647        uhci_init( device, (void*)0xc020 );
    47 
    48         /*
    49          * We need to announce the presence of our root hub.
    50          */
    51 //      usb_dprintf(NAME, 2, "adding root hub\n");
    52 //      usb_hcd_add_root_hub(device);
    5348
    5449        return EOK;
     
    6964         * Do some global initializations.
    7065         */
    71         sleep( 5);
    72         usb_dprintf_enable(NAME, 5);
     66        sleep( 5 );
     67        usb_dprintf_enable(NAME, DEBUG_LEVEL_INFO);
    7368
    7469        return driver_main(&uhci_driver);
Note: See TracChangeset for help on using the changeset viewer.