pci.h 873 B

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