Changeset 774afaae in mainline for uspace/drv/vhc/hcd.c


Ignore:
Timestamp:
2010-12-15T21:56:14Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e63a4e1
Parents:
1840e0d
Message:

Refactoring of virtual hub

The hub is now divided into two layers (one as a hub and the other
one as a virtual USB device) and separated into more files for better
readability.

File:
1 edited

Legend:

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

    r1840e0d r774afaae  
    7979         * Initialize our hub and announce its presence.
    8080         */
    81         hub_init(dev);
     81        virtual_hub_device_init(dev);
    8282
    8383        printf("%s: virtual USB host controller ready.\n", NAME);
     
    108108int main(int argc, char * argv[])
    109109{       
    110         printf("%s: virtual USB host controller driver.\n", NAME);
     110        /*
     111         * Temporary workaround. Wait a little bit to be the last driver
     112         * in devman output.
     113         */
     114        sleep(4);
     115
     116        printf(NAME ": virtual USB host controller driver.\n");
    111117
    112118        usb_dprintf_enable(NAME, 0);
     
    114120        fid_t fid = fibril_create(hc_manager_fibril, NULL);
    115121        if (fid == 0) {
    116                 printf("%s: failed to start HC manager fibril\n", NAME);
     122                printf(NAME ": failed to start HC manager fibril\n");
    117123                return ENOMEM;
    118124        }
    119125        fibril_add_ready(fid);
    120126
    121         /*
    122          * Temporary workaround. Wait a little bit to be the last driver
    123          * in devman output.
    124          */
    125         sleep(4);
    126127
    127128        return driver_main(&vhc_driver);
Note: See TracChangeset for help on using the changeset viewer.