2017-11-03 18:28:30 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2015-11-24 19:09:49 +08: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 19:09:50 +08:00
|
|
|
const char *firmware_name;
|
2016-04-22 18:17:13 +08:00
|
|
|
void (*plat_start)(struct usb_hcd *);
|
|
|
|
int (*init_quirk)(struct usb_hcd *);
|
2017-04-19 21:55:47 +08:00
|
|
|
int (*resume_quirk)(struct usb_hcd *);
|
2015-11-24 19:09:49 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#define hcd_to_xhci_priv(h) ((struct xhci_plat_priv *)hcd_to_xhci(h)->priv)
|
|
|
|
#endif /* _XHCI_PLAT_H */
|