diff options
Diffstat (limited to 'board/kukui_scp/vdec.h')
-rw-r--r-- | board/kukui_scp/vdec.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/board/kukui_scp/vdec.h b/board/kukui_scp/vdec.h index 9284c28a40..411c1cbd15 100644 --- a/board/kukui_scp/vdec.h +++ b/board/kukui_scp/vdec.h @@ -1,4 +1,4 @@ -/* Copyright 2018 The ChromiumOS Authors +/* Copyright 2022 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -7,6 +7,8 @@ #define __CROS_EC_SCP_VDEC_H #include "compile_time_macros.h" + +#ifdef HAVE_PRIVATE_MT8183 #include "queue.h" #include "registers.h" @@ -18,6 +20,13 @@ enum vdec_type { }; typedef void (*vdec_msg_handler)(void *msg); +#else +enum vdec_type { + VDEC_LAT, + VDEC_CORE, + VDEC_MAX, +}; +#endif struct vdec_msg { enum vdec_type type; @@ -28,7 +37,12 @@ BUILD_ASSERT(member_size(struct vdec_msg, msg) <= CONFIG_IPC_SHARED_OBJ_BUF_SIZE); /* Functions provided by private overlay. */ +#ifdef HAVE_PRIVATE_MT8183 void vdec_h264_service_init(void); void vdec_h264_msg_handler(void *data); +#else +void vdec_core_msg_handler(void *msg); +void vdec_msg_handler(void *msg); +#endif #endif /* __CROS_EC_SCP_VDEC_H */ |