sparc: move the leon PCI memory space comment to <asm/leon.h>
[linux-2.6-microblaze.git] / arch / sparc / include / asm / pci_32.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __SPARC_PCI_H
3 #define __SPARC_PCI_H
4
5 #ifdef __KERNEL__
6
7 #include <linux/dma-mapping.h>
8
9 /* Can be used to override the logic in pci_scan_bus for skipping
10  * already-configured bus numbers - to be used for buggy BIOSes
11  * or architectures with incomplete PCI setup by the loader.
12  */
13 #define pcibios_assign_all_busses()     0
14
15 #define PCIBIOS_MIN_IO          0UL
16 #define PCIBIOS_MIN_MEM         0UL
17
18 #define PCI_IRQ_NONE            0xffffffff
19
20 #endif /* __KERNEL__ */
21
22 #ifndef CONFIG_LEON_PCI
23 /* generic pci stuff */
24 #include <asm-generic/pci.h>
25 #else
26 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
27 {
28         return PCI_IRQ_NONE;
29 }
30 #endif
31
32 #endif /* __SPARC_PCI_H */