Changes in uspace/drv/vhc/hcd.c [0995cd6:f0da4eb2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/hcd.c
r0995cd6 rf0da4eb2 52 52 #include "conn.h" 53 53 54 static device_ops_t vhc_ops = {55 .interfaces[USBHC_DEV_IFACE] = &vhc_iface,56 .default_handler = default_connection_handler57 };58 54 59 55 static int vhc_count = 0; 60 static int vhc_add_device( device_t *dev)56 static int vhc_add_device(usb_hc_device_t *dev) 61 57 { 62 58 /* … … 69 65 vhc_count++; 70 66 71 dev->ops = &vhc_ops; 72 73 /* 74 * Initialize address management. 75 */ 76 address_init(); 67 dev->transfer_ops = &vhc_transfer_ops; 68 dev->generic->ops->default_handler = default_connection_handler; 77 69 78 70 /* 79 71 * Initialize our hub and announce its presence. 80 72 */ 81 hub_init(dev); 73 hub_init(); 74 usb_hcd_add_root_hub(dev); 82 75 83 76 printf("%s: virtual USB host controller ready.\n", NAME); … … 86 79 } 87 80 88 static driver_ops_t vhc_driver_ops = { 89 .add_device = vhc_add_device, 90 }; 91 92 static driver_t vhc_driver = { 81 static usb_hc_driver_t vhc_driver = { 93 82 .name = NAME, 94 . driver_ops = &vhc_driver_ops83 .add_hc = &vhc_add_device 95 84 }; 96 85 … … 110 99 printf("%s: virtual USB host controller driver.\n", NAME); 111 100 112 usb_dprintf_enable(NAME, 10);101 debug_level = 10; 113 102 114 103 fid_t fid = fibril_create(hc_manager_fibril, NULL); … … 125 114 sleep(4); 126 115 127 return driver_main(&vhc_driver);116 return usb_hcd_main(&vhc_driver); 128 117 } 129 118
Note:
See TracChangeset
for help on using the changeset viewer.