18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * linux/include/asm-xtensa/pci.h 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 58c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 68c2ecf20Sopenharmony_ci * for more details. 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Copyright (C) 2001 - 2005 Tensilica Inc. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#ifndef _XTENSA_PCI_H 128c2ecf20Sopenharmony_ci#define _XTENSA_PCI_H 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci/* Can be used to override the logic in pci_scan_bus for skipping 158c2ecf20Sopenharmony_ci * already-configured bus numbers - to be used for buggy BIOSes 168c2ecf20Sopenharmony_ci * or architectures with incomplete PCI setup by the loader 178c2ecf20Sopenharmony_ci */ 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#define pcibios_assign_all_busses() 0 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci/* Assume some values. (We should revise them, if necessary) */ 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#define PCIBIOS_MIN_IO 0x2000 248c2ecf20Sopenharmony_ci#define PCIBIOS_MIN_MEM 0x10000000 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci/* Dynamic DMA mapping stuff. 278c2ecf20Sopenharmony_ci * Xtensa has everything mapped statically like x86. 288c2ecf20Sopenharmony_ci */ 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#include <linux/types.h> 318c2ecf20Sopenharmony_ci#include <linux/slab.h> 328c2ecf20Sopenharmony_ci#include <linux/scatterlist.h> 338c2ecf20Sopenharmony_ci#include <linux/string.h> 348c2ecf20Sopenharmony_ci#include <asm/io.h> 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci/* The PCI address space does equal the physical memory address space. 378c2ecf20Sopenharmony_ci * The networking and block device layers use this boolean for bounce buffer 388c2ecf20Sopenharmony_ci * decisions. 398c2ecf20Sopenharmony_ci */ 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci/* Tell PCI code what kind of PCI resource mappings we support */ 428c2ecf20Sopenharmony_ci#define HAVE_PCI_MMAP 1 438c2ecf20Sopenharmony_ci#define ARCH_GENERIC_PCI_MMAP_RESOURCE 1 448c2ecf20Sopenharmony_ci#define arch_can_pci_mmap_io() 1 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci/* Generic PCI */ 478c2ecf20Sopenharmony_ci#include <asm-generic/pci.h> 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci#endif /* _XTENSA_PCI_H */ 50