]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Guid/NicIp4ConfigNvData.h
Clean and split AcpiVariable.h in IntelFrameworkModulePkg into 2 new .h files for...
[mirror_edk2.git] / MdeModulePkg / Include / Guid / NicIp4ConfigNvData.h
index 5e27477d4219638dbe440019485b1f4d48adc30f..b25308131e0061d00df514aa4f8d3061c9a79646 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,17 +24,16 @@ 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
@@ -49,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
@@ -60,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                   Perment;      ///< 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