/*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002-2007 Aleph One Ltd.
+ * Copyright (C) 2002-2010 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
}
-static void nandemul2k_Read(void *buffer, int page, int start, int nBytes)
+static void nandemul2k_Read(void *buffer, int page, int start, int n_bytes)
{
int pg = page%PAGES_PER_BLOCK;
int blk = page/PAGES_PER_BLOCK;
- if(buffer && nBytes > 0)
+ if(buffer && n_bytes > 0)
{
- memcpy(buffer,&ned.block[blk]->page[pg]->data[start],nBytes);
+ memcpy(buffer,&ned.block[blk]->page[pg]->data[start],n_bytes);
}
}
-static void nandemul2k_Program(const void *buffer, int page, int start, int nBytes)
+static void nandemul2k_Program(const void *buffer, int page, int start, int n_bytes)
{
int pg = page%PAGES_PER_BLOCK;
int blk = page/PAGES_PER_BLOCK;
p = &ned.block[blk]->page[pg]->data[start];
- while(buffer && nBytes>0)
+ while(buffer && n_bytes>0)
{
*p = *p & *b;
p++;
b++;
- nBytes--;
+ n_bytes--;
}
}