pci.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * linux/include/asm-xtensa/pci.h
  3. *
  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.
  7. *
  8. * Copyright (C) 2001 - 2005 Tensilica Inc.
  9. */
  10. #ifndef _XTENSA_PCI_H
  11. #define _XTENSA_PCI_H
  12. /* Can be used to override the logic in pci_scan_bus for skipping
  13. * already-configured bus numbers - to be used for buggy BIOSes
  14. * or architectures with incomplete PCI setup by the loader
  15. */
  16. #define pcibios_assign_all_busses() 0
  17. /* Assume some values. (We should revise them, if necessary) */
  18. #define PCIBIOS_MIN_IO 0x2000
  19. #define PCIBIOS_MIN_MEM 0x10000000
  20. /* Dynamic DMA mapping stuff.
  21. * Xtensa has everything mapped statically like x86.
  22. */
  23. #include <linux/types.h>
  24. #include <linux/slab.h>
  25. #include <linux/scatterlist.h>
  26. #include <linux/string.h>
  27. #include <asm/io.h>
  28. /* The PCI address space does equal the physical memory address space.
  29. * The networking and block device layers use this boolean for bounce buffer
  30. * decisions.
  31. */
  32. /* Tell PCI code what kind of PCI resource mappings we support */
  33. #define HAVE_PCI_MMAP 1
  34. #define ARCH_GENERIC_PCI_MMAP_RESOURCE 1
  35. #define arch_can_pci_mmap_io() 1
  36. #endif /* _XTENSA_PCI_H */