intel-gtt.h 941 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* Common header for intel-gtt.ko and i915.ko */
  2. #ifndef _DRM_INTEL_GTT_H
  3. #define _DRM_INTEL_GTT_H
  4. void intel_gtt_get(u64 *gtt_total, size_t *stolen_size,
  5. phys_addr_t *mappable_base, u64 *mappable_end);
  6. int intel_gmch_probe(struct pci_dev *bridge_pdev, struct pci_dev *gpu_pdev,
  7. struct agp_bridge_data *bridge);
  8. void intel_gmch_remove(void);
  9. bool intel_enable_gtt(void);
  10. void intel_gtt_chipset_flush(void);
  11. void intel_gtt_insert_page(dma_addr_t addr,
  12. unsigned int pg,
  13. unsigned int flags);
  14. void intel_gtt_insert_sg_entries(struct sg_table *st,
  15. unsigned int pg_start,
  16. unsigned int flags);
  17. void intel_gtt_clear_range(unsigned int first_entry, unsigned int num_entries);
  18. /* Special gtt memory types */
  19. #define AGP_DCACHE_MEMORY 1
  20. #define AGP_PHYS_MEMORY 2
  21. /* flag for GFDT type */
  22. #define AGP_USER_CACHED_MEMORY_GFDT (1 << 3)
  23. #ifdef CONFIG_INTEL_IOMMU
  24. extern int intel_iommu_gfx_mapped;
  25. #endif
  26. #endif