xref: /openbmc/linux/arch/microblaze/include/asm/pci.h (revision 0c6dfa75)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  *
4  * Based on powerpc version
5  */
6 
7 #ifndef __ASM_MICROBLAZE_PCI_H
8 #define __ASM_MICROBLAZE_PCI_H
9 #ifdef __KERNEL__
10 
11 #include <linux/types.h>
12 #include <linux/slab.h>
13 #include <linux/string.h>
14 #include <linux/dma-mapping.h>
15 #include <linux/pci.h>
16 #include <linux/scatterlist.h>
17 
18 #include <asm/io.h>
19 #include <asm/pci-bridge.h>
20 
21 #define PCIBIOS_MIN_IO		0x1000
22 #define PCIBIOS_MIN_MEM		0x10000000
23 
24 /*
25  * Set this to 1 if you want the kernel to re-assign all PCI
26  * bus numbers (don't do that on ppc64 yet !)
27  */
28 #define pcibios_assign_all_busses()	0
29 
30 extern int pci_domain_nr(struct pci_bus *bus);
31 
32 /* Decide whether to display the domain number in /proc */
33 extern int pci_proc_domain(struct pci_bus *bus);
34 
35 /* Tell PCI code what kind of PCI resource mappings we support */
36 #define HAVE_PCI_MMAP			1
37 #define ARCH_GENERIC_PCI_MMAP_RESOURCE	1
38 
39 struct file;
40 
41 static inline void __init xilinx_pci_init(void) { return; }
42 
43 #endif	/* __KERNEL__ */
44 #endif /* __ASM_MICROBLAZE_PCI_H */
45