xhci-plat.h 526 B

12345678910111213141516171819202122
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * xhci-plat.h - xHCI host controller driver platform Bus Glue.
  4. *
  5. * Copyright (C) 2015 Renesas Electronics Corporation
  6. */
  7. #ifndef _XHCI_PLAT_H
  8. #define _XHCI_PLAT_H
  9. #include "xhci.h" /* for hcd_to_xhci() */
  10. struct xhci_plat_priv {
  11. const char *firmware_name;
  12. void (*plat_start)(struct usb_hcd *);
  13. int (*init_quirk)(struct usb_hcd *);
  14. int (*resume_quirk)(struct usb_hcd *);
  15. };
  16. #define hcd_to_xhci_priv(h) ((struct xhci_plat_priv *)hcd_to_xhci(h)->priv)
  17. #endif /* _XHCI_PLAT_H */