summaryrefslogtreecommitdiff
path: root/board/kukui_scp/venc.h
blob: 70466330468b1c4fb4cc7cdf0615d005b9232872 (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
/* Copyright 2018 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"
#include "queue.h"
#include "registers.h"

enum venc_type {
	VENC_H264,
	VENC_MAX,
};

typedef void (*venc_msg_handler)(void *msg);

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 */