map_ram.c (92cbfdcc3661d7670b01b92b89811cd3a2412297) map_ram.c (21c8db9eff95260e543535dfc6f27164c4c0c0ff)
1/*
2 * Common code to handle map devices which are simple RAM
3 * (C) 2000 Red Hat. GPL'd.
4 * $Id: map_ram.c,v 1.22 2005/01/05 18:05:12 dwmw2 Exp $
5 */
6
7#include <linux/module.h>
8#include <linux/types.h>

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

59 if (!mtd)
60 return NULL;
61
62 memset(mtd, 0, sizeof(*mtd));
63
64 map->fldrv = &mapram_chipdrv;
65 mtd->priv = map;
66 mtd->name = map->name;
1/*
2 * Common code to handle map devices which are simple RAM
3 * (C) 2000 Red Hat. GPL'd.
4 * $Id: map_ram.c,v 1.22 2005/01/05 18:05:12 dwmw2 Exp $
5 */
6
7#include <linux/module.h>
8#include <linux/types.h>

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

59 if (!mtd)
60 return NULL;
61
62 memset(mtd, 0, sizeof(*mtd));
63
64 map->fldrv = &mapram_chipdrv;
65 mtd->priv = map;
66 mtd->name = map->name;
67 mtd->type = MTD_GENERIC_TYPE;
67 mtd->type = MTD_RAM;
68 mtd->size = map->size;
69 mtd->erase = mapram_erase;
70 mtd->read = mapram_read;
71 mtd->write = mapram_write;
72 mtd->sync = mapram_nop;
73 mtd->flags = MTD_CAP_RAM;
74
75 mtd->erasesize = PAGE_SIZE;

--- 68 unchanged lines hidden ---
68 mtd->size = map->size;
69 mtd->erase = mapram_erase;
70 mtd->read = mapram_read;
71 mtd->write = mapram_write;
72 mtd->sync = mapram_nop;
73 mtd->flags = MTD_CAP_RAM;
74
75 mtd->erasesize = PAGE_SIZE;

--- 68 unchanged lines hidden ---