]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.vfr
661f6262c97dbd15ce67d249ccd13a1d9d04ab2c
[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 class = EFI_NETWORK_DEVICE_CLASS,
23 subclass = 0x03,
24
25 varstore IP4_CONFIG_IFR_NVDATA,
26 name = EfiNicIp4ConfigVariable,
27 guid = EFI_NIC_IP4_CONFIG_NVDATA_GUID;
28
29 form formid = FORMID_MAIN_FORM,
30 title = STRING_TOKEN(STR_IP4_DEVICE_FORM_TITLE);
31
32 checkbox varid = EfiNicIp4ConfigVariable.Configure,
33 prompt = STRING_TOKEN(STR_IP4_CONFIGURE),
34 help = STRING_TOKEN(STR_IP4_CONFIGURE),
35 flags = INTERACTIVE,
36 key = KEY_ENABLE,
37 endcheckbox;
38
39 suppressif ideqval EfiNicIp4ConfigVariable.Configure == 0x00;
40
41 checkbox varid = EfiNicIp4ConfigVariable.DhcpEnable,
42 prompt = STRING_TOKEN(STR_IP4_ENABLE_DHCP),
43 help = STRING_TOKEN(STR_IP4_ENABLE_DHCP),
44 flags = INTERACTIVE,
45 key = KEY_DHCP_ENABLE,
46 endcheckbox;
47 endif;
48
49 suppressif ideqval EfiNicIp4ConfigVariable.DhcpEnable == 0x01 OR ideqval EfiNicIp4ConfigVariable.Configure == 0x00;
50
51 string varid = EfiNicIp4ConfigVariable.StationAddress,
52 prompt = STRING_TOKEN(STR_IP4_LOCAL_IP_ADDRESS),
53 help = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
54 flags = INTERACTIVE,
55 key = KEY_LOCAL_IP,
56 minsize = IP_MIN_SIZE,
57 maxsize = IP_MAX_SIZE,
58 endstring;
59
60 string varid = EfiNicIp4ConfigVariable.SubnetMask,
61 prompt = STRING_TOKEN(STR_IP4_LOCAL_MASK),
62 help = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
63 flags = INTERACTIVE,
64 key = KEY_SUBNET_MASK,
65 minsize = IP_MIN_SIZE,
66 maxsize = IP_MAX_SIZE,
67 endstring;
68
69 string varid = EfiNicIp4ConfigVariable.GatewayAddress,
70 prompt = STRING_TOKEN(STR_IP4_LOCAL_GATEWAY),
71 help = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
72 flags = INTERACTIVE,
73 key = KEY_GATE_WAY,
74 minsize = IP_MIN_SIZE,
75 maxsize = IP_MAX_SIZE,
76 endstring;
77
78 endif;
79
80 subtitle text = STRING_TOKEN(STR_NULL);
81
82 text
83 help = STRING_TOKEN(STR_SAVE_CHANGES),
84 text = STRING_TOKEN(STR_SAVE_CHANGES),
85 flags = INTERACTIVE,
86 key = KEY_SAVE_CHANGES;
87
88 endform;
89
90 endformset;
91