1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Primary to Sideband (P2SB) bridge access support
6 #ifndef _PLATFORM_DATA_X86_P2SB_H
7 #define _PLATFORM_DATA_X86_P2SB_H
9 #include <linux/errno.h>
10 #include <linux/kconfig.h>
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
)
26 #endif /* CONFIG_P2SB is not set */
28 #endif /* _PLATFORM_DATA_X86_P2SB_H */