rptun: add rptun_reset support

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd
2021-12-24 16:33:07 +08:00
committed by Petro Karashchenko
parent 7aba7c3790
commit 3ab7ade4ba
2 changed files with 42 additions and 17 deletions
+3 -1
View File
@@ -38,7 +38,8 @@
#define RPTUNIOC_START _RPTUNIOC(1)
#define RPTUNIOC_STOP _RPTUNIOC(2)
#define RPTUNIOC_PANIC _RPTUNIOC(3)
#define RPTUNIOC_RESET _RPTUNIOC(3)
#define RPTUNIOC_PANIC _RPTUNIOC(4)
#define RPTUN_NOTIFY_ALL (UINT32_MAX - 0)
@@ -315,6 +316,7 @@ extern "C"
int rptun_initialize(FAR struct rptun_dev_s *dev);
int rptun_boot(FAR const char *cpuname);
int rptun_reset(FAR const char *cpuname, int value);
int rptun_panic(FAR const char *cpuname);
#ifdef __cplusplus