]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4NvData.h
SourceLevelDebugPkg/SecPeiDebugAgentLib: Restore CPU interrupt state
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4ConfigDxe / Ip4NvData.h
CommitLineData
63886849 1/** @file\r
2 Routines used to operate the Ip4 configure variable.\r
3\r
c8ad2d7a 4Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
e5eed7d3 5This program and the accompanying materials\r
63886849 6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at<BR>\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _NIC_IP4_NV_DATA_H_\r
16#define _NIC_IP4_NV_DATA_H_\r
17\r
c8ad2d7a 18#include <Guid/Ip4ConfigHii.h>\r
63886849 19\r
20#define FORMID_MAIN_FORM 1\r
21#define FORMID_DEVICE_FORM 2\r
22\r
c22b6cdf 23#define KEY_ENABLE 0x100\r
63886849 24#define KEY_DHCP_ENABLE 0x101\r
25#define KEY_LOCAL_IP 0x102\r
26#define KEY_SUBNET_MASK 0x103\r
27#define KEY_GATE_WAY 0x104\r
28#define KEY_SAVE_CHANGES 0x105\r
29\r
63886849 30#define IP_MIN_SIZE 7\r
31#define IP_MAX_SIZE 15\r
32#define IP4_STR_MAX_SIZE 16\r
33\r
34///\r
35/// NIC_IP4_CONFIG_INFO contains the IP4 configure\r
36/// parameters for that NIC. NIC_IP4_CONFIG_INFO is\r
37/// of variable length.\r
38///\r
39typedef struct {\r
c22b6cdf 40 UINT8 Configure; ///< NIC configure status\r
d80ea739 41 UINT8 DhcpEnable; ///< Static or DHCP\r
63886849 42 CHAR16 StationAddress[IP4_STR_MAX_SIZE]; ///< IP addresses\r
43 CHAR16 SubnetMask[IP4_STR_MAX_SIZE]; ///< Subnet address\r
44 CHAR16 GatewayAddress[IP4_STR_MAX_SIZE]; ///< Gateway address\r
45} IP4_CONFIG_IFR_NVDATA;\r
46\r
47#endif\r
d80ea739 48\r