1 /* SPDX-License-Identifier: GPL-2.0 */
7 #include <linux/dma-mapping.h>
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.
13 #define pcibios_assign_all_busses() 0
15 #define PCIBIOS_MIN_IO 0UL
16 #define PCIBIOS_MIN_MEM 0UL
18 #define PCI_IRQ_NONE 0xffffffff
20 #endif /* __KERNEL__ */
22 #ifndef CONFIG_LEON_PCI
23 /* generic pci stuff */
24 #include <asm-generic/pci.h>
27 * On LEON PCI Memory space is mapped 1:1 with physical address space.
29 * I/O space is located at low 64Kbytes in PCI I/O space. The I/O addresses
30 * are converted into CPU addresses to virtual addresses that are mapped with
31 * MMU to the PCI Host PCI I/O space window which are translated to the low
32 * 64Kbytes by the Host controller.
35 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
41 #endif /* __SPARC_PCI_H */