intel-gtt.h 775 B

1234567891011121314151617181920212223242526272829
  1. /* Common header for intel-gtt.ko and i915.ko */
  2. #ifndef _DRM_INTEL_GTT_H
  3. #define _DRM_INTEL_GTT_H
  4. const struct intel_gtt {
  5. /* Size of memory reserved for graphics by the BIOS */
  6. unsigned int stolen_size;
  7. /* Total number of gtt entries. */
  8. unsigned int gtt_total_entries;
  9. /* Part of the gtt that is mappable by the cpu, for those chips where
  10. * this is not the full gtt. */
  11. unsigned int gtt_mappable_entries;
  12. } *intel_gtt_get(void);
  13. /* Special gtt memory types */
  14. #define AGP_DCACHE_MEMORY 1
  15. #define AGP_PHYS_MEMORY 2
  16. /* New caching attributes for gen6/sandybridge */
  17. #define AGP_USER_CACHED_MEMORY_LLC_MLC (AGP_USER_TYPES + 2)
  18. #define AGP_USER_UNCACHED_MEMORY (AGP_USER_TYPES + 4)
  19. /* flag for GFDT type */
  20. #define AGP_USER_CACHED_MEMORY_GFDT (1 << 3)
  21. #endif