1
0

pci.h 774 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_PCI_H
  3. #define __ASM_PCI_H
  4. #ifdef __KERNEL__
  5. #include <linux/types.h>
  6. #include <linux/slab.h>
  7. #include <linux/dma-mapping.h>
  8. #include <asm/io.h>
  9. #define PCIBIOS_MIN_IO 0x1000
  10. #define PCIBIOS_MIN_MEM 0
  11. /*
  12. * Set to 1 if the kernel should re-assign all PCI bus numbers
  13. */
  14. #define pcibios_assign_all_busses() \
  15. (pci_has_flag(PCI_REASSIGN_ALL_BUS))
  16. #define ARCH_GENERIC_PCI_MMAP_RESOURCE 1
  17. extern int isa_dma_bridge_buggy;
  18. #ifdef CONFIG_PCI
  19. static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
  20. {
  21. /* no legacy IRQ on arm64 */
  22. return -ENODEV;
  23. }
  24. static inline int pci_proc_domain(struct pci_bus *bus)
  25. {
  26. return 1;
  27. }
  28. #endif /* CONFIG_PCI */
  29. #endif /* __KERNEL__ */
  30. #endif /* __ASM_PCI_H */