xref: /rk3399_rockchip-uboot/include/linux/mtd/concat.h (revision ff94bc40af3481d47546595ba73c136de6af6929)
10a572655SStefan Roese /*
20a572655SStefan Roese  * MTD device concatenation layer definitions
30a572655SStefan Roese  *
40a572655SStefan Roese  * (C) 2002 Robert Kaiser <rkaiser@sysgo.de>
50a572655SStefan Roese  *
60a572655SStefan Roese  * This code is GPL
70a572655SStefan Roese  */
80a572655SStefan Roese 
90a572655SStefan Roese #ifndef MTD_CONCAT_H
100a572655SStefan Roese #define MTD_CONCAT_H
110a572655SStefan Roese 
120a572655SStefan Roese struct mtd_info *mtd_concat_create(
130a572655SStefan Roese     struct mtd_info *subdev[],  /* subdevices to concatenate */
140a572655SStefan Roese     int num_devs,               /* number of subdevices      */
15*ff94bc40SHeiko Schocher #ifndef __UBOOT__
160a572655SStefan Roese     const char *name);          /* name for the new device   */
17*ff94bc40SHeiko Schocher #else
18*ff94bc40SHeiko Schocher     char *name);          /* name for the new device   */
19*ff94bc40SHeiko Schocher #endif
200a572655SStefan Roese 
210a572655SStefan Roese void mtd_concat_destroy(struct mtd_info *mtd);
220a572655SStefan Roese 
230a572655SStefan Roese #endif
24