linux/drivers/gpu/drm/arm/malidp_drv.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * (C) COPYRIGHT 2016 ARM Limited. All rights reserved.
 * Author: Liviu Dudau <[email protected]>
 *
 * 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 <linux/spinlock.h>

#include <drm/drm_writeback.h>
#include <drm/drm_encoder.h>

#include "malidp_hw.h"

#define MALIDP_CONFIG_VALID_INIT
#define MALIDP_CONFIG_VALID_DONE
#define MALIDP_CONFIG_START

struct malidp_error_stats {};

struct malidp_drm {};

#define drm_to_malidp(x)
#define crtc_to_malidp_device(x)

struct malidp_plane {};

enum mmu_prefetch_mode {};

struct malidp_plane_state {};

#define to_malidp_plane(x)
#define to_malidp_plane_state(x)

struct malidp_crtc_state {};

#define to_malidp_crtc_state(x)

int malidp_de_planes_init(struct drm_device *drm);
int malidp_crtc_init(struct drm_device *drm);

bool malidp_hw_format_is_linear_only(u32 format);
bool malidp_hw_format_is_afbc_only(u32 format);

bool malidp_format_mod_supported(struct drm_device *drm,
				 u32 format, u64 modifier);

#ifdef CONFIG_DEBUG_FS
void malidp_error(struct malidp_drm *malidp,
		  struct malidp_error_stats *error_stats, u32 status,
		  u64 vblank);
#endif

/* often used combination of rotational bits */
#define MALIDP_ROTATED_MASK

#endif  /* __MALIDP_DRV_H__ */