1198956Srrs/*
2198956Srrs * linux/include/asm-xtensa/pci.h
3198956Srrs *
4198956Srrs * This file is subject to the terms and conditions of the GNU General Public
5198956Srrs * License.  See the file "COPYING" in the main directory of this archive
6198956Srrs * for more details.
7198956Srrs *
8198956Srrs * Copyright (C) 2001 - 2005 Tensilica Inc.
9198956Srrs */
10198956Srrs
11198956Srrs#ifndef _XTENSA_PCI_H
12198956Srrs#define _XTENSA_PCI_H
13198956Srrs
14198956Srrs/* Can be used to override the logic in pci_scan_bus for skipping
15198956Srrs * already-configured bus numbers - to be used for buggy BIOSes
16198956Srrs * or architectures with incomplete PCI setup by the loader
17198956Srrs */
18198956Srrs
19198956Srrs#define pcibios_assign_all_busses()	0
20198956Srrs
21198956Srrs/* Assume some values. (We should revise them, if necessary) */
22198956Srrs
23198956Srrs#define PCIBIOS_MIN_IO		0x2000
24198956Srrs#define PCIBIOS_MIN_MEM		0x10000000
25198956Srrs
26198956Srrs/* Dynamic DMA mapping stuff.
27198956Srrs * Xtensa has everything mapped statically like x86.
28198956Srrs */
29198956Srrs
30198956Srrs#include <linux/types.h>
31198956Srrs#include <linux/slab.h>
32198956Srrs#include <linux/scatterlist.h>
33198956Srrs#include <linux/string.h>
34198956Srrs#include <asm/io.h>
35204131Srrs
36198956Srrs/* The PCI address space does equal the physical memory address space.
37198956Srrs * The networking and block device layers use this boolean for bounce buffer
38198956Srrs * decisions.
39198956Srrs */
40198956Srrs
41198956Srrs/* Tell PCI code what kind of PCI resource mappings we support */
42198956Srrs#define HAVE_PCI_MMAP			1
43198956Srrs#define ARCH_GENERIC_PCI_MMAP_RESOURCE	1
44198956Srrs#define arch_can_pci_mmap_io()		1
45198956Srrs
46198956Srrs#endif	/* _XTENSA_PCI_H */
47198957Srrs