pci.h 1.0 KB

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