hc
2024-03-26 e0728245c89800c2038c23308f2d88969d5b41c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/** @file
*
*  OEM Config formset.
*
*  Copyright (c) 2017 - 2018, Hisilicon Limited. All rights reserved.
*  Copyright (c) 2017 - 2018, Linaro Limited. All rights reserved.
*
*  SPDX-License-Identifier: BSD-2-Clause-Patent
*
**/
#include "OemConfigUi.h"
#include "Library/OemConfigData.h"
 
formset
  guid      = gOemConfigGuid,
  title     = STRING_TOKEN(STR_OEM_CONFIG),
  help      = STRING_TOKEN(STR_OEM_CONFIG),
  classguid = gEfiIfrFrontPageGuid,  // for MdeModule Bds.
  efivarstore OEM_CONFIG_DATA,
    attribute = EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE,
    name  = OemConfig,
    guid  = gOemConfigGuid;
 
  form formid = OEM_CONFIG_FORM_ID,
    title  = STRING_TOKEN(STR_OEM_CONFIG);
 
    grayoutif  TRUE;
      text
        help   = STRING_TOKEN(STR_EMPTY_STRING),
        text   = STRING_TOKEN(STR_BIOS_BUILDTIME_STRING),
        text   = STRING_TOKEN(STR_MISC_BIOS_BUILDTIME),
        flags  = 0,
        key    = 0;
    endif;
 
    date
      prompt  = STRING_TOKEN(SYSTEM_DATE),
      help    = STRING_TOKEN(SYSTEM_DATE_HELP),
      flags   = 0x10,
      default = 2017/1/1,
    enddate;
 
    time
      prompt  = STRING_TOKEN(SYSTEM_TIME),
      help    = STRING_TOKEN(SYSTEM_TIME_HELP),
      flags   = 0x10,
    endtime;
 
    subtitle text = STRING_TOKEN(STR_EMPTY_STRING);
 
    goto MEMORY_CONFIG_FORM_ID,
      prompt = STRING_TOKEN(STR_MEMORY_CONFIG_FORM_TITLE),
      help   = STRING_TOKEN(STR_MEMORY_CONFIG_FORM_HELP);
 
    goto IBMC_CONFIG_FORM_ID,
      prompt = STRING_TOKEN(STR_IBMC_CONFIG_FORM_TITLE),
      help   = STRING_TOKEN(STR_IBMC_CONFIG_FORM_HELP);
 
    suppressif TRUE;
    goto PCIE_CONFIG_FORM_ID,
      prompt  = STRING_TOKEN(STR_PCIE_CONFIG_FORM_TITLE),
      help    = STRING_TOKEN(STR_PCIE_CONFIG_FORM_HELP);
    endif;
 
    goto MISC_CONFIG_FORM_ID,
      prompt  = STRING_TOKEN(STR_MISC_CONFIG_FORM_TITLE),
      help    = STRING_TOKEN(STR_MISC_CONFIG_FORM_HELP);
 
    goto RAS_CONFIG_FORM_ID,
      prompt  = STRING_TOKEN(STR_RAS_CONFIG_FORM_TITLE),
      help    = STRING_TOKEN(STR_RAS_CONFIG_FORM_HELP);
 
    subtitle text = STRING_TOKEN(STR_EMPTY_STRING);
    subtitle text = STRING_TOKEN(STR_EXIT_STRING);
 
  endform;
 
#include "MemoryConfig.hfr"
#include "iBMCConfig.hfr"
#include "PcieConfig.hfr"
#include "MiscConfig.hfr"
#include "RasConfig.hfr"
endformset;