#include <linux/moduleparam.h>
#include <linux/seq_file.h>
#include <drm/drm_print.h>
#include "sti_compositor.h"
#include "sti_mixer.h"
#include "sti_vtg.h"
static unsigned int bkg_color = …;
MODULE_PARM_DESC(…) …;
module_param_named(bkgcolor, bkg_color, int, 0644);
#define GAM_MIXER_CTL …
#define GAM_MIXER_BKC …
#define GAM_MIXER_BCO …
#define GAM_MIXER_BCS …
#define GAM_MIXER_AVO …
#define GAM_MIXER_AVS …
#define GAM_MIXER_CRB …
#define GAM_MIXER_ACT …
#define GAM_MIXER_MBP …
#define GAM_MIXER_MX0 …
#define GAM_DEPTH_VID0_ID …
#define GAM_DEPTH_VID1_ID …
#define GAM_DEPTH_GDP0_ID …
#define GAM_DEPTH_GDP1_ID …
#define GAM_DEPTH_GDP2_ID …
#define GAM_DEPTH_GDP3_ID …
#define GAM_DEPTH_MASK_ID …
#define GAM_CTL_BACK_MASK …
#define GAM_CTL_VID0_MASK …
#define GAM_CTL_VID1_MASK …
#define GAM_CTL_GDP0_MASK …
#define GAM_CTL_GDP1_MASK …
#define GAM_CTL_GDP2_MASK …
#define GAM_CTL_GDP3_MASK …
#define GAM_CTL_CURSOR_MASK …
const char *sti_mixer_to_str(struct sti_mixer *mixer)
{ … }
static inline u32 sti_mixer_reg_read(struct sti_mixer *mixer, u32 reg_id)
{ … }
static inline void sti_mixer_reg_write(struct sti_mixer *mixer,
u32 reg_id, u32 val)
{ … }
#define DBGFS_DUMP(reg) …
static void mixer_dbg_ctl(struct seq_file *s, int val)
{ … }
static void mixer_dbg_crb(struct seq_file *s, int val)
{ … }
static void mixer_dbg_mxn(struct seq_file *s, void *addr)
{ … }
static int mixer_dbg_show(struct seq_file *s, void *arg)
{ … }
static struct drm_info_list mixer0_debugfs_files[] = …;
static struct drm_info_list mixer1_debugfs_files[] = …;
void sti_mixer_debugfs_init(struct sti_mixer *mixer, struct drm_minor *minor)
{ … }
void sti_mixer_set_background_status(struct sti_mixer *mixer, bool enable)
{ … }
static void sti_mixer_set_background_color(struct sti_mixer *mixer,
unsigned int rgb)
{ … }
static void sti_mixer_set_background_area(struct sti_mixer *mixer,
struct drm_display_mode *mode)
{ … }
int sti_mixer_set_plane_depth(struct sti_mixer *mixer, struct sti_plane *plane)
{ … }
int sti_mixer_active_video_area(struct sti_mixer *mixer,
struct drm_display_mode *mode)
{ … }
static u32 sti_mixer_get_plane_mask(struct sti_plane *plane)
{ … }
int sti_mixer_set_plane_status(struct sti_mixer *mixer,
struct sti_plane *plane, bool status)
{ … }
struct sti_mixer *sti_mixer_create(struct device *dev,
struct drm_device *drm_dev,
int id,
void __iomem *baseaddr)
{ … }