pci.h 1.6 KB

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