Linux 4.18.10
[linux/fpc-iii.git] / arch / xtensa / include / asm / pci.h
blob883024054b05601f8f03159538e6931f22b0fb4a
1 /*
2 * linux/include/asm-xtensa/pci.h
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
8 * Copyright (C) 2001 - 2005 Tensilica Inc.
9 */
11 #ifndef _XTENSA_PCI_H
12 #define _XTENSA_PCI_H
14 #ifdef __KERNEL__
16 /* Can be used to override the logic in pci_scan_bus for skipping
17 * already-configured bus numbers - to be used for buggy BIOSes
18 * or architectures with incomplete PCI setup by the loader
21 #define pcibios_assign_all_busses() 0
23 /* Assume some values. (We should revise them, if necessary) */
25 #define PCIBIOS_MIN_IO 0x2000
26 #define PCIBIOS_MIN_MEM 0x10000000
28 /* Dynamic DMA mapping stuff.
29 * Xtensa has everything mapped statically like x86.
32 #include <linux/types.h>
33 #include <linux/slab.h>
34 #include <linux/scatterlist.h>
35 #include <linux/string.h>
36 #include <asm/io.h>
38 /* The PCI address space does equal the physical memory address space.
39 * The networking and block device layers use this boolean for bounce buffer
40 * decisions.
43 /* Tell PCI code what kind of PCI resource mappings we support */
44 #define HAVE_PCI_MMAP 1
45 #define ARCH_GENERIC_PCI_MMAP_RESOURCE 1
46 #define arch_can_pci_mmap_io() 1
48 #endif /* __KERNEL__ */
50 /* Generic PCI */
51 #include <asm-generic/pci.h>
53 #endif /* _XTENSA_PCI_H */