15 #include <linux/module.h>
16 #include <linux/slab.h>
31 static int xhci_plat_setup(
struct usb_hcd *hcd)
36 static const struct hc_driver xhci_plat_xhci_driver = {
37 .description =
"xhci-hcd",
38 .product_desc =
"xHCI Host Controller",
39 .hcd_priv_size =
sizeof(
struct xhci_hcd *),
45 .
flags = HCD_MEMORY | HCD_USB3 | HCD_SHARED,
50 .reset = xhci_plat_setup,
87 const struct hc_driver *
driver;
97 driver = &xhci_plat_xhci_driver;
111 hcd->rsrc_start = res->
start;
112 hcd->rsrc_len = resource_size(res);
115 driver->description)) {
116 dev_dbg(&pdev->
dev,
"controller already in use\n");
123 dev_dbg(&pdev->
dev,
"error mapping memory\n");
130 goto unmap_registers;
134 xhci = hcd_to_xhci(hcd);
136 dev_name(&pdev->
dev), hcd);
139 goto dealloc_usb2_hcd;
174 struct usb_hcd *hcd = platform_get_drvdata(dev);
175 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
189 .probe = xhci_plat_probe,
190 .remove = xhci_plat_remove,