summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/confdefs
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2019-10-04 16:11:30 -0500
committerJoel Sherrill <joel@rtems.org>2023-03-15 13:29:12 -0500
commit5db68a5859e2ec04b6e49ed2a04243a1b78358eb (patch)
tree35c3799d588865447b4b18e0cab0c76a8f2e7249 /cpukit/include/rtems/confdefs
parentcpukit/jffs2: Import wbuf.c from upstream (diff)
downloadrtems-5db68a5859e2ec04b6e49ed2a04243a1b78358eb.tar.bz2
cpukit/jffs2: Add support for NAND under JFFS2
This adds write buffer and bad block support required for JFFS2 operation on NAND devices. This also adds the minor modifications necessary for RTEMS support in the Linux header stubs and in wbuf.c. Memory and NOR backed applications should experience no difference in operation since they do not expose the callbacks required for write buffer support.
Diffstat (limited to 'cpukit/include/rtems/confdefs')
-rw-r--r--cpukit/include/rtems/confdefs/libio.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpukit/include/rtems/confdefs/libio.h b/cpukit/include/rtems/confdefs/libio.h
index 1b84f8c20f..0027a86f50 100644
--- a/cpukit/include/rtems/confdefs/libio.h
+++ b/cpukit/include/rtems/confdefs/libio.h
@@ -145,6 +145,16 @@
#ifdef CONFIGURE_FILESYSTEM_JFFS2
#include <rtems/jffs2.h>
+
+#ifndef CONFIGURE_JFFS2_DELAYED_WRITE_TASK_PRIORITY
+ #define CONFIGURE_JFFS2_DELAYED_WRITE_TASK_PRIORITY \
+ RTEMS_JFFS2_DELAYED_WRITE_TASK_PRIORITY_DEFAULT
+#endif
+
+const rtems_jffs2_config jffs2_config = {
+ CONFIGURE_JFFS2_DELAYED_WRITE_TASK_PRIORITY,
+};
+
#endif
#ifdef CONFIGURE_FILESYSTEM_NFS