pci.h 1.3 KB

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