summaryrefslogtreecommitdiff
path: root/sys/dev/flash/files.flash
diff options
context:
space:
mode:
authorahoka <ahoka@NetBSD.org>2011-02-26 18:07:13 +0000
committerahoka <ahoka@NetBSD.org>2011-02-26 18:07:13 +0000
commitb84aee73028fe564bfa78c0c2c568359ca7288a8 (patch)
treefe512736abd91f2864d5b0021de9e4af277634cd /sys/dev/flash/files.flash
parent11ce3c28dd5240489a3d69366d65cc854b754c35 (diff)
Import the Flash and NAND subsytem code contributed by the University
of Szeged, Hungary. The commit includes: - Flash layer, which gives a common API to access flash devices - NAND controller subsystem for the flash layer - An example OMAP driver which is used on BeagleBoard or alike ARM boards
Diffstat (limited to 'sys/dev/flash/files.flash')
-rw-r--r--sys/dev/flash/files.flash9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/flash/files.flash b/sys/dev/flash/files.flash
new file mode 100644
index 00000000000..7871e2d9031
--- /dev/null
+++ b/sys/dev/flash/files.flash
@@ -0,0 +1,9 @@
+# $NetBSD: files.flash,v 1.1 2011/02/26 18:07:30 ahoka Exp $
+
+define flashbus { [offset = 0], [size = 0], [readonly = 0] }
+
+device flash
+attach flash at flashbus
+file dev/flash/flash.c flash
+
+defflag opt_flash.h FLASH_STATIC_PARTITIONS