Changeset 8cd1aa5e in mainline for uspace/drv/vhc/hcd.c


Ignore:
Timestamp:
2010-11-21T23:22:50Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
03171de, 0b749a3
Parents:
31860b7 (diff), f0da4eb2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge ddf_proposal changes

File:
1 edited

Legend:

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

    r31860b7 r8cd1aa5e  
    6969
    7070        /*
    71          * Announce that we have some root hub present.
     71         * Initialize our hub and announce its presence.
    7272         */
     73        hub_init();
    7374        usb_hcd_add_root_hub(dev);
    7475
     
    8384};
    8485
     86/** Fibril wrapper for HC transaction manager.
     87 *
     88 * @param arg Not used.
     89 * @return Nothing, return argument is unreachable.
     90 */
     91static int hc_manager_fibril(void *arg)
     92{
     93        hc_manager();
     94        return EOK;
     95}
     96
    8597int main(int argc, char * argv[])
    8698{       
    8799        printf("%s: virtual USB host controller driver.\n", NAME);
    88100
    89         debug_level = 5;
     101        debug_level = 10;
     102
     103        fid_t fid = fibril_create(hc_manager_fibril, NULL);
     104        if (fid == 0) {
     105                printf("%s: failed to start HC manager fibril\n", NAME);
     106                return ENOMEM;
     107        }
     108        fibril_add_ready(fid);
     109
     110        /*
     111         * Temporary workaround. Wait a little bit to be the last driver
     112         * in devman output.
     113         */
     114        sleep(4);
    90115
    91116        return usb_hcd_main(&vhc_driver);
Note: See TracChangeset for help on using the changeset viewer.