1 | /** @file
|
---|
2 | Vfr file for IP4Dxe.
|
---|
3 |
|
---|
4 | Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
|
---|
5 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
6 |
|
---|
7 | **/
|
---|
8 | #include "Ip4NvData.h"
|
---|
9 |
|
---|
10 | #define EFI_NETWORK_DEVICE_CLASS 0x04
|
---|
11 |
|
---|
12 | formset
|
---|
13 | guid = IP4_CONFIG2_NVDATA_GUID,
|
---|
14 | title = STRING_TOKEN(STR_IP4_CONFIG2_FORM_TITLE),
|
---|
15 | help = STRING_TOKEN(STR_IP4_CONFIG2_FORM_HELP),
|
---|
16 | class = EFI_NETWORK_DEVICE_CLASS,
|
---|
17 | subclass = 0x03,
|
---|
18 |
|
---|
19 | varstore IP4_CONFIG2_IFR_NVDATA,
|
---|
20 | name = IP4_CONFIG2_IFR_NVDATA,
|
---|
21 | guid = IP4_CONFIG2_NVDATA_GUID;
|
---|
22 |
|
---|
23 | form formid = FORMID_MAIN_FORM,
|
---|
24 | title = STRING_TOKEN(STR_IP4_DEVICE_FORM_TITLE);
|
---|
25 |
|
---|
26 | checkbox varid = IP4_CONFIG2_IFR_NVDATA.Configure,
|
---|
27 | prompt = STRING_TOKEN(STR_IP4_CONFIGURE),
|
---|
28 | help = STRING_TOKEN(STR_IP4_CONFIGURE_HELP),
|
---|
29 | flags = INTERACTIVE,
|
---|
30 | key = KEY_ENABLE,
|
---|
31 | endcheckbox;
|
---|
32 |
|
---|
33 | suppressif ideqval IP4_CONFIG2_IFR_NVDATA.Configure == 0x00;
|
---|
34 |
|
---|
35 | checkbox varid = IP4_CONFIG2_IFR_NVDATA.DhcpEnable,
|
---|
36 | prompt = STRING_TOKEN(STR_IP4_ENABLE_DHCP),
|
---|
37 | help = STRING_TOKEN(STR_IP4_ENABLE_DHCP),
|
---|
38 | flags = INTERACTIVE,
|
---|
39 | key = KEY_DHCP_ENABLE,
|
---|
40 | endcheckbox;
|
---|
41 | endif;
|
---|
42 |
|
---|
43 | suppressif ideqval IP4_CONFIG2_IFR_NVDATA.DhcpEnable == 0x01 OR ideqval IP4_CONFIG2_IFR_NVDATA.Configure == 0x00;
|
---|
44 |
|
---|
45 | string varid = IP4_CONFIG2_IFR_NVDATA.StationAddress,
|
---|
46 | prompt = STRING_TOKEN(STR_IP4_LOCAL_IP_ADDRESS),
|
---|
47 | help = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
|
---|
48 | flags = INTERACTIVE,
|
---|
49 | key = KEY_LOCAL_IP,
|
---|
50 | minsize = IP_MIN_SIZE,
|
---|
51 | maxsize = IP_MAX_SIZE,
|
---|
52 | endstring;
|
---|
53 |
|
---|
54 | string varid = IP4_CONFIG2_IFR_NVDATA.SubnetMask,
|
---|
55 | prompt = STRING_TOKEN(STR_IP4_LOCAL_MASK),
|
---|
56 | help = STRING_TOKEN(STR_IP4_MASK_HELP),
|
---|
57 | flags = INTERACTIVE,
|
---|
58 | key = KEY_SUBNET_MASK,
|
---|
59 | minsize = IP_MIN_SIZE,
|
---|
60 | maxsize = IP_MAX_SIZE,
|
---|
61 | endstring;
|
---|
62 |
|
---|
63 | string varid = IP4_CONFIG2_IFR_NVDATA.GatewayAddress,
|
---|
64 | prompt = STRING_TOKEN(STR_IP4_LOCAL_GATEWAY),
|
---|
65 | help = STRING_TOKEN(STR_IP4_GATEWAY_HELP),
|
---|
66 | flags = INTERACTIVE,
|
---|
67 | key = KEY_GATE_WAY,
|
---|
68 | minsize = IP_MIN_SIZE,
|
---|
69 | maxsize = IP_MAX_SIZE,
|
---|
70 | endstring;
|
---|
71 |
|
---|
72 | string varid = IP4_CONFIG2_IFR_NVDATA.DnsAddress,
|
---|
73 | prompt = STRING_TOKEN(STR_IP4_LOCAL_DNS),
|
---|
74 | help = STRING_TOKEN(STR_IP4_DNS_HELP),
|
---|
75 | flags = INTERACTIVE,
|
---|
76 | key = KEY_DNS,
|
---|
77 | minsize = IP_MIN_SIZE,
|
---|
78 | maxsize = ADDRESS_STR_MAX_SIZE,
|
---|
79 | endstring;
|
---|
80 |
|
---|
81 | endif;
|
---|
82 |
|
---|
83 | subtitle text = STRING_TOKEN(STR_NULL);
|
---|
84 |
|
---|
85 | text
|
---|
86 | help = STRING_TOKEN(STR_SAVE_CHANGES),
|
---|
87 | text = STRING_TOKEN(STR_SAVE_CHANGES),
|
---|
88 | flags = INTERACTIVE,
|
---|
89 | key = KEY_SAVE_CHANGES;
|
---|
90 |
|
---|
91 | endform;
|
---|
92 |
|
---|
93 | endformset;
|
---|
94 |
|
---|