hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/uapi/drm/omap_drm.h
....@@ -38,20 +38,20 @@
3838 __u64 value; /* in (set_param), out (get_param) */
3939 };
4040
41
-#define OMAP_BO_SCANOUT 0x00000001 /* scanout capable (phys contiguous) */
42
-#define OMAP_BO_CACHE_MASK 0x00000006 /* cache type mask, see cache modes */
43
-#define OMAP_BO_TILED_MASK 0x00000f00 /* tiled mapping mask, see tiled modes */
41
+/* Scanout buffer, consumable by DSS */
42
+#define OMAP_BO_SCANOUT 0x00000001
4443
45
-/* cache modes */
46
-#define OMAP_BO_CACHED 0x00000000 /* default */
47
-#define OMAP_BO_WC 0x00000002 /* write-combine */
48
-#define OMAP_BO_UNCACHED 0x00000004 /* strongly-ordered (uncached) */
44
+/* Buffer CPU caching mode: cached, write-combining or uncached. */
45
+#define OMAP_BO_CACHED 0x00000000
46
+#define OMAP_BO_WC 0x00000002
47
+#define OMAP_BO_UNCACHED 0x00000004
48
+#define OMAP_BO_CACHE_MASK 0x00000006
4949
50
-/* tiled modes */
50
+/* Use TILER for the buffer. The TILER container unit can be 8, 16 or 32 bits. */
5151 #define OMAP_BO_TILED_8 0x00000100
5252 #define OMAP_BO_TILED_16 0x00000200
5353 #define OMAP_BO_TILED_32 0x00000300
54
-#define OMAP_BO_TILED (OMAP_BO_TILED_8 | OMAP_BO_TILED_16 | OMAP_BO_TILED_32)
54
+#define OMAP_BO_TILED_MASK 0x00000f00
5555
5656 union omap_gem_size {
5757 __u32 bytes; /* (for non-tiled formats) */