14 static int ehci_ls1x_reset(
struct usb_hcd *hcd)
16 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
19 ehci->
caps = hcd->regs;
21 ret = ehci_setup(hcd);
25 ehci_port_power(ehci, 0);
30 static const struct hc_driver ehci_ls1x_hc_driver = {
31 .description = hcd_name,
32 .product_desc =
"LOONGSON1 EHCI",
33 .hcd_priv_size =
sizeof(
struct ehci_hcd),
39 .flags = HCD_MEMORY | HCD_USB2,
44 .reset = ehci_ls1x_reset,
47 .shutdown = ehci_shutdown,
52 .urb_enqueue = ehci_urb_enqueue,
53 .urb_dequeue = ehci_urb_dequeue,
54 .endpoint_disable = ehci_endpoint_disable,
55 .endpoint_reset = ehci_endpoint_reset,
60 .get_frame_number = ehci_get_frame,
65 .hub_status_data = ehci_hub_status_data,
66 .hub_control = ehci_hub_control,
67 .relinquish_port = ehci_relinquish_port,
68 .port_handed_over = ehci_port_handed_over,
70 .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
80 pr_debug(
"initializing loongson1 ehci USB Controller\n");
88 "Found HC with no IRQ. Check %s setup!\n",
89 dev_name(&pdev->
dev));
97 "Found HC with no register addr. Check %s setup!\n",
98 dev_name(&pdev->
dev));
103 dev_name(&pdev->
dev));
106 hcd->rsrc_start = res->
start;
107 hcd->rsrc_len = resource_size(res);
110 if (hcd->regs ==
NULL) {
111 dev_dbg(&pdev->
dev,
"error mapping memory\n");
129 struct usb_hcd *hcd = platform_get_drvdata(pdev);
138 .probe = ehci_hcd_ls1x_probe,
139 .remove = ehci_hcd_ls1x_remove,