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