]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/PlatformDxe/PlatformConfig.c
OvmfPkg: PlatformDxe: utility functions for saving / loading configuration
authorLaszlo Ersek <lersek@redhat.com>
Sat, 22 Mar 2014 07:13:02 +0000 (07:13 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 22 Mar 2014 07:13:02 +0000 (07:13 +0000)
commit5267c89b4d114e16d5573f09c6f37af0b078abee
tree46553681f56f5e52f8d26f308f93bff3d1d075ad
parentd945a8ba5bc082dfb037fc710dc616d35eb36de4
OvmfPkg: PlatformDxe: utility functions for saving / loading configuration

The two functions introduced here allow the saving and loading of platform
configuration to/from the non-volatile variable store.

The PLATFORM_CONFIG structure and the two functions that take it / return
it are generally meant for any DXE or UEFI driver that needs to access
platform configuration. For now we keep this small "library" internal to
PlatformDxe.

The PLATFORM_CONFIG wire format is intended only to grow over time (as
long as the variable GUID remains unchanged). At the introduction of new
fields, new feature flags must be added, and recognized in
PlatformConfigLoad().

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15365 6f19259b-4bc3-4df7-8a09-765794883524
OvmfPkg/PlatformDxe/Platform.inf
OvmfPkg/PlatformDxe/PlatformConfig.c [new file with mode: 0644]
OvmfPkg/PlatformDxe/PlatformConfig.h [new file with mode: 0644]