]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4NvData.h
BaseTools:Change the path of the file that Binary Cache
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4Dxe / Ip4NvData.h
1 /** @file
2 Routines used to operate the Ip4Dxe.
3
4 Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #ifndef _IP4_NV_DATA_H_
10 #define _IP4_NV_DATA_H_
11
12 #include <Guid/Ip4Config2Hii.h>
13
14 #define FORMID_MAIN_FORM 1
15 #define FORMID_DEVICE_FORM 2
16
17 #define KEY_ENABLE 0x100
18 #define KEY_DHCP_ENABLE 0x101
19 #define KEY_LOCAL_IP 0x102
20 #define KEY_SUBNET_MASK 0x103
21 #define KEY_GATE_WAY 0x104
22 #define KEY_DNS 0x105
23 #define KEY_SAVE_CHANGES 0x106
24
25 #define IP_MIN_SIZE 7
26 #define IP_MAX_SIZE 15
27 #define IP4_STR_MAX_SIZE 16
28 #define ADDRESS_STR_MAX_SIZE 255
29 #define MAX_IP4_CONFIG_DNS 16
30
31 ///
32 /// IP4_CONFIG2_IFR_NVDATA contains the IP4 configure
33 /// parameters for that NIC.
34 ///
35 typedef struct {
36 UINT8 Configure; ///< NIC configure status
37 UINT8 DhcpEnable; ///< Static or DHCP
38 CHAR16 StationAddress[IP4_STR_MAX_SIZE]; ///< IP addresses
39 CHAR16 SubnetMask[IP4_STR_MAX_SIZE]; ///< Subnet address
40 CHAR16 GatewayAddress[IP4_STR_MAX_SIZE]; ///< Gateway address
41 CHAR16 DnsAddress[ADDRESS_STR_MAX_SIZE]; ///< DNS server address
42 } IP4_CONFIG2_IFR_NVDATA;
43
44 #endif
45