Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / xtensa / include / asm / pci.h
blob5c83798e3b2e2ca8c9173861a660bd6621567dd0
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 extern struct pci_controller* pcibios_alloc_controller(void);
25 /* Assume some values. (We should revise them, if necessary) */
27 #define PCIBIOS_MIN_IO 0x2000
28 #define PCIBIOS_MIN_MEM 0x10000000
30 /* Dynamic DMA mapping stuff.
31 * Xtensa has everything mapped statically like x86.
34 #include <linux/types.h>
35 #include <linux/slab.h>
36 #include <linux/scatterlist.h>
37 #include <linux/string.h>
38 #include <asm/io.h>
40 /* The PCI address space does equal the physical memory address space.
41 * The networking and block device layers use this boolean for bounce buffer
42 * decisions.
45 #define PCI_DMA_BUS_IS_PHYS (1)
47 /* Tell drivers/pci/proc.c that we have pci_mmap_page_range() */
48 #define HAVE_PCI_MMAP 1
49 #define arch_can_pci_mmap_io() 1
51 #endif /* __KERNEL__ */
53 /* Generic PCI */
54 #include <asm-generic/pci.h>
56 #endif /* _XTENSA_PCI_H */