| /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
| /* |
| * Copyright (c) 2019 MediaTek Inc. |
| */ |
| |
| #ifndef _UAPI_MEDIATEK_DRM_H |
| #define _UAPI_MEDIATEK_DRM_H |
| |
| #include <drm/drm.h> |
| #include <drm/drm_fourcc.h> |
| |
| /* two planes */ |
| /* MTK 8-bit block mode, two non-contiguous planes */ |
| #define DRM_FORMAT_MT21 fourcc_code('M', 'M', '2', '1') |
| /* Mediatek compressed block mode */ |
| #define DRM_FORMAT_MT21C fourcc_code('M', 'T', '2', '1') |
| /* MTK 10-bit compressed mode, three non-contiguous planes */ |
| #define DRM_FORMAT_MT10 fourcc_code('M', 'T', '1', '0') |
| /* MTK 10-bit tile block mode, two non-contiguous planes */ |
| #define DRM_FORMAT_MT2110T fourcc_code('M', 'T', '2', 'T') |
| /* MTK 10-bit raster block mode, two non-contiguous planes */ |
| #define DRM_FORMAT_MT2110R fourcc_code('M', 'T', '2', 'R') |
| /* MTK 10-bit tile compressed block mode, two non-contiguous planes */ |
| #define DRM_FORMAT_MT21C10T fourcc_code('M', 'T', 'C', 'T') |
| /* MTK 10-bit raster compressed block mode, two non-contiguous planes */ |
| #define DRM_FORMAT_MT21C10R fourcc_code('M', 'T', 'C', 'R') |
| |
| /* single plane */ |
| /* MTK 8-bit block mode, one plane */ |
| #define DRM_FORMAT_MT21S fourcc_code('M', '2', '1', 'S') |
| /* MTK 8-bit compressed block mode, one plane */ |
| #define DRM_FORMAT_MT21CS fourcc_code('M', '2', 'C', 'S') |
| /* MTK 10-bit tile block mode, one plane */ |
| #define DRM_FORMAT_MT21S10T fourcc_code('M', 'T', 'S', 'T') |
| /* MTK 10-bit raster block mode, one plane */ |
| #define DRM_FORMAT_MT21S10R fourcc_code('M', 'T', 'S', 'R') |
| /* MTK 10-bit tile compressed block mode, one plane */ |
| #define DRM_FORMAT_MT21CS10T fourcc_code('M', 'C', 'S', 'T') |
| /* MTK 10-bit raster compressed block mode, one plane */ |
| #define DRM_FORMAT_MT21CS10R fourcc_code('M', 'C', 'S', 'R') |
| /* MTK 8-bit compressed block au offset mode, one plane */ |
| #define DRM_FORMAT_MT21CSA fourcc_code('M', 'A', 'C', 'S') |
| /* MTK 10-bit tile block jump mode, one plane */ |
| #define DRM_FORMAT_MT21S10TJ fourcc_code('M', 'J', 'S', 'T') |
| /* MTK 10-bit raster block jump mode, one plane */ |
| #define DRM_FORMAT_MT21S10RJ fourcc_code('M', 'J', 'S', 'R') |
| /* MTK 10-bit tile compressed block jump mode, one plane */ |
| #define DRM_FORMAT_MT21CS10TJ fourcc_code('J', 'C', 'S', 'T') |
| /* MTK 10-bit raster compressed block jump mode, one plane */ |
| #define DRM_FORMAT_MT21CS10RJ fourcc_code('J', 'C', 'S', 'R') |
| |
| #define DRM_FORMAT_P010S fourcc_code('P', '0', '1', 'S') |
| |
| #define DRM_MTK_MODE_GETCRTC 0x00 |
| #define DRM_MTK_MODE_SETCRTC 0x01 |
| |
| #define DRM_IOCTL_MTK_MODE_GETCRTC \ |
| DRM_IOWR(DRM_COMMAND_BASE + \ |
| DRM_MTK_MODE_GETCRTC, struct drm_mode_crtc) |
| #define DRM_IOCTL_MTK_MODE_SETCRTC \ |
| DRM_IOWR(DRM_COMMAND_BASE + \ |
| DRM_MTK_MODE_SETCRTC, struct drm_mode_crtc) |
| |
| |
| #endif /* _UAPI_MEDIATEK_DRM_H */ |