Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Primary to Sideband (P2SB) bridge access support
0004  */
0005 
0006 #ifndef _PLATFORM_DATA_X86_P2SB_H
0007 #define _PLATFORM_DATA_X86_P2SB_H
0008 
0009 #include <linux/errno.h>
0010 #include <linux/kconfig.h>
0011 
0012 struct pci_bus;
0013 struct resource;
0014 
0015 #if IS_BUILTIN(CONFIG_P2SB)
0016 
0017 int p2sb_bar(struct pci_bus *bus, unsigned int devfn, struct resource *mem);
0018 
0019 #else /* CONFIG_P2SB */
0020 
0021 static inline int p2sb_bar(struct pci_bus *bus, unsigned int devfn, struct resource *mem)
0022 {
0023     return -ENODEV;
0024 }
0025 
0026 #endif /* CONFIG_P2SB is not set */
0027 
0028 #endif /* _PLATFORM_DATA_X86_P2SB_H */