pci.h 1.2 KB

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