From 723f575d1ff1121e452a355f5ad533a8769df89a Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 6 Dec 2009 00:23:42 +0000 Subject: [PATCH] Need to export FTL interface in mtd.h git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2308 42af7a65-404d-4744-a932-0658087f49c3 --- include/nuttx/mtd.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/include/nuttx/mtd.h b/include/nuttx/mtd.h index 2e1b137acbf..f15bfe373cf 100644 --- a/include/nuttx/mtd.h +++ b/include/nuttx/mtd.h @@ -130,7 +130,25 @@ extern "C" { * Public Function Prototypes ****************************************************************************/ -/* MTD drivers available in drivers/mtd */ +/**************************************************************************** + * Name: ftl_initialize + * + * Description: + * Initialize to provide a block driver wrapper around an MTD interface + * + ****************************************************************************/ + +EXTERN int ftl_initialize(int minor, ubyte *buffer, FAR struct mtd_dev_s *mtd); + +/************************************************************************************ + * Name: m25p_initialize + * + * Description: + * Create an initialize MTD device instance. MTD devices are not registered + * in the file system, but are created as instances that can be bound to + * other functions (such as a block or character driver front end). + * + ************************************************************************************/ EXTERN FAR struct mtd_dev_s *m25p_initialize(FAR struct spi_dev_s *dev);