Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 
0003 #ifndef __ASM_GENERIC_PCI_H
0004 #define __ASM_GENERIC_PCI_H
0005 
0006 #ifndef PCIBIOS_MIN_IO
0007 #define PCIBIOS_MIN_IO      0
0008 #endif
0009 
0010 #ifndef PCIBIOS_MIN_MEM
0011 #define PCIBIOS_MIN_MEM     0
0012 #endif
0013 
0014 #ifndef pcibios_assign_all_busses
0015 /* For bootloaders that do not initialize the PCI bus */
0016 #define pcibios_assign_all_busses() 1
0017 #endif
0018 
0019 /* Enable generic resource mapping code in drivers/pci/ */
0020 #define ARCH_GENERIC_PCI_MMAP_RESOURCE
0021 
0022 #ifdef CONFIG_PCI_DOMAINS
0023 static inline int pci_proc_domain(struct pci_bus *bus)
0024 {
0025     /* always show the domain in /proc */
0026     return 1;
0027 }
0028 #endif /* CONFIG_PCI_DOMAINS */
0029 
0030 #endif /* __ASM_GENERIC_PCI_H */