#ifndef _SUN8I_CSC_H_
#define _SUN8I_CSC_H_
#include <drm/drm_color_mgmt.h>
struct sun8i_mixer;
#define CCSC00_OFFSET …
#define CCSC01_OFFSET …
#define CCSC01_D1_OFFSET …
#define CCSC10_OFFSET …
#define CCSC11_OFFSET …
#define SUN8I_CSC_CTRL(base) …
#define SUN8I_CSC_COEFF(base, i) …
#define SUN8I_CSC_CTRL_EN …
enum sun8i_csc_mode { … };
void sun8i_csc_set_ccsc_coefficients(struct sun8i_mixer *mixer, int layer,
enum sun8i_csc_mode mode,
enum drm_color_encoding encoding,
enum drm_color_range range);
void sun8i_csc_enable_ccsc(struct sun8i_mixer *mixer, int layer, bool enable);
#endif