Changeset 93fb170c in mainline for uspace/drv/uhci/main.c
- Timestamp:
- 2011-01-08T18:51:31Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 15be932
- Parents:
- 8f748215 (diff), a523af4 (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/uhci/main.c
r8f748215 r93fb170c 27 27 */ 28 28 #include <usb/hcdhubd.h> 29 #include <usb_iface.h> 29 30 #include <errno.h> 30 31 … … 34 35 #include "uhci.h" 35 36 37 static int usb_iface_get_hc_handle(device_t *dev, devman_handle_t *handle) 38 { 39 /* This shall be called only for the UHCI itself. */ 40 assert(dev->parent == NULL); 41 42 *handle = dev->handle; 43 return EOK; 44 } 45 46 static usb_iface_t hc_usb_iface = { 47 .get_hc_handle = usb_iface_get_hc_handle 48 }; 36 49 37 50 static device_ops_t uhci_ops = { 38 .interfaces[USBHC_DEV_IFACE] = &uhci_iface, 51 .interfaces[USB_DEV_IFACE] = &hc_usb_iface, 52 .interfaces[USBHC_DEV_IFACE] = &uhci_iface 39 53 }; 40 54
Note:
See TracChangeset
for help on using the changeset viewer.