Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef ___ASM_SPARC_PCI_H
0003 #define ___ASM_SPARC_PCI_H
0004 
0005 
0006 /* Can be used to override the logic in pci_scan_bus for skipping
0007  * already-configured bus numbers - to be used for buggy BIOSes
0008  * or architectures with incomplete PCI setup by the loader.
0009  */
0010 #define pcibios_assign_all_busses() 0
0011 
0012 #define PCIBIOS_MIN_IO      0UL
0013 #define PCIBIOS_MIN_MEM     0UL
0014 
0015 #define PCI_IRQ_NONE        0xffffffff
0016 
0017 
0018 #ifdef CONFIG_SPARC64
0019 
0020 /* PCI IOMMU mapping bypass support. */
0021 
0022 /* PCI 64-bit addressing works for all slots on all controller
0023  * types on sparc64.  However, it requires that the device
0024  * can drive enough of the 64 bits.
0025  */
0026 #define PCI64_REQUIRED_MASK (~(u64)0)
0027 #define PCI64_ADDR_BASE     0xfffc000000000000UL
0028 
0029 /* Return the index of the PCI controller for device PDEV. */
0030 int pci_domain_nr(struct pci_bus *bus);
0031 static inline int pci_proc_domain(struct pci_bus *bus)
0032 {
0033     return 1;
0034 }
0035 
0036 /* Platform support for /proc/bus/pci/X/Y mmap()s. */
0037 #define HAVE_PCI_MMAP
0038 #define arch_can_pci_mmap_io()  1
0039 #define HAVE_ARCH_PCI_GET_UNMAPPED_AREA
0040 #define ARCH_GENERIC_PCI_MMAP_RESOURCE
0041 #define get_pci_unmapped_area get_fb_unmapped_area
0042 #endif /* CONFIG_SPARC64 */
0043 
0044 #endif /* ___ASM_SPARC_PCI_H */