0001
0002
0003 #ifndef __CRCC37D_H__
0004 #define __CRCC37D_H__
0005
0006 #include <linux/types.h>
0007
0008 #include "crc.h"
0009
0010 #define CRCC37D_MAX_ENTRIES 2047
0011 #define CRCC37D_FLIP_THRESHOLD (CRCC37D_MAX_ENTRIES - 30)
0012
0013 struct crcc37d_notifier {
0014 u32 status;
0015
0016
0017 u32:32;
0018 u32:32;
0019 u32:32;
0020 u32:32;
0021 u32:32;
0022 u32:32;
0023 u32:32;
0024
0025 struct crcc37d_entry {
0026 u32 status[2];
0027 u32:32;
0028 u32 compositor_crc;
0029 u32 rg_crc;
0030 u32 output_crc[2];
0031 u32:32;
0032 } entries[CRCC37D_MAX_ENTRIES];
0033 } __packed;
0034
0035 int crcc37d_set_ctx(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx);
0036 u32 crcc37d_get_entry(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx,
0037 enum nv50_crc_source source, int idx);
0038 bool crcc37d_ctx_finished(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx);
0039
0040 #endif