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