pci.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef __ASM_CRIS_PCI_H
  2. #define __ASM_CRIS_PCI_H
  3. #ifdef __KERNEL__
  4. #include <linux/mm.h> /* for struct page */
  5. /* Can be used to override the logic in pci_scan_bus for skipping
  6. already-configured bus numbers - to be used for buggy BIOSes
  7. or architectures with incomplete PCI setup by the loader */
  8. #define pcibios_assign_all_busses(void) 1
  9. #define PCIBIOS_MIN_IO 0x1000
  10. #define PCIBIOS_MIN_MEM 0x10000000
  11. #define PCIBIOS_MIN_CARDBUS_IO 0x4000
  12. void pcibios_config_init(void);
  13. struct pci_bus * pcibios_scan_root(int bus);
  14. void pcibios_set_master(struct pci_dev *dev);
  15. struct irq_routing_table *pcibios_get_irq_routing_table(void);
  16. int pcibios_set_irq_routing(struct pci_dev *dev, int pin, int irq);
  17. /* Dynamic DMA mapping stuff.
  18. * i386 has everything mapped statically.
  19. */
  20. #include <linux/types.h>
  21. #include <linux/slab.h>
  22. #include <linux/scatterlist.h>
  23. #include <linux/string.h>
  24. #include <asm/io.h>
  25. struct pci_dev;
  26. /* The PCI address space does equal the physical memory
  27. * address space. The networking and block device layers use
  28. * this boolean for bounce buffer decisions.
  29. */
  30. #define PCI_DMA_BUS_IS_PHYS (1)
  31. #define HAVE_PCI_MMAP
  32. extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
  33. enum pci_mmap_state mmap_state, int write_combine);
  34. #endif /* __KERNEL__ */
  35. /* generic pci stuff */
  36. #include <asm-generic/pci.h>
  37. #endif /* __ASM_CRIS_PCI_H */