Changes in / [fd9f6e4c:09daa8b] in mainline
- Files:
-
- 16 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
.bzrignore
rfd9f6e4c r09daa8b 84 84 ./uspace/drv/test1/test1 85 85 ./uspace/drv/test2/test2 86 ./uspace/drv/ohci/ohci87 86 ./uspace/drv/ehci-hcd/ehci-hcd 88 87 ./uspace/drv/uhci-hcd/uhci-hcd -
boot/arch/amd64/Makefile.inc
rfd9f6e4c r09daa8b 44 44 ns8250 \ 45 45 ehci-hcd \ 46 ohci \47 46 uhci-hcd \ 48 47 uhci-rhd \ -
uspace/Makefile
rfd9f6e4c r09daa8b 118 118 srv/hw/irc/i8259 \ 119 119 drv/ehci-hcd \ 120 drv/ohci \121 120 drv/uhci-hcd \ 122 121 drv/uhci-rhd \ … … 137 136 srv/hw/irc/i8259 \ 138 137 drv/ehci-hcd \ 139 drv/ohci \140 138 drv/uhci-hcd \ 141 139 drv/uhci-rhd \ -
uspace/drv/ehci-hcd/Makefile
rfd9f6e4c r09daa8b 33 33 34 34 SOURCES = \ 35 hc_iface.c \36 35 main.c \ 37 36 pci.c -
uspace/drv/ehci-hcd/main.c
rfd9f6e4c r09daa8b 44 44 45 45 #include "pci.h" 46 #include "ehci.h" 46 47 #define NAME "ehci-hcd" 47 48 48 49 static int ehci_add_device(ddf_dev_t *device); … … 56 57 .driver_ops = &ehci_driver_ops 57 58 }; 58 static ddf_dev_ops_t hc_ops = {59 .interfaces[USBHC_DEV_IFACE] = &ehci_hc_iface,60 };61 62 59 /*----------------------------------------------------------------------------*/ 63 60 /** Initializes a new ddf driver instance of EHCI hcd. … … 74 71 return ret; \ 75 72 } 73 74 usb_log_info("uhci_add_device() called\n"); 76 75 77 76 uintptr_t mem_reg_base = 0; … … 90 89 "Failed(%d) disable legacy USB: %s.\n", ret, str_error(ret)); 91 90 92 ddf_fun_t *hc_fun = ddf_fun_create(device, fun_exposed, "ehci-hc");93 if (hc_fun == NULL) {94 usb_log_error("Failed to create EHCI function.\n");95 return ENOMEM;96 }97 hc_fun->ops = &hc_ops;98 ret = ddf_fun_bind(hc_fun);99 100 CHECK_RET_RETURN(ret,101 "Failed to bind EHCI function: %s.\n",102 str_error(ret));103 104 usb_log_info("Controlling new EHCI device `%s' (handle %llu).\n",105 device->name, device->handle);106 107 91 return EOK; 108 92 #undef CHECK_RET_RETURN … … 119 103 int main(int argc, char *argv[]) 120 104 { 121 usb_log_enable(USB_LOG_LEVEL_ DEBUG, NAME);105 usb_log_enable(USB_LOG_LEVEL_ERROR, NAME); 122 106 return ddf_driver_main(&ehci_driver); 123 107 }
Note:
See TracChangeset
for help on using the changeset viewer.