aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/ttm/ttm_placement.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-09-12 07:34:37 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-09-14 15:10:42 -0400
commit283cde69aa318f7b2eeb02a7c62b16f69e1d422a (patch)
treeb778c1d978bc45785c94dbb8bbb4ab454b409e81 /include/drm/ttm/ttm_placement.h
parent5d98d0bcff64c9a76d21da9648881e14ed26fff6 (diff)
drm/ttm: rework handling of private mem types
Instead of keeping a bunch of potentially unused flags, just define the start for private memory types and remove the rest. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/drm/ttm/ttm_placement.h')
-rw-r--r--include/drm/ttm/ttm_placement.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/include/drm/ttm/ttm_placement.h b/include/drm/ttm/ttm_placement.h
index 8ed44f9bbdfb..4c579d984d45 100644
--- a/include/drm/ttm/ttm_placement.h
+++ b/include/drm/ttm/ttm_placement.h
@@ -37,24 +37,12 @@
37#define TTM_PL_SYSTEM 0 37#define TTM_PL_SYSTEM 0
38#define TTM_PL_TT 1 38#define TTM_PL_TT 1
39#define TTM_PL_VRAM 2 39#define TTM_PL_VRAM 2
40#define TTM_PL_PRIV0 3 40#define TTM_PL_PRIV 3
41#define TTM_PL_PRIV1 4
42#define TTM_PL_PRIV2 5
43#define TTM_PL_PRIV3 6
44#define TTM_PL_PRIV4 7
45#define TTM_PL_PRIV5 8
46#define TTM_PL_SWAPPED 15
47 41
48#define TTM_PL_FLAG_SYSTEM (1 << TTM_PL_SYSTEM) 42#define TTM_PL_FLAG_SYSTEM (1 << TTM_PL_SYSTEM)
49#define TTM_PL_FLAG_TT (1 << TTM_PL_TT) 43#define TTM_PL_FLAG_TT (1 << TTM_PL_TT)
50#define TTM_PL_FLAG_VRAM (1 << TTM_PL_VRAM) 44#define TTM_PL_FLAG_VRAM (1 << TTM_PL_VRAM)
51#define TTM_PL_FLAG_PRIV0 (1 << TTM_PL_PRIV0) 45#define TTM_PL_FLAG_PRIV (1 << TTM_PL_PRIV)
52#define TTM_PL_FLAG_PRIV1 (1 << TTM_PL_PRIV1)
53#define TTM_PL_FLAG_PRIV2 (1 << TTM_PL_PRIV2)
54#define TTM_PL_FLAG_PRIV3 (1 << TTM_PL_PRIV3)
55#define TTM_PL_FLAG_PRIV4 (1 << TTM_PL_PRIV4)
56#define TTM_PL_FLAG_PRIV5 (1 << TTM_PL_PRIV5)
57#define TTM_PL_FLAG_SWAPPED (1 << TTM_PL_SWAPPED)
58#define TTM_PL_MASK_MEM 0x0000FFFF 46#define TTM_PL_MASK_MEM 0x0000FFFF
59 47
60/* 48/*