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