2017-11-03 10:28:30 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2015-11-24 11:09:49 +00:00
|
|
|
/*
|
|
|
|
* xhci-plat.h - xHCI host controller driver platform Bus Glue.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2015 Renesas Electronics Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _XHCI_PLAT_H
|
|
|
|
#define _XHCI_PLAT_H
|
|
|
|
|
|
|
|
#include "xhci.h" /* for hcd_to_xhci() */
|
|
|
|
|
|
|
|
struct xhci_plat_priv {
|
2015-11-24 11:09:50 +00:00
|
|
|
const char *firmware_name;
|
2019-09-02 12:01:36 +00:00
|
|
|
unsigned long long quirks;
|
2016-04-22 10:17:13 +00:00
|
|
|
void (*plat_start)(struct usb_hcd *);
|
|
|
|
int (*init_quirk)(struct usb_hcd *);
|
2017-04-19 13:55:47 +00:00
|
|
|
int (*resume_quirk)(struct usb_hcd *);
|
2015-11-24 11:09:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#define hcd_to_xhci_priv(h) ((struct xhci_plat_priv *)hcd_to_xhci(h)->priv)
|
2019-09-02 12:01:36 +00:00
|
|
|
#define xhci_to_priv(x) ((struct xhci_plat_priv *)(x)->priv)
|
2015-11-24 11:09:49 +00:00
|
|
|
#endif /* _XHCI_PLAT_H */
|