1*2874c5fdSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 2830980a0SMichal Simek /* 3830980a0SMichal Simek * 4830980a0SMichal Simek * Based on powerpc version 5830980a0SMichal Simek */ 6830980a0SMichal Simek 7830980a0SMichal Simek #ifndef __ASM_MICROBLAZE_PCI_H 8830980a0SMichal Simek #define __ASM_MICROBLAZE_PCI_H 9830980a0SMichal Simek #ifdef __KERNEL__ 10830980a0SMichal Simek 11830980a0SMichal Simek #include <linux/types.h> 12830980a0SMichal Simek #include <linux/slab.h> 13830980a0SMichal Simek #include <linux/string.h> 14830980a0SMichal Simek #include <linux/dma-mapping.h> 15830980a0SMichal Simek #include <linux/pci.h> 1684be456fSChristoph Hellwig #include <linux/scatterlist.h> 17830980a0SMichal Simek 18830980a0SMichal Simek #include <asm/io.h> 19830980a0SMichal Simek #include <asm/pci-bridge.h> 20830980a0SMichal Simek 21830980a0SMichal Simek #define PCIBIOS_MIN_IO 0x1000 22830980a0SMichal Simek #define PCIBIOS_MIN_MEM 0x10000000 23830980a0SMichal Simek 24830980a0SMichal Simek /* 25830980a0SMichal Simek * Set this to 1 if you want the kernel to re-assign all PCI 26830980a0SMichal Simek * bus numbers (don't do that on ppc64 yet !) 27830980a0SMichal Simek */ 2872bdee79SBenjamin Herrenschmidt #define pcibios_assign_all_busses() 0 29830980a0SMichal Simek 30830980a0SMichal Simek extern int pci_domain_nr(struct pci_bus *bus); 31830980a0SMichal Simek 32830980a0SMichal Simek /* Decide whether to display the domain number in /proc */ 33830980a0SMichal Simek extern int pci_proc_domain(struct pci_bus *bus); 34830980a0SMichal Simek 3570f6283aSDavid Woodhouse /* Tell PCI code what kind of PCI resource mappings we support */ 36830980a0SMichal Simek #define HAVE_PCI_MMAP 1 3770f6283aSDavid Woodhouse #define ARCH_GENERIC_PCI_MMAP_RESOURCE 1 38830980a0SMichal Simek 39830980a0SMichal Simek struct file; 40830980a0SMichal Simek xilinx_pci_init(void)41733cc218SMichal Simekstatic inline void __init xilinx_pci_init(void) { return; } 42733cc218SMichal Simek 43830980a0SMichal Simek #endif /* __KERNEL__ */ 44830980a0SMichal Simek #endif /* __ASM_MICROBLAZE_PCI_H */ 45