Changeset 95622c4 in mainline for uspace/drv/vhc/hub/virthub.c


Ignore:
Timestamp:
2011-01-28T10:19:29Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
679a135
Parents:
9f0318c
Message:

Add standalone virtual hub

Similar to virtual USB keyboard (vuk'), vuh' is a virtual USB hub.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/vhc/hub/virthub.c

    r9f0318c r95622c4  
    164164        dev->device_data = hub;
    165165
    166         usbvirt_connect_local(dev);
    167 
    168         return EOK;
     166        int rc;
     167#ifdef STANDALONE_HUB
     168        dev->name = "hub";
     169        rc = usbvirt_connect(dev);
     170#else
     171        rc = usbvirt_connect_local(dev);
     172#endif
     173
     174        return rc;
    169175}
    170176
Note: See TracChangeset for help on using the changeset viewer.