map_ram.c (3c3c10bba1e4ccb75b41442e45c1a072f6cded19) map_ram.c (664addc248d2fed68d013d26ff2fc796d7134259)
1/*
2 * Common code to handle map devices which are simple RAM
3 * (C) 2000 Red Hat. GPL'd.
4 */
5
6#include <linux/module.h>
7#include <linux/types.h>
8#include <linux/kernel.h>

--- 108 unchanged lines hidden (view full) ---

117{
118 /* Yeah, it's inefficient. Who cares? It's faster than a _real_
119 flash erase. */
120 struct map_info *map = mtd->priv;
121 map_word allff;
122 unsigned long i;
123
124 allff = map_word_ff(map);
1/*
2 * Common code to handle map devices which are simple RAM
3 * (C) 2000 Red Hat. GPL'd.
4 */
5
6#include <linux/module.h>
7#include <linux/types.h>
8#include <linux/kernel.h>

--- 108 unchanged lines hidden (view full) ---

117{
118 /* Yeah, it's inefficient. Who cares? It's faster than a _real_
119 flash erase. */
120 struct map_info *map = mtd->priv;
121 map_word allff;
122 unsigned long i;
123
124 allff = map_word_ff(map);
125
126 for (i=0; i<instr->len; i += map_bankwidth(map))
127 map_write(map, allff, instr->addr + i);
125 for (i=0; i<instr->len; i += map_bankwidth(map))
126 map_write(map, allff, instr->addr + i);
128
129 instr->state = MTD_ERASE_DONE;
127 instr->state = MTD_ERASE_DONE;
130
131 mtd_erase_callback(instr);
128 mtd_erase_callback(instr);
132
133 return 0;
134}
135
136static void mapram_nop(struct mtd_info *mtd)
137{
138 /* Nothing to see here */
139}
140

--- 17 unchanged lines hidden ---
129 return 0;
130}
131
132static void mapram_nop(struct mtd_info *mtd)
133{
134 /* Nothing to see here */
135}
136

--- 17 unchanged lines hidden ---