mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
drivers/rpmsg: add rpmsg_test to test rpmsg hold/release rx buffer
rpmsg_test is a rpmsg api test service inside the kernel, and user can use ioctl to start this test. Signed-off-by: mazhuang <mazhuang@xiaomi.com> Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com> Signed-off-by: wangshaoxin <wangshaoxin@xiaomi.com>
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
#define RPMSGIOC_PANIC _RPMSGIOC(1)
|
||||
#define RPMSGIOC_DUMP _RPMSGIOC(2)
|
||||
#define RPMSGIOC_PING _RPMSGIOC(3)
|
||||
#define RPMSGIOC_TEST _RPMSGIOC(4)
|
||||
|
||||
#define RPMSG_SIGNAL_RUNNING TIOCM_CD
|
||||
|
||||
@@ -58,6 +59,9 @@ struct rpmsg_s
|
||||
FAR const struct rpmsg_ops_s *ops;
|
||||
#ifdef CONFIG_RPMSG_PING
|
||||
struct rpmsg_endpoint ping;
|
||||
#endif
|
||||
#ifdef CONFIG_RPMSG_TEST
|
||||
struct rpmsg_endpoint test;
|
||||
#endif
|
||||
struct rpmsg_device rdev[0];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user