#include "mdp5_kms.h"
#include "mdp5_ctl.h"
#define CTL_STAT_BUSY …
#define CTL_STAT_BOOKED …
struct mdp5_ctl { … };
struct mdp5_ctl_manager { … };
static inline
struct mdp5_kms *get_kms(struct mdp5_ctl_manager *ctl_mgr)
{ … }
static inline
void ctl_write(struct mdp5_ctl *ctl, u32 reg, u32 data)
{ … }
static inline
u32 ctl_read(struct mdp5_ctl *ctl, u32 reg)
{ … }
static void set_display_intf(struct mdp5_kms *mdp5_kms,
struct mdp5_interface *intf)
{ … }
static void set_ctl_op(struct mdp5_ctl *ctl, struct mdp5_pipeline *pipeline)
{ … }
int mdp5_ctl_set_pipeline(struct mdp5_ctl *ctl, struct mdp5_pipeline *pipeline)
{ … }
static bool start_signal_needed(struct mdp5_ctl *ctl,
struct mdp5_pipeline *pipeline)
{ … }
static void send_start_signal(struct mdp5_ctl *ctl)
{ … }
int mdp5_ctl_set_encoder_state(struct mdp5_ctl *ctl,
struct mdp5_pipeline *pipeline,
bool enabled)
{ … }
int mdp5_ctl_set_cursor(struct mdp5_ctl *ctl, struct mdp5_pipeline *pipeline,
int cursor_id, bool enable)
{ … }
static u32 mdp_ctl_blend_mask(enum mdp5_pipe pipe,
enum mdp_mixer_stage_id stage)
{ … }
static u32 mdp_ctl_blend_ext_mask(enum mdp5_pipe pipe,
enum mdp_mixer_stage_id stage)
{ … }
static void mdp5_ctl_reset_blend_regs(struct mdp5_ctl *ctl)
{ … }
#define PIPE_LEFT …
#define PIPE_RIGHT …
int mdp5_ctl_blend(struct mdp5_ctl *ctl, struct mdp5_pipeline *pipeline,
enum mdp5_pipe stage[][MAX_PIPE_STAGE],
enum mdp5_pipe r_stage[][MAX_PIPE_STAGE],
u32 stage_cnt, u32 ctl_blend_op_flags)
{ … }
u32 mdp_ctl_flush_mask_encoder(struct mdp5_interface *intf)
{ … }
u32 mdp_ctl_flush_mask_cursor(int cursor_id)
{ … }
u32 mdp_ctl_flush_mask_pipe(enum mdp5_pipe pipe)
{ … }
u32 mdp_ctl_flush_mask_lm(int lm)
{ … }
static u32 fix_sw_flush(struct mdp5_ctl *ctl, struct mdp5_pipeline *pipeline,
u32 flush_mask)
{ … }
static void fix_for_single_flush(struct mdp5_ctl *ctl, u32 *flush_mask,
u32 *flush_id)
{ … }
u32 mdp5_ctl_commit(struct mdp5_ctl *ctl,
struct mdp5_pipeline *pipeline,
u32 flush_mask, bool start)
{ … }
u32 mdp5_ctl_get_commit_status(struct mdp5_ctl *ctl)
{ … }
int mdp5_ctl_get_ctl_id(struct mdp5_ctl *ctl)
{ … }
int mdp5_ctl_pair(struct mdp5_ctl *ctlx, struct mdp5_ctl *ctly, bool enable)
{ … }
struct mdp5_ctl *mdp5_ctlm_request(struct mdp5_ctl_manager *ctl_mgr,
int intf_num)
{ … }
void mdp5_ctlm_hw_reset(struct mdp5_ctl_manager *ctl_mgr)
{ … }
struct mdp5_ctl_manager *mdp5_ctlm_init(struct drm_device *dev,
void __iomem *mmio_base, struct mdp5_cfg_handler *cfg_hnd)
{ … }