lwp_ipc_internal.h 963 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. #include <rthw.h>
  13. #include <rtthread.h>
  14. #include <lwp.h>
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. enum
  19. {
  20. FDT_TYPE_LWP,
  21. FDT_TYPE_KERNEL
  22. };
  23. int lwp_channel_open(int fdt_type, const char *name, int flags);
  24. rt_err_t lwp_channel_close(int fdt_type, int fd);
  25. rt_err_t lwp_channel_send(int fdt_type, int fd, rt_channel_msg_t data);
  26. 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);
  27. rt_err_t lwp_channel_reply(int fdt_type, int fd, rt_channel_msg_t data);
  28. rt_err_t lwp_channel_recv_timeout(int fdt_type, int fd, rt_channel_msg_t data, rt_int32_t time);
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif /* LWP_IPC_INTERNAL_H__*/