Stefan Roese | e0860d4 | 2009-05-12 14:29:39 +0200 | [diff] [blame] | 1 | /* |
| 2 | * MTD device concatenation layer definitions |
| 3 | * |
Tom Rini | f76fe25 | 2015-10-23 09:37:47 -0400 | [diff] [blame] | 4 | * Copyright © 2002 Robert Kaiser <rkaiser@sysgo.de> |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | e0860d4 | 2009-05-12 14:29:39 +0200 | [diff] [blame] | 7 | * |
Stefan Roese | e0860d4 | 2009-05-12 14:29:39 +0200 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef MTD_CONCAT_H |
| 11 | #define MTD_CONCAT_H |
| 12 | |
Stefan Roese | e0860d4 | 2009-05-12 14:29:39 +0200 | [diff] [blame] | 13 | struct mtd_info *mtd_concat_create( |
| 14 | struct mtd_info *subdev[], /* subdevices to concatenate */ |
| 15 | int num_devs, /* number of subdevices */ |
Heiko Schocher | f5895d1 | 2014-06-24 10:10:04 +0200 | [diff] [blame] | 16 | #ifndef __UBOOT__ |
Stefan Roese | e0860d4 | 2009-05-12 14:29:39 +0200 | [diff] [blame] | 17 | const char *name); /* name for the new device */ |
Heiko Schocher | f5895d1 | 2014-06-24 10:10:04 +0200 | [diff] [blame] | 18 | #else |
| 19 | char *name); /* name for the new device */ |
| 20 | #endif |
Stefan Roese | e0860d4 | 2009-05-12 14:29:39 +0200 | [diff] [blame] | 21 | |
| 22 | void mtd_concat_destroy(struct mtd_info *mtd); |
| 23 | |
| 24 | #endif |