Patrick Georgi | ea063cb | 2020-05-08 19:28:13 +0200 | [diff] [blame] | 1 | /* fmap_from_fmd.h, tool to distill flashmap descriptors into raw FMAP sections */ |
Patrick Georgi | 7333a11 | 2020-05-08 20:48:04 +0200 | [diff] [blame] | 2 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Sol Boucher | 69b88bf | 2015-02-26 11:47:19 -0800 | [diff] [blame] | 3 | |
| 4 | #ifndef FMAP_FROM_FMD_H_ |
| 5 | #define FMAP_FROM_FMD_H_ |
| 6 | |
| 7 | #include "flashmap/fmap.h" |
| 8 | #include "fmd.h" |
| 9 | |
| 10 | /** |
| 11 | * @param desc The descriptor tree serving as a data source |
| 12 | * @return The FMAP section, which is also owned by the caller and must |
| 13 | * later be released with a call to fmap_destroy() |
| 14 | */ |
| 15 | struct fmap *fmap_from_fmd(const struct flashmap_descriptor *desc); |
| 16 | |
| 17 | #endif |