1 /*
2  * Copyright (c) 2006-2020, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2019-10-16     Jesven       first version
9  */
10 #ifndef  LWP_IPC_INTERNAL_H__
11 #define  LWP_IPC_INTERNAL_H__
12 
13 #include <rthw.h>
14 #include <rtthread.h>
15 #include <lwp.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 enum
22 {
23     FDT_TYPE_LWP,
24     FDT_TYPE_KERNEL
25 };
26 
27 int lwp_channel_open(int fdt_type, const char *name, int flags);
28 rt_err_t lwp_channel_close(int fdt_type, int fd);
29 rt_err_t lwp_channel_send(int fdt_type, int fd, rt_channel_msg_t data);
30 rt_err_t lwp_channel_send_recv_timeout(int fdt_type, int fd, rt_channel_msg_t data, rt_channel_msg_t data_ret, rt_int32_t time);
31 rt_err_t lwp_channel_reply(int fdt_type, int fd, rt_channel_msg_t data);
32 rt_err_t lwp_channel_recv_timeout(int fdt_type, int fd, rt_channel_msg_t data, rt_int32_t time);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif  /* LWP_IPC_INTERNAL_H__*/
39