Merge tag 'trace-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[linux/fpc-iii.git] / drivers / usb / host / xhci-plat.h
blob1fb149d1fbcea319d712ccc9af6857e54c9cc6f8
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * xhci-plat.h - xHCI host controller driver platform Bus Glue.
5 * Copyright (C) 2015 Renesas Electronics Corporation
6 */
8 #ifndef _XHCI_PLAT_H
9 #define _XHCI_PLAT_H
11 #include "xhci.h" /* for hcd_to_xhci() */
13 struct xhci_plat_priv {
14 const char *firmware_name;
15 unsigned long long quirks;
16 void (*plat_start)(struct usb_hcd *);
17 int (*init_quirk)(struct usb_hcd *);
18 int (*suspend_quirk)(struct usb_hcd *);
19 int (*resume_quirk)(struct usb_hcd *);
22 #define hcd_to_xhci_priv(h) ((struct xhci_plat_priv *)hcd_to_xhci(h)->priv)
23 #define xhci_to_priv(x) ((struct xhci_plat_priv *)(x)->priv)
24 #endif /* _XHCI_PLAT_H */