Yoshihiro Shimoda | 4efb2f6 | 2015-11-24 13:09:49 +0200 | [diff] [blame] | 1 | /* |
| 2 | * xhci-plat.h - xHCI host controller driver platform Bus Glue. |
| 3 | * |
| 4 | * Copyright (C) 2015 Renesas Electronics Corporation |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License |
| 8 | * version 2 as published by the Free Software Foundation. |
| 9 | */ |
| 10 | |
| 11 | #ifndef _XHCI_PLAT_H |
| 12 | #define _XHCI_PLAT_H |
| 13 | |
| 14 | #include "xhci.h" /* for hcd_to_xhci() */ |
| 15 | |
Yoshihiro Shimoda | 4efb2f6 | 2015-11-24 13:09:49 +0200 | [diff] [blame] | 16 | struct xhci_plat_priv { |
Yoshihiro Shimoda | e93272fe | 2015-11-24 13:09:50 +0200 | [diff] [blame] | 17 | const char *firmware_name; |
Felipe Balbi | 7eca937 | 2016-04-22 13:17:13 +0300 | [diff] [blame] | 18 | void (*plat_start)(struct usb_hcd *); |
| 19 | int (*init_quirk)(struct usb_hcd *); |
Yoshihiro Shimoda | 98c0a3f | 2017-04-19 16:55:47 +0300 | [diff] [blame] | 20 | int (*resume_quirk)(struct usb_hcd *); |
Yoshihiro Shimoda | 4efb2f6 | 2015-11-24 13:09:49 +0200 | [diff] [blame] | 21 | }; |
| 22 | |
| 23 | #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] | 24 | #endif /* _XHCI_PLAT_H */ |