aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/drm/intel-gtt.h12
-rw-r--r--include/linux/intel-gtt.h20
2 files changed, 12 insertions, 20 deletions
diff --git a/include/drm/intel-gtt.h b/include/drm/intel-gtt.h
index 020f8aab7e5b..9f91cbe35157 100644
--- a/include/drm/intel-gtt.h
+++ b/include/drm/intel-gtt.h
@@ -13,5 +13,17 @@ const struct intel_gtt {
13 unsigned int gtt_mappable_entries; 13 unsigned int gtt_mappable_entries;
14} *intel_gtt_get(void); 14} *intel_gtt_get(void);
15 15
16
17/* Special gtt memory types */
18#define AGP_DCACHE_MEMORY 1
19#define AGP_PHYS_MEMORY 2
20
21/* New caching attributes for gen6/sandybridge */
22#define AGP_USER_CACHED_MEMORY_LLC_MLC (AGP_USER_TYPES + 2)
23#define AGP_USER_UNCACHED_MEMORY (AGP_USER_TYPES + 4)
24
25/* flag for GFDT type */
26#define AGP_USER_CACHED_MEMORY_GFDT (1 << 3)
27
16#endif 28#endif
17 29
diff --git a/include/linux/intel-gtt.h b/include/linux/intel-gtt.h
deleted file mode 100644
index 1d19ab2afa39..000000000000
--- a/include/linux/intel-gtt.h
+++ /dev/null
@@ -1,20 +0,0 @@
1/*
2 * Common Intel AGPGART and GTT definitions.
3 */
4#ifndef _INTEL_GTT_H
5#define _INTEL_GTT_H
6
7#include <linux/agp_backend.h>
8
9/* This is for Intel only GTT controls.
10 *
11 * Sandybridge: AGP_USER_CACHED_MEMORY default to LLC only
12 */
13
14#define AGP_USER_CACHED_MEMORY_LLC_MLC (AGP_USER_TYPES + 2)
15#define AGP_USER_UNCACHED_MEMORY (AGP_USER_TYPES + 4)
16
17/* flag for GFDT type */
18#define AGP_USER_CACHED_MEMORY_GFDT (1 << 3)
19
20#endif