Add nand driver that works with a nand simulator
[yaffs2.git] / direct / test-framework / yaffs_nand_drv.h
1 /*
2  * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
3  *
4  * Copyright (C) 2002-2011 Aleph One Ltd.
5  *   for Toby Churchill Ltd and Brightstar Engineering
6  *
7  * Created by Charles Manning <charles@aleph1.co.uk>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU Lesser General Public License version 2.1 as
11  * published by the Free Software Foundation.
12  *
13  * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
14  */
15
16 #ifndef __YAFFS_NAND_DRV_H__
17 #define __YAFFS_NAND_DRV_H__
18
19 struct nand_store;
20
21 struct yaffs_dev *
22         yaffs_nand_install_drv(const char *name,
23                                 struct nand_store *ns);
24
25 struct yaffs_dev *yaffs_nandsim_install_drv(const char *name,
26                                         const char *file_name,
27                                         int n_blocks);
28
29 #endif