/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * include/uapi/drm/omap_drm.h * * Copyright (C) 2011 Texas Instruments * Author: Rob Clark <[email protected]> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation. * * 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 __OMAP_DRM_H__ #define __OMAP_DRM_H__ #include "drm.h" #if defined(__cplusplus) extern "C" { #endif /* Please note that modifications to all structs defined here are * subject to backwards-compatibility constraints. */ #define OMAP_PARAM_CHIPSET_ID … struct drm_omap_param { … }; /* Scanout buffer, consumable by DSS */ #define OMAP_BO_SCANOUT … /* Buffer CPU caching mode: cached, write-combining or uncached. */ #define OMAP_BO_CACHED … #define OMAP_BO_WC … #define OMAP_BO_UNCACHED … #define OMAP_BO_CACHE_MASK … /* Use TILER for the buffer. The TILER container unit can be 8, 16 or 32 bits. */ #define OMAP_BO_TILED_8 … #define OMAP_BO_TILED_16 … #define OMAP_BO_TILED_32 … #define OMAP_BO_TILED_MASK … omap_gem_size; struct drm_omap_gem_new { … }; /* mask of operations: */ enum omap_gem_op { … }; struct drm_omap_gem_cpu_prep { … }; struct drm_omap_gem_cpu_fini { … }; struct drm_omap_gem_info { … }; #define DRM_OMAP_GET_PARAM … #define DRM_OMAP_SET_PARAM … #define DRM_OMAP_GEM_NEW … #define DRM_OMAP_GEM_CPU_PREP … #define DRM_OMAP_GEM_CPU_FINI … #define DRM_OMAP_GEM_INFO … #define DRM_OMAP_NUM_IOCTLS … #define DRM_IOCTL_OMAP_GET_PARAM … #define DRM_IOCTL_OMAP_SET_PARAM … #define DRM_IOCTL_OMAP_GEM_NEW … #define DRM_IOCTL_OMAP_GEM_CPU_PREP … #define DRM_IOCTL_OMAP_GEM_CPU_FINI … #define DRM_IOCTL_OMAP_GEM_INFO … #if defined(__cplusplus) } #endif #endif /* __OMAP_DRM_H__ */