Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef __ASM_PCI_H |
| 3 | #define __ASM_PCI_H |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 4 | |
| 5 | #include <linux/types.h> |
| 6 | #include <linux/slab.h> |
| 7 | #include <linux/dma-mapping.h> |
| 8 | |
| 9 | #include <asm/io.h> |
| 10 | |
| 11 | #define PCIBIOS_MIN_IO 0x1000 |
| 12 | #define PCIBIOS_MIN_MEM 0 |
| 13 | |
| 14 | /* |
| 15 | * Set to 1 if the kernel should re-assign all PCI bus numbers |
| 16 | */ |
| 17 | #define pcibios_assign_all_busses() \ |
| 18 | (pci_has_flag(PCI_REASSIGN_ALL_BUS)) |
| 19 | |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 20 | #define arch_can_pci_mmap_wc() 1 |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 21 | #define ARCH_GENERIC_PCI_MMAP_RESOURCE 1 |
| 22 | |
| 23 | extern int isa_dma_bridge_buggy; |
| 24 | |
| 25 | #ifdef CONFIG_PCI |
| 26 | static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) |
| 27 | { |
| 28 | /* no legacy IRQ on arm64 */ |
| 29 | return -ENODEV; |
| 30 | } |
| 31 | |
| 32 | static inline int pci_proc_domain(struct pci_bus *bus) |
| 33 | { |
| 34 | return 1; |
| 35 | } |
| 36 | #endif /* CONFIG_PCI */ |
| 37 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 38 | #endif /* __ASM_PCI_H */ |