Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef ASMARM_PCI_H
0003 #define ASMARM_PCI_H
0004 
0005 #ifdef __KERNEL__
0006 #include <asm/mach/pci.h> /* for pci_sys_data */
0007 
0008 extern unsigned long pcibios_min_io;
0009 #define PCIBIOS_MIN_IO pcibios_min_io
0010 extern unsigned long pcibios_min_mem;
0011 #define PCIBIOS_MIN_MEM pcibios_min_mem
0012 
0013 #define pcibios_assign_all_busses() pci_has_flag(PCI_REASSIGN_ALL_BUS)
0014 
0015 #ifdef CONFIG_PCI_DOMAINS
0016 static inline int pci_proc_domain(struct pci_bus *bus)
0017 {
0018     return pci_domain_nr(bus);
0019 }
0020 #endif /* CONFIG_PCI_DOMAINS */
0021 
0022 #define HAVE_PCI_MMAP
0023 #define ARCH_GENERIC_PCI_MMAP_RESOURCE
0024 
0025 extern void pcibios_report_status(unsigned int status_mask, int warn);
0026 
0027 #endif /* __KERNEL__ */
0028 #endif