blob: dfd858b78ba37c575144d7677d5c5f6b8aa571d3 [file] [log] [blame]
Simon Glassb73d48f2021-09-24 18:30:20 -06001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright Google LLC
4 */
5
6#ifndef _ASM_EFI_H_
7#define _ASM_EFI_H_
8
9struct efi_info;
10struct screen_info;
11
12/**
13 * setup_video() - Set up the screen info in the x86 setup
14 *
15 * This is needed so Linux can use the display (when U-Boot is an EFI payload)
16 *
17 * @efi_info: Pointer to place to put the screen info in the x86 setup base
18 */
19void setup_video(struct screen_info *screen_info);
20
21/**
22 * setup_efi_info() - Set up the EFI info needed by Linux to boot
23 *
24 * This writes a suitable signature, table pointers, memory-map pointer, etc.
25 * These are needed for Linux to boot from U-Boot (when U-Boot is an EFI
26 * payload).
27 *
28 * @efi_info: Pointer to place to put the EFI info in the x86 setup base
29 */
30void setup_efi_info(struct efi_info *efi_info);
31
Simon Glass912e06f2021-09-24 18:30:21 -060032/**
33 * efi_show_bdinfo() - Show information about EFI for the 'bdinfo' command
34 *
35 * This looks up the EFI table pointer and shows related info
36 */
37void efi_show_bdinfo(void);
38
Simon Glassb73d48f2021-09-24 18:30:20 -060039#endif