2020-04-04 14:51:40 +05:30
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2015-11-24 13:09:49 +02: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
|
|
|
|
|
2024-04-17 23:14:30 +00:00
|
|
|
struct device;
|
|
|
|
struct platform_device;
|
|
|
|
struct usb_hcd;
|
2015-11-24 13:09:49 +02:00
|
|
|
|
|
|
|
struct xhci_plat_priv {
|
2015-11-24 13:09:50 +02:00
|
|
|
const char *firmware_name;
|
2019-09-02 21:01:36 +09:00
|
|
|
unsigned long long quirks;
|
2025-02-05 18:36:53 +01:00
|
|
|
bool power_lost;
|
2016-04-22 13:17:13 +03:00
|
|
|
void (*plat_start)(struct usb_hcd *);
|
|
|
|
int (*init_quirk)(struct usb_hcd *);
|
2020-09-18 16:17:44 +03:00
|
|
|
int (*suspend_quirk)(struct usb_hcd *);
|
2017-04-19 16:55:47 +03:00
|
|
|
int (*resume_quirk)(struct usb_hcd *);
|
2015-11-24 13:09:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#define hcd_to_xhci_priv(h) ((struct xhci_plat_priv *)hcd_to_xhci(h)->priv)
|
2019-09-02 21:01:36 +09:00
|
|
|
#define xhci_to_priv(x) ((struct xhci_plat_priv *)(x)->priv)
|
2023-01-31 16:04:31 +01:00
|
|
|
|
|
|
|
int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev,
|
|
|
|
const struct xhci_plat_priv *priv_match);
|
|
|
|
|
2023-05-30 09:19:11 +02:00
|
|
|
void xhci_plat_remove(struct platform_device *dev);
|
2023-01-31 16:04:31 +01:00
|
|
|
extern const struct dev_pm_ops xhci_plat_pm_ops;
|
|
|
|
|
2015-11-24 13:09:49 +02:00
|
|
|
#endif /* _XHCI_PLAT_H */
|