From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=songpeng.li@intel.com; receiver=edk2-devel@lists.01.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5842621167459 for ; Sun, 28 Oct 2018 18:54:18 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Oct 2018 18:54:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,438,1534834800"; d="scan'208";a="91955558" Received: from songpeng.ccr.corp.intel.com ([10.239.158.28]) by FMSMGA003.fm.intel.com with ESMTP; 28 Oct 2018 18:54:17 -0700 From: Songpeng Li To: edk2-devel@lists.01.org Cc: Ye Ting , Wu Jiaxin , Fu Siyuan Date: Mon, 29 Oct 2018 09:53:23 +0800 Message-Id: <20181029015326.8528-2-songpeng.li@intel.com> X-Mailer: git-send-email 2.18.0.windows.1 In-Reply-To: <20181029015326.8528-1-songpeng.li@intel.com> References: <20181029015326.8528-1-songpeng.li@intel.com> Subject: [PATCH 1/4] MdeModulePkg: Add Tag Protocol for PxeBc Driver Conflict Detection. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2018 01:54:18 -0000 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 Cc: Wu Jiaxin Cc: Fu Siyuan Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Songpeng Li --- 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.
+ 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