1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Verified Boot for Embedded (VBE) vbe-simple common file
5 * Copyright 2022 Google LLC
6 * Written by Simon Glass <sjg@chromium.org>
10 #define __VBE_SIMPLE_H
12 #include <linux/types.h>
13 #include "vbe_common.h"
15 /** struct simple_priv - information read from the device tree */
27 /** struct simple_state - state information read from media
29 * @fw_version: Firmware version string
30 * @fw_vernum: Firmware version number
33 char fw_version
[MAX_VERSION_LEN
];
38 * vbe_simple_read_fw_bootflow() - Read a bootflow for firmware
40 * Locates and loads the firmware image (FIT) needed for the next phase. The FIT
41 * should ideally use external data, to reduce the amount of it that needs to be
44 * @bdev: bootdev device containing the firmwre
45 * @blow: Place to put the created bootflow, on success
46 * @return 0 if OK, -ve on error
48 int vbe_simple_read_bootflow_fw(struct udevice
*dev
, struct bootflow
*bflow
);
51 * vbe_simple_read_state() - Read the VBE simple state information
54 * @state: Place to put the state
55 * @return 0 if OK, -ve on error
57 int vbe_simple_read_state(struct udevice
*dev
, struct simple_state
*state
);
59 #endif /* __VBE_SIMPLE_H */