/*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002-2011 Aleph One Ltd.
- * for Toby Churchill Ltd and Brightstar Engineering
+ * Copyright (C) 2002-2018 Aleph One Ltd.
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
int ops_multiplier;
-
static void yflash2_MaybePowerFail(unsigned int nand_chunk, int failPoint)
{
}
}
-
-
-
-
-static u8 localBuffer[PAGE_SIZE];
-
static char *NToName(char *buf,int n)
{
sprintf(buf,"emfile-2k-%d",n);
static int yflash2_EraseBlock(struct yaffs_dev *dev, int block_no)
{
- int i;
+ u32 i;
int h;
CheckInit();
u8 pg[PAGE_SIZE];
int syz = PAGE_SIZE;
- int pos;
memset(pg,0xff,syz);
{
write(h,pg,PAGE_SIZE);
}
- pos = lseek(h, 0,SEEK_CUR);
return YAFFS_OK;
}