]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4NvData.h
1. retired NicIp4ConfigProtocolGuid
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4ConfigDxe / Ip4NvData.h
1 /** @file
2 Routines used to operate the Ip4 configure variable.
3
4 Copyright (c) 2009, Intel Corporation.<BR>
5 All rights reserved. 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
9
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.
12
13 **/
14
15 #ifndef _NIC_IP4_NV_DATA_H_
16 #define _NIC_IP4_NV_DATA_H_
17
18
19 //
20 // one copy from NicIp4ConfigNvData.h
21 //
22 #define EFI_NIC_IP4_CONFIG_VARIABLE_GUID \
23 { \
24 0xd8944553, 0xc4dd, 0x41f4, { 0x9b, 0x30, 0xe1, 0x39, 0x7c, 0xfb, 0x26, 0x7b } \
25 }
26
27 #define FORMID_MAIN_FORM 1
28 #define FORMID_DEVICE_FORM 2
29
30 #define KEY_DHCP_ENABLE 0x101
31 #define KEY_LOCAL_IP 0x102
32 #define KEY_SUBNET_MASK 0x103
33 #define KEY_GATE_WAY 0x104
34 #define KEY_SAVE_CHANGES 0x105
35
36 #define DEVICE_ENTRY_LABEL 0x1234
37 #define LABEL_END 0xffff
38
39 #define KEY_DEVICE_ENTRY_BASE 0x1000
40
41 #define IP_MIN_SIZE 7
42 #define IP_MAX_SIZE 15
43 #define IP4_STR_MAX_SIZE 16
44
45 ///
46 /// NIC_IP4_CONFIG_INFO contains the IP4 configure
47 /// parameters for that NIC. NIC_IP4_CONFIG_INFO is
48 /// of variable length.
49 ///
50 typedef struct {
51 UINT16 NicAddr[3]; ///< NIC MAC address
52 UINT8 Reserved; ///< Reserved bits
53 UINT8 DhcpEnable; ///< Static or DHCP
54 CHAR16 StationAddress[IP4_STR_MAX_SIZE]; ///< IP addresses
55 CHAR16 SubnetMask[IP4_STR_MAX_SIZE]; ///< Subnet address
56 CHAR16 GatewayAddress[IP4_STR_MAX_SIZE]; ///< Gateway address
57 } IP4_CONFIG_IFR_NVDATA;
58
59 #endif