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