#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc.h>
#include <drm/drm_edid.h>
#include <drm/drm_fb_dma_helper.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_framebuffer.h>
#include <drm/drm_gem_dma_helper.h>
#include <drm/drm_probe_helper.h>
#include <drm/drm_writeback.h>
#include "malidp_drv.h"
#include "malidp_hw.h"
#include "malidp_mw.h"
#define to_mw_state(_state) …
struct malidp_mw_connector_state { … };
static int malidp_mw_connector_get_modes(struct drm_connector *connector)
{ … }
static enum drm_mode_status
malidp_mw_connector_mode_valid(struct drm_connector *connector,
struct drm_display_mode *mode)
{ … }
static const struct drm_connector_helper_funcs malidp_mw_connector_helper_funcs = …;
static void malidp_mw_connector_reset(struct drm_connector *connector)
{ … }
static enum drm_connector_status
malidp_mw_connector_detect(struct drm_connector *connector, bool force)
{ … }
static void malidp_mw_connector_destroy(struct drm_connector *connector)
{ … }
static struct drm_connector_state *
malidp_mw_connector_duplicate_state(struct drm_connector *connector)
{ … }
static const struct drm_connector_funcs malidp_mw_connector_funcs = …;
static const s16 rgb2yuv_coeffs_bt709_limited[MALIDP_COLORADJ_NUM_COEFFS] = …;
static int
malidp_mw_encoder_atomic_check(struct drm_encoder *encoder,
struct drm_crtc_state *crtc_state,
struct drm_connector_state *conn_state)
{ … }
static const struct drm_encoder_helper_funcs malidp_mw_encoder_helper_funcs = …;
static u32 *get_writeback_formats(struct malidp_drm *malidp, int *n_formats)
{ … }
int malidp_mw_connector_init(struct drm_device *drm)
{ … }
void malidp_mw_atomic_commit(struct drm_device *drm,
struct drm_atomic_state *old_state)
{ … }