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