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