blob: ae29f22ff5bd7f38453b229985fea0d6db48e7b0 [file] [log] [blame]
Greg Kroah-Hartman5fd54ac2017-11-03 11:28:30 +01001// SPDX-License-Identifier: GPL-2.0
Yoshihiro Shimoda4efb2f62015-11-24 13:09:49 +02002/*
3 * xhci-plat.h - xHCI host controller driver platform Bus Glue.
4 *
5 * Copyright (C) 2015 Renesas Electronics Corporation
Yoshihiro Shimoda4efb2f62015-11-24 13:09:49 +02006 */
7
8#ifndef _XHCI_PLAT_H
9#define _XHCI_PLAT_H
10
11#include "xhci.h" /* for hcd_to_xhci() */
12
Yoshihiro Shimoda4efb2f62015-11-24 13:09:49 +020013struct xhci_plat_priv {
Yoshihiro Shimodae93272fe2015-11-24 13:09:50 +020014 const char *firmware_name;
Felipe Balbi7eca9372016-04-22 13:17:13 +030015 void (*plat_start)(struct usb_hcd *);
16 int (*init_quirk)(struct usb_hcd *);
Yoshihiro Shimoda98c0a3f2017-04-19 16:55:47 +030017 int (*resume_quirk)(struct usb_hcd *);
Yoshihiro Shimoda4efb2f62015-11-24 13:09:49 +020018};
19
20#define hcd_to_xhci_priv(h) ((struct xhci_plat_priv *)hcd_to_xhci(h)->priv)
Yoshihiro Shimoda4efb2f62015-11-24 13:09:49 +020021#endif /* _XHCI_PLAT_H */