summaryrefslogtreecommitdiff
path: root/Board/EM/Setup/Exit.vfr
blob: ce6d7a8cb05dc17def2fca050db7eb2afa7c99fb (plain)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2009, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**             6145-F Northbelt Pkwy, Norcross, GA 30071            **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************

//**********************************************************************
// $Header: /Alaska/BIN/Board/Setup/Exit.vfr 16    10/09/09 6:43p Felixp $
//
// $Revision: 16 $
//
// $Date: 10/09/09 6:43p $
//**********************************************************************
// Revision History
// ----------------
// $Log: /Alaska/BIN/Board/Setup/Exit.vfr $
// 
// 16    10/09/09 6:43p Felixp
// UEFI 2.1 Support (the component is updated to support Framework and
// UEFI 2.1 HII).
// 
// 15    6/30/09 2:33p Robert
// comment corrections
// 
// 14    6/30/09 11:42a Robert
// Added Comment and updated parts for coding standards
//
// 13    2/05/09 3:54p Felixp
// Enhancement(EIP 13637): TSE Binary 4.6.2_TSE_1_27_1118_BETA or newer
// required.
//     Page layout is updated to support for SETUP_SHOW_ALL_BBS_DEVICES
// TSE SDL token.
//     SETUP_SHOW_ALL_BBS_DEVICES SDL token controls legacy (BBS) devices
// listed
//     in the "Boot Override" section of the "Exit" page.
//     When this token is enabled, all BBS devices will be listed.
//     When this token is disabled, only first device from every BBS group
// will be listed.
//     The token is disabled by default.
//
// 10    2/28/07 7:34p Felixp
// STR_EFI_SHELL_HELP token updated to specify Shell file names for
// different build modes
//
// 8     1/12/06 9:50a Felixp
// Support for start up of the shell from the filesystem
//
// 7     10/19/05 2:07p Felixp
// Support for custom varstores (in .sd files) added.
//
// 6     10/05/05 7:10p Felixp
// support for system reset
//
// 5     9/01/05 11:41a Girim
// Added Help strings in the Exit Menu.
//
// 3     7/12/05 11:13a Felixp
// workaround for VFR compiler bug in varstore handling
//
//**********************************************************************
//<AMI_FHDR_START>
//**********************************************************************
//
// Name:    Exit.vfr
//
// Description: 
//  Setup script for the "Exit" top level setup screen
//
//**********************************************************************
//<AMI_FHDR_END>

#include "SetupPrivate.h"
#define EXIT_FORM_SET
#define FORM_SET_TYPEDEF
#include <SetupDefinitions.h>
#undef FORM_SET_TYPEDEF

formset guid = EXIT_FORM_SET_GUID,
    title = STRING_TOKEN(STR_EXIT),
    help = STRING_TOKEN(STR_EXIT_HELP),
    class = EXIT_FORM_SET_CLASS, subclass = 0,

    SETUP_DATA_VARSTORE
    AMI_CALLBACK_VARSTORE
    BOOT_MANAGER_VARSTORE
    BOOT_NOW_COUNT_VARSTORE
    EFI_SHELL_VARSTORE

    #define FORM_SET_VARSTORE
    #include <SetupDefinitions.h>
    #undef FORM_SET_VARSTORE

    form formid = AUTO_ID(EXIT_MAIN),
        title = STRING_TOKEN(STR_EXIT);

    suppressif ideqval AMI_CALLBACK.Value == SAVE_AND_EXIT_VALUE;
        goto EXIT_MAIN,
            prompt = STRING_TOKEN(STR_SAVE_EXIT),
            help = STRING_TOKEN(STR_SAVE_EXIT_HELP);
    endif;

    suppressif ideqval AMI_CALLBACK.Value == DISCARD_AND_EXIT_VALUE;
        goto EXIT_MAIN,
            prompt = STRING_TOKEN(STR_DISCARD_EXIT),
            help = STRING_TOKEN(STR_DISCARD_EXIT_HELP);
    endif;

    suppressif ideqval AMI_CALLBACK.Value == SAVE_AND_RESET_VALUE;
        goto EXIT_MAIN,
            prompt = STRING_TOKEN(STR_SAVE_RESET),
            help = STRING_TOKEN(STR_SAVE_RESET_HELP);
    endif;

    suppressif ideqval AMI_CALLBACK.Value == DISCARD_AND_RESET_VALUE;
        goto EXIT_MAIN,
            prompt = STRING_TOKEN(STR_DISCARD_RESET),
            help = STRING_TOKEN(STR_DISCARD_RESET_HELP);
    endif;

    SEPARATOR
    SUBTITLE(STRING_TOKEN(STR_SAVE_TITLE))
    suppressif ideqval AMI_CALLBACK.Value == SAVE_VALUE;
        goto EXIT_MAIN,
            prompt = STRING_TOKEN(STR_SAVE),
            help = STRING_TOKEN(STR_SAVE_HELP);
    endif;

    suppressif ideqval AMI_CALLBACK.Value == DISCARD_VALUE;
        goto EXIT_MAIN,
            prompt = STRING_TOKEN(STR_DISCARD),
            help = STRING_TOKEN(STR_DISCARD_HELP);
    endif;

    SEPARATOR
    suppressif ideqval AMI_CALLBACK.Value == RESTORE_DEFAULTS_VALUE;
        goto EXIT_MAIN,
            prompt = STRING_TOKEN(STR_RESTORE_DEFAULTS),
            help = STRING_TOKEN(STR_RESTORE_DEFAULTS_HELP);
    endif;

    suppressif ideqval AMI_CALLBACK.Value == SAVE_USER_DEFAULTS_VALUE;
        goto EXIT_MAIN,
            prompt = STRING_TOKEN(STR_SAVE_USER_DEFAULTS),
            help = STRING_TOKEN(STR_SAVE_USER_DEFAULTS_HELP);
    endif;

    suppressif ideqval AMI_CALLBACK.Value == RESTORE_USER_DEFAULTS_VALUE;
        goto EXIT_MAIN,
            prompt = STRING_TOKEN(STR_RESTORE_USER_DEFAULTS),
            help = STRING_TOKEN(STR_RESTORE_USER_DEFAULTS_HELP);
    endif;

    SEPARATOR
    SUBTITLE(STRING_TOKEN(STR_BOOT_OPTIONS))
#if SETUP_SHOW_ALL_BBS_DEVICES
    suppressif ideqvallist BOOT_NOW_COUNT.BootCount == 0xFFFF;
#else
    suppressif ideqvallist BOOT_MANAGER.BootCount == 0xFFFF;
#endif.
        goto EXIT_MAIN,
            prompt = STRING_TOKEN(STR_EMPTY),
            help = STRING_TOKEN(STR_EMPTY);
    endif;

#if !Shell_SUPPORT
    SEPARATOR
    suppressif ideqvallist EFI_SHELL.Value == 1;
        goto EXIT_MAIN,
            prompt = STRING_TOKEN(STR_EFI_SHELL),
#if EFI64
            help = STRING_TOKEN(STR_EFI_SHELL_HELP_IPF);
#elif EFIx64
            help = STRING_TOKEN(STR_EFI_SHELL_HELP_X64);
#else
            help = STRING_TOKEN(STR_EFI_SHELL_HELP);
#endif
    endif;
#endif

        #define FORM_SET_ITEM
        #include <SetupDefinitions.h>
        #undef FORM_SET_ITEM
        #define FORM_SET_GOTO
        #include <SetupDefinitions.h>
        #undef FORM_SET_GOTO
    endform;

    #define FORM_SET_FORM
    #include <SetupDefinitions.h>
    #undef FORM_SET_FORM
endformset;
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2009, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**             6145-F Northbelt Pkwy, Norcross, GA 30071            **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************