blob: c57e973775d823bd38e71853cd05a9be65a0b4d8 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Stefan Roesee0860d42009-05-12 14:29:39 +02002/*
3 * MTD device concatenation layer definitions
4 *
Tom Rinif76fe252015-10-23 09:37:47 -04005 * Copyright © 2002 Robert Kaiser <rkaiser@sysgo.de>
6 *
Stefan Roesee0860d42009-05-12 14:29:39 +02007 */
8
9#ifndef MTD_CONCAT_H
10#define MTD_CONCAT_H
11
Stefan Roesee0860d42009-05-12 14:29:39 +020012struct mtd_info *mtd_concat_create(
13 struct mtd_info *subdev[], /* subdevices to concatenate */
14 int num_devs, /* number of subdevices */
Heiko Schocherf5895d12014-06-24 10:10:04 +020015#ifndef __UBOOT__
Stefan Roesee0860d42009-05-12 14:29:39 +020016 const char *name); /* name for the new device */
Heiko Schocherf5895d12014-06-24 10:10:04 +020017#else
18 char *name); /* name for the new device */
19#endif
Stefan Roesee0860d42009-05-12 14:29:39 +020020
21void mtd_concat_destroy(struct mtd_info *mtd);
22
23#endif