Changeset f51594fa in mainline
- Timestamp:
- 2011-03-19T17:40:15Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 81608b5
- Parents:
- 382f3266
- Location:
- uspace/drv/ehci-hcd
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ehci-hcd/Makefile
r382f3266 rf51594fa 33 33 34 34 SOURCES = \ 35 hc_iface.c \ 35 36 main.c \ 36 37 pci.c -
uspace/drv/ehci-hcd/main.c
r382f3266 rf51594fa 44 44 45 45 #include "pci.h" 46 #include "ehci.h" 46 47 47 48 #define NAME "ehci-hcd" … … 57 58 .driver_ops = &ehci_driver_ops 58 59 }; 60 static ddf_dev_ops_t hc_ops = { 61 .interfaces[USBHC_DEV_IFACE] = &ehci_hc_iface, 62 }; 63 59 64 /*----------------------------------------------------------------------------*/ 60 65 /** Initializes a new ddf driver instance of EHCI hcd. … … 89 94 "Failed(%d) disable legacy USB: %s.\n", ret, str_error(ret)); 90 95 96 ddf_fun_t *hc_fun = ddf_fun_create(device, fun_exposed, "ehci-hc"); 97 if (hc_fun == NULL) { 98 usb_log_error("Failed to create EHCI function.\n"); 99 return ENOMEM; 100 } 101 hc_fun->ops = &hc_ops; 102 ret = ddf_fun_bind(hc_fun); 103 104 CHECK_RET_RETURN(ret, 105 "Failed to bind EHCI function: %s.\n", 106 str_error(ret)); 107 91 108 return EOK; 92 109 #undef CHECK_RET_RETURN
Note:
See TracChangeset
for help on using the changeset viewer.