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