blob: b83f6f0c5190a13d8c3b2a95ea2796a2518c4979 [file] [log] [blame]
Simon Glass4c7418f2022-07-30 15:52:32 -06001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Verified Boot for Embedded (VBE) support
4 * See doc/develop/vbe.rst
5 *
6 * Copyright 2022 Google LLC
7 * Written by Simon Glass <sjg@chromium.org>
8 */
9
10#ifndef __VBE_H
11#define __VBE_H
12
13/**
14 * vbe_list() - List the VBE bootmeths
15 *
16 * This shows a list of the VBE bootmeth devices
17 *
18 * @return 0 (always)
19 */
20int vbe_list(void);
21
22/**
23 * vbe_find_by_any() - Find a VBE bootmeth by name or sequence
24 *
25 * @name: name (e.g. "vbe-simple"), or sequence ("2") to find
26 * @devp: returns the device found, on success
27 * Return: 0 if OK, -ve on error
28 */
29int vbe_find_by_any(const char *name, struct udevice **devp);
30
31/**
32 * vbe_find_first_device() - Find the first VBE bootmeth
33 *
34 * @devp: Returns first available VBE bootmeth, or NULL if none
35 * Returns: 0 (always)
36 */
37int vbe_find_first_device(struct udevice **devp);
38
39/**
40 * vbe_find_next_device() - Find the next available VBE bootmeth
41 *
42 * @devp: Previous device to start from. Returns next available VBE bootmeth,
43 * or NULL if none
44 * Returns: 0 (always)
45 */
46int vbe_find_next_device(struct udevice **devp);
47
48#endif