summaryrefslogtreecommitdiff
path: root/baseboard/mtscp-rv32i/vdec.h
blob: cdc16ba9e087eca1b06d445a3eae1f3e6bf0537d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* 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_VDEC_H
#define __CROS_EC_SCP_VDEC_H

#include "compile_time_macros.h"

enum vdec_type {
	VDEC_LAT,
	VDEC_CORE,
	VDEC_MAX,
};

struct vdec_msg {
	enum vdec_type type;
	unsigned char msg[48];
};
BUILD_ASSERT(member_size(struct vdec_msg, msg) <=
		CONFIG_IPC_SHARED_OBJ_BUF_SIZE);

/* Functions provided by private overlay. */
void vdec_core_msg_handler(void *msg);
void vdec_msg_handler(void *msg);

#endif /* __CROS_EC_SCP_VDEC_H */