162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci 362306a36Sopenharmony_ci#ifndef __ASM_GENERIC_PCI_H 462306a36Sopenharmony_ci#define __ASM_GENERIC_PCI_H 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef PCIBIOS_MIN_IO 762306a36Sopenharmony_ci#define PCIBIOS_MIN_IO 0 862306a36Sopenharmony_ci#endif 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#ifndef PCIBIOS_MIN_MEM 1162306a36Sopenharmony_ci#define PCIBIOS_MIN_MEM 0 1262306a36Sopenharmony_ci#endif 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci#ifndef pcibios_assign_all_busses 1562306a36Sopenharmony_ci/* For bootloaders that do not initialize the PCI bus */ 1662306a36Sopenharmony_ci#define pcibios_assign_all_busses() 1 1762306a36Sopenharmony_ci#endif 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci/* Enable generic resource mapping code in drivers/pci/ */ 2062306a36Sopenharmony_ci#define ARCH_GENERIC_PCI_MMAP_RESOURCE 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci#ifdef CONFIG_PCI_DOMAINS 2362306a36Sopenharmony_cistatic inline int pci_proc_domain(struct pci_bus *bus) 2462306a36Sopenharmony_ci{ 2562306a36Sopenharmony_ci /* always show the domain in /proc */ 2662306a36Sopenharmony_ci return 1; 2762306a36Sopenharmony_ci} 2862306a36Sopenharmony_ci#endif /* CONFIG_PCI_DOMAINS */ 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci#endif /* __ASM_GENERIC_PCI_H */ 31