Platform.h 877 B

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