2020-04-04 16:21:40 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2015-11-24 18:09:49 +07: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 18:09:50 +07:00
|
|
|
const char *firmware_name;
|
2019-09-02 19:01:36 +07:00
|
|
|
unsigned long long quirks;
|
2016-04-22 17:17:13 +07:00
|
|
|
void (*plat_start)(struct usb_hcd *);
|
|
|
|
int (*init_quirk)(struct usb_hcd *);
|
2017-04-19 20:55:47 +07:00
|
|
|
int (*resume_quirk)(struct usb_hcd *);
|
2015-11-24 18:09:49 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
#define hcd_to_xhci_priv(h) ((struct xhci_plat_priv *)hcd_to_xhci(h)->priv)
|
2019-09-02 19:01:36 +07:00
|
|
|
#define xhci_to_priv(x) ((struct xhci_plat_priv *)(x)->priv)
|
2015-11-24 18:09:49 +07:00
|
|
|
#endif /* _XHCI_PLAT_H */
|