blob: 5681723fc9cd73b8c6bf40ef0d764df5e4fde511 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001// SPDX-License-Identifier: GPL-2.0
2/*
3 * xhci-plat.h - xHCI host controller driver platform Bus Glue.
4 *
5 * Copyright (C) 2015 Renesas Electronics Corporation
6 */
7
8#ifndef _XHCI_PLAT_H
9#define _XHCI_PLAT_H
10
11#include "xhci.h" /* for hcd_to_xhci() */
12
13struct xhci_plat_priv {
14 const char *firmware_name;
David Brazdil0f672f62019-12-10 10:32:29 +000015 unsigned long long quirks;
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000016 void (*plat_start)(struct usb_hcd *);
17 int (*init_quirk)(struct usb_hcd *);
18 int (*resume_quirk)(struct usb_hcd *);
19};
20
21#define hcd_to_xhci_priv(h) ((struct xhci_plat_priv *)hcd_to_xhci(h)->priv)
David Brazdil0f672f62019-12-10 10:32:29 +000022#define xhci_to_priv(x) ((struct xhci_plat_priv *)(x)->priv)
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000023#endif /* _XHCI_PLAT_H */