Greg Kroah-Hartman | 5fd54ac | 2017-11-03 11:28:30 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Yoshihiro Shimoda | 4efb2f6 | 2015-11-24 13:09:49 +0200 | [diff] [blame] | 2 | /* |
| 3 | * xhci-plat.h - xHCI host controller driver platform Bus Glue. |
| 4 | * |
| 5 | * Copyright (C) 2015 Renesas Electronics Corporation |
Yoshihiro Shimoda | 4efb2f6 | 2015-11-24 13:09:49 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _XHCI_PLAT_H |
| 9 | #define _XHCI_PLAT_H |
| 10 | |
| 11 | #include "xhci.h" /* for hcd_to_xhci() */ |
| 12 | |
Yoshihiro Shimoda | 4efb2f6 | 2015-11-24 13:09:49 +0200 | [diff] [blame] | 13 | struct xhci_plat_priv { |
Yoshihiro Shimoda | e93272fe | 2015-11-24 13:09:50 +0200 | [diff] [blame] | 14 | const char *firmware_name; |
Felipe Balbi | 7eca937 | 2016-04-22 13:17:13 +0300 | [diff] [blame] | 15 | void (*plat_start)(struct usb_hcd *); |
| 16 | int (*init_quirk)(struct usb_hcd *); |
Yoshihiro Shimoda | 98c0a3f | 2017-04-19 16:55:47 +0300 | [diff] [blame] | 17 | int (*resume_quirk)(struct usb_hcd *); |
Yoshihiro Shimoda | 4efb2f6 | 2015-11-24 13:09:49 +0200 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | #define hcd_to_xhci_priv(h) ((struct xhci_plat_priv *)hcd_to_xhci(h)->priv) |
Yoshihiro Shimoda | 4efb2f6 | 2015-11-24 13:09:49 +0200 | [diff] [blame] | 21 | #endif /* _XHCI_PLAT_H */ |