]>
Commit | Line | Data |
---|---|---|
63886849 | 1 | /** @file\r |
2 | Routines used to operate the Ip4 configure variable.\r | |
3 | \r | |
c22b6cdf | 4 | Copyright (c) 2009 - 2010, Intel Corporation.<BR>\r |
63886849 | 5 | All rights reserved. This program and the accompanying materials\r |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at<BR>\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT 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 | |
d80ea739 | 18 | #define EFI_NIC_IP4_CONFIG_NVDATA_GUID \\r |
63886849 | 19 | { \\r |
d80ea739 | 20 | 0x9d5b53f, 0xf4b0, 0x4f59, { 0xa0, 0xb1, 0x7b, 0x57, 0xd3, 0x5c, 0xe, 0x5 } \\r |
63886849 | 21 | }\r |
22 | \r | |
23 | #define FORMID_MAIN_FORM 1\r | |
24 | #define FORMID_DEVICE_FORM 2\r | |
25 | \r | |
c22b6cdf | 26 | #define KEY_ENABLE 0x100\r |
63886849 | 27 | #define KEY_DHCP_ENABLE 0x101\r |
28 | #define KEY_LOCAL_IP 0x102\r | |
29 | #define KEY_SUBNET_MASK 0x103\r | |
30 | #define KEY_GATE_WAY 0x104\r | |
31 | #define KEY_SAVE_CHANGES 0x105\r | |
32 | \r | |
63886849 | 33 | #define IP_MIN_SIZE 7\r |
34 | #define IP_MAX_SIZE 15\r | |
35 | #define IP4_STR_MAX_SIZE 16\r | |
36 | \r | |
37 | ///\r | |
38 | /// NIC_IP4_CONFIG_INFO contains the IP4 configure\r | |
39 | /// parameters for that NIC. NIC_IP4_CONFIG_INFO is\r | |
40 | /// of variable length.\r | |
41 | ///\r | |
42 | typedef struct {\r | |
d80ea739 | 43 | UINT16 NicAddr[3]; ///< NIC MAC address\r |
c22b6cdf | 44 | UINT8 Configure; ///< NIC configure status\r |
d80ea739 | 45 | UINT8 DhcpEnable; ///< Static or DHCP\r |
63886849 | 46 | CHAR16 StationAddress[IP4_STR_MAX_SIZE]; ///< IP addresses\r |
47 | CHAR16 SubnetMask[IP4_STR_MAX_SIZE]; ///< Subnet address\r | |
48 | CHAR16 GatewayAddress[IP4_STR_MAX_SIZE]; ///< Gateway address\r | |
49 | } IP4_CONFIG_IFR_NVDATA;\r | |
50 | \r | |
51 | #endif\r | |
d80ea739 | 52 | \r |