lv_uefi_private.h
API reference for lv_uefi_private.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)| Name | Type | Description |
|---|---|---|
handle | EFI_HANDLE | The handle on which the protocol might be installed. |
protocol | EFI_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)| Name | Type | Description |
|---|---|---|
handle | EFI_HANDLE | The handle on which the protocol is installed. |
protocol | EFI_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)| Name | Type | Description |
|---|---|---|
handle | EFI_HANDLE | The handle on which the protocol is installed. |
protocol | EFI_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)| Name | Type | Description |
|---|---|---|
ucs2 | const CHAR16 * | The UCS-2 string. |
ascii | char * | The buffer to store the ASCII string. |
ascii_len | size_t | The 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)| Name | Type | Description |
|---|---|---|
ascii | const char * | The ASCII string. |
ucs2 | CHAR16 * | The buffer to store the UCS-2 string. |
ucs2_len | size_t | The 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 gLvEfiImageHandleInternal cache for the image handle (source: application entry point)
gLvEfiST
EFI_SYSTEM_TABLE * gLvEfiSTInternal cache for the system table (source: application entry point)
gLvEfiBS
EFI_BOOT_SERVICES * gLvEfiBSInternal cache for the boot services table (source: gLvEfiST)
gLvEfiRT
EFI_RUNTIME_SERVICES * gLvEfiRTInternal cache for the boot runtime service table (source: gLvEfiST)
Dependencies
Indirect dependencies
How is this guide?
Last updated on