]>
Commit | Line | Data |
---|---|---|
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 | |
22 | typedef struct {\r | |
23 | //\r | |
24 | // preferred graphics console resolution when booting\r | |
25 | //\r | |
26 | UINT32 HorizontalResolution;\r | |
27 | UINT32 VerticalResolution;\r | |
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 | |
34 | EFI_STATUS\r | |
35 | EFIAPI\r | |
36 | PlatformConfigSave (\r | |
37 | IN PLATFORM_CONFIG *PlatformConfig\r | |
38 | );\r | |
39 | \r | |
40 | EFI_STATUS\r | |
41 | EFIAPI\r | |
42 | PlatformConfigLoad (\r | |
43 | OUT PLATFORM_CONFIG *PlatformConfig,\r | |
44 | OUT UINT64 *OptionalElements\r | |
45 | );\r | |
46 | \r | |
47 | //\r | |
48 | // Feature flags for OptionalElements.\r | |
49 | //\r | |
50 | #define PLATFORM_CONFIG_F_GRAPHICS_RESOLUTION BIT0\r | |
51 | #define PLATFORM_CONFIG_F_DOWNGRADE BIT63\r | |
52 | \r | |
53 | #endif // _PLATFORM_CONFIG_H_\r |