• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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   This program and the accompanying materials are licensed and made available
8   under the terms and conditions of the BSD License which accompanies this
9   distribution.  The full text of the license may be found at
10   http://opensource.org/licenses/bsd-license.php
11 
12   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT
13   WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 **/
15 
16 #ifndef _PLATFORM_H_
17 #define _PLATFORM_H_
18 
19 //
20 // Macro and type definitions that connect the form with the HII driver code.
21 //
22 #define FORMSTATEID_MAIN_FORM  1
23 #define FORMID_MAIN_FORM       1
24 
25 #define QUESTION_RES_CUR       1
26 #define MAXSIZE_RES_CUR       16
27 
28 #define LABEL_RES_NEXT         1
29 #define QUESTION_RES_NEXT      2
30 
31 #define QUESTION_SAVE_EXIT     3
32 #define QUESTION_DISCARD_EXIT  4
33 
34 //
35 // This structure describes the form state. Its fields relate strictly to the
36 // visual widgets on the form.
37 //
38 typedef struct {
39   UINT16 CurrentPreferredResolution[MAXSIZE_RES_CUR];
40   UINT32 NextPreferredResolution;
41 } MAIN_FORM_STATE;
42 
43 #endif // _PLATFORM_H_
44