]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Add UEFI 2.7 defined GUID and structure for AIP network media type.
authorWang Fan <fan.wang@intel.com>
Thu, 24 Aug 2017 09:17:19 +0000 (17:17 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Wed, 6 Sep 2017 05:06:06 +0000 (13:06 +0800)
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wang Fan <fan.wang@intel.com>
MdePkg/Include/Protocol/AdapterInformation.h

index 275e1b63af02fc0d8584ae3c43d0e66a1c29094c..6421e56d9aaba9903da36917d8447f1812e84f06 100644 (file)
@@ -3,7 +3,7 @@
   The EFI Adapter Information Protocol is used to dynamically and quickly discover\r
   or set device information for an adapter.\r
 \r
-  Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2014 - 2017, Intel Corporation. All rights reserved.<BR>\r
   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
     0x4bd56be3, 0x4975, 0x4d8a, {0xa0, 0xad, 0xc4, 0x91, 0x20, 0x4b, 0x5d, 0x4d} \\r
   }\r
 \r
+#define EFI_ADAPTER_INFO_MEDIA_TYPE_GUID \\r
+  { \\r
+    0x8484472f, 0x71ec, 0x411a, { 0xb3, 0x9c, 0x62, 0xcd, 0x94, 0xd9, 0x91, 0x6e } \\r
+  }\r
+\r
+\r
 typedef struct _EFI_ADAPTER_INFORMATION_PROTOCOL EFI_ADAPTER_INFORMATION_PROTOCOL;\r
 \r
 ///\r
@@ -61,6 +67,19 @@ typedef struct {
   EFI_STATUS                    MediaState;\r
 } EFI_ADAPTER_INFO_MEDIA_STATE;\r
 \r
+///\r
+/// EFI_ADAPTER_INFO_MEDIA_TYPE\r
+///\r
+typedef struct {\r
+  ///\r
+  /// Indicates the current media type. MediaType can have any of the following values:\r
+  /// 1: Ethernet Network Adapter\r
+  /// 2: Ethernet Wireless Network Adapter\r
+  /// 3~255: Reserved\r
+  ///\r
+  UINT8 MediaType;\r
+} EFI_ADAPTER_INFO_MEDIA_TYPE;\r
+\r
 ///\r
 /// EFI_ADAPTER_INFO_NETWORK_BOOT\r
 ///\r