projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Further name changes and file reorganisation
[yaffs2.git]
/
yaffs_mtdif.c
diff --git
a/yaffs_mtdif.c
b/yaffs_mtdif.c
index 5de3193ea2b9bba34e104760a4ec23027d3487bf..4fd89943eebabed9a5e141016b8c1563a2eea287 100644
(file)
--- a/
yaffs_mtdif.c
+++ b/
yaffs_mtdif.c
@@
-23,19
+23,19
@@
#include "yaffs_linux.h"
#include "yaffs_linux.h"
-int nandmtd_
EraseBlockInNAND(yaffs_Device *dev, int blockNumber
)
+int nandmtd_
erase_block(yaffs_dev_t *dev, int block_no
)
{
{
- struct mtd_info *mtd = yaffs_
DeviceToContext(dev)->mtd
;
+ struct mtd_info *mtd = yaffs_
dev_to_mtd(dev)
;
__u32 addr =
__u32 addr =
- ((loff_t) block
Number) * dev->param.totalBytesPerC
hunk
- * dev->param.
nChunksPerB
lock;
+ ((loff_t) block
_no) * dev->param.total_bytes_per_c
hunk
+ * dev->param.
chunks_per_b
lock;
struct erase_info ei;
int retval = 0;
ei.mtd = mtd;
ei.addr = addr;
struct erase_info ei;
int retval = 0;
ei.mtd = mtd;
ei.addr = addr;
- ei.len = dev->param.total
BytesPerChunk * dev->param.nChunksPerB
lock;
+ ei.len = dev->param.total
_bytes_per_chunk * dev->param.chunks_per_b
lock;
ei.time = 1000;
ei.retries = 2;
ei.callback = NULL;
ei.time = 1000;
ei.retries = 2;
ei.callback = NULL;
@@
-49,7
+49,7
@@
int nandmtd_EraseBlockInNAND(yaffs_Device *dev, int blockNumber)
return YAFFS_FAIL;
}
return YAFFS_FAIL;
}
-int nandmtd_
InitialiseNAND(yaffs_Device
*dev)
+int nandmtd_
initialise(yaffs_dev_t
*dev)
{
return YAFFS_OK;
}
{
return YAFFS_OK;
}