Changes in uspace/drv/bus/usb/ehci/main.c [f9776ae5:0c0f823b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/main.c
rf9776ae5 r0c0f823b 42 42 #include <usb/ddfiface.h> 43 43 #include <usb/debug.h> 44 #include <usb/host/hcd.h>45 44 46 45 #include "pci.h" 47 48 #define NAME "ehci" 46 #include "ehci.h" 49 47 50 48 static int ehci_dev_add(ddf_dev_t *device); … … 59 57 }; 60 58 static ddf_dev_ops_t hc_ops = { 61 .interfaces[USBHC_DEV_IFACE] = & hcd_iface,59 .interfaces[USBHC_DEV_IFACE] = &ehci_hc_iface, 62 60 }; 63 61 … … 97 95 return ENOMEM; 98 96 } 99 hcd_t *ehci_hc = ddf_fun_data_alloc(hc_fun, sizeof(hcd_t));100 if (ehci_hc == NULL) {101 usb_log_error("Failed to alloc generic HC driver.\n");102 return ENOMEM;103 }104 /* High Speed, no bandwidth */105 hcd_init(ehci_hc, USB_SPEED_HIGH, 0, NULL);106 97 hc_fun->ops = &hc_ops; 107 98
Note:
See TracChangeset
for help on using the changeset viewer.