16 static int ixp4xx_ehci_init(
struct usb_hcd *hcd)
18 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
24 ehci->
caps = hcd->regs + 0x100;
28 retval = ehci_setup(hcd);
32 ehci_port_power(ehci, 0);
37 static const struct hc_driver ixp4xx_ehci_hc_driver = {
38 .description = hcd_name,
39 .product_desc =
"IXP4XX EHCI Host Controller",
40 .hcd_priv_size =
sizeof(
struct ehci_hcd),
42 .flags = HCD_MEMORY | HCD_USB2,
43 .reset = ixp4xx_ehci_init,
46 .shutdown = ehci_shutdown,
47 .urb_enqueue = ehci_urb_enqueue,
48 .urb_dequeue = ehci_urb_dequeue,
49 .endpoint_disable = ehci_endpoint_disable,
50 .endpoint_reset = ehci_endpoint_reset,
51 .get_frame_number = ehci_get_frame,
52 .hub_status_data = ehci_hub_status_data,
53 .hub_control = ehci_hub_control,
54 #if defined(CONFIG_PM)
58 .relinquish_port = ehci_relinquish_port,
59 .port_handed_over = ehci_port_handed_over,
61 .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
67 const struct hc_driver *
driver = &ixp4xx_ehci_hc_driver;
78 "Found HC with no IRQ. Check %s setup!\n",
79 dev_name(&pdev->
dev));
93 "Found HC with no register addr. Check %s setup!\n",
94 dev_name(&pdev->
dev));
96 goto fail_request_resource;
98 hcd->rsrc_start = res->
start;
99 hcd->rsrc_len = resource_size(res);
102 if (hcd->regs ==
NULL) {
103 dev_dbg(&pdev->
dev,
"error mapping memory\n");
105 goto fail_request_resource;
110 goto fail_request_resource;
114 fail_request_resource:
117 dev_err(&pdev->
dev,
"init %s fail, %d\n", dev_name(&pdev->
dev), retval);
123 struct usb_hcd *hcd = platform_get_drvdata(pdev);
134 .probe = ixp4xx_ehci_probe,
135 .remove = ixp4xx_ehci_remove,
137 .name =
"ixp4xx-ehci",