mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
Add FTL logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2307 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user