]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.vfr
SourceLevelDebugPkg/SecPeiDebugAgentLib: Restore CPU interrupt state
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4ConfigDxe / Ip4ConfigDxe.vfr
1 /** @file
2 Vfr file for IP4 config.
3
4 Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14 #include "Ip4NvData.h"
15
16 #define EFI_NETWORK_DEVICE_CLASS 0x04
17
18 formset
19 guid = EFI_NIC_IP4_CONFIG_NVDATA_GUID,
20 title = STRING_TOKEN(STR_IP4_CONFIG_FORM_TITLE),
21 help = STRING_TOKEN(STR_IP4_CONFIG_FORM_HELP),
22
23 varstore IP4_CONFIG_IFR_NVDATA,
24 name = EfiNicIp4ConfigVariable,
25 guid = EFI_NIC_IP4_CONFIG_NVDATA_GUID;
26
27 form formid = FORMID_MAIN_FORM,
28 title = STRING_TOKEN(STR_IP4_DEVICE_FORM_TITLE);
29
30 checkbox varid = EfiNicIp4ConfigVariable.Configure,
31 prompt = STRING_TOKEN(STR_IP4_CONFIGURE),
32 help = STRING_TOKEN(STR_IP4_CONFIGURE),
33 flags = INTERACTIVE,
34 key = KEY_ENABLE,
35 endcheckbox;
36
37 suppressif ideqval EfiNicIp4ConfigVariable.Configure == 0x00;
38
39 checkbox varid = EfiNicIp4ConfigVariable.DhcpEnable,
40 prompt = STRING_TOKEN(STR_IP4_ENABLE_DHCP),
41 help = STRING_TOKEN(STR_IP4_ENABLE_DHCP),
42 flags = INTERACTIVE,
43 key = KEY_DHCP_ENABLE,
44 endcheckbox;
45 endif;
46
47 suppressif ideqval EfiNicIp4ConfigVariable.DhcpEnable == 0x01 OR ideqval EfiNicIp4ConfigVariable.Configure == 0x00;
48
49 string varid = EfiNicIp4ConfigVariable.StationAddress,
50 prompt = STRING_TOKEN(STR_IP4_LOCAL_IP_ADDRESS),
51 help = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
52 flags = INTERACTIVE,
53 key = KEY_LOCAL_IP,
54 minsize = IP_MIN_SIZE,
55 maxsize = IP_MAX_SIZE,
56 endstring;
57
58 string varid = EfiNicIp4ConfigVariable.SubnetMask,
59 prompt = STRING_TOKEN(STR_IP4_LOCAL_MASK),
60 help = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
61 flags = INTERACTIVE,
62 key = KEY_SUBNET_MASK,
63 minsize = IP_MIN_SIZE,
64 maxsize = IP_MAX_SIZE,
65 endstring;
66
67 string varid = EfiNicIp4ConfigVariable.GatewayAddress,
68 prompt = STRING_TOKEN(STR_IP4_LOCAL_GATEWAY),
69 help = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
70 flags = INTERACTIVE,
71 key = KEY_GATE_WAY,
72 minsize = IP_MIN_SIZE,
73 maxsize = IP_MAX_SIZE,
74 endstring;
75
76 endif;
77
78 subtitle text = STRING_TOKEN(STR_NULL);
79
80 text
81 help = STRING_TOKEN(STR_SAVE_CHANGES),
82 text = STRING_TOKEN(STR_SAVE_CHANGES),
83 flags = INTERACTIVE,
84 key = KEY_SAVE_CHANGES;
85
86 endform;
87
88 endformset;
89