Go to the documentation of this file.
31 #ifndef _TTM_PLACEMENT_H_
32 #define _TTM_PLACEMENT_H_
37 #define TTM_PL_SYSTEM 0
40 #define TTM_PL_PRIV0 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
48 #define TTM_PL_FLAG_SYSTEM (1 << TTM_PL_SYSTEM)
49 #define TTM_PL_FLAG_TT (1 << TTM_PL_TT)
50 #define TTM_PL_FLAG_VRAM (1 << TTM_PL_VRAM)
51 #define TTM_PL_FLAG_PRIV0 (1 << TTM_PL_PRIV0)
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
70 #define TTM_PL_FLAG_CACHED (1 << 16)
71 #define TTM_PL_FLAG_UNCACHED (1 << 17)
72 #define TTM_PL_FLAG_WC (1 << 18)
73 #define TTM_PL_FLAG_SHARED (1 << 20)
74 #define TTM_PL_FLAG_NO_EVICT (1 << 21)
76 #define TTM_PL_MASK_CACHING (TTM_PL_FLAG_CACHED | \
77 TTM_PL_FLAG_UNCACHED | \
80 #define TTM_PL_MASK_MEMTYPE (TTM_PL_MASK_MEM | TTM_PL_MASK_CACHING)
89 #define TTM_ACCESS_READ (1 << 0)
90 #define TTM_ACCESS_WRITE (1 << 1)