From 6aef5e8ed36c97406e930f3cf45d259399fc3d59 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 12 Sep 2008 14:34:06 +0000 Subject: Add ioctl's to support XIP git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@913 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/include/nuttx/ioctl.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'nuttx/include') diff --git a/nuttx/include/nuttx/ioctl.h b/nuttx/include/nuttx/ioctl.h index a61d1108d..6ebfce997 100644 --- a/nuttx/include/nuttx/ioctl.h +++ b/nuttx/include/nuttx/ioctl.h @@ -52,6 +52,7 @@ * defined below: */ +#define _FIOCBASE (0x8700) /* File system ioctl commands */ #define _BIOCBASE (0x8800) /* Block driver ioctl commands */ #define _SIOCBASE (0x8900) /* Socket ioctl commandss */ @@ -63,14 +64,25 @@ #define _IOC(type,nr) ((type)|(nr)) +/* NuttX file system ioctl definitions */ + +#define _FIOCVALID(c) (_IOC_TYPE(c)==_FIOCBASE) +#define _FIOC(nr) _IOC(_FIOCBASE,nr) + +#define FIOC_MMAP _FIOC(0x0001) /* IN: None + * OUT: If media is directly acccesible, + * return (void*) base address + * of file */ + /* NuttX block driver ioctl definitions */ #define _BIOCVALID(c) (_IOC_TYPE(c)==_BIOCBASE) -#define _BIOC(nr) _IOC(_SIOCBASE,nr) +#define _BIOC(nr) _IOC(_BIOCBASE,nr) -#define _BIOC_XIPBASE _BIOC(0x0001) /* IN: None - * OUT: If underlying is random acccesible, - * return (void*) base address */ +#define BIOC_XIPBASE _BIOC(0x0001) /* IN: None + * OUT: If media is directly acccesible, + * return (void*) base address + * of device memory */ /**************************************************************************** * Public Type Definitions -- cgit v1.2.3