]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/PlatformDxe/PlatformConfig.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / PlatformDxe / PlatformConfig.h
CommitLineData
5267c89b
LE
1/** @file\r
2\r
3 Utility functions for serializing (persistently storing) and deserializing\r
4 OVMF's platform configuration.\r
5\r
6 Copyright (C) 2014, Red Hat, Inc.\r
7\r
b26f0cf9 8 SPDX-License-Identifier: BSD-2-Clause-Patent\r
5267c89b
LE
9\r
10**/\r
11\r
12#ifndef _PLATFORM_CONFIG_H_\r
13#define _PLATFORM_CONFIG_H_\r
14\r
15#include <Base.h>\r
16\r
17//\r
18// This structure participates in driver configuration. It does not\r
19// (necessarily) reflect the wire format in the persistent store.\r
20//\r
21#pragma pack(1)\r
22typedef struct {\r
23 //\r
24 // preferred graphics console resolution when booting\r
25 //\r
ac0a286f
MK
26 UINT32 HorizontalResolution;\r
27 UINT32 VerticalResolution;\r
5267c89b
LE
28} PLATFORM_CONFIG;\r
29#pragma pack()\r
30\r
31//\r
32// Please see the API documentation near the function definitions.\r
33//\r
34EFI_STATUS\r
35EFIAPI\r
36PlatformConfigSave (\r
ac0a286f 37 IN PLATFORM_CONFIG *PlatformConfig\r
5267c89b
LE
38 );\r
39\r
40EFI_STATUS\r
41EFIAPI\r
42PlatformConfigLoad (\r
ac0a286f
MK
43 OUT PLATFORM_CONFIG *PlatformConfig,\r
44 OUT UINT64 *OptionalElements\r
5267c89b
LE
45 );\r
46\r
47//\r
48// Feature flags for OptionalElements.\r
49//\r
ac0a286f
MK
50#define PLATFORM_CONFIG_F_GRAPHICS_RESOLUTION BIT0\r
51#define PLATFORM_CONFIG_F_DOWNGRADE BIT63\r
5267c89b 52\r
aefcc918 53extern CHAR16 mVariableName[];\r
16acacf2 54extern CHAR16 mHiiFormName[];\r
aefcc918 55\r
5267c89b 56#endif // _PLATFORM_CONFIG_H_\r