xhci-plat.h 640 B

123456789101112131415161718192021222324
  1. /*
  2. * xhci-plat.h - xHCI host controller driver platform Bus Glue.
  3. *
  4. * Copyright (C) 2015 Renesas Electronics Corporation
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * version 2 as published by the Free Software Foundation.
  9. */
  10. #ifndef _XHCI_PLAT_H
  11. #define _XHCI_PLAT_H
  12. #include "xhci.h" /* for hcd_to_xhci() */
  13. struct xhci_plat_priv {
  14. const char *firmware_name;
  15. void (*plat_start)(struct usb_hcd *);
  16. int (*init_quirk)(struct usb_hcd *);
  17. };
  18. #define hcd_to_xhci_priv(h) ((struct xhci_plat_priv *)hcd_to_xhci(h)->priv)
  19. #endif /* _XHCI_PLAT_H */