2 Vfr file for IP4 config.
4 Copyright (c) 2009, Intel Corporation.<BR>
5 All rights reserved. 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_VARIABLE_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_VARIABLE_GUID;
29 form formid = FORMID_MAIN_FORM,
30 title = STRING_TOKEN(STR_IP4_MAIN_FORM_TITLE);
32 label DEVICE_ENTRY_LABEL;
37 form formid = FORMID_DEVICE_FORM,
38 title = STRING_TOKEN(STR_IP4_DEVICE_FORM_TITLE);
40 checkbox varid = EfiNicIp4ConfigVariable.DhcpEnable,
41 prompt = STRING_TOKEN(STR_IP4_ENABLE_DHCP),
42 help = STRING_TOKEN(STR_IP4_ENABLE_DHCP),
44 key = KEY_DHCP_ENABLE,
47 suppressif ideqval EfiNicIp4ConfigVariable.DhcpEnable == 0x01;
48 string varid = EfiNicIp4ConfigVariable.StationAddress,
49 prompt = STRING_TOKEN(STR_IP4_LOCAL_IP_ADDRESS),
50 help = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
53 minsize = IP_MIN_SIZE,
54 maxsize = IP_MAX_SIZE,
57 string varid = EfiNicIp4ConfigVariable.SubnetMask,
58 prompt = STRING_TOKEN(STR_IP4_LOCAL_MASK),
59 help = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
61 key = KEY_SUBNET_MASK,
62 minsize = IP_MIN_SIZE,
63 maxsize = IP_MAX_SIZE,
66 string varid = EfiNicIp4ConfigVariable.GatewayAddress,
67 prompt = STRING_TOKEN(STR_IP4_LOCAL_GATEWAY),
68 help = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
71 minsize = IP_MIN_SIZE,
72 maxsize = IP_MAX_SIZE,
76 subtitle text = STRING_TOKEN(STR_NULL);
78 goto FORMID_DEVICE_FORM,
79 prompt = STRING_TOKEN (STR_SAVE_CHANGES),
80 help = STRING_TOKEN (STR_SAVE_CHANGES),
82 key = KEY_SAVE_CHANGES;
84 goto FORMID_MAIN_FORM,
85 prompt = STRING_TOKEN (STR_RETURN_MAIN_FORM),
86 help = STRING_TOKEN (STR_RETURN_MAIN_FORM),