mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
The isa_dma_bridge_buggy symbol is only used for x86_32, and only x86_32 platforms or quirks ever set it. Add a new linux/isa-dma.h header that #defines isa_dma_bridge_buggy to 0 except on x86_32, where we keep it as a variable, and remove all the arch- specific definitions. [bhelgaas: commit log] Suggested-by: Arnd Bergmann <arnd@arndb.de> Suggested-by: Christoph Hellwig <hch@infradead.org> Link: https://lore.kernel.org/r/20220722214944.831438-3-shorne@gmail.com Signed-off-by: Stafford Horne <shorne@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
29 lines
686 B
C
29 lines
686 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef __ASM_UM_PCI_H
|
|
#define __ASM_UM_PCI_H
|
|
#include <linux/types.h>
|
|
#include <asm/io.h>
|
|
|
|
#define PCIBIOS_MIN_IO 0
|
|
#define PCIBIOS_MIN_MEM 0
|
|
|
|
#define pcibios_assign_all_busses() 1
|
|
|
|
#ifdef CONFIG_PCI_DOMAINS
|
|
static inline int pci_proc_domain(struct pci_bus *bus)
|
|
{
|
|
/* always show the domain in /proc */
|
|
return 1;
|
|
}
|
|
#endif /* CONFIG_PCI */
|
|
|
|
#ifdef CONFIG_PCI_MSI_IRQ_DOMAIN
|
|
/*
|
|
* This is a bit of an annoying hack, and it assumes we only have
|
|
* the virt-pci (if anything). Which is true, but still.
|
|
*/
|
|
void *pci_root_bus_fwnode(struct pci_bus *bus);
|
|
#define pci_root_bus_fwnode pci_root_bus_fwnode
|
|
#endif
|
|
|
|
#endif /* __ASM_UM_PCI_H */
|