treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm64 / include / asm / pci.h
blob70b323cf83000d51c1d823c5f4c8eb8fe47bebda
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_PCI_H
3 #define __ASM_PCI_H
5 #include <linux/types.h>
6 #include <linux/slab.h>
7 #include <linux/dma-mapping.h>
9 #include <asm/io.h>
11 #define PCIBIOS_MIN_IO 0x1000
12 #define PCIBIOS_MIN_MEM 0
15 * Set to 1 if the kernel should re-assign all PCI bus numbers
17 #define pcibios_assign_all_busses() \
18 (pci_has_flag(PCI_REASSIGN_ALL_BUS))
20 #define ARCH_GENERIC_PCI_MMAP_RESOURCE 1
22 extern int isa_dma_bridge_buggy;
24 #ifdef CONFIG_PCI
25 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
27 /* no legacy IRQ on arm64 */
28 return -ENODEV;
31 static inline int pci_proc_domain(struct pci_bus *bus)
33 return 1;
35 #endif /* CONFIG_PCI */
37 #endif /* __ASM_PCI_H */