From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (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 20CED209589CB for ; Thu, 3 Aug 2017 23:42:28 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP; 03 Aug 2017 23:44:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,319,1498546800"; d="scan'208";a="295659911" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.23]) by fmsmga004.fm.intel.com with ESMTP; 03 Aug 2017 23:44:39 -0700 From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Fri, 4 Aug 2017 14:44:32 +0800 Message-Id: <20170804064437.120328-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.12.2.windows.2 Subject: [PATCH 0/5] Add new implementation of PciSegmentLib and S3PciSegmentLib class&instance. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Aug 2017 06:42:28 -0000 Ruiyu Ni (5): MdePkg/PciSegmentLib: Fix typo in function header comments MdePkg/PciExpress: Add macro PCI_ECAM_ADDRESS MdePkg/PciSegmentInfoLib: Add PciSegmentInfoLib class and instance. MdePkg/PciSegmentLib: Add instances that consumes PciSegmentInfoLib MdePkg/S3PciSegmentLib: Add S3PciSegmentLib class and instance. MdePkg/Include/IndustryStandard/PciExpress21.h | 19 +- MdePkg/Include/Library/PciExpressLib.h | 5 +- MdePkg/Include/Library/PciSegmentInfoLib.h | 41 ++ MdePkg/Include/Library/PciSegmentLib.h | 102 ++-- .../Library/{PciSegmentLib.h => S3PciSegmentLib.h} | 364 ++++++----- .../BasePciSegmentInfoLibNull.inf | 41 ++ .../BasePciSegmentInfoLibNull.uni | 20 + .../BasePciSegmentInfoLibNull/PciSegmentInfoLib.c | 38 ++ .../Library/BasePciSegmentLibPci/PciSegmentLib.c | 136 +++-- .../BaseS3PciSegmentLib/BaseS3PciSegmentLib.inf | 45 ++ .../BaseS3PciSegmentLib/BaseS3PciSegmentLib.uni | 23 + .../BaseS3PciSegmentLib/S3PciSegmentLib.c} | 674 ++++++++++++++------- .../PciSegmentLibSegmentInfo/BasePciSegmentLib.c | 53 ++ .../BasePciSegmentLibSegmentInfo.inf | 45 ++ .../BasePciSegmentLibSegmentInfo.uni | 21 + .../DxeRuntimePciSegmentLib.c | 331 ++++++++++ .../DxeRuntimePciSegmentLibSegmentInfo.inf | 54 ++ .../DxeRuntimePciSegmentLibSegmentInfo.uni | 21 + .../PciSegmentLibCommon.c} | 651 +++++++++++++++----- .../PciSegmentLibSegmentInfo/PciSegmentLibCommon.h | 46 ++ .../PeiPciSegmentLibPciCfg2/PciSegmentLib.c | 187 +++--- .../PciSegmentLib.c | 180 +++--- MdePkg/MdePkg.dec | 8 + MdePkg/MdePkg.dsc | 4 + 24 files changed, 2221 insertions(+), 888 deletions(-) create mode 100644 MdePkg/Include/Library/PciSegmentInfoLib.h copy MdePkg/Include/Library/{PciSegmentLib.h => S3PciSegmentLib.h} (80%) create mode 100644 MdePkg/Library/BasePciSegmentInfoLibNull/BasePciSegmentInfoLibNull.inf create mode 100644 MdePkg/Library/BasePciSegmentInfoLibNull/BasePciSegmentInfoLibNull.uni create mode 100644 MdePkg/Library/BasePciSegmentInfoLibNull/PciSegmentInfoLib.c create mode 100644 MdePkg/Library/BaseS3PciSegmentLib/BaseS3PciSegmentLib.inf create mode 100644 MdePkg/Library/BaseS3PciSegmentLib/BaseS3PciSegmentLib.uni copy MdePkg/{Include/Library/PciSegmentLib.h => Library/BaseS3PciSegmentLib/S3PciSegmentLib.c} (66%) create mode 100644 MdePkg/Library/PciSegmentLibSegmentInfo/BasePciSegmentLib.c create mode 100644 MdePkg/Library/PciSegmentLibSegmentInfo/BasePciSegmentLibSegmentInfo.inf create mode 100644 MdePkg/Library/PciSegmentLibSegmentInfo/BasePciSegmentLibSegmentInfo.uni create mode 100644 MdePkg/Library/PciSegmentLibSegmentInfo/DxeRuntimePciSegmentLib.c create mode 100644 MdePkg/Library/PciSegmentLibSegmentInfo/DxeRuntimePciSegmentLibSegmentInfo.inf create mode 100644 MdePkg/Library/PciSegmentLibSegmentInfo/DxeRuntimePciSegmentLibSegmentInfo.uni copy MdePkg/{Include/Library/PciSegmentLib.h => Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c} (69%) create mode 100644 MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.h -- 2.12.2.windows.2