The current PxeBc Driver in MdeModulePkg and NetworkPkg has no conflict
detection when both installed in platform, EDKII PxeBcTag Protocol is used
to detect whether a conflict PxeBcDxeDriver has been binded.

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1278
Cc: Ye Ting <[email protected]>
Cc: Wu Jiaxin <[email protected]>
Cc: Fu Siyuan <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Songpeng Li <[email protected]>
---
 MdeModulePkg/Include/Protocol/PxeBcTag.h | 26 ++++++++++++++++++++++++
 MdeModulePkg/MdeModulePkg.dec            |  5 +++++
 2 files changed, 31 insertions(+)
 create mode 100644 MdeModulePkg/Include/Protocol/PxeBcTag.h

diff --git a/MdeModulePkg/Include/Protocol/PxeBcTag.h 
b/MdeModulePkg/Include/Protocol/PxeBcTag.h
new file mode 100644
index 0000000000..3b0ca01977
--- /dev/null
+++ b/MdeModulePkg/Include/Protocol/PxeBcTag.h
@@ -0,0 +1,26 @@
+/** @file
+  EDKII Pxe Bc Tag Protocol is used to detect whether a conflict PxeBcDxeDriver
+  has been binded.
+
+  Copyright (c) 2018, 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
+  http://opensource.org/licenses/bsd-license.php
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#ifndef __PXE_BC_TAG_H__
+#define __PXE_BC_TAG_H__
+
+#define EDKII_PXE_BC_TAG_PROTOCOL_GUID \
+  { \
+    0xb12b6592, 0xc54e, 0x4100, {0xbc, 0x37, 0xf0, 0x85, 0x91, 0x99, 0x24, 
0x33 } \
+  }
+
+extern EFI_GUID gEdkiiPxeBcTagProtocolGuid;
+
+#endif
diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec
index 428eeeb670..d6a7bf8970 100644
--- a/MdeModulePkg/MdeModulePkg.dec
+++ b/MdeModulePkg/MdeModulePkg.dec
@@ -617,6 +617,11 @@
 
   ## Include/Protocol/AtaAtapiPolicy.h
   gEdkiiAtaAtapiPolicyProtocolGuid = { 0xe59cd769, 0x5083, 0x4f26,{ 0x90, 
0x94, 0x6c, 0x91, 0x9f, 0x91, 0x6c, 0x4e } }
+
+  ## For Conflict Detect of PxeBcDxe from MdeModulePkg/NetworkPkg
+  ## Include/Protocol/PxeBcTag.h
+  gEdkiiPxeBcTagProtocolGuid = { 0xb12b6592, 0xc54e, 0x4100, {0xbc, 0x37, 
0xf0, 0x85, 0x91, 0x99, 0x24, 0x33 } }
+
 #
 # [Error.gEfiMdeModulePkgTokenSpaceGuid]
 #   0x80000001 | Invalid value provided.
-- 
2.18.0.windows.1

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to