mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 09:45:55 +08:00
fs/ioctl.h: add the base for the 1wire ioctl commands
Allows for ioctls for 1wire drivers. Signed-off-by: Stepan Pressl <pressl.stepan@gmail.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
ebbb85e0f2
commit
138228b0f3
@@ -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
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user