1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * Based on powerpc version
7 #ifndef __ASM_MICROBLAZE_PCI_H
8 #define __ASM_MICROBLAZE_PCI_H
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>
19 #include <asm/pci-bridge.h>
21 #define PCIBIOS_MIN_IO 0x1000
22 #define PCIBIOS_MIN_MEM 0x10000000
24 /* Values for the `which' argument to sys_pciconfig_iobase syscall. */
25 #define IOBASE_BRIDGE_NUMBER 0
26 #define IOBASE_MEMORY 1
28 #define IOBASE_ISA_IO 3
29 #define IOBASE_ISA_MEM 4
32 * Set this to 1 if you want the kernel to re-assign all PCI
33 * bus numbers (don't do that on ppc64 yet !)
35 #define pcibios_assign_all_busses() 0
37 extern int pci_domain_nr(struct pci_bus *bus);
39 /* Decide whether to display the domain number in /proc */
40 extern int pci_proc_domain(struct pci_bus *bus);
42 struct vm_area_struct;
44 /* Tell PCI code what kind of PCI resource mappings we support */
45 #define HAVE_PCI_MMAP 1
46 #define ARCH_GENERIC_PCI_MMAP_RESOURCE 1
47 #define arch_can_pci_mmap_io() 1
51 /* This part of code was originally in xilinx-pci.h */
52 #ifdef CONFIG_PCI_XILINX
53 extern void __init xilinx_pci_init(void);
55 static inline void __init xilinx_pci_init(void) { return; }
58 #endif /* __KERNEL__ */
59 #endif /* __ASM_MICROBLAZE_PCI_H */