mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
The asm/pci.h used for many newer architectures share similar definitions. Move the common parts to asm-generic/pci.h to allow for sharing code. Suggested-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/lkml/CAK8P3a0JmPeczfmMBE__vn=Jbvf=nkbpVaZCycyv40pZNCJJXQ@mail.gmail.com/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stafford Horne <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Acked-by: Pierre Morel <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]>
25 lines
469 B
C
25 lines
469 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __ASM_PCI_H
|
|
#define __ASM_PCI_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/dma-mapping.h>
|
|
|
|
#include <asm/io.h>
|
|
|
|
#define PCIBIOS_MIN_IO 0x1000
|
|
|
|
/*
|
|
* Set to 1 if the kernel should re-assign all PCI bus numbers
|
|
*/
|
|
#define pcibios_assign_all_busses() \
|
|
(pci_has_flag(PCI_REASSIGN_ALL_BUS))
|
|
|
|
#define arch_can_pci_mmap_wc() 1
|
|
|
|
/* Generic PCI */
|
|
#include <asm-generic/pci.h>
|
|
|
|
#endif /* __ASM_PCI_H */
|