3 Utility functions for serializing (persistently storing) and deserializing
4 OVMF's platform configuration.
6 Copyright (C) 2014, Red Hat, Inc.
8 This program and the accompanying materials are licensed and made available
9 under the terms and conditions of the BSD License which accompanies this
10 distribution. The full text of the license may be found at
11 http://opensource.org/licenses/bsd-license.php
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT
14 WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 #ifndef _PLATFORM_CONFIG_H_
19 #define _PLATFORM_CONFIG_H_
24 // This structure participates in driver configuration. It does not
25 // (necessarily) reflect the wire format in the persistent store.
30 // preferred graphics console resolution when booting
32 UINT32 HorizontalResolution
;
33 UINT32 VerticalResolution
;
38 // Please see the API documentation near the function definitions.
43 IN PLATFORM_CONFIG
*PlatformConfig
49 OUT PLATFORM_CONFIG
*PlatformConfig
,
50 OUT UINT64
*OptionalElements
54 // Feature flags for OptionalElements.
56 #define PLATFORM_CONFIG_F_GRAPHICS_RESOLUTION BIT0
57 #define PLATFORM_CONFIG_F_DOWNGRADE BIT63
59 #endif // _PLATFORM_CONFIG_H_