This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 54822e4f36c include/nuttx/fs/ioctl.h: add _RPTUNBASE for the rptun
driver
54822e4f36c is described below
commit 54822e4f36c45cdd73956e41db2f1d1932a1c65b
Author: Bowen Wang <[email protected]>
AuthorDate: Mon Nov 2 23:32:11 2026 +0800
include/nuttx/fs/ioctl.h: add _RPTUNBASE for the rptun driver
rptun no longer depends on rpmsg, but its ioctl commands still borrow
the rpmsg base. Give rptun its own base and drop the aliases from
rptun.h. The command numbers are unchanged.
Signed-off-by: Bowen Wang <[email protected]>
---
include/nuttx/fs/ioctl.h | 6 ++++++
include/nuttx/rptun/rptun.h | 3 ---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/include/nuttx/fs/ioctl.h b/include/nuttx/fs/ioctl.h
index 93e7449e8c1..5eafc7b2cc2 100644
--- a/include/nuttx/fs/ioctl.h
+++ b/include/nuttx/fs/ioctl.h
@@ -115,6 +115,7 @@
#define _PTPBASE (0x4700) /* PTP ioctl commands */
#define _DSHOTIOCBASE (0x4800) /* Dshot device ioctl commands */
#define _PULSECOUNTBASE (0x4900) /* Pulse count driver ioctl commands */
+#define _RPTUNBASE (0x5000) /* Remote processor tunneling ioctl commands
*/
#define _WLIOCBASE (0x8b00) /* Wireless modules ioctl network commands */
#define _DMABUFBASE (0x8d00) /* DMA-Buf modules ioctl commands */
@@ -853,6 +854,11 @@
#define _PULSECOUNTIOCVALID(c) (_IOC_TYPE(c)==_PULSECOUNTBASE)
#define _PULSECOUNTIOC(nr) _IOC(_PULSECOUNTBASE,nr)
+/* Rptun drivers ************************************************************/
+
+#define _RPTUNIOCVALID(c) (_IOC_TYPE(c)==_RPTUNBASE)
+#define _RPTUNIOC(nr) _IOC(_RPTUNBASE,nr)
+
/* DMA-Buf driver ioctl definitions *****************************************/
/* see nuttx/include/nuttx/dma-buf.h */
diff --git a/include/nuttx/rptun/rptun.h b/include/nuttx/rptun/rptun.h
index 0f2ff3dd012..1e141c36142 100644
--- a/include/nuttx/rptun/rptun.h
+++ b/include/nuttx/rptun/rptun.h
@@ -40,9 +40,6 @@
* Pre-processor Definitions
****************************************************************************/
-#define _RPTUNIOCVALID(c) _RPMSGIOCVALID(c)
-#define _RPTUNIOC(nr) _RPMSGIOC(nr)
-
#define RPTUNIOC_START _RPTUNIOC(100)
#define RPTUNIOC_STOP _RPTUNIOC(101)
#define RPTUNIOC_RESET _RPTUNIOC(102)