pci.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. void pcibios_penalize_isa_irq(int irq);
  16. struct irq_routing_table *pcibios_get_irq_routing_table(void);
  17. int pcibios_set_irq_routing(struct pci_dev *dev, int pin, int irq);
  18. /* Dynamic DMA mapping stuff.
  19. * i386 has everything mapped statically.
  20. */
  21. #include <linux/types.h>
  22. #include <linux/slab.h>
  23. #include <asm/scatterlist.h>
  24. #include <linux/string.h>
  25. #include <asm/io.h>
  26. struct pci_dev;
  27. /* The PCI address space does equal the physical memory
  28. * address space. The networking and block device layers use
  29. * this boolean for bounce buffer decisions.
  30. */
  31. #define PCI_DMA_BUS_IS_PHYS (1)
  32. #define HAVE_PCI_MMAP
  33. extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
  34. enum pci_mmap_state mmap_state, int write_combine);
  35. #endif /* __KERNEL__ */
  36. /* implement the pci_ DMA API in terms of the generic device dma_ one */
  37. #include <asm-generic/pci-dma-compat.h>
  38. /* generic pci stuff */
  39. #include <asm-generic/pci.h>
  40. #endif /* __ASM_CRIS_PCI_H */