]> nv-tegra.nvidia Code Review - linux-2.6.git/blob - drivers/mtd/mtdbdi.c
mac80211: unify config_interface and bss_info_changed
[linux-2.6.git] / drivers / mtd / mtdbdi.c
1 /* MTD backing device capabilities
2  *
3  * Copyright © 2006 Red Hat, Inc. All Rights Reserved.
4  * Written by David Howells (dhowells@redhat.com)
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version
9  * 2 of the License, or (at your option) any later version.
10  */
11
12 #include <linux/backing-dev.h>
13 #include <linux/mtd/mtd.h>
14 #include "internal.h"
15
16 /*
17  * backing device capabilities for non-mappable devices (such as NAND flash)
18  * - permits private mappings, copies are taken of the data
19  */
20 struct backing_dev_info mtd_bdi_unmappable = {
21         .capabilities   = BDI_CAP_MAP_COPY,
22 };
23
24 /*
25  * backing device capabilities for R/O mappable devices (such as ROM)
26  * - permits private mappings, copies are taken of the data
27  * - permits non-writable shared mappings
28  */
29 struct backing_dev_info mtd_bdi_ro_mappable = {
30         .capabilities   = (BDI_CAP_MAP_COPY | BDI_CAP_MAP_DIRECT |
31                            BDI_CAP_EXEC_MAP | BDI_CAP_READ_MAP),
32 };
33
34 /*
35  * backing device capabilities for writable mappable devices (such as RAM)
36  * - permits private mappings, copies are taken of the data
37  * - permits non-writable shared mappings
38  */
39 struct backing_dev_info mtd_bdi_rw_mappable = {
40         .capabilities   = (BDI_CAP_MAP_COPY | BDI_CAP_MAP_DIRECT |
41                            BDI_CAP_EXEC_MAP | BDI_CAP_READ_MAP |
42                            BDI_CAP_WRITE_MAP),
43 };