2 * Copyright (C) 2009-2013 Felix Fietkau <nbd@openwrt.org>
3 * Copyright (C) 2009-2013 Gabor Juhos <juhosg@openwrt.org>
4 * Copyright (C) 2012 Jonas Gorski <jogo@openwrt.org>
5 * Copyright (C) 2013 Hauke Mehrtens <hauke@hauke-m.de>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published
9 * by the Free Software Foundation.
16 #define ROOTFS_SPLIT_NAME "rootfs_data"
18 #ifdef CONFIG_MTD_SPLIT
19 int mtd_get_squashfs_len(struct mtd_info
*master
,
21 size_t *squashfs_len
);
23 int mtd_check_rootfs_magic(struct mtd_info
*mtd
, size_t offset
);
25 int mtd_find_rootfs_from(struct mtd_info
*mtd
,
31 static inline int mtd_get_squashfs_len(struct mtd_info
*master
,
38 static inline int mtd_check_rootfs_magic(struct mtd_info
*mtd
, size_t offset
)
43 static inline int mtd_find_rootfs_from(struct mtd_info
*mtd
,
50 #endif /* CONFIG_MTD_SPLIT */
52 #endif /* _MTDSPLIT_H */