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