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