From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web12.18910.1658924886685984313 for ; Wed, 27 Jul 2022 05:28:06 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=IB0I5A4L; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: maciej.czajkowski@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658924886; x=1690460886; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=riXlz02J9tP+bYYOHlG34w/U4l5LCpLYOcmVDBWiOd4=; b=IB0I5A4LdQ8KQDopZSCMnN896nAHEaQQak01xwEzTyeJW9x4AbuBZ7qm zZUw9Qk6ZQR1N6FLah0uu5E6JT9a6RxJZKChtYb92PojyOG56CXor31v1 siAUUc0nBAF7sY4EuUJqhQ5ri/H+/DOaT1vYgCkVmo3nJHueDbQ/R3i06 0q0WnMoW4yVdJyjVuQoIWe9c60ieAIuW+eODw1k6SpgyxYxDr17FZEMcu H9JEbeJg1Tb0rmp2eAoOOCINTmAcDP9Fxk5DPWdGlm4KpMvLR27GMs6QW +9wQ8By41U+1RD67V030VsqNulZAHdikvq81JLJm0PHnv3XtZ88kQPdW/ g==; X-IronPort-AV: E=McAfee;i="6400,9594,10420"; a="289413422" X-IronPort-AV: E=Sophos;i="5.93,195,1654585200"; d="scan'208";a="289413422" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2022 05:27:42 -0700 X-IronPort-AV: E=Sophos;i="5.93,195,1654585200"; d="scan'208";a="659177250" Received: from mczajkow-mobl.ger.corp.intel.com ([10.252.57.70]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2022 05:27:41 -0700 From: "Maciej Czajkowski" To: devel@edk2.groups.io Subject: [PATCH v2 0/2] Add EDKII_PCI_DEVICE_PPI support to EDK2 Date: Wed, 27 Jul 2022 14:27:31 +0200 Message-Id: <20220727122733.2251-1-maciej.czajkowski@intel.com> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3907 The purpose of those changes is to introduce the way to enumerate and assign resources in PEI for the systems with more than one PCI root. Here is a need to have an interface that will support such a mechanizm. For now, the part that performs the enumeration will be implemented in the silicon code. Sample code can be seen here: https://github.com/mczaj/edk2-platforms/commit/d443062e58f9fba228869b54f2546d9735b3b506 v1: https://edk2.groups.io/g/devel/topic/91575907 v2 changes: - collected Acked-by tag for no.1 commit - followed-up with change suggestions in no.2 commit Maciej Czajkowski (2): MdeModulePkg: Add EDKII_PCI_DEVICE_PPI definition MdeModulePkg/AhciPei: Use PCI_DEVICE_PPI to manage AHCI device MdeModulePkg/Bus/Ata/AhciPei/AhciPei.c | 585 ++++++++++++++------ MdeModulePkg/Bus/Ata/AhciPei/DevicePath.c | 44 -- MdeModulePkg/Bus/Ata/AhciPei/AhciPei.h | 17 +- MdeModulePkg/Bus/Ata/AhciPei/AhciPei.inf | 5 +- MdeModulePkg/Include/Ppi/PciDevice.h | 32 ++ MdeModulePkg/MdeModulePkg.dec | 3 + MdeModulePkg/MdeModulePkg.dsc | 1 + 7 files changed, 465 insertions(+), 222 deletions(-) create mode 100644 MdeModulePkg/Include/Ppi/PciDevice.h -- 2.27.0.windows.1 --------------------------------------------------------------------- Intel Technology Poland sp. z o.o. ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN. Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione. This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.