blob: c57e973775d823bd38e71853cd05a9be65a0b4d8 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Stefan Roese0a572652009-05-12 14:29:39 +02002/*
3 * MTD device concatenation layer definitions
4 *
Tom Rini78e9e712015-10-23 09:37:47 -04005 * Copyright © 2002 Robert Kaiser <rkaiser@sysgo.de>
Stefan Roese0a572652009-05-12 14:29:39 +02006 *
Stefan Roese0a572652009-05-12 14:29:39 +02007 */
8
9#ifndef MTD_CONCAT_H
10#define MTD_CONCAT_H
11
Stefan Roese0a572652009-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 Schocherff94bc42014-06-24 10:10:04 +020015#ifndef __UBOOT__
Stefan Roese0a572652009-05-12 14:29:39 +020016 const char *name); /* name for the new device */
Heiko Schocherff94bc42014-06-24 10:10:04 +020017#else
18 char *name); /* name for the new device */
19#endif
Stefan Roese0a572652009-05-12 14:29:39 +020020
21void mtd_concat_destroy(struct mtd_info *mtd);
22
23#endif