blob: 05ab1a7fcb8f0dd18494e4dffef5d3e11646864d [file] [log] [blame]
David Brazdil0dbb41f2019-09-09 18:03:35 +01001/*
2 * Copyright 2019 The Hafnium Authors.
3 *
Andrew Walbrane959ec12020-06-17 15:01:09 +01004 * Use of this source code is governed by a BSD-style
5 * license that can be found in the LICENSE file or at
6 * https://opensource.org/licenses/BSD-3-Clause.
David Brazdil0dbb41f2019-09-09 18:03:35 +01007 */
8
9#pragma once
10
11#include "hf/boot_params.h"
12#include "hf/manifest.h"
Andrew Scull9c251d32019-09-19 13:30:42 +010013#include "hf/memiter.h"
David Brazdil0dbb41f2019-09-09 18:03:35 +010014#include "hf/mm.h"
15
David Brazdilb856be62020-03-25 10:14:55 +000016bool boot_flow_get_params(struct boot_params *p, const struct fdt *fdt);
Andrew Scullc3771072019-09-19 13:30:42 +010017
18bool boot_flow_update(struct mm_stage1_locked stage1_locked,
David Brazdile6f83222019-09-23 14:47:37 +010019 const struct manifest *manifest,
Andrew Scull9c251d32019-09-19 13:30:42 +010020 struct boot_params_update *p, struct memiter *cpio,
21 struct mpool *ppool);