map->fldrv = &mapram_chipdrv;
mtd->priv = map;
mtd->name = map->name;
- mtd->type = MTD_GENERIC_TYPE;
+ mtd->type = MTD_RAM;
mtd->size = map->size;
mtd->erase = mapram_erase;
mtd->read = mapram_read;
map->fldrv = &maprom_chipdrv;
mtd->priv = map;
mtd->name = map->name;
- mtd->type = MTD_GENERIC_TYPE;
+ mtd->type = MTD_ROM;
mtd->size = map->size;
mtd->read = maprom_read;
mtd->write = maprom_write;
dev->mtd.size = dev->blkdev->bd_inode->i_size & PAGE_MASK;
dev->mtd.erasesize = erase_size;
- dev->mtd.type = MTD_GENERIC_TYPE;
+ dev->mtd.type = MTD_RAM;
dev->mtd.flags = MTD_CAP_RAM;
dev->mtd.erase = block2mtd_erase;
dev->mtd.write = block2mtd_write;
fixsize = (size - (fixaddr - addr)) & ~(PAGE_SIZE - 1);
mp->uaddr = phys_to_virt(fixaddr);
- mtd->type = MTD_GENERIC_TYPE;
+ mtd->type = MTD_RAM;
mtd->flags = MTD_CAP_RAM;
mtd->size = fixsize;
mtd->name = (char *)ms02nv_name;
/* Setup the MTD structure */
mtd->name = name;
- mtd->type = MTD_GENERIC_TYPE;
+ mtd->type = MTD_RAM;
mtd->flags = MTD_CAP_RAM;
mtd->size = size;
mtd->writesize = 1;
new->mtd.read = phram_read;
new->mtd.write = phram_write;
new->mtd.owner = THIS_MODULE;
- new->mtd.type = MTD_GENERIC_TYPE;
+ new->mtd.type = MTD_RAM;
new->mtd.erasesize = PAGE_SIZE;
ret = -EAGAIN;
mtd->write = pmc551_write;
mtd->point = pmc551_point;
mtd->unpoint = pmc551_unpoint;
- mtd->type = MTD_GENERIC_TYPE;
+ mtd->type = MTD_RAM;
mtd->name = "PMC551 RAM board";
mtd->erasesize = 0x10000;
mtd->owner = THIS_MODULE;
(*curmtd)->mtdinfo->read = slram_read;
(*curmtd)->mtdinfo->write = slram_write;
(*curmtd)->mtdinfo->owner = THIS_MODULE;
- (*curmtd)->mtdinfo->type = MTD_GENERIC_TYPE;
+ (*curmtd)->mtdinfo->type = MTD_RAM;
(*curmtd)->mtdinfo->erasesize = SLRAM_BLK_SZ;
if (add_mtd_device((*curmtd)->mtdinfo)) {
};
#define MTD_ABSENT 0
+#define MTD_RAM 1
+#define MTD_ROM 2
#define MTD_NORFLASH 3
#define MTD_NANDFLASH 4
#define MTD_DATAFLASH 6
-#define MTD_GENERIC_TYPE 7
#define MTD_WRITEABLE 0x400 /* Device is writeable */
#define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */