Changes in uspace/drv/bus/usb/ehci/main.c [920d0fc:dcffe95] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/main.c
r920d0fc rdcffe95 49 49 50 50 static int ehci_dev_add(ddf_dev_t *device); 51 51 /*----------------------------------------------------------------------------*/ 52 52 static driver_ops_t ehci_driver_ops = { 53 53 .dev_add = ehci_dev_add, 54 54 }; 55 55 /*----------------------------------------------------------------------------*/ 56 56 static driver_t ehci_driver = { 57 57 .name = NAME, … … 62 62 }; 63 63 64 64 /*----------------------------------------------------------------------------*/ 65 65 /** Initializes a new ddf driver instance of EHCI hcd. 66 66 * … … 84 84 CHECK_RET_RETURN(ret, 85 85 "Failed to get memory addresses for %" PRIun ": %s.\n", 86 d df_dev_get_handle(device), str_error(ret));86 device->handle, str_error(ret)); 87 87 usb_log_info("Memory mapped regs at 0x%" PRIxn " (size %zu), IRQ %d.\n", 88 88 reg_base, reg_size, irq); … … 104 104 /* High Speed, no bandwidth */ 105 105 hcd_init(ehci_hc, USB_SPEED_HIGH, 0, NULL); 106 ddf_fun_set_ops(hc_fun, &hc_ops);106 hc_fun->ops = &hc_ops; 107 107 108 108 ret = ddf_fun_bind(hc_fun); … … 116 116 117 117 usb_log_info("Controlling new EHCI device `%s' (handle %" PRIun ").\n", 118 d df_dev_get_name(device), ddf_dev_get_handle(device));118 device->name, device->handle); 119 119 120 120 return EOK; 121 121 #undef CHECK_RET_RETURN 122 122 } 123 123 /*----------------------------------------------------------------------------*/ 124 124 /** Initializes global driver structures (NONE). 125 125 * … … 132 132 int main(int argc, char *argv[]) 133 133 { 134 log_init(NAME);134 usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME); 135 135 return ddf_driver_main(&ehci_driver); 136 136 }
Note:
See TracChangeset
for help on using the changeset viewer.