mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 16:38:21 +07:00
31ad61e4af
Only property creation uses the rotation as an index, so convert the to figure the index when needed. v2: Use the new defines to build the _MASK defines (Sean) Cc: intel-gfx@lists.freedesktop.org Cc: linux-arm-msm@vger.kernel.org Cc: freedreno@lists.freedesktop.org Cc: malidp@foss.arm.com Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Liviu Dudau <Liviu.Dudau@arm.com> Cc: Sean Paul <seanpaul@chromium.org> Acked-by: Liviu Dudau <Liviu.Dudau@arm.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> (v1) Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/1469771405-17653-1-git-send-email-joonas.lahtinen@linux.intel.com
55 lines
1.5 KiB
C
55 lines
1.5 KiB
C
/*
|
|
* (C) COPYRIGHT 2016 ARM Limited. All rights reserved.
|
|
* Author: Liviu Dudau <Liviu.Dudau@arm.com>
|
|
*
|
|
* This program is free software and is provided to you under the terms of the
|
|
* GNU General Public License version 2 as published by the Free Software
|
|
* Foundation, and any use by you of this program is subject to the terms
|
|
* of such GNU licence.
|
|
*
|
|
* ARM Mali DP500/DP550/DP650 KMS/DRM driver structures
|
|
*/
|
|
|
|
#ifndef __MALIDP_DRV_H__
|
|
#define __MALIDP_DRV_H__
|
|
|
|
#include <linux/mutex.h>
|
|
#include <linux/wait.h>
|
|
#include "malidp_hw.h"
|
|
|
|
struct malidp_drm {
|
|
struct malidp_hw_device *dev;
|
|
struct drm_fbdev_cma *fbdev;
|
|
struct list_head event_list;
|
|
struct drm_crtc crtc;
|
|
wait_queue_head_t wq;
|
|
atomic_t config_valid;
|
|
};
|
|
|
|
#define crtc_to_malidp_device(x) container_of(x, struct malidp_drm, crtc)
|
|
|
|
struct malidp_plane {
|
|
struct drm_plane base;
|
|
struct malidp_hw_device *hwdev;
|
|
const struct malidp_layer *layer;
|
|
};
|
|
|
|
struct malidp_plane_state {
|
|
struct drm_plane_state base;
|
|
|
|
/* size of the required rotation memory if plane is rotated */
|
|
u32 rotmem_size;
|
|
};
|
|
|
|
#define to_malidp_plane(x) container_of(x, struct malidp_plane, base)
|
|
#define to_malidp_plane_state(x) container_of(x, struct malidp_plane_state, base)
|
|
|
|
int malidp_de_planes_init(struct drm_device *drm);
|
|
void malidp_de_planes_destroy(struct drm_device *drm);
|
|
int malidp_crtc_init(struct drm_device *drm);
|
|
|
|
/* often used combination of rotational bits */
|
|
#define MALIDP_ROTATED_MASK (DRM_ROTATE_90 | DRM_ROTATE_270)
|
|
|
|
#endif /* __MALIDP_DRV_H__ */
|