Changes in uspace/drv/vhc/hcd.c [f8597ca:e63a4e1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/hcd.c
rf8597ca re63a4e1 79 79 * Initialize our hub and announce its presence. 80 80 */ 81 hub_init(dev);81 virtual_hub_device_init(dev); 82 82 83 83 printf("%s: virtual USB host controller ready.\n", NAME); … … 95 95 }; 96 96 97 /** Fibril wrapper for HC transaction manager.98 *99 * @param arg Not used.100 * @return Nothing, return argument is unreachable.101 */102 static int hc_manager_fibril(void *arg)103 {104 hc_manager();105 return EOK;106 }107 97 108 98 int main(int argc, char * argv[]) 109 99 { 110 printf("%s: virtual USB host controller driver.\n", NAME);111 112 usb_dprintf_enable(NAME, 0);113 114 fid_t fid = fibril_create(hc_manager_fibril, NULL);115 if (fid == 0) {116 printf("%s: failed to start HC manager fibril\n", NAME);117 return ENOMEM;118 }119 fibril_add_ready(fid);120 121 100 /* 122 101 * Temporary workaround. Wait a little bit to be the last driver 123 102 * in devman output. 124 103 */ 125 sleep(4); 104 sleep(5); 105 106 usb_dprintf_enable(NAME, 0); 107 108 printf(NAME ": virtual USB host controller driver.\n"); 109 110 hc_manager(); 126 111 127 112 return driver_main(&vhc_driver);
Note:
See TracChangeset
for help on using the changeset viewer.