summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-06 00:19:50 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-06 00:19:50 +0000
commit9bb66d29206b075ed5e61e9c51bacdcc7758432f (patch)
tree905ac4624438a87c0facd91507df8795ec6d9cc7 /nuttx/include
parentd80abb394a7c0fbcf824f84ed61a061b2af8e86c (diff)
downloadnuttx-9bb66d29206b075ed5e61e9c51bacdcc7758432f.tar.gz
nuttx-9bb66d29206b075ed5e61e9c51bacdcc7758432f.tar.bz2
nuttx-9bb66d29206b075ed5e61e9c51bacdcc7758432f.zip
Add FTL logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2307 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/mtd.h4
-rw-r--r--nuttx/include/nuttx/rwbuffer.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/include/nuttx/mtd.h b/nuttx/include/nuttx/mtd.h
index 494baec67..2e1b137ac 100644
--- a/nuttx/include/nuttx/mtd.h
+++ b/nuttx/include/nuttx/mtd.h
@@ -71,7 +71,7 @@ struct mtd_geometry_s
uint16 blocksize; /* Size of one read/write block */
uint16 erasesize; /* Size of one erase blocks -- must be a multiple
* of blocksize. */
- size_t neraseblocks; /* Number of erase blocks */
+ size_t neraseblocks; /* Number of erase blocks */
};
/* This structure defines the interface to a simple memory technology device.
@@ -83,7 +83,7 @@ struct mtd_dev_s
{
/* The following methods operate on the MTD: */
- /* Erase the specified erase blocks */
+ /* Erase the specified erase blocks (units are erase blocks) */
int (*erase)(FAR struct mtd_dev_s *dev, off_t startblock, size_t nblocks);
diff --git a/nuttx/include/nuttx/rwbuffer.h b/nuttx/include/nuttx/rwbuffer.h
index da97ac505..2ea525ce7 100644
--- a/nuttx/include/nuttx/rwbuffer.h
+++ b/nuttx/include/nuttx/rwbuffer.h
@@ -106,7 +106,7 @@ struct rwbuffer_s
uint16 blocksize; /* The size of one block */
size_t nblocks; /* The total number blocks supported */
- void *dev; /* Device state passed to callout functions */
+ FAR void *dev; /* Device state passed to callout functions */
/* Write buffer setup. If CONFIG_FS_WRITEBUFFER is defined, but you
* want read-ahead-only operation, (1) set wrmaxblocks to zero and do