/** @file\r
This file defines NIC_IP4_CONFIG_INFO structure.\r
\r
-Copyright (c) 2009, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
+Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under \r
+the terms and conditions of the BSD License that accompanies this distribution. \r
+The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php. \r
\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
#define EFI_NIC_IP4_CONFIG_VARIABLE L"EfiNicIp4ConfigVariable"\r
\r
-typedef enum {\r
- //\r
- // Config source: dhcp or static\r
- //\r
- IP4_CONFIG_SOURCE_DHCP = 0,\r
- IP4_CONFIG_SOURCE_STATIC,\r
- IP4_CONFIG_SOURCE_MAX,\r
\r
- IP4_NIC_NAME_LENGTH = 64,\r
- MAX_IP4_CONFIG_IN_VARIABLE = 16\r
-} IP4_CONFIG_TYPE;\r
+//\r
+// Config source: dhcp or static\r
+//\r
+#define IP4_CONFIG_SOURCE_DHCP 0\r
+#define IP4_CONFIG_SOURCE_STATIC 1\r
+#define IP4_CONFIG_SOURCE_MAX 2\r
+\r
+#define IP4_NIC_NAME_LENGTH 64\r
+#define MAX_IP4_CONFIG_IN_VARIABLE 16\r
\r
//\r
// The following structures are used by drivers/applications other\r
-// than EFI_IP4_PROTOCOL, such as ifconfig shell application, to\r
-// communicate the IP configuration information to EFI_IP4_CONFIG_PROTOCOL.\r
-// EFI_IP4_CONFIG_PROTOCOL in turn is used by EFI_IP4_PROTOCOL to get\r
-// the default IP4 configuration. ifconfig can't use the EFI_IP4_PROTOCOL\r
-// because it don't know how to configure the default IP address even\r
-// it has got the address.\r
+// than EFI_IP4_PROTOCOL, such as the ifconfig shell application, to\r
+// communicate the IP configuration information to the EFI_IP4_CONFIG_PROTOCOL.\r
+// The EFI_IP4_PROTOCOL uses the EFI_IP4_CONFIG_PROTOCOL to get\r
+// the default IP4 configuration.\r
//\r
\r
///\r
/// a specific NIC.\r
///\r
typedef struct {\r
- UINT16 Type; ///< Interface type\r
- UINT8 Len; ///< Length of MAC address\r
- EFI_MAC_ADDRESS MacAddr; ///< MAC address of interface\r
+ UINT16 Type; ///< Interface type.\r
+ UINT8 Len; ///< Length of MAC address.\r
+ EFI_MAC_ADDRESS MacAddr; ///< MAC address of interface.\r
} NIC_ADDR;\r
\r
///\r
/// of variable length.\r
///\r
typedef struct {\r
- NIC_ADDR NicAddr; ///< Link layer address to identify the NIC\r
- UINT32 Source; ///< Static or DHCP\r
- BOOLEAN Perment; ///< Survive the reboot or not\r
- EFI_IP4_IPCONFIG_DATA Ip4Info; ///< IP addresses\r
+ NIC_ADDR NicAddr; ///< Link layer address to identify the NIC.\r
+ UINT32 Source; ///< Static or DHCP.\r
+ BOOLEAN Permanent; ///< Survive the reboot or not.\r
+ EFI_IP4_IPCONFIG_DATA Ip4Info; ///< IP addresses.\r
} NIC_IP4_CONFIG_INFO;\r
\r
extern EFI_GUID gEfiNicIp4ConfigVariableGuid;\r