summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-12 14:34:06 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-12 14:34:06 +0000
commit6aef5e8ed36c97406e930f3cf45d259399fc3d59 (patch)
tree98259bf727ccfc4f7cd0589bebd387caf72c0191 /nuttx/include
parent627dfd23c0a52dc8a5f8b9c2cdaaa6681154f948 (diff)
downloadpx4-nuttx-6aef5e8ed36c97406e930f3cf45d259399fc3d59.tar.gz
px4-nuttx-6aef5e8ed36c97406e930f3cf45d259399fc3d59.tar.bz2
px4-nuttx-6aef5e8ed36c97406e930f3cf45d259399fc3d59.zip
Add ioctl's to support XIP
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@913 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/ioctl.h20
1 files changed, 16 insertions, 4 deletions
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