summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/internal.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2009-02-12 11:40:00 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-03-24 10:00:19 +0100
commit402d326519c1a4859c527702383f4e60f606ef52 (patch)
treebeb302d56d7671d372ae73f2664feed2a5b1226d /drivers/mtd/internal.h
parent[MTD] [OneNAND] Add write-while-program support (diff)
downloadlinux-402d326519c1a4859c527702383f4e60f606ef52.tar.xz
linux-402d326519c1a4859c527702383f4e60f606ef52.zip
NOMMU: Present backing device capabilities for MTD chardevs
Present backing device capabilities for MTD character device files to allow NOMMU mmap to do direct mapping where possible. Signed-off-by: David Howells <dhowells@redhat.com> Tested-by: Bernd Schmidt <bernd.schmidt@analog.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/internal.h')
-rw-r--r--drivers/mtd/internal.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/mtd/internal.h b/drivers/mtd/internal.h
new file mode 100644
index 000000000000..c658fe7216b5
--- /dev/null
+++ b/drivers/mtd/internal.h
@@ -0,0 +1,17 @@
+/* Internal MTD definitions
+ *
+ * Copyright © 2006 Red Hat, Inc. All Rights Reserved.
+ * Written by David Howells (dhowells@redhat.com)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ */
+
+/*
+ * mtdbdi.c
+ */
+extern struct backing_dev_info mtd_bdi_unmappable;
+extern struct backing_dev_info mtd_bdi_ro_mappable;
+extern struct backing_dev_info mtd_bdi_rw_mappable;