diff options
author | Meng Mingming <mingming.meng@nxp.com> | 2017-08-31 17:14:06 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | f9989c7483370433e1099696ccf788df6f672c5a (patch) | |
tree | 9b69845b003d871f30363b490b54bc59b866ef43 /include/uapi/drm | |
parent | 32c839983ea4535cb4fc86de01e94951ae5fc013 (diff) |
MLK-15321-3 drm/imx: dpu: Add render feature support
Implement Blt engine as DRM renderer.
Add dpu ioctl to support imx-drm render feature.
Signed-off-by: Adrian Negreanu <adrian.negreanu@nxp.com>
Signed-off-by: Marius Vlad <marius-cristian.vlad@nxp.com>
Signed-off-by: Meng Mingming <mingming.meng@nxp.com>
Diffstat (limited to 'include/uapi/drm')
-rw-r--r-- | include/uapi/drm/imx_drm.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/include/uapi/drm/imx_drm.h b/include/uapi/drm/imx_drm.h new file mode 100644 index 000000000000..b2853887b7eb --- /dev/null +++ b/include/uapi/drm/imx_drm.h @@ -0,0 +1,73 @@ +/* + * Copyright 2017 NXP + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef _UAPI_IMX_DRM_H_ +#define _UAPI_IMX_DRM_H_ + +#include "drm.h" + +#if defined(__cplusplus) +extern "C" { +#endif + +#define DRM_IMX_DPU_SET_CMDLIST 0x00 +#define DRM_IMX_DPU_WAIT 0x01 +#define DRM_IMX_DPU_GET_PARAM 0x02 + +#define DRM_IOCTL_IMX_DPU_SET_CMDLIST DRM_IOWR(DRM_COMMAND_BASE + \ + DRM_IMX_DPU_SET_CMDLIST, struct drm_imx_dpu_set_cmdlist) +#define DRM_IOCTL_IMX_DPU_WAIT DRM_IOWR(DRM_COMMAND_BASE + \ + DRM_IMX_DPU_WAIT, struct drm_imx_dpu_wait) +#define DRM_IOCTL_IMX_DPU_GET_PARAM DRM_IOWR(DRM_COMMAND_BASE + \ + DRM_IMX_DPU_GET_PARAM, enum drm_imx_dpu_param) + +/** + * struct drm_imx_dpu_set_cmdlist - ioctl argument for + * DRM_IMX_DPU_SET_CMDLIST. + */ +struct drm_imx_dpu_set_cmdlist { + __u64 cmd; + __u32 cmd_nr; + + /* reserved */ + __u64 user_data; +}; + +/** + * struct drm_imx_dpu_wait - ioctl argument for + * DRM_IMX_DPU_WAIT. + * + */ +struct drm_imx_dpu_wait { + /* reserved */ + __u64 user_data; +}; + +/** + * enum drm_imx_dpu_param - ioctl argument for + * DRM_IMX_DPU_GET_PARAM. + * + */ +enum drm_imx_dpu_param { + DRM_IMX_MAX_DPUS, +}; + +#if defined(__cplusplus) +} +#endif + +#endif /* _UAPI_IMX_DRM_H_ */ |