Changes in uspace/drv/uhci/main.c [71ed4849:138a7fd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/main.c
r71ed4849 r138a7fd 27 27 */ 28 28 #include <usb/hcdhubd.h> 29 #include <usb_iface.h>30 29 #include <usb/debug.h> 31 30 #include <errno.h> … … 33 32 #include "uhci.h" 34 33 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_handle46 };47 48 34 static device_ops_t uhci_ops = { 49 .interfaces[USB_DEV_IFACE] = &hc_usb_iface, 50 .interfaces[USBHC_DEV_IFACE] = &uhci_iface 35 .interfaces[USBHC_DEV_IFACE] = &uhci_iface, 51 36 }; 52 37
Note:
See TracChangeset
for help on using the changeset viewer.