]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/PlatformDxe/Platform.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / PlatformDxe / Platform.h
1 /** @file
2 This driver effectuates OVMF's platform configuration settings and exposes
3 them via HII.
4
5 Copyright (C) 2014, Red Hat, Inc.
6
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8 **/
9
10 #ifndef _PLATFORM_H_
11 #define _PLATFORM_H_
12
13 //
14 // Macro and type definitions that connect the form with the HII driver code.
15 //
16 #define FORMSTATEID_MAIN_FORM 1
17 #define FORMID_MAIN_FORM 1
18
19 #define QUESTION_RES_CUR 1
20 #define MAXSIZE_RES_CUR 16
21
22 #define LABEL_RES_NEXT 1
23 #define QUESTION_RES_NEXT 2
24
25 #define QUESTION_SAVE_EXIT 3
26 #define QUESTION_DISCARD_EXIT 4
27
28 //
29 // This structure describes the form state. Its fields relate strictly to the
30 // visual widgets on the form.
31 //
32 typedef struct {
33 UINT16 CurrentPreferredResolution[MAXSIZE_RES_CUR];
34 UINT32 NextPreferredResolution;
35 } MAIN_FORM_STATE;
36
37 #endif // _PLATFORM_H_