VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Ip4Dxe/Ip4Config2.vfr@ 80721

Last change on this file since 80721 was 80721, checked in by vboxsync, 5 years ago

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

  • Property svn:eol-style set to native
File size: 2.9 KB
Line 
1/** @file
2 Vfr file for IP4Dxe.
3
4Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
5SPDX-License-Identifier: BSD-2-Clause-Patent
6
7**/
8#include "Ip4NvData.h"
9
10#define EFI_NETWORK_DEVICE_CLASS 0x04
11
12formset
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
93endformset;
94
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette