xref: /openbmc/linux/arch/arm64/include/asm/pci.h (revision ddc141e5)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_PCI_H
3 #define __ASM_PCI_H
4 #ifdef __KERNEL__
5 
6 #include <linux/types.h>
7 #include <linux/slab.h>
8 #include <linux/dma-mapping.h>
9 
10 #include <asm/io.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 #define ARCH_GENERIC_PCI_MMAP_RESOURCE	1
27 
28 extern int isa_dma_bridge_buggy;
29 
30 #ifdef CONFIG_PCI
31 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
32 {
33 	/* no legacy IRQ on arm64 */
34 	return -ENODEV;
35 }
36 
37 static inline int pci_proc_domain(struct pci_bus *bus)
38 {
39 	return 1;
40 }
41 #endif  /* CONFIG_PCI */
42 
43 #endif  /* __KERNEL__ */
44 #endif  /* __ASM_PCI_H */
45