15 static int ehci_xls_setup(
struct usb_hcd *hcd)
17 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
19 ehci->
caps = hcd->regs;
21 return ehci_setup(hcd);
34 dev_err(&pdev->
dev,
"Found HC with no IRQ. Check %s setup!\n",
35 dev_name(&pdev->
dev));
42 dev_err(&pdev->
dev,
"Error: MMIO Handle %s setup!\n",
43 dev_name(&pdev->
dev));
52 hcd->rsrc_start = res->
start;
53 hcd->rsrc_len = resource_size(res);
56 driver->description)) {
57 dev_dbg(&pdev->
dev,
"controller already in use\n");
63 if (hcd->regs ==
NULL) {
81 dev_err(&pdev->
dev,
"init %s fail, %d\n", dev_name(&pdev->
dev),
86 static struct hc_driver ehci_xls_hc_driver = {
87 .description = hcd_name,
88 .product_desc =
"XLS EHCI Host Controller",
89 .hcd_priv_size =
sizeof(
struct ehci_hcd),
91 .flags = HCD_USB2 | HCD_MEMORY,
92 .reset = ehci_xls_setup,
95 .shutdown = ehci_shutdown,
97 .urb_enqueue = ehci_urb_enqueue,
98 .urb_dequeue = ehci_urb_dequeue,
99 .endpoint_disable = ehci_endpoint_disable,
100 .endpoint_reset = ehci_endpoint_reset,
102 .get_frame_number = ehci_get_frame,
104 .hub_status_data = ehci_hub_status_data,
105 .hub_control = ehci_hub_control,
108 .relinquish_port = ehci_relinquish_port,
109 .port_handed_over = ehci_port_handed_over,
111 .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
124 struct usb_hcd *hcd = platform_get_drvdata(pdev);
136 .probe = ehci_xls_probe,
137 .remove = ehci_xls_remove,