29 static void tilegx_start_ohc(
void)
33 static void tilegx_stop_ohc(
void)
37 static int tilegx_ohci_start(
struct usb_hcd *hcd)
42 ret = ohci_init(ohci);
48 dev_err(hcd->self.controller,
"can't start %s\n",
57 static const struct hc_driver ohci_tilegx_hc_driver = {
58 .description = hcd_name,
59 .product_desc =
"Tile-Gx OHCI",
60 .hcd_priv_size =
sizeof(
struct ohci_hcd),
66 .flags = HCD_MEMORY | HCD_LOCAL_MEM | HCD_USB11,
71 .start = tilegx_ohci_start,
73 .shutdown = ohci_shutdown,
78 .urb_enqueue = ohci_urb_enqueue,
79 .urb_dequeue = ohci_urb_dequeue,
80 .endpoint_disable = ohci_endpoint_disable,
85 .get_frame_number = ohci_get_frame,
90 .hub_status_data = ohci_hub_status_data,
91 .hub_control = ohci_hub_control,
114 dev_name(&pdev->
dev));
131 if (pdata->
irq < 0) {
155 ohci_hcd_init(hcd_to_ohci(hcd));
159 platform_set_drvdata(pdev, hcd);
174 struct usb_hcd *hcd = platform_get_drvdata(pdev);
182 platform_set_drvdata(pdev,
NULL);
190 ohci_hcd_tilegx_drv_remove(pdev);
194 .probe = ohci_hcd_tilegx_drv_probe,
195 .remove = ohci_hcd_tilegx_drv_remove,
196 .shutdown = ohci_hcd_tilegx_drv_shutdown,
198 .name =
"tilegx-ohci",