pci.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. extern struct pci_controller* pcibios_alloc_controller(void);
  19. static inline void pcibios_penalize_isa_irq(int irq)
  20. {
  21. /* We don't do dynamic PCI IRQ allocation */
  22. }
  23. /* Assume some values. (We should revise them, if necessary) */
  24. #define PCIBIOS_MIN_IO 0x2000
  25. #define PCIBIOS_MIN_MEM 0x10000000
  26. /* Dynamic DMA mapping stuff.
  27. * Xtensa has everything mapped statically like x86.
  28. */
  29. #include <linux/types.h>
  30. #include <linux/slab.h>
  31. #include <asm/scatterlist.h>
  32. #include <linux/string.h>
  33. #include <asm/io.h>
  34. struct pci_dev;
  35. /* The PCI address space does equal the physical memory address space.
  36. * The networking and block device layers use this boolean for bounce buffer
  37. * decisions.
  38. */
  39. #define PCI_DMA_BUS_IS_PHYS (1)
  40. /* Map a range of PCI memory or I/O space for a device into user space */
  41. int pci_mmap_page_range(struct pci_dev *pdev, struct vm_area_struct *vma,
  42. enum pci_mmap_state mmap_state, int write_combine);
  43. /* Tell drivers/pci/proc.c that we have pci_mmap_page_range() */
  44. #define HAVE_PCI_MMAP 1
  45. #endif /* __KERNEL__ */
  46. /* Implement the pci_ DMA API in terms of the generic device dma_ one */
  47. #include <asm-generic/pci-dma-compat.h>
  48. /* Generic PCI */
  49. #include <asm-generic/pci.h>
  50. #endif /* _XTENSA_PCI_H */