From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=217.140.101.70; helo=foss.arm.com; envelope-from=daniil.egranov@arm.com; receiver=edk2-devel@lists.01.org Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by ml01.01.org (Postfix) with ESMTP id 12BFF2235229E for ; Tue, 6 Mar 2018 17:30:49 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5F7DC1596; Tue, 6 Mar 2018 17:37:04 -0800 (PST) Received: from usa.arm.com (dbox2.austin.arm.com [10.118.34.22]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1EF253F24A; Tue, 6 Mar 2018 17:37:04 -0800 (PST) From: Daniil Egranov To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, Daniil Egranov Date: Tue, 6 Mar 2018 19:36:35 -0600 Message-Id: <20180307013637.16462-3-daniil.egranov@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180307013637.16462-1-daniil.egranov@arm.com> References: <20180307013637.16462-1-daniil.egranov@arm.com> Subject: [PATCH 2/4] NonDiscoverableDeviceRegistrationLib: Added Virtio support X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2018 01:30:50 -0000 Added Virtio non-discoverable device case. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Daniil Egranov --- .../NonDiscoverableDeviceRegistrationLib.c | 3 +++ .../NonDiscoverableDeviceRegistrationLib.inf | 1 + 2 files changed, 4 insertions(+) diff --git a/MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.c b/MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.c index 536dfc7297..2cc3da7772 100644 --- a/MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.c +++ b/MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.c @@ -67,6 +67,9 @@ GetGuidFromType ( case NonDiscoverableDeviceTypeXhci: return &gEdkiiNonDiscoverableXhciDeviceGuid; + case NonDiscoverableDeviceTypeVirtio: + return &gEdkiiNonDiscoverableVirtioDeviceGuid; + default: return NULL; } diff --git a/MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.inf b/MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.inf index 763f9a0a6f..8ebf869d1d 100644 --- a/MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.inf +++ b/MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.inf @@ -46,3 +46,4 @@ gEdkiiNonDiscoverableUfsDeviceGuid ## CONSUMES ## GUID gEdkiiNonDiscoverableUhciDeviceGuid ## CONSUMES ## GUID gEdkiiNonDiscoverableXhciDeviceGuid ## CONSUMES ## GUID + gEdkiiNonDiscoverableVirtioDeviceGuid ## CONSUMES ## GUID -- 2.11.0