1 /* SPDX-License-Identifier: MIT */
6 #include <linux/types.h>
10 #define CRCC37D_MAX_ENTRIES 2047
11 #define CRCC37D_FLIP_THRESHOLD (CRCC37D_MAX_ENTRIES - 30)
13 struct crcc37d_notifier {
25 struct crcc37d_entry {
27 u32:32; /* reserved */
31 u32:32; /* reserved */
32 } entries[CRCC37D_MAX_ENTRIES];
35 int crcc37d_set_ctx(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx);
36 u32 crcc37d_get_entry(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx,
37 enum nv50_crc_source source, int idx);
38 bool crcc37d_ctx_finished(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx);
40 #endif /* !__CRCC37D_H__ */