Changes in uspace/drv/uhci/main.c [138a7fd:71ed4849] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/main.c
r138a7fd r71ed4849 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.