1 /* SPDX-License-Identifier: GPL-2.0 */
3 * xhci-plat.h - xHCI host controller driver platform Bus Glue.
5 * Copyright (C) 2015 Renesas Electronics Corporation
12 struct platform_device;
15 struct xhci_plat_priv {
16 const char *firmware_name;
17 unsigned long long quirks;
18 int (*plat_setup)(struct usb_hcd *);
19 void (*plat_start)(struct usb_hcd *);
20 int (*init_quirk)(struct usb_hcd *);
21 int (*suspend_quirk)(struct usb_hcd *);
22 int (*resume_quirk)(struct usb_hcd *);
25 #define hcd_to_xhci_priv(h) ((struct xhci_plat_priv *)hcd_to_xhci(h)->priv)
26 #define xhci_to_priv(x) ((struct xhci_plat_priv *)(x)->priv)
27 #endif /* _XHCI_PLAT_H */