2 Vfr file for IP4 config.
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
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.
14 #include "Ip4NvData.h"
16 #define EFI_NETWORK_DEVICE_CLASS 0x04
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,
25 varstore IP4_CONFIG_IFR_NVDATA,
26 name = EfiNicIp4ConfigVariable,
27 guid = EFI_NIC_IP4_CONFIG_NVDATA_GUID;
29 form formid = FORMID_MAIN_FORM,
30 title = STRING_TOKEN(STR_IP4_DEVICE_FORM_TITLE);
32 checkbox varid = EfiNicIp4ConfigVariable.Configure,
33 prompt = STRING_TOKEN(STR_IP4_CONFIGURE),
34 help = STRING_TOKEN(STR_IP4_CONFIGURE),
39 suppressif ideqval EfiNicIp4ConfigVariable.Configure == 0x00;
41 checkbox varid = EfiNicIp4ConfigVariable.DhcpEnable,
42 prompt = STRING_TOKEN(STR_IP4_ENABLE_DHCP),
43 help = STRING_TOKEN(STR_IP4_ENABLE_DHCP),
45 key = KEY_DHCP_ENABLE,
49 suppressif ideqval EfiNicIp4ConfigVariable.DhcpEnable == 0x01 OR ideqval EfiNicIp4ConfigVariable.Configure == 0x00;
51 string varid = EfiNicIp4ConfigVariable.StationAddress,
52 prompt = STRING_TOKEN(STR_IP4_LOCAL_IP_ADDRESS),
53 help = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
56 minsize = IP_MIN_SIZE,
57 maxsize = IP_MAX_SIZE,
60 string varid = EfiNicIp4ConfigVariable.SubnetMask,
61 prompt = STRING_TOKEN(STR_IP4_LOCAL_MASK),
62 help = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
64 key = KEY_SUBNET_MASK,
65 minsize = IP_MIN_SIZE,
66 maxsize = IP_MAX_SIZE,
69 string varid = EfiNicIp4ConfigVariable.GatewayAddress,
70 prompt = STRING_TOKEN(STR_IP4_LOCAL_GATEWAY),
71 help = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
74 minsize = IP_MIN_SIZE,
75 maxsize = IP_MAX_SIZE,
80 subtitle text = STRING_TOKEN(STR_NULL);
82 goto FORMID_DEVICE_FORM,
83 prompt = STRING_TOKEN (STR_SAVE_CHANGES),
84 help = STRING_TOKEN (STR_SAVE_CHANGES),
86 key = KEY_SAVE_CHANGES;