mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 02:08:38 +00:00
567dfef2fe
It is useful to see some basic EFI info with the command as it forms part of the information about a board. Add a hook for this and show the table address as a start. While here, fix an invalid cast in setup_efi_info(). Note that this function is using a data structure defined by Linux so we cannot change it. Also note that ulong is used since this is the standard in U-Boot (>6k uses), despite there being quite a bit of the more verbose uintptr_t (930 uses). Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
39 lines
981 B
C
39 lines
981 B
C
/* 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
|