fmap: publish find_fmap_directory()
The fmap directory can be useful to pass to the payload. For that, we need to be able to get it. Change-Id: Ibe0be73bb4fe28afb16d4d215b979eb0be369645 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/10866 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
995269062e
commit
977587abf8
|
@ -23,6 +23,9 @@
|
||||||
#include <region.h>
|
#include <region.h>
|
||||||
#include <fmap_serialized.h>
|
#include <fmap_serialized.h>
|
||||||
|
|
||||||
|
/* Locate the fmap directory. Return 0 on success, < 0 on error. */
|
||||||
|
int find_fmap_directory(struct region_device *fmrd);
|
||||||
|
|
||||||
/* Locate the named area in the fmap and fill in a region device representing
|
/* Locate the named area in the fmap and fill in a region device representing
|
||||||
* that area. The region is a sub-region of the readonly boot media. Return
|
* that area. The region is a sub-region of the readonly boot media. Return
|
||||||
* 0 on success, < 0 on error. */
|
* 0 on success, < 0 on error. */
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
* See http://code.google.com/p/flashmap/ for more information on FMAP.
|
* See http://code.google.com/p/flashmap/ for more information on FMAP.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int find_fmap_directory(struct region_device *fmrd)
|
int find_fmap_directory(struct region_device *fmrd)
|
||||||
{
|
{
|
||||||
const struct region_device *boot;
|
const struct region_device *boot;
|
||||||
struct fmap *fmap;
|
struct fmap *fmap;
|
||||||
|
|
Loading…
Reference in New Issue