diff --git a/include/nuttx/fs/ioctl.h b/include/nuttx/fs/ioctl.h index b87dc75c958..a4f49ff4444 100644 --- a/include/nuttx/fs/ioctl.h +++ b/include/nuttx/fs/ioctl.h @@ -110,6 +110,7 @@ #define _I3CBASE (0x4200) /* I3C driver ioctl commands */ #define _MSIOCBASE (0x4300) /* Mouse ioctl commands */ #define _I2SOCBASE (0x4400) /* I2S driver ioctl commands */ +#define _1WIREBASE (0x4500) /* 1WIRE ioctl commands */ #define _WLIOCBASE (0x8b00) /* Wireless modules ioctl network commands */ /* boardctl() commands share the same number space */ @@ -783,6 +784,13 @@ #define _I2SOCVALID(c) (_IOC_TYPE(c)==_I2SOCBASE) #define _I2SOC(nr) _IOC(_I2SOCBASE,nr) +/* 1WIRE driver ioctl definitions *******************************************/ + +/* see nuttx/1wire/1wire.h */ + +#define _1WIREIOCVALID(c) (_IOC_TYPE(c)==_1WIREBASE) +#define _1WIREIOC(nr) _IOC(_1WIREBASE,nr) + /**************************************************************************** * Public Type Definitions ****************************************************************************/