2. moved NicIp4ConfigVariableGuid to Include/Guid/NicIp4ConfigNvData.h 3. updated Ip4ConfigDxe module to publish one setup page to Get/Set network parameters. Also, Ip4ConfgiDxe installed EFI HII Config Access protocol for each network devices. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8309 6f19259b-4bc3-4df7-8a09-765794883524
		
			
				
	
	
		
			93 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			93 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /** @file
 | |
|   Vfr file for IP4 config.
 | |
| 
 | |
| Copyright (c) 2009, Intel Corporation.<BR>
 | |
| All rights reserved. This program and the accompanying materials
 | |
| are licensed and made available under the terms and conditions of the BSD License
 | |
| which accompanies this distribution.  The full text of the license may be found at
 | |
| http://opensource.org/licenses/bsd-license.php
 | |
| 
 | |
| THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 | |
| WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 | |
| 
 | |
| **/
 | |
| #include "Ip4NvData.h"
 | |
| 
 | |
| #define EFI_NETWORK_DEVICE_CLASS  0x04
 | |
| 
 | |
| formset
 | |
|   guid     = EFI_NIC_IP4_CONFIG_VARIABLE_GUID,
 | |
|   title    = STRING_TOKEN(STR_IP4_CONFIG_FORM_TITLE),
 | |
|   help     = STRING_TOKEN(STR_IP4_CONFIG_FORM_HELP),
 | |
|   class    = EFI_NETWORK_DEVICE_CLASS,
 | |
|   subclass = 0x03,
 | |
| 
 | |
|   varstore IP4_CONFIG_IFR_NVDATA,
 | |
|     name = EfiNicIp4ConfigVariable,
 | |
|     guid = EFI_NIC_IP4_CONFIG_VARIABLE_GUID;
 | |
| 
 | |
|   form formid = FORMID_MAIN_FORM,
 | |
|     title  = STRING_TOKEN(STR_IP4_MAIN_FORM_TITLE);
 | |
| 
 | |
|     label DEVICE_ENTRY_LABEL;
 | |
|     label LABEL_END;
 | |
| 
 | |
|   endform;
 | |
| 
 | |
|   form formid = FORMID_DEVICE_FORM,
 | |
|     title  = STRING_TOKEN(STR_IP4_DEVICE_FORM_TITLE);
 | |
| 
 | |
|     checkbox varid = EfiNicIp4ConfigVariable.DhcpEnable,
 | |
|             prompt = STRING_TOKEN(STR_IP4_ENABLE_DHCP),
 | |
|             help   = STRING_TOKEN(STR_IP4_ENABLE_DHCP),
 | |
|             flags  = INTERACTIVE,
 | |
|             key    = KEY_DHCP_ENABLE,
 | |
|     endcheckbox;
 | |
| 
 | |
|     suppressif ideqval EfiNicIp4ConfigVariable.DhcpEnable == 0x01;
 | |
|     string  varid   = EfiNicIp4ConfigVariable.StationAddress,
 | |
|             prompt  = STRING_TOKEN(STR_IP4_LOCAL_IP_ADDRESS),
 | |
|             help    = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
 | |
|             flags   = INTERACTIVE,
 | |
|             key     = KEY_LOCAL_IP,
 | |
|             minsize = IP_MIN_SIZE,
 | |
|             maxsize = IP_MAX_SIZE,
 | |
|     endstring;
 | |
| 
 | |
|     string  varid   = EfiNicIp4ConfigVariable.SubnetMask,
 | |
|             prompt  = STRING_TOKEN(STR_IP4_LOCAL_MASK),
 | |
|             help    = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
 | |
|             flags   = INTERACTIVE,
 | |
|             key     = KEY_SUBNET_MASK,
 | |
|             minsize = IP_MIN_SIZE,
 | |
|            maxsize = IP_MAX_SIZE,
 | |
|     endstring;
 | |
| 
 | |
|     string  varid   = EfiNicIp4ConfigVariable.GatewayAddress,
 | |
|             prompt  = STRING_TOKEN(STR_IP4_LOCAL_GATEWAY),
 | |
|             help    = STRING_TOKEN(STR_IP4_IP_ADDRESS_HELP),
 | |
|             flags   = INTERACTIVE,
 | |
|             key     = KEY_GATE_WAY,
 | |
|             minsize = IP_MIN_SIZE,
 | |
|             maxsize = IP_MAX_SIZE,
 | |
|     endstring;
 | |
|     endif;
 | |
| 
 | |
|     subtitle text = STRING_TOKEN(STR_NULL);
 | |
| 
 | |
|     goto FORMID_DEVICE_FORM,
 | |
|     prompt = STRING_TOKEN (STR_SAVE_CHANGES),
 | |
|     help   = STRING_TOKEN (STR_SAVE_CHANGES),
 | |
|     flags  = INTERACTIVE,
 | |
|     key    = KEY_SAVE_CHANGES;
 | |
| 
 | |
|     goto FORMID_MAIN_FORM,
 | |
|     prompt = STRING_TOKEN (STR_RETURN_MAIN_FORM),
 | |
|     help   = STRING_TOKEN (STR_RETURN_MAIN_FORM),
 | |
|     flags  = 0;
 | |
| 
 | |
|   endform;
 | |
| 
 | |
| endformset;
 | |
| 
 |