Platform.h 952 B

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