Changeset 2b0db98 in mainline for uspace/drv/vhc/hcd.c
- Timestamp:
- 2011-01-07T14:02:56Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6986418
- Parents:
- d99120f (diff), 0f191a2 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/hcd.c
rd99120f r2b0db98 46 46 47 47 #include <usb/usb.h> 48 #include <usb_iface.h> 48 49 #include "vhcd.h" 49 50 #include "hc.h" … … 52 53 #include "conn.h" 53 54 55 static int usb_iface_get_hc_handle(device_t *dev, devman_handle_t *handle) 56 { 57 /* This shall be called only for VHC device. */ 58 assert(dev->parent == NULL); 59 60 *handle = dev->handle; 61 return EOK; 62 } 63 64 static usb_iface_t hc_usb_iface = { 65 .get_hc_handle = usb_iface_get_hc_handle 66 }; 67 54 68 static device_ops_t vhc_ops = { 55 69 .interfaces[USBHC_DEV_IFACE] = &vhc_iface, 70 .interfaces[USB_DEV_IFACE] = &hc_usb_iface, 56 71 .default_handler = default_connection_handler 57 72 }; … … 70 85 71 86 dev->ops = &vhc_ops; 72 73 /*74 * Initialize address management.75 */76 address_init();77 87 78 88 /* … … 108 118 printf(NAME ": virtual USB host controller driver.\n"); 109 119 120 /* 121 * Initialize address management. 122 */ 123 address_init(); 124 125 /* 126 * Run the transfer scheduler. 127 */ 110 128 hc_manager(); 111 129 130 /* 131 * We are also a driver within devman framework. 132 */ 112 133 return driver_main(&vhc_driver); 113 134 }
Note:
See TracChangeset
for help on using the changeset viewer.