hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/drm/ttm/ttm_placement.h
....@@ -42,12 +42,6 @@
4242 #define TTM_PL_VRAM 2
4343 #define TTM_PL_PRIV 3
4444
45
-#define TTM_PL_FLAG_SYSTEM (1 << TTM_PL_SYSTEM)
46
-#define TTM_PL_FLAG_TT (1 << TTM_PL_TT)
47
-#define TTM_PL_FLAG_VRAM (1 << TTM_PL_VRAM)
48
-#define TTM_PL_FLAG_PRIV (1 << TTM_PL_PRIV)
49
-#define TTM_PL_MASK_MEM 0x0000FFFF
50
-
5145 /*
5246 * Other flags that affects data placement.
5347 * TTM_PL_FLAG_CACHED indicates cache-coherent mappings
....@@ -71,8 +65,6 @@
7165 TTM_PL_FLAG_UNCACHED | \
7266 TTM_PL_FLAG_WC)
7367
74
-#define TTM_PL_MASK_MEMTYPE (TTM_PL_MASK_MEM | TTM_PL_MASK_CACHING)
75
-
7668 /**
7769 * struct ttm_place
7870 *
....@@ -85,6 +77,7 @@
8577 struct ttm_place {
8678 unsigned fpfn;
8779 unsigned lpfn;
80
+ uint32_t mem_type;
8881 uint32_t flags;
8982 };
9083