EDAC: i7core, sb_edac: Don't return NOTIFY_BAD from mce_decoder callback
[linux/fpc-iii.git] / drivers / usb / host / xhci-plat.h
blob529c3c40f901df69250cc7d05502bb41177fa329
1 /*
2 * xhci-plat.h - xHCI host controller driver platform Bus Glue.
4 * Copyright (C) 2015 Renesas Electronics Corporation
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 */
11 #ifndef _XHCI_PLAT_H
12 #define _XHCI_PLAT_H
14 #include "xhci.h" /* for hcd_to_xhci() */
16 enum xhci_plat_type {
17 XHCI_PLAT_TYPE_MARVELL_ARMADA = 1,
18 XHCI_PLAT_TYPE_RENESAS_RCAR_GEN2,
19 XHCI_PLAT_TYPE_RENESAS_RCAR_GEN3,
22 struct xhci_plat_priv {
23 enum xhci_plat_type type;
24 const char *firmware_name;
27 #define hcd_to_xhci_priv(h) ((struct xhci_plat_priv *)hcd_to_xhci(h)->priv)
29 static inline bool xhci_plat_type_is(struct usb_hcd *hcd,
30 enum xhci_plat_type type)
32 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd);
34 if (priv && priv->type == type)
35 return true;
36 else
37 return false;
39 #endif /* _XHCI_PLAT_H */