TianoCore EDK2 master
|
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Guid/OvmfPlatformConfig.h>
#include "PlatformConfig.h"
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | PlatformConfigSave (IN PLATFORM_CONFIG *PlatformConfig) |
EFI_STATUS EFIAPI | PlatformConfigLoad (OUT PLATFORM_CONFIG *PlatformConfig, OUT UINT64 *OptionalElements) |
Variables | |
CHAR16 | mVariableName [] = L"PlatformConfig" |
CHAR16 | mHiiFormName [] = L"MainFormState" |
Utility functions for serializing (persistently storing) and deserializing OVMF's platform configuration.
Copyright (C) 2014, Red Hat, Inc.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PlatformConfig.c.
EFI_STATUS EFIAPI PlatformConfigLoad | ( | OUT PLATFORM_CONFIG * | PlatformConfig, |
OUT UINT64 * | OptionalElements | ||
) |
Load and deserialize platform configuration.
When the function fails, output parameters are indeterminate.
[out] | PlatformConfig | The platform configuration to receive the loaded data. |
[out] | OptionalElements | This bitmap describes the presence of optional configuration elements that have been loaded. PLATFORM_CONFIG_F_DOWNGRADE means that some unknown elements, present in the wire format, have been ignored. |
EFI_SUCCESS | Loading & deserialization successful. |
Definition at line 78 of file PlatformConfig.c.
EFI_STATUS EFIAPI PlatformConfigSave | ( | IN PLATFORM_CONFIG * | PlatformConfig | ) |
Serialize and persistently save platform configuration.
[in] | PlatformConfig | The platform configuration to serialize and save. |
Definition at line 36 of file PlatformConfig.c.
CHAR16 mHiiFormName[] = L"MainFormState" |
Definition at line 25 of file PlatformConfig.c.
CHAR16 mVariableName[] = L"PlatformConfig" |
Definition at line 24 of file PlatformConfig.c.