From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (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 E952721D1E2C4 for ; Fri, 25 Aug 2017 01:54:50 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Aug 2017 01:57:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,424,1498546800"; d="scan'208";a="122500761" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.2]) by orsmga004.jf.intel.com with ESMTP; 25 Aug 2017 01:57:25 -0700 From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Fri, 25 Aug 2017 16:57:18 +0800 Message-Id: <20170825085723.396044-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.12.2.windows.2 Subject: [PATCH v2 0/5] Add multiple PCI segments configuration access support 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, 25 Aug 2017 08:54:51 -0000 v2: Add missing function header and file header. Correct all incorrect file headers. 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 | 71 +++ .../BasePciSegmentLibSegmentInfo.inf | 46 ++ .../BasePciSegmentLibSegmentInfo.uni | 21 + .../DxeRuntimePciSegmentLib.c | 321 ++++++++++ .../DxeRuntimePciSegmentLibSegmentInfo.inf | 55 ++ .../DxeRuntimePciSegmentLibSegmentInfo.uni | 21 + .../PciSegmentLibCommon.c} | 656 +++++++++++++++----- .../PciSegmentLibSegmentInfo/PciSegmentLibCommon.h | 57 ++ .../PeiPciSegmentLibPciCfg2/PciSegmentLib.c | 187 +++--- .../PciSegmentLib.c | 180 +++--- MdePkg/MdePkg.dec | 8 + MdePkg/MdePkg.dsc | 4 + 24 files changed, 2250 insertions(+), 885 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