From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web09.31540.1654519541921936082 for ; Mon, 06 Jun 2022 05:45:42 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=NqUqIsHw; spf=pass (domain: intel.com, ip: 192.55.52.115, 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=1654519542; x=1686055542; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=yv3FTKWB+6VHJqtus+vke/zH/JGpPBPTOqpiG8u5FnI=; b=NqUqIsHwZ4fDs0p7MyBGh6RcwQeY7snOh0p/A+JroeygW53xfuVXjkQo 1aHO/xGX4weCXu0AJujbAVf+XrVNnzd+/kL9C7kp5Ypj8pn/USx8zXBnv QAvIiwkASS/Mg3IYqmKpxvDAW8Pc9ZylOoyTLcQlckubuIReBJjzsb6Ih l9Pu/8TFnCDyGGxmLcgp/EXcQCApBWZYpk3YvP6hyfW14a9x+Pd9UkNRb pjYBEj5G4EQDupmiz2RS+QRgQXijYto8s1TeDbo3p0YRfW8r6hcz9Umyy eG32KKFYDKCQs/aEWFEUrdMhJ47JAz+0GGBYpbdUfA2twMAAFf3Skj6ar Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="276692327" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="276692327" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 05:45:39 -0700 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="583620391" Received: from mczajkow-mobl.ger.corp.intel.com ([10.252.44.149]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 05:45:38 -0700 From: "Maciej Czajkowski" To: devel@edk2.groups.io Cc: Hao A Wu , Ray Ni , Liming Gao Subject: [edk2-devel][PATCH v1 0/2] Add EDKII_PCI_DEVICE_PPI support to EDK2 Date: Mon, 6 Jun 2022 14:45:27 +0200 Message-Id: <20220606124529.2152-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 Cc: Hao A Wu Cc: Ray Ni Cc: Liming Gao 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 | 615 +++++++++++++++----- MdeModulePkg/Bus/Ata/AhciPei/DevicePath.c | 44 -- MdeModulePkg/Bus/Ata/AhciPei/AhciPei.inf | 5 +- MdeModulePkg/Include/Ppi/PciDevice.h | 32 + MdeModulePkg/MdeModulePkg.dec | 3 + 5 files changed, 493 insertions(+), 206 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.