#ifndef _KOMEDA_FORMAT_CAPS_H_
#define _KOMEDA_FORMAT_CAPS_H_
#include <linux/types.h>
#include <uapi/drm/drm_fourcc.h>
#include <drm/drm_fourcc.h>
#define AFBC(x) …
#define AFBC_16x16(x) …
#define AFBC_32x8(x) …
#define _YTR …
#define _SPLIT …
#define _SPARSE …
#define _CBR …
#define _TILED …
#define _SC …
#define KOMEDA_FMT_RICH_LAYER …
#define KOMEDA_FMT_SIMPLE_LAYER …
#define KOMEDA_FMT_WB_LAYER …
#define AFBC_TH_LAYOUT_ALIGNMENT …
#define AFBC_HEADER_SIZE …
#define AFBC_SUPERBLK_ALIGNMENT …
#define AFBC_SUPERBLK_PIXELS …
#define AFBC_BODY_START_ALIGNMENT …
#define AFBC_TH_BODY_START_ALIGNMENT …
struct komeda_format_caps { … };
struct komeda_format_caps_table { … };
extern u64 komeda_supported_modifiers[];
const struct komeda_format_caps *
komeda_get_format_caps(struct komeda_format_caps_table *table,
u32 fourcc, u64 modifier);
u32 komeda_get_afbc_format_bpp(const struct drm_format_info *info,
u64 modifier);
u32 *komeda_get_layer_fourcc_list(struct komeda_format_caps_table *table,
u32 layer_type, u32 *n_fmts);
void komeda_put_fourcc_list(u32 *fourcc_list);
bool komeda_format_mod_supported(struct komeda_format_caps_table *table,
u32 layer_type, u32 fourcc, u64 modifier,
u32 rot);
#endif