drm/panel: panel-himax-hx83102: support for csot-pna957qt1-1 MIPI-DSI panel
[drm/drm-misc.git] / include / linux / platform_data / x86 / p2sb.h
bloba1d5fddc8f13ebbac29c8e3dc9768cd5b690a77c
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Primary to Sideband (P2SB) bridge access support
4 */
6 #ifndef _PLATFORM_DATA_X86_P2SB_H
7 #define _PLATFORM_DATA_X86_P2SB_H
9 #include <linux/errno.h>
10 #include <linux/kconfig.h>
12 struct pci_bus;
13 struct resource;
15 #if IS_BUILTIN(CONFIG_P2SB)
17 int p2sb_bar(struct pci_bus *bus, unsigned int devfn, struct resource *mem);
19 #else /* CONFIG_P2SB */
21 static inline int p2sb_bar(struct pci_bus *bus, unsigned int devfn, struct resource *mem)
23 return -ENODEV;
26 #endif /* CONFIG_P2SB is not set */
28 #endif /* _PLATFORM_DATA_X86_P2SB_H */