#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_blend.h>
#include <drm/drm_print.h>
#include "komeda_dev.h"
#include "komeda_kms.h"
#include "komeda_framebuffer.h"
static int
komeda_plane_init_data_flow(struct drm_plane_state *st,
struct komeda_crtc_state *kcrtc_st,
struct komeda_data_flow_cfg *dflow)
{ … }
static int
komeda_plane_atomic_check(struct drm_plane *plane,
struct drm_atomic_state *state)
{ … }
static void
komeda_plane_atomic_update(struct drm_plane *plane,
struct drm_atomic_state *state)
{ … }
static const struct drm_plane_helper_funcs komeda_plane_helper_funcs = …;
static void komeda_plane_destroy(struct drm_plane *plane)
{ … }
static void komeda_plane_reset(struct drm_plane *plane)
{ … }
static struct drm_plane_state *
komeda_plane_atomic_duplicate_state(struct drm_plane *plane)
{ … }
static void
komeda_plane_atomic_destroy_state(struct drm_plane *plane,
struct drm_plane_state *state)
{ … }
static bool
komeda_plane_format_mod_supported(struct drm_plane *plane,
u32 format, u64 modifier)
{ … }
static const struct drm_plane_funcs komeda_plane_funcs = …;
static u32 get_possible_crtcs(struct komeda_kms_dev *kms,
struct komeda_pipeline *pipe)
{ … }
static void
komeda_set_crtc_plane_mask(struct komeda_kms_dev *kms,
struct komeda_pipeline *pipe,
struct drm_plane *plane)
{ … }
static u32 get_plane_type(struct komeda_kms_dev *kms,
struct komeda_component *c)
{ … }
static int komeda_plane_add(struct komeda_kms_dev *kms,
struct komeda_layer *layer)
{ … }
int komeda_kms_add_planes(struct komeda_kms_dev *kms, struct komeda_dev *mdev)
{ … }