Subversion Repositories Kolibri OS

Rev

Rev 3243 | Rev 5270 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

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