summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorYe Ting <ting.ye@intel.com>2015-04-30 02:57:10 +0000
committertye1 <tye1@Edk2>2015-04-30 02:57:10 +0000
commit2bbe9553c495bb9024b4b51743142a0a50e0d370 (patch)
tree3cf8c8c3b5e30d44a3f1410115bb1eb5c6f3961e /MdePkg
parent1f17c7f71b14307ff5e0f9694ee800364c865374 (diff)
downloadedk2-platforms-2bbe9553c495bb9024b4b51743142a0a50e0d370.tar.xz
Add IPV6 support from UNDI
Add new information block ‘IPV6 support from UNDI’ in AIP protocol and provide sample implementation in UNDI driver. Update PXE driver to get ‘Ipv6Available’ of PXE BC Mode data from UNDI driver, if unsupported then not to start PXE over IPv6 path. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ye Ting <ting.ye@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17275 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/Protocol/AdapterInformation.h25
-rw-r--r--MdePkg/MdePkg.dec4
2 files changed, 25 insertions, 4 deletions
diff --git a/MdePkg/Include/Protocol/AdapterInformation.h b/MdePkg/Include/Protocol/AdapterInformation.h
index 63b560a106..275e1b63af 100644
--- a/MdePkg/Include/Protocol/AdapterInformation.h
+++ b/MdePkg/Include/Protocol/AdapterInformation.h
@@ -3,7 +3,7 @@
The EFI Adapter Information Protocol is used to dynamically and quickly discover
or set device information for an adapter.
- Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -41,6 +41,11 @@
0x114da5ef, 0x2cf1, 0x4e12, {0x9b, 0xbb, 0xc4, 0x70, 0xb5, 0x52, 0x5, 0xd9 } \
}
+#define EFI_ADAPTER_INFO_UNDI_IPV6_SUPPORT_GUID \
+ { \
+ 0x4bd56be3, 0x4975, 0x4d8a, {0xa0, 0xad, 0xc4, 0x91, 0x20, 0x4b, 0x5d, 0x4d} \
+ }
+
typedef struct _EFI_ADAPTER_INFORMATION_PROTOCOL EFI_ADAPTER_INFORMATION_PROTOCOL;
///
@@ -54,7 +59,7 @@ typedef struct {
/// not any media attached to the network.
///
EFI_STATUS MediaState;
-}EFI_ADAPTER_INFO_MEDIA_STATE;
+} EFI_ADAPTER_INFO_MEDIA_STATE;
///
/// EFI_ADAPTER_INFO_NETWORK_BOOT
@@ -96,7 +101,7 @@ typedef struct {
/// TRUE if the adapter is currently configured to boot from FCoE targets.
///
BOOLEAN FCoeBoot;
-}EFI_ADAPTER_INFO_NETWORK_BOOT;
+} EFI_ADAPTER_INFO_NETWORK_BOOT;
///
/// EFI_ADAPTER_INFO_SAN_MAC_ADDRESS
@@ -107,7 +112,17 @@ typedef struct {
/// networking and Fibre-Channel Over Ethernet (FCOE), this conveys the FCOE SAN MAC address from the adapter.
///
EFI_MAC_ADDRESS SanMacAddress;
-}EFI_ADAPTER_INFO_SAN_MAC_ADDRESS;
+} EFI_ADAPTER_INFO_SAN_MAC_ADDRESS;
+
+///
+/// EFI_ADAPTER_INFO_UNDI_IPV6_SUPPORT
+///
+typedef struct {
+ ///
+ /// Returns capability of UNDI to support IPv6 traffic.
+ ///
+ BOOLEAN Ipv6Support;
+} EFI_ADAPTER_INFO_UNDI_IPV6_SUPPORT;
/**
Returns the current state information for the adapter.
@@ -221,4 +236,6 @@ extern EFI_GUID gEfiAdapterInfoNetworkBootGuid;
extern EFI_GUID gEfiAdapterInfoSanMacAddressGuid;
+extern EFI_GUID gEfiAdapterInfoUndiIpv6SupportGuid;
+
#endif
diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec
index 644f2ba978..531eedb0e3 100644
--- a/MdePkg/MdePkg.dec
+++ b/MdePkg/MdePkg.dec
@@ -560,6 +560,10 @@
## Include/Guid/SystemResourceTable.h
gEfiSystemResourceTableGuid = { 0xb122a263, 0x3661, 0x4f68, {0x99, 0x29, 0x78, 0xf8, 0xb0, 0xd6, 0x21, 0x80 }}
+ ## Include/Protocol/AdapterInformation.h
+ gEfiAdapterInfoUndiIpv6SupportGuid = { 0x4bd56be3, 0x4975, 0x4d8a, {0xa0, 0xad, 0xc4, 0x91, 0x20, 0x4b, 0x5d, 0x4d }}
+
+
#
# GUID defined in PI1.0
#