162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * linux/include/asm-xtensa/pci.h
362306a36Sopenharmony_ci *
462306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
562306a36Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
662306a36Sopenharmony_ci * for more details.
762306a36Sopenharmony_ci *
862306a36Sopenharmony_ci * Copyright (C) 2001 - 2005 Tensilica Inc.
962306a36Sopenharmony_ci */
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#ifndef _XTENSA_PCI_H
1262306a36Sopenharmony_ci#define _XTENSA_PCI_H
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci/* Can be used to override the logic in pci_scan_bus for skipping
1562306a36Sopenharmony_ci * already-configured bus numbers - to be used for buggy BIOSes
1662306a36Sopenharmony_ci * or architectures with incomplete PCI setup by the loader
1762306a36Sopenharmony_ci */
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#define pcibios_assign_all_busses()	0
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci/* Assume some values. (We should revise them, if necessary) */
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ci#define PCIBIOS_MIN_IO		0x2000
2462306a36Sopenharmony_ci#define PCIBIOS_MIN_MEM		0x10000000
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci/* Dynamic DMA mapping stuff.
2762306a36Sopenharmony_ci * Xtensa has everything mapped statically like x86.
2862306a36Sopenharmony_ci */
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci#include <linux/types.h>
3162306a36Sopenharmony_ci#include <linux/slab.h>
3262306a36Sopenharmony_ci#include <linux/scatterlist.h>
3362306a36Sopenharmony_ci#include <linux/string.h>
3462306a36Sopenharmony_ci#include <asm/io.h>
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci/* The PCI address space does equal the physical memory address space.
3762306a36Sopenharmony_ci * The networking and block device layers use this boolean for bounce buffer
3862306a36Sopenharmony_ci * decisions.
3962306a36Sopenharmony_ci */
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ci/* Tell PCI code what kind of PCI resource mappings we support */
4262306a36Sopenharmony_ci#define HAVE_PCI_MMAP			1
4362306a36Sopenharmony_ci#define ARCH_GENERIC_PCI_MMAP_RESOURCE	1
4462306a36Sopenharmony_ci#define arch_can_pci_mmap_io()		1
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ci#endif	/* _XTENSA_PCI_H */
47