1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2d1e6dc91SLiviu Dudau #ifndef __ASM_PCI_H 3d1e6dc91SLiviu Dudau #define __ASM_PCI_H 4d1e6dc91SLiviu Dudau 5d1e6dc91SLiviu Dudau #include <linux/types.h> 6d1e6dc91SLiviu Dudau #include <linux/slab.h> 7d1e6dc91SLiviu Dudau #include <linux/dma-mapping.h> 8d1e6dc91SLiviu Dudau 9d1e6dc91SLiviu Dudau #include <asm/io.h> 10d1e6dc91SLiviu Dudau 11d1e6dc91SLiviu Dudau #define PCIBIOS_MIN_IO 0x1000 12d1e6dc91SLiviu Dudau #define PCIBIOS_MIN_MEM 0 13d1e6dc91SLiviu Dudau 14d1e6dc91SLiviu Dudau /* 15d1e6dc91SLiviu Dudau * Set to 1 if the kernel should re-assign all PCI bus numbers 16d1e6dc91SLiviu Dudau */ 17d1e6dc91SLiviu Dudau #define pcibios_assign_all_busses() \ 18d1e6dc91SLiviu Dudau (pci_has_flag(PCI_REASSIGN_ALL_BUS)) 19d1e6dc91SLiviu Dudau 205fd39dc2SClint Sbisa #define arch_can_pci_mmap_wc() 1 21f7195824SDavid Woodhouse #define ARCH_GENERIC_PCI_MMAP_RESOURCE 1 22f7195824SDavid Woodhouse 23d1e6dc91SLiviu Dudau extern int isa_dma_bridge_buggy; 24d1e6dc91SLiviu Dudau 25d1e6dc91SLiviu Dudau #ifdef CONFIG_PCI 26a9cb97feSHanjun Guo static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) 27a9cb97feSHanjun Guo { 28a9cb97feSHanjun Guo /* no legacy IRQ on arm64 */ 29a9cb97feSHanjun Guo return -ENODEV; 30a9cb97feSHanjun Guo } 31a9cb97feSHanjun Guo 32d1e6dc91SLiviu Dudau static inline int pci_proc_domain(struct pci_bus *bus) 33d1e6dc91SLiviu Dudau { 34d1e6dc91SLiviu Dudau return 1; 35d1e6dc91SLiviu Dudau } 36d1e6dc91SLiviu Dudau #endif /* CONFIG_PCI */ 37d1e6dc91SLiviu Dudau 38d1e6dc91SLiviu Dudau #endif /* __ASM_PCI_H */ 39