2014-03-22 08:13:18 +01:00
|
|
|
/** @file
|
|
|
|
This driver effectuates OVMF's platform configuration settings and exposes
|
|
|
|
them via HII.
|
|
|
|
|
|
|
|
Copyright (C) 2014, Red Hat, Inc.
|
|
|
|
|
2019-04-04 01:06:33 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2014-03-22 08:13:18 +01:00
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _PLATFORM_H_
|
|
|
|
#define _PLATFORM_H_
|
|
|
|
|
|
|
|
//
|
|
|
|
// Macro and type definitions that connect the form with the HII driver code.
|
|
|
|
//
|
2014-03-22 08:13:24 +01:00
|
|
|
#define FORMSTATEID_MAIN_FORM 1
|
2014-03-22 08:13:18 +01:00
|
|
|
#define FORMID_MAIN_FORM 1
|
|
|
|
|
2014-03-22 08:13:31 +01:00
|
|
|
#define QUESTION_RES_CUR 1
|
2014-03-22 08:13:24 +01:00
|
|
|
#define MAXSIZE_RES_CUR 16
|
|
|
|
|
2014-03-22 08:13:31 +01:00
|
|
|
#define LABEL_RES_NEXT 1
|
|
|
|
#define QUESTION_RES_NEXT 2
|
|
|
|
|
2014-03-22 08:13:57 +01:00
|
|
|
#define QUESTION_SAVE_EXIT 3
|
|
|
|
#define QUESTION_DISCARD_EXIT 4
|
|
|
|
|
2014-03-22 08:13:24 +01:00
|
|
|
//
|
|
|
|
// This structure describes the form state. Its fields relate strictly to the
|
|
|
|
// visual widgets on the form.
|
|
|
|
//
|
|
|
|
typedef struct {
|
|
|
|
UINT16 CurrentPreferredResolution[MAXSIZE_RES_CUR];
|
|
|
|
UINT32 NextPreferredResolution;
|
|
|
|
} MAIN_FORM_STATE;
|
|
|
|
|
2014-03-22 08:13:18 +01:00
|
|
|
#endif // _PLATFORM_H_
|