summaryrefslogtreecommitdiff
path: root/baseboard/mtscp-rv32i/venc.h
diff options
context:
space:
mode:
Diffstat (limited to 'baseboard/mtscp-rv32i/venc.h')
-rw-r--r--baseboard/mtscp-rv32i/venc.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/baseboard/mtscp-rv32i/venc.h b/baseboard/mtscp-rv32i/venc.h
new file mode 100644
index 0000000000..47454c4507
--- /dev/null
+++ b/baseboard/mtscp-rv32i/venc.h
@@ -0,0 +1,26 @@
+/* Copyright 2021 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef __CROS_EC_SCP_VENC_H
+#define __CROS_EC_SCP_VENC_H
+
+#include "compile_time_macros.h"
+
+enum venc_type {
+ VENC_H264,
+ VENC_MAX,
+};
+
+struct venc_msg {
+ enum venc_type type;
+ unsigned char msg[288];
+};
+BUILD_ASSERT(member_size(struct venc_msg, msg) <=
+ CONFIG_IPC_SHARED_OBJ_BUF_SIZE);
+
+/* Functions provided by private overlay. */
+void venc_h264_msg_handler(void *data);
+
+#endif /* __CROS_EC_SCP_VENC_H */