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