xref: /openbmc/linux/include/asm-generic/pci.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*a2912b45SStafford Horne /* SPDX-License-Identifier: GPL-2.0-only */
2*a2912b45SStafford Horne 
3*a2912b45SStafford Horne #ifndef __ASM_GENERIC_PCI_H
4*a2912b45SStafford Horne #define __ASM_GENERIC_PCI_H
5*a2912b45SStafford Horne 
6*a2912b45SStafford Horne #ifndef PCIBIOS_MIN_IO
7*a2912b45SStafford Horne #define PCIBIOS_MIN_IO		0
8*a2912b45SStafford Horne #endif
9*a2912b45SStafford Horne 
10*a2912b45SStafford Horne #ifndef PCIBIOS_MIN_MEM
11*a2912b45SStafford Horne #define PCIBIOS_MIN_MEM		0
12*a2912b45SStafford Horne #endif
13*a2912b45SStafford Horne 
14*a2912b45SStafford Horne #ifndef pcibios_assign_all_busses
15*a2912b45SStafford Horne /* For bootloaders that do not initialize the PCI bus */
16*a2912b45SStafford Horne #define pcibios_assign_all_busses() 1
17*a2912b45SStafford Horne #endif
18*a2912b45SStafford Horne 
19*a2912b45SStafford Horne /* Enable generic resource mapping code in drivers/pci/ */
20*a2912b45SStafford Horne #define ARCH_GENERIC_PCI_MMAP_RESOURCE
21*a2912b45SStafford Horne 
22*a2912b45SStafford Horne #ifdef CONFIG_PCI_DOMAINS
pci_proc_domain(struct pci_bus * bus)23*a2912b45SStafford Horne static inline int pci_proc_domain(struct pci_bus *bus)
24*a2912b45SStafford Horne {
25*a2912b45SStafford Horne 	/* always show the domain in /proc */
26*a2912b45SStafford Horne 	return 1;
27*a2912b45SStafford Horne }
28*a2912b45SStafford Horne #endif /* CONFIG_PCI_DOMAINS */
29*a2912b45SStafford Horne 
30*a2912b45SStafford Horne #endif /* __ASM_GENERIC_PCI_H */
31