Changeset e27595b in mainline for uspace/drv/vhc/hcd.c


Ignore:
Timestamp:
2010-11-20T13:04:15Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0e126be7
Parents:
7034be15
Message:

Virtual USB devices can connect to VHC

Fixed and bypassed problems introduced by using DDF.

File:
1 edited

Legend:

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

    r7034be15 re27595b  
    5252#include "conn.h"
    5353
     54
    5455static int vhc_count = 0;
    5556static int vhc_add_device(usb_hc_device_t *dev)
    5657{
    57         printf("%s: new device registered.\n", NAME);
    5858        /*
    5959         * Currently, we know how to simulate only single HC.
     
    6666
    6767        dev->transfer_ops = &vhc_transfer_ops;
     68        dev->generic->ops->default_handler = default_connection_handler;
    6869
    6970        /*
     
    7172         */
    7273        usb_hcd_add_root_hub(dev);
     74
     75        printf("%s: virtual USB host controller ready.\n", NAME);
    7376
    7477        return EOK;
     
    8487        printf("%s: virtual USB host controller driver.\n", NAME);
    8588
     89        debug_level = 5;
     90
    8691        return usb_hcd_main(&vhc_driver);
    8792}
Note: See TracChangeset for help on using the changeset viewer.