blob: a374ca98e88880d3e474941b8154ac071ed32e44 [file] [log] [blame]
Stefan Roesee0860d42009-05-12 14:29:39 +02001/*
2 * MTD device concatenation layer definitions
3 *
Tom Rinif76fe252015-10-23 09:37:47 -04004 * Copyright © 2002 Robert Kaiser <rkaiser@sysgo.de>
5 *
6 * SPDX-License-Identifier: GPL-2.0+
Stefan Roesee0860d42009-05-12 14:29:39 +02007 *
Stefan Roesee0860d42009-05-12 14:29:39 +02008 */
9
10#ifndef MTD_CONCAT_H
11#define MTD_CONCAT_H
12
Stefan Roesee0860d42009-05-12 14:29:39 +020013struct mtd_info *mtd_concat_create(
14 struct mtd_info *subdev[], /* subdevices to concatenate */
15 int num_devs, /* number of subdevices */
Heiko Schocherf5895d12014-06-24 10:10:04 +020016#ifndef __UBOOT__
Stefan Roesee0860d42009-05-12 14:29:39 +020017 const char *name); /* name for the new device */
Heiko Schocherf5895d12014-06-24 10:10:04 +020018#else
19 char *name); /* name for the new device */
20#endif
Stefan Roesee0860d42009-05-12 14:29:39 +020021
22void mtd_concat_destroy(struct mtd_info *mtd);
23
24#endif