]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Guid/NicIp4ConfigNvData.h
Fix spelling typo in the NIC_IP4_CONFIG_INFO.Permanent variable name, which was incor...
[mirror_edk2.git] / MdeModulePkg / Include / Guid / NicIp4ConfigNvData.h
index 94a2a5b5bfb607272eb48cb96e67239cbdb1cdb3..d3ce76f051383b7fec98cd8bee748d4b3845e831 100644 (file)
@@ -1,13 +1,13 @@
 /** @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
@@ -24,26 +24,23 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \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
@@ -51,9 +48,9 @@ typedef enum {
 /// 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
@@ -62,10 +59,10 @@ typedef struct {
 /// 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