License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[sfrench/cifs-2.6.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 /* Dynamic DMA mapping stuff.
21  */
22 #define PCI_DMA_BUS_IS_PHYS     (0)
23
24 struct pci_dev;
25
26 #endif /* __KERNEL__ */
27
28 #ifndef CONFIG_LEON_PCI
29 /* generic pci stuff */
30 #include <asm-generic/pci.h>
31 #else
32 /*
33  * On LEON PCI Memory space is mapped 1:1 with physical address space.
34  *
35  * I/O space is located at low 64Kbytes in PCI I/O space. The I/O addresses
36  * are converted into CPU addresses to virtual addresses that are mapped with
37  * MMU to the PCI Host PCI I/O space window which are translated to the low
38  * 64Kbytes by the Host controller.
39  */
40
41 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
42 {
43         return PCI_IRQ_NONE;
44 }
45 #endif
46
47 #endif /* __SPARC_PCI_H */