| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "shared-forward.h" |
| 5 |
|
| 6 |
/* Various calls that interface with EFI variables implementing https://systemd.io/BOOT_LOADER_INTERFACE */ |
| 7 |
|
| 8 |
int efi_loader_get_device_part_uuid(sd_id128_t *ret); |
| 9 |
int efi_stub_get_device_part_uuid(sd_id128_t *ret); |
| 10 |
int efi_loader_get_boot_usec(usec_t *ret_firmware, usec_t *ret_loader); |
| 11 |
|
| 12 |
int efi_loader_get_entries(char ***ret); |
| 13 |
|
| 14 |
int efi_loader_get_features(uint64_t *ret); |
| 15 |
int efi_stub_get_features(uint64_t *ret); |
| 16 |
|
| 17 |
int efi_measured_uki(int log_level); |
| 18 |
int efi_measured_os(int log_level); |
| 19 |
|
| 20 |
int efi_loader_get_config_timeout_one_shot(usec_t *ret); |
| 21 |
int efi_loader_update_entry_one_shot_cache(char **cache, struct stat *cache_stat); |
| 22 |
|
| 23 |
int efi_get_variable_id128(const char *variable, sd_id128_t *ret); |
| 24 |
|
| 25 |
bool efi_loader_entry_name_valid(const char *s); |
| 26 |
bool efi_loader_entry_title_valid(const char *s); |
| 27 |
bool efi_loader_entry_resource_filename_valid(const char *s); |