pci_64.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __SPARC64_PCI_H
  3. #define __SPARC64_PCI_H
  4. #ifdef __KERNEL__
  5. #include <linux/dma-mapping.h>
  6. /* Can be used to override the logic in pci_scan_bus for skipping
  7. * already-configured bus numbers - to be used for buggy BIOSes
  8. * or architectures with incomplete PCI setup by the loader.
  9. */
  10. #define pcibios_assign_all_busses() 0
  11. #define PCIBIOS_MIN_IO 0UL
  12. #define PCIBIOS_MIN_MEM 0UL
  13. #define PCI_IRQ_NONE 0xffffffff
  14. /* PCI IOMMU mapping bypass support. */
  15. /* PCI 64-bit addressing works for all slots on all controller
  16. * types on sparc64. However, it requires that the device
  17. * can drive enough of the 64 bits.
  18. */
  19. #define PCI64_REQUIRED_MASK (~(u64)0)
  20. #define PCI64_ADDR_BASE 0xfffc000000000000UL
  21. /* Return the index of the PCI controller for device PDEV. */
  22. int pci_domain_nr(struct pci_bus *bus);
  23. static inline int pci_proc_domain(struct pci_bus *bus)
  24. {
  25. return 1;
  26. }
  27. /* Platform support for /proc/bus/pci/X/Y mmap()s. */
  28. #define HAVE_PCI_MMAP
  29. #define arch_can_pci_mmap_io() 1
  30. #define HAVE_ARCH_PCI_GET_UNMAPPED_AREA
  31. #define get_pci_unmapped_area get_fb_unmapped_area
  32. static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
  33. {
  34. return PCI_IRQ_NONE;
  35. }
  36. #define HAVE_ARCH_PCI_RESOURCE_TO_USER
  37. #endif /* __KERNEL__ */
  38. #endif /* __SPARC64_PCI_H */