14 static int cns3xxx_ehci_init(
struct usb_hcd *hcd)
16 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
35 ehci->
caps = hcd->regs;
39 retval = ehci_setup(hcd);
43 ehci_port_power(ehci, 0);
48 static const struct hc_driver cns3xxx_ehci_hc_driver = {
49 .description = hcd_name,
50 .product_desc =
"CNS3XXX EHCI Host Controller",
51 .hcd_priv_size =
sizeof(
struct ehci_hcd),
53 .flags = HCD_MEMORY | HCD_USB2,
54 .reset = cns3xxx_ehci_init,
57 .shutdown = ehci_shutdown,
58 .urb_enqueue = ehci_urb_enqueue,
59 .urb_dequeue = ehci_urb_dequeue,
60 .endpoint_disable = ehci_endpoint_disable,
61 .endpoint_reset = ehci_endpoint_reset,
62 .get_frame_number = ehci_get_frame,
63 .hub_status_data = ehci_hub_status_data,
64 .hub_control = ehci_hub_control,
69 .relinquish_port = ehci_relinquish_port,
70 .port_handed_over = ehci_port_handed_over,
72 .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
79 const struct hc_driver *
driver = &cns3xxx_ehci_hc_driver;
89 dev_err(dev,
"Found HC with no IRQ.\n");
100 dev_err(dev,
"Found HC with no register addr.\n");
105 hcd->rsrc_start = res->
start;
106 hcd->rsrc_len = resource_size(res);
109 if (hcd->regs ==
NULL) {
110 dev_dbg(dev,
"error mapping memory\n");
127 struct usb_hcd *hcd = platform_get_drvdata(pdev);
142 platform_set_drvdata(pdev,
NULL);
150 .probe = cns3xxx_ehci_probe,
151 .remove = cns3xxx_ehci_remove,
153 .name =
"cns3xxx-ehci",