blob: 411c1cbd1541e149258ade700de2ee785b6f8215 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/* 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.
*/
#ifndef __CROS_EC_SCP_VDEC_H
#define __CROS_EC_SCP_VDEC_H
#include "compile_time_macros.h"
#ifdef HAVE_PRIVATE_MT8183
#include "queue.h"
#include "registers.h"
enum vdec_type {
VDEC_H264,
VDEC_VP8,
VDEC_VP9,
VDEC_MAX,
};
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;
unsigned char msg[48];
};
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 */
|