2009-05-13 11:29:44 +02:00
|
|
|
/** @file
|
|
|
|
Routines used to operate the Ip4 configure variable.
|
|
|
|
|
2010-01-08 06:00:19 +01:00
|
|
|
Copyright (c) 2009 - 2010, Intel Corporation.<BR>
|
2009-05-13 11:29:44 +02:00
|
|
|
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<BR>
|
|
|
|
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.
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _NIC_IP4_NV_DATA_H_
|
|
|
|
#define _NIC_IP4_NV_DATA_H_
|
|
|
|
|
2010-01-04 06:55:47 +01:00
|
|
|
#define EFI_NIC_IP4_CONFIG_NVDATA_GUID \
|
2009-05-13 11:29:44 +02:00
|
|
|
{ \
|
2010-01-04 06:55:47 +01:00
|
|
|
0x9d5b53f, 0xf4b0, 0x4f59, { 0xa0, 0xb1, 0x7b, 0x57, 0xd3, 0x5c, 0xe, 0x5 } \
|
2009-05-13 11:29:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#define FORMID_MAIN_FORM 1
|
|
|
|
#define FORMID_DEVICE_FORM 2
|
|
|
|
|
2010-01-08 06:00:19 +01:00
|
|
|
#define KEY_ENABLE 0x100
|
2009-05-13 11:29:44 +02:00
|
|
|
#define KEY_DHCP_ENABLE 0x101
|
|
|
|
#define KEY_LOCAL_IP 0x102
|
|
|
|
#define KEY_SUBNET_MASK 0x103
|
|
|
|
#define KEY_GATE_WAY 0x104
|
|
|
|
#define KEY_SAVE_CHANGES 0x105
|
|
|
|
|
|
|
|
#define IP_MIN_SIZE 7
|
|
|
|
#define IP_MAX_SIZE 15
|
|
|
|
#define IP4_STR_MAX_SIZE 16
|
|
|
|
|
|
|
|
///
|
|
|
|
/// NIC_IP4_CONFIG_INFO contains the IP4 configure
|
|
|
|
/// parameters for that NIC. NIC_IP4_CONFIG_INFO is
|
|
|
|
/// of variable length.
|
|
|
|
///
|
|
|
|
typedef struct {
|
2010-01-04 06:55:47 +01:00
|
|
|
UINT16 NicAddr[3]; ///< NIC MAC address
|
2010-01-08 06:00:19 +01:00
|
|
|
UINT8 Configure; ///< NIC configure status
|
2010-01-04 06:55:47 +01:00
|
|
|
UINT8 DhcpEnable; ///< Static or DHCP
|
2009-05-13 11:29:44 +02:00
|
|
|
CHAR16 StationAddress[IP4_STR_MAX_SIZE]; ///< IP addresses
|
|
|
|
CHAR16 SubnetMask[IP4_STR_MAX_SIZE]; ///< Subnet address
|
|
|
|
CHAR16 GatewayAddress[IP4_STR_MAX_SIZE]; ///< Gateway address
|
|
|
|
} IP4_CONFIG_IFR_NVDATA;
|
|
|
|
|
|
|
|
#endif
|
2010-01-04 06:55:47 +01:00
|
|
|
|