~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: dfd858b78ba37c575144d7677d5c5f6b8aa571d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright Google LLC
 */

#ifndef _ASM_EFI_H_
#define _ASM_EFI_H_

struct efi_info;
struct screen_info;

/**
 * setup_video() - Set up the screen info in the x86 setup
 *
 * This is needed so Linux can use the display (when U-Boot is an EFI payload)
 *
 * @efi_info: Pointer to place to put the screen info in the x86 setup base
 */
void setup_video(struct screen_info *screen_info);

/**
 * setup_efi_info() - Set up the EFI info needed by Linux to boot
 *
 * This writes a suitable signature, table pointers, memory-map pointer, etc.
 * These are needed for Linux to boot from U-Boot (when U-Boot is an EFI
 * payload).
 *
 * @efi_info: Pointer to place to put the EFI info in the x86 setup base
 */
void setup_efi_info(struct efi_info *efi_info);

/**
 * efi_show_bdinfo() - Show information about EFI for the 'bdinfo' command
 *
 * This looks up the EFI table pointer and shows related info
 */
void efi_show_bdinfo(void);

#endif