/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020 Loongson Technology Co., Ltd. */ #ifndef _ASM_PCI_H #define _ASM_PCI_H #include /* * This file essentially defines the interface between board specific * PCI code and LoongArch common PCI code. Should potentially put into * include/asm/pci.h file. */ #include #include extern phys_addr_t mcfg_addr_init(int node); /* Can be used to override the logic in pci_scan_bus for skipping already-configured bus numbers - to be used for buggy BIOSes or architectures with incomplete PCI setup by the loader */ static inline unsigned int pcibios_assign_all_busses(void) { return 0; } #define PCIBIOS_MIN_IO 0x4000 #define PCIBIOS_MIN_MEM 0x20000000 #define PCIBIOS_MIN_CARDBUS_IO 0x4000 #define HAVE_PCI_MMAP #define ARCH_GENERIC_PCI_MMAP_RESOURCE /* * Dynamic DMA mapping stuff. * LoongArch has everything mapped statically. */ #include #include #include #include #include static inline int pci_proc_domain(struct pci_bus *bus) { return 1; /* always show the domain in /proc */ } /* generic pci stuff */ #include #endif /* _ASM_PCI_H */