2 * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
4 * Copyright (C) 2010-2011 Aleph One Ltd.
6 * Created by Charles Manning <charles@aleph1.co.uk>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #include "nandsim_file.h"
14 #include "nandstore_file.h"
19 struct nand_chip *nandsim_file_init(const char *fname,
22 int data_bytes_per_page,
23 int spare_bytes_per_page,
26 struct nand_store *store = NULL;
27 struct nand_chip *chip = NULL;
29 store = nandstore_file_init(fname, blocks, pages_per_block,
31 spare_bytes_per_page);
33 chip = nandsim_init(store, bus_width_shift);