summaryrefslogtreecommitdiff
path: root/board/kukui_scp/isp_p2_srv.h
diff options
context:
space:
mode:
authorBibby Hsieh <bibby.hsieh@mediatek.com>2019-04-26 10:21:47 +0800
committerCommit Bot <commit-bot@chromium.org>2019-09-04 11:22:06 +0000
commit350193684430b379d1ad76220683de8956e89286 (patch)
treef766587ecd7b64e455d2c45b1f39264af6c411f7 /board/kukui_scp/isp_p2_srv.h
parentea19ea08d74de7911e498456698c5d7bb39db443 (diff)
downloadchrome-ec-350193684430b379d1ad76220683de8956e89286.tar.gz
mtk_isp: Add the service for p2 driver
BUG=b:139269434 TEST=build kukui_scp pass & check DIP_SERVICE is available BRANCH=none Change-Id: I86500068d77700e13e909b5085ca07d1170138c1 Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1584182 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Commit-Queue: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/kukui_scp/isp_p2_srv.h')
-rw-r--r--board/kukui_scp/isp_p2_srv.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/board/kukui_scp/isp_p2_srv.h b/board/kukui_scp/isp_p2_srv.h
new file mode 100644
index 0000000000..196de3e092
--- /dev/null
+++ b/board/kukui_scp/isp_p2_srv.h
@@ -0,0 +1,21 @@
+/* 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_ISP_P2_SRV_H
+#define __CROS_EC_ISP_P2_SRV_H
+
+#include "chip/mt_scp/ipi_chip.h"
+
+struct dip_msg_service {
+ unsigned char id;
+ unsigned char msg[288];
+};
+
+BUILD_ASSERT(member_size(struct dip_msg_service, msg) <= CONFIG_IPC_SHARED_OBJ_BUF_SIZE);
+
+/* Functions provided by private overlay. */
+void dip_msg_handler(void *data);
+
+#endif /* __CROS_EC_ISP_P2_SRV_H */