#ifndef _SUN8I_MIXER_H_
#define _SUN8I_MIXER_H_
#include <linux/clk.h>
#include <linux/regmap.h>
#include <linux/reset.h>
#include <drm/drm_plane.h>
#include "sunxi_engine.h"
#define SUN8I_MIXER_SIZE(w, h) …
#define SUN8I_MIXER_COORD(x, y) …
#define SUN8I_MIXER_GLOBAL_CTL …
#define SUN8I_MIXER_GLOBAL_STATUS …
#define SUN8I_MIXER_GLOBAL_DBUFF …
#define SUN8I_MIXER_GLOBAL_SIZE …
#define SUN8I_MIXER_GLOBAL_CTL_RT_EN …
#define SUN8I_MIXER_GLOBAL_DBUFF_ENABLE …
#define DE2_MIXER_UNIT_SIZE …
#define DE3_MIXER_UNIT_SIZE …
#define DE2_BLD_BASE …
#define DE2_CH_BASE …
#define DE2_CH_SIZE …
#define DE3_BLD_BASE …
#define DE3_CH_BASE …
#define DE3_CH_SIZE …
#define SUN8I_MIXER_BLEND_PIPE_CTL(base) …
#define SUN8I_MIXER_BLEND_ATTR_FCOLOR(base, x) …
#define SUN8I_MIXER_BLEND_ATTR_INSIZE(base, x) …
#define SUN8I_MIXER_BLEND_ATTR_COORD(base, x) …
#define SUN8I_MIXER_BLEND_ROUTE(base) …
#define SUN8I_MIXER_BLEND_PREMULTIPLY(base) …
#define SUN8I_MIXER_BLEND_BKCOLOR(base) …
#define SUN8I_MIXER_BLEND_OUTSIZE(base) …
#define SUN8I_MIXER_BLEND_MODE(base, x) …
#define SUN8I_MIXER_BLEND_CK_CTL(base) …
#define SUN8I_MIXER_BLEND_CK_CFG(base) …
#define SUN8I_MIXER_BLEND_CK_MAX(base, x) …
#define SUN8I_MIXER_BLEND_CK_MIN(base, x) …
#define SUN8I_MIXER_BLEND_OUTCTL(base) …
#define SUN50I_MIXER_BLEND_CSC_CTL(base) …
#define SUN50I_MIXER_BLEND_CSC_COEFF(base, layer, x) …
#define SUN8I_MIXER_BLEND_PIPE_CTL_EN_MSK …
#define SUN8I_MIXER_BLEND_PIPE_CTL_EN(pipe) …
#define SUN8I_MIXER_BLEND_PIPE_CTL_FC_EN(pipe) …
#define SUN8I_MIXER_BLEND_COLOR_BLACK …
#define SUN8I_MIXER_BLEND_MODE_DEF …
#define SUN8I_MIXER_BLEND_ROUTE_PIPE_MSK(n) …
#define SUN8I_MIXER_BLEND_ROUTE_PIPE_SHIFT(n) …
#define SUN8I_MIXER_BLEND_OUTCTL_INTERLACED …
#define SUN50I_MIXER_BLEND_CSC_CTL_EN(ch) …
#define SUN50I_MIXER_BLEND_CSC_CONST_VAL(d, c) …
#define SUN8I_MIXER_FBFMT_ARGB8888 …
#define SUN8I_MIXER_FBFMT_ABGR8888 …
#define SUN8I_MIXER_FBFMT_RGBA8888 …
#define SUN8I_MIXER_FBFMT_BGRA8888 …
#define SUN8I_MIXER_FBFMT_XRGB8888 …
#define SUN8I_MIXER_FBFMT_XBGR8888 …
#define SUN8I_MIXER_FBFMT_RGBX8888 …
#define SUN8I_MIXER_FBFMT_BGRX8888 …
#define SUN8I_MIXER_FBFMT_RGB888 …
#define SUN8I_MIXER_FBFMT_BGR888 …
#define SUN8I_MIXER_FBFMT_RGB565 …
#define SUN8I_MIXER_FBFMT_BGR565 …
#define SUN8I_MIXER_FBFMT_ARGB4444 …
#define SUN8I_MIXER_FBFMT_ABGR4444 …
#define SUN8I_MIXER_FBFMT_RGBA4444 …
#define SUN8I_MIXER_FBFMT_BGRA4444 …
#define SUN8I_MIXER_FBFMT_ARGB1555 …
#define SUN8I_MIXER_FBFMT_ABGR1555 …
#define SUN8I_MIXER_FBFMT_RGBA5551 …
#define SUN8I_MIXER_FBFMT_BGRA5551 …
#define SUN8I_MIXER_FBFMT_ARGB2101010 …
#define SUN8I_MIXER_FBFMT_ABGR2101010 …
#define SUN8I_MIXER_FBFMT_RGBA1010102 …
#define SUN8I_MIXER_FBFMT_BGRA1010102 …
#define SUN8I_MIXER_FBFMT_YUYV …
#define SUN8I_MIXER_FBFMT_UYVY …
#define SUN8I_MIXER_FBFMT_YVYU …
#define SUN8I_MIXER_FBFMT_VYUY …
#define SUN8I_MIXER_FBFMT_NV16 …
#define SUN8I_MIXER_FBFMT_NV61 …
#define SUN8I_MIXER_FBFMT_YUV422 …
#define SUN8I_MIXER_FBFMT_NV12 …
#define SUN8I_MIXER_FBFMT_NV21 …
#define SUN8I_MIXER_FBFMT_YUV420 …
#define SUN8I_MIXER_FBFMT_YUV411 …
#define SUN8I_MIXER_FBFMT_P010_YUV …
#define SUN8I_MIXER_FBFMT_P210_YUV …
#define SUN8I_MIXER_FCE_EN …
#define SUN8I_MIXER_BWS_EN …
#define SUN8I_MIXER_LTI_EN …
#define SUN8I_MIXER_PEAK_EN …
#define SUN8I_MIXER_ASE_EN …
#define SUN8I_MIXER_FCC_EN …
#define SUN8I_MIXER_DCSC_EN …
#define SUN50I_MIXER_FCE_EN …
#define SUN50I_MIXER_PEAK_EN …
#define SUN50I_MIXER_LCTI_EN …
#define SUN50I_MIXER_BLS_EN …
#define SUN50I_MIXER_FCC_EN …
#define SUN50I_MIXER_DNS_EN …
#define SUN50I_MIXER_DRC_EN …
#define SUN50I_MIXER_FMT_EN …
#define SUN50I_MIXER_CDC0_EN …
#define SUN50I_MIXER_CDC1_EN …
enum { … };
struct sun8i_mixer_cfg { … };
struct sun8i_mixer { … };
enum { … };
struct sun8i_layer { … };
static inline struct sun8i_layer *
plane_to_sun8i_layer(struct drm_plane *plane)
{ … }
static inline struct sun8i_mixer *
engine_to_sun8i_mixer(struct sunxi_engine *engine)
{ … }
static inline u32
sun8i_blender_base(struct sun8i_mixer *mixer)
{ … }
static inline u32
sun8i_channel_base(struct sun8i_mixer *mixer, int channel)
{ … }
int sun8i_mixer_drm_format_to_hw(u32 format, u32 *hw_format);
#endif