lv_uefi_private.h

API reference for lv_uefi_private.h

Report on GitHub
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_uefi.h

Functions

lv_uefi_protocol_test

Test if a protocol is installed at a handle.

 
bool lv_uefi_protocol_test(EFI_HANDLE handle, EFI_GUID *protocol)
Parameters
NameTypeDescription
handleEFI_HANDLEThe handle on which the protocol might be installed.
protocolEFI_GUID *The guid of the protocol.

Returns: bool — TRUE if the protocol is installed, FALSE if not.

lv_uefi_protocol_open

Open a protocol.

 
void * lv_uefi_protocol_open(EFI_HANDLE handle, EFI_GUID *protocol)
Parameters
NameTypeDescription
handleEFI_HANDLEThe handle on which the protocol is installed.
protocolEFI_GUID *The guid of the protocol.

Returns: void * — A pointer to the interface, NULL if the protocol couldn't be opened.

lv_uefi_protocol_close

Close a protocol.

 
void lv_uefi_protocol_close(EFI_HANDLE handle, EFI_GUID *protocol)
Parameters
NameTypeDescription
handleEFI_HANDLEThe handle on which the protocol is installed.
protocolEFI_GUID *The guid of the protocol.

lv_uefi_ucs2_to_ascii

Convert an UCS-2 string to an ASCII string. The string must contain only characters >= 0x20 and <= 0X7E.

 
size_t lv_uefi_ucs2_to_ascii(const CHAR16 *ucs2, char *ascii, size_t ascii_len)
Parameters
NameTypeDescription
ucs2const CHAR16 *The UCS-2 string.
asciichar *The buffer to store the ASCII string.
ascii_lensize_tThe size of the buffer in ASCII characters.

Returns: size_t — The number of characters written to the buffer or 0 if there was an error.

lv_uefi_ascii_to_ucs2

Convert an ASCII string to an UCS-2 string. The string must contain only characters >= 0x20 and <= 0X7E.

 
size_t lv_uefi_ascii_to_ucs2(const char *ascii, CHAR16 *ucs2, size_t ucs2_len)
Parameters
NameTypeDescription
asciiconst char *The ASCII string.
ucs2CHAR16 *The buffer to store the UCS-2 string.
ucs2_lensize_tThe size of the buffer in UCS-2 characters.

Returns: size_t — The number of bytes written to the buffer or 0 if there was an error.

Variables

gLvEfiImageHandle

 
EFI_HANDLE gLvEfiImageHandle

Internal cache for the image handle (source: application entry point)

gLvEfiST

 
EFI_SYSTEM_TABLE * gLvEfiST

Internal cache for the system table (source: application entry point)

gLvEfiBS

 
EFI_BOOT_SERVICES * gLvEfiBS

Internal cache for the boot services table (source: gLvEfiST)

gLvEfiRT

 
EFI_RUNTIME_SERVICES * gLvEfiRT

Internal cache for the boot runtime service table (source: gLvEfiST)

Dependencies

How is this guide?

Last updated on

On this page