From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 8A73DD80689 for ; Mon, 15 Jul 2024 21:34:55 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=0Zy3TOfuzaZ8aMotf0Vq/4Mn9SFbtywMsd7/g3KESbc=; c=relaxed/simple; d=groups.io; h=Subject:To:From:User-Agent:MIME-Version:Date:References:In-Reply-To:Message-ID:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20240206; t=1721079295; v=1; b=eLICeNDEGVI6ZQLcBMQZG8chhTJ9Eku9oxlAoSV+fWmAe6MZuMYJAOS+h++kH+t7MC99ZY0U 8ox5IEUCu6UsD27L/ufEpgWwKk3kSbFL/qnylPphiFKCJzkUpY19AF81wuriCXPrY2Hp7mjtYPS sahnERxAMtiSLKQIiTt6puFYHrM5l/RSDK96GSGr9ibPhgbgDLAO2V3JTlG3H6ukJdw+/+izxoK bVPJammtusUwe+epAuHfIexbaH6RqKgwQ9Eo1oqGFGoMJZZsFXtVZNU/0uTV5MbUntlmCqwt4Df CVNCb6GsIWPETBmc8FG9myBB6XlgpcB7uBNO4hUext7Vw== X-Received: by 127.0.0.2 with SMTP id tYtEYY7687511xC99TDFJvP8; Mon, 15 Jul 2024 14:34:53 -0700 Subject: Re: [edk2-devel] [PATCH v2 1/1] EDK2-Test BUG4244 V2 - Print PCIe device path for SCT failures. To: "Prachotan Bathi" , devel@edk2.groups.io From: "Prachotan Bathi" X-Originating-Location: Austin, Texas, US (217.140.111.158) X-Originating-Platform: Windows Chrome 126 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Mon, 15 Jul 2024 14:34:53 -0700 References: <20240625165133.13813-2-prachotan.bathi@arm.com> In-Reply-To: <20240625165133.13813-2-prachotan.bathi@arm.com> Message-ID: <32421.1721079293045693942@groups.io> Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,prachotan.bathi@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 4UMp1j7BywDaxMavkmc30BTFx7686176AA= Content-Type: multipart/alternative; boundary="1tH6TdQf8YklKMdDzqaE" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=eLICeNDE; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none) --1tH6TdQf8YklKMdDzqaE Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This email seems to be having formatting issues. Sending the patch inline b= elow. >From 36ca222cbd448c2de82f93975884af3c8cc94c71 Mon Sep 17 00:00:00 2001 From: Prachotan Bathi Date: Tue, 25 Jun 2024 11:10:57 -0500 Subject: [PATCH v2 1/1] EDK2-Test BUG4244 V2 - Print PCIe device path for S= CT failures. Tests Modified: AdapterInfoBBTest HIIConfigAccessBBTest PxeBaseCodeBBTest SimpleNetworkBBTest Uses SctDevicePathStrFromProtocol function from DevicePath.c UEFI-SCT Cc: G Edhaya Chandran Cc: Barton Gao Cc: Carolyn Gjertsen Cc: Samer El-Haj-Mahmoud Cc: Eric Jin Cc: Arvin Chen Cc: Supreeth Venkatesh Signed-off-by: Prachotan Bathi --- uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/Adapter= InfoProtocolBBTest.inf =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| =C2=A0 1 + uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTest/Simpl= eNetworkBBTest.inf =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| =C2=A0= 3 +- uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/Adapter= InfoBBTestConformance.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 | =C2=A028 +++- uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/Adapter= InfoBBTestFunction.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| =C2=A030 ++= ++- uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/BlackBoxTest/HII= ConfigAccessBBTestConformance.c | =C2=A020 ++- uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/BlackBoxTest/HII= ConfigAccessBBTestFunction.c =C2=A0 =C2=A0| =C2=A020 ++- uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/PxeBaseCode/BlackBoxTest/PxeBase= CodeBBTestConformance.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 | 122 +++++++++++++++++= - uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/PxeBaseCode/BlackBoxTest/PxeBase= CodeBBTestFunction.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 136 +++++++= +++++++++++-- uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTest/Simpl= eNetworkBBTestConformance.c =C2=A0 =C2=A0 | 128 ++++++++++++++---- uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTest/Simpl= eNetworkBBTestFunction.c =C2=A0 =C2=A0 =C2=A0 =C2=A0| 104 +++++++++++++++ 10 files changed, 539 insertions(+), 53 deletions(-) diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBo= xTest/AdapterInfoProtocolBBTest.inf b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Pro= tocol/AdapterInfo/BlackBoxTest/AdapterInfoProtocolBBTest.inf index b3bf99440705..12029bf693bc 100644 --- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/A= dapterInfoProtocolBBTest.inf +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/A= dapterInfoProtocolBBTest.inf @@ -49,3 +49,4 @@ [LibraryClasses] EfiTestLib [Protocols] + =C2=A0gEfiAdapterInformationProtocolGuid \ No newline at end of file diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNetwork/Black= BoxTest/SimpleNetworkBBTest.inf b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protoco= l/SimpleNetwork/BlackBoxTest/SimpleNetworkBBTest.inf index 1d2d1d395fbb..580a4c744dcc 100644 --- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTest= /SimpleNetworkBBTest.inf +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTest= /SimpleNetworkBBTest.inf @@ -51,4 +51,5 @@ [LibraryClasses] EfiTestLib [Protocols] - =C2=A0gEfiTestLoggingLibraryGuid + =C2=A0gEfiTestLoggingLibraryGuid + =C2=A0gBlackBoxEfiSimpleNetworkProtocolGuid \ No newline at end of file diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBo= xTest/AdapterInfoBBTestConformance.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Pr= otocol/AdapterInfo/BlackBoxTest/AdapterInfoBBTestConformance.c index 19ccac93c7c7..3eb98ac6b15c 100644 --- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/A= dapterInfoBBTestConformance.c +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/A= dapterInfoBBTestConformance.c @@ -93,7 +93,7 @@ BBTestGetInformationConformanceTest ( EFI_STANDARD_TEST_LIBRARY_PROTOCOL =C2=A0 =C2=A0*StandardLib; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_ADAPTER_INFORMATION_PROTOCOL =C2=A0 =C2=A0 =C2=A0*AdapterInfo; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // init // @@ -110,7 +110,13 @@ BBTestGetInformationConformanceTest ( if ( EFI_ERROR(Status) ) { return Status; } - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (AdapterInfo, &gEfiA= dapterInformationProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // //Call check points // @@ -137,6 +143,7 @@ BBTestSetInformationConformanceTest ( EFI_STANDARD_TEST_LIBRARY_PROTOCOL =C2=A0 =C2=A0*StandardLib; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_ADAPTER_INFORMATION_PROTOCOL =C2=A0 =C2=A0 =C2=A0*AdapterInfo; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // init @@ -154,7 +161,13 @@ BBTestSetInformationConformanceTest ( if ( EFI_ERROR(Status) ) { return Status; } - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (AdapterInfo, &gEfiA= dapterInformationProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // //Call check points // @@ -178,6 +191,7 @@ BBTestGetSupportedTypesConformanceTest ( EFI_STANDARD_TEST_LIBRARY_PROTOCOL =C2=A0 =C2=A0*StandardLib; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_ADAPTER_INFORMATION_PROTOCOL =C2=A0 =C2=A0 =C2=A0*AdapterInfo; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // init @@ -195,7 +209,13 @@ BBTestGetSupportedTypesConformanceTest ( if ( EFI_ERROR(Status) ) { return Status; } - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (AdapterInfo, &gEfiA= dapterInformationProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // //Call check points // diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBo= xTest/AdapterInfoBBTestFunction.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Proto= col/AdapterInfo/BlackBoxTest/AdapterInfoBBTestFunction.c index 9372db298de0..788995c5e59f 100644 --- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/A= dapterInfoBBTestFunction.c +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/A= dapterInfoBBTestFunction.c @@ -68,7 +68,7 @@ BBTestGetInformationFunctionTest ( EFI_STANDARD_TEST_LIBRARY_PROTOCOL =C2=A0 =C2=A0*StandardLib; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_ADAPTER_INFORMATION_PROTOCOL =C2=A0 =C2=A0 =C2=A0*AdapterInfo; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // init // @@ -85,7 +85,13 @@ BBTestGetInformationFunctionTest ( if ( EFI_ERROR(Status) ) { return Status; } - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (AdapterInfo, &gEfiA= dapterInformationProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // //Call check points // @@ -108,7 +114,7 @@ BBTestSetInformationFunctionTest ( EFI_STANDARD_TEST_LIBRARY_PROTOCOL =C2=A0 =C2=A0*StandardLib; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_ADAPTER_INFORMATION_PROTOCOL =C2=A0 =C2=A0 =C2=A0*AdapterInfo; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // init // @@ -125,7 +131,13 @@ BBTestSetInformationFunctionTest ( if ( EFI_ERROR(Status) ) { return Status; } - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (AdapterInfo, &gEfiA= dapterInformationProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // //Call check points // @@ -147,7 +159,7 @@ BBTestGetSupportedTypesFunctionTest ( EFI_STANDARD_TEST_LIBRARY_PROTOCOL =C2=A0 =C2=A0*StandardLib; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_ADAPTER_INFORMATION_PROTOCOL =C2=A0 =C2=A0 =C2=A0*AdapterInfo; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // init @@ -165,7 +177,13 @@ BBTestGetSupportedTypesFunctionTest ( if ( EFI_ERROR(Status) ) { return Status; } - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (AdapterInfo, &gEfiA= dapterInformationProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // //Call check points // diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/Bla= ckBoxTest/HIIConfigAccessBBTestConformance.c b/uefi-sct/SctPkg/TestCase/UEF= I/EFI/Protocol/HIIConfigAccess/BlackBoxTest/HIIConfigAccessBBTestConformanc= e.c index 964a64cd1d34..098eec99b5f2 100644 --- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/BlackBoxTe= st/HIIConfigAccessBBTestConformance.c +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/BlackBoxTe= st/HIIConfigAccessBBTestConformance.c @@ -120,7 +120,7 @@ BBTestExtractConfigConformanceTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_HII_CONFIG_ACCESS_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0*HIIConfigAccess; EFI_HII_CONFIG_ROUTING_PROTOCOL =C2=A0 =C2=A0 =C2=A0 *HIIConfigRouting; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // init // @@ -137,7 +137,13 @@ BBTestExtractConfigConformanceTest ( if (EFI_ERROR(Status)) { return Status; } - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (HIIConfigAccess, &g= BlackBoxEfiHIIConfigAccessProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Get the Config Routing Protocol Interface // @@ -170,7 +176,7 @@ BBTestRouteConfigConformanceTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_HII_CONFIG_ACCESS_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0*HIIConfigAccess; EFI_HII_CONFIG_ROUTING_PROTOCOL =C2=A0 =C2=A0 =C2=A0 *HIIConfigRouting; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // init // @@ -187,7 +193,13 @@ BBTestRouteConfigConformanceTest ( if (EFI_ERROR(Status)) { return Status; } - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (HIIConfigAccess, &g= BlackBoxEfiHIIConfigAccessProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Get the Config Routing Protocol Interface // diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/Bla= ckBoxTest/HIIConfigAccessBBTestFunction.c b/uefi-sct/SctPkg/TestCase/UEFI/E= FI/Protocol/HIIConfigAccess/BlackBoxTest/HIIConfigAccessBBTestFunction.c index fb4ee9b66d4f..a4f123276db1 100644 --- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/BlackBoxTe= st/HIIConfigAccessBBTestFunction.c +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/BlackBoxTe= st/HIIConfigAccessBBTestFunction.c @@ -124,7 +124,7 @@ BBTestExtractConfigFunctionTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_HII_CONFIG_ACCESS_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0*HIIConfigAccess; EFI_HII_CONFIG_ROUTING_PROTOCOL =C2=A0 =C2=A0 =C2=A0 *HIIConfigRouting; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // init // @@ -141,7 +141,13 @@ BBTestExtractConfigFunctionTest ( if (EFI_ERROR(Status)) { return Status; } - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (HIIConfigAccess, &g= BlackBoxEfiHIIConfigAccessProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Get the Config Routing Protocol Interface // @@ -173,7 +179,7 @@ BBTestRouteConfigFunctionTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_HII_CONFIG_ACCESS_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0*HIIConfigAccess; EFI_HII_CONFIG_ROUTING_PROTOCOL =C2=A0 =C2=A0 =C2=A0 *HIIConfigRouting; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // init // @@ -190,7 +196,13 @@ BBTestRouteConfigFunctionTest ( if (EFI_ERROR(Status)) { return Status; } - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (HIIConfigAccess, &g= BlackBoxEfiHIIConfigAccessProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Get the Config Routing Protocol Interface // diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/PxeBaseCode/BlackBo= xTest/PxeBaseCodeBBTestConformance.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Pr= otocol/PxeBaseCode/BlackBoxTest/PxeBaseCodeBBTestConformance.c index d03eb850c5ad..8e7b0f7481b3 100644 --- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/PxeBaseCode/BlackBoxTest/P= xeBaseCodeBBTestConformance.c +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/PxeBaseCode/BlackBoxTest/P= xeBaseCodeBBTestConformance.c @@ -50,7 +50,7 @@ BBTestNewStartConformanceTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface // @@ -68,6 +68,13 @@ BBTestNewStartConformanceTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Disable EFI_PXE_BASE_CODE_PROTOCOL Protocol interface @@ -237,6 +244,7 @@ BBTestNewStopConformanceTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface @@ -255,6 +263,13 @@ BBTestNewStopConformanceTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Disable EFI_PXE_BASE_CODE_PROTOCOL Protocol interface @@ -418,6 +433,7 @@ BBTestStartConformanceTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface @@ -436,6 +452,13 @@ BBTestStartConformanceTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Change EFI_PXE_BASE_CODE_PROTOCOL Protocol state to enabled @@ -522,6 +545,7 @@ BBTestStopConformanceTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface @@ -540,6 +564,13 @@ BBTestStopConformanceTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Make sure the EFI_PXE_BASE_CODE_PROTOCOL Protocol is disabled @@ -606,6 +637,7 @@ BBTestDhcpConformanceTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface @@ -624,6 +656,13 @@ BBTestDhcpConformanceTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Change EFI_PXE_BASE_CODE_PROTOCOL Protocol to disabled @@ -791,6 +830,7 @@ BBTestDiscoverConformanceTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface @@ -809,6 +849,13 @@ BBTestDiscoverConformanceTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Change EFI_PXE_BASE_CODE_PROTOCOL Protocol to disabled @@ -988,6 +1035,7 @@ BBTestMtftpConformanceTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; UINTN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 BlockSize=3D512; EFI_IP_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0ServerIp; CHAR8 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *FileName; @@ -1013,6 +1061,13 @@ BBTestMtftpConformanceTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Fill Parameters (ServerIp, FileName, BufferPtr) @@ -1473,6 +1528,7 @@ BBTestUdpWriteConformanceTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_IP_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0DestIp; EFI_PXE_BASE_CODE_UDP_PORT =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DestPor= t; UINTN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 BufferSize; @@ -1501,6 +1557,13 @@ BBTestUdpWriteConformanceTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // Disable EFI_PXE_BASE_CODE_PROTOCOL protocol if needed Status =3D ChangePxeState (BcInterface, FALSE, BcInterface->Mode->Started, = FALSE); @@ -1689,6 +1752,7 @@ BBTestUdpReadConformanceTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0OpFlags; UINTN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 BufferSize; VOID =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BufferPtr; @@ -1713,6 +1777,13 @@ BBTestUdpReadConformanceTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // Malloc for data BufferSize =3D MAX_UDP_SIZE; @@ -2004,6 +2075,7 @@ BBTestSetIpFilterConformanceTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_PXE_BASE_CODE_IP_FILTER =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 BcIpFilter; // @@ -2023,6 +2095,13 @@ BBTestSetIpFilterConformanceTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // Disable EFI_PXE_BASE_CODE_PROTOCOL protocol if needed Status =3D ChangePxeState (BcInterface, FALSE, BcInterface->Mode->Started, = FALSE); @@ -2084,6 +2163,7 @@ BBTestArpConformanceAutoTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_IP_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0IpAddr; BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; @@ -2110,7 +2190,13 @@ BBTestArpConformanceAutoTest ( ); return Status; } - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Disable EFI_PXE_BASE_CODE_PROTOCOL Protocol interface // @@ -2232,6 +2318,7 @@ BBTestArpConformanceManualTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_IP_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0IpAddr; EFI_MAC_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 MacAddr; EFI_INI_FILE_HANDLE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 FileHandle; @@ -2263,6 +2350,13 @@ BBTestArpConformanceManualTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // Disable EFI_PXE_BASE_CODE_PROTOCOL protocol if needed Status =3D ChangePxeState (BcInterface, FALSE, BcInterface->Mode->Started, = FALSE); @@ -2452,6 +2546,7 @@ BBTestSetParametersConformanceTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface @@ -2470,6 +2565,13 @@ BBTestSetParametersConformanceTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // Disable EFI_PXE_BASE_CODE_PROTOCOL protocol if needed Status =3D ChangePxeState (BcInterface, FALSE, BcInterface->Mode->Started, = FALSE); @@ -2531,6 +2633,7 @@ BBTestSetStationIpConformanceTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface @@ -2549,6 +2652,13 @@ BBTestSetStationIpConformanceTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // Disable EFI_PXE_BASE_CODE_PROTOCOL protocol if needed Status =3D ChangePxeState (BcInterface, FALSE, BcInterface->Mode->Started, = FALSE); @@ -2603,6 +2713,7 @@ BBTestSetPacketsConformanceTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface @@ -2621,6 +2732,13 @@ BBTestSetPacketsConformanceTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // Disable EFI_PXE_BASE_CODE_PROTOCOL protocol if needed Status =3D ChangePxeState (BcInterface, FALSE, BcInterface->Mode->Started, = FALSE); diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/PxeBaseCode/BlackBo= xTest/PxeBaseCodeBBTestFunction.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Proto= col/PxeBaseCode/BlackBoxTest/PxeBaseCodeBBTestFunction.c index 38368b521fce..5a10e48f3caf 100644 --- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/PxeBaseCode/BlackBoxTest/P= xeBaseCodeBBTestFunction.c +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/PxeBaseCode/BlackBoxTest/P= xeBaseCodeBBTestFunction.c @@ -242,6 +242,7 @@ BBTestNewStartFunctionTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; UINT32 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Index; CHAR8 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *TempPointer; @@ -265,6 +266,13 @@ BBTestNewStartFunctionTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Disable EFI_PXE_BASE_CODE_PROTOCOL Protocol interface @@ -991,6 +999,7 @@ BBTestNewSetIpFilterFunctionTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_PXE_BASE_CODE_IP_FILTER =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0BcIpFi= lter; UINT8 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Index; @@ -1014,6 +1023,13 @@ BBTestNewSetIpFilterFunctionTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Disable EFI_PXE_BASE_CODE_PROTOCOL Protocol interface @@ -1198,7 +1214,8 @@ BBTestNewStopFunctionTest ( EFI_STANDARD_TEST_LIBRARY_PROTOCOL =C2=A0 =C2=A0*StandardLib; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; - =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *BcIn= terface; + =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0*BcInterface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface @@ -1217,6 +1234,13 @@ BBTestNewStopFunctionTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Disable EFI_PXE_BASE_CODE_PROTOCOL Protocol interface @@ -1340,7 +1364,8 @@ BBTestStartFunctionTest ( EFI_STANDARD_TEST_LIBRARY_PROTOCOL =C2=A0 =C2=A0*StandardLib; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; - =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *BcIn= terface; + =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0*BcInterface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface @@ -1359,6 +1384,13 @@ BBTestStartFunctionTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); Status =3D ChangePxeState (BcInterface, FALSE, BcInterface->Mode->Started, = FALSE); if (EFI_ERROR(Status)) { @@ -1710,7 +1742,8 @@ BBTestStopFunctionTest ( EFI_STANDARD_TEST_LIBRARY_PROTOCOL =C2=A0 =C2=A0*StandardLib; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; - =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *BcIn= terface; + =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0*BcInterface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface @@ -1729,6 +1762,13 @@ BBTestStopFunctionTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Enable EFI_PXE_BASE_CODE_PROTOCOL if needed @@ -1783,7 +1823,8 @@ BBTestDhcpFunctionTest ( EFI_TEST_LOGGING_LIBRARY_PROTOCOL =C2=A0 =C2=A0 *LoggingLib; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; - =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *BcIn= terface; + =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0*BcInterface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; BOOLEAN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ret; // @@ -1813,6 +1854,13 @@ BBTestDhcpFunctionTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // Enable EFI_PXE_BASE_CODE_PROTOCOL if needed Status =3D ChangePxeState (BcInterface, FALSE, BcInterface->Mode->Started, = TRUE); @@ -1917,7 +1965,8 @@ BBTestDiscoverFunctionTest ( EFI_TEST_LOGGING_LIBRARY_PROTOCOL =C2=A0 =C2=A0 *LoggingLib; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; - =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *BcIn= terface; + =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0*BcInterface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Layer; // @@ -1947,6 +1996,13 @@ BBTestDiscoverFunctionTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); Status =3D ReInitPxeBaseCode (BcInterface); if (EFI_ERROR(Status)) @@ -2057,6 +2113,7 @@ BBTestMtftpFunctionTest ( EFI_INI_FILE_HANDLE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0FileHandle; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Status; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; UINTN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0FileSize; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 AssertionType; @@ -2096,6 +2153,13 @@ BBTestMtftpFunctionTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // Enable EFI_PXE_BASE_CODE_PROTOCOL protocol if needed Status =3D ChangePxeState (BcInterface, FALSE, BcInterface->Mode->Started, = TRUE); @@ -2240,6 +2304,7 @@ BBTestUdpWriteFunctionTest ( EFI_INI_FILE_HANDLE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0FileHandle; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Status; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; @@ -2288,6 +2353,13 @@ BBTestUdpWriteFunctionTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Enable EFI_PXE_BASE_CODE_PROTOCOL if needed @@ -2415,6 +2487,7 @@ BBTestUdpReadFunctionTest ( EFI_INI_FILE_HANDLE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0FileHandle; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Status; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_PXE_BASE_CODE_IP_FILTER =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0BcIpFi= lter; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 AssertionType; @@ -2446,6 +2519,13 @@ BBTestUdpReadFunctionTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // Re - initialize EFI_PXE_BASE_CODE_PROTOCOL Status =3D ReInitPxeBaseCode (BcInterface); @@ -2585,6 +2665,7 @@ BBTestSetIpFilterFunctionTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_PXE_BASE_CODE_IP_FILTER =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0BcIpFi= lter; // @@ -2605,6 +2686,13 @@ BBTestSetIpFilterFunctionTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Enable EFI_PXE_BASE_CODE_PROTOCOL if needed @@ -2696,6 +2784,7 @@ BBTestArpFunctionTest ( EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 AssertionType; EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*BcInte= rface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_IP_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 IpAddr; EFI_MAC_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0MacAddr; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*SnpIn= terface; @@ -2727,6 +2816,13 @@ BBTestArpFunctionTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); Status =3D ReInitPxeBaseCode (BcInterface); if (EFI_ERROR(Status)){ @@ -2938,7 +3034,8 @@ BBTestSetParametersFunctionTest ( EFI_STANDARD_TEST_LIBRARY_PROTOCOL =C2=A0 =C2=A0*StandardLib; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; - =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *BcIn= terface; + =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0*BcInterface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; BOOLEAN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 OrigAutoArp, NewAutoArp; UINT8 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 OrigTTL, NewTTL; @@ -2960,6 +3057,13 @@ BBTestSetParametersFunctionTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Enable EFI_PXE_BASE_CODE_PROTOCOL if needed @@ -3149,7 +3253,8 @@ BBTestSetStationIpFunctionTest ( EFI_TEST_LOGGING_LIBRARY_PROTOCOL =C2=A0 =C2=A0 *LoggingLib; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; - =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *BcIn= terface; + =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0*BcInterface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_IP_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0NewStationIp, NewSubnetMask; // @@ -3179,6 +3284,13 @@ BBTestSetStationIpFunctionTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Enable EFI_PXE_BASE_CODE_PROTOCOL if needed @@ -3280,7 +3392,8 @@ BBTestSetPacketsFunctionTest ( EFI_STANDARD_TEST_LIBRARY_PROTOCOL =C2=A0 *StandardLib; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Status; EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; - =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *BcIn= terface; + =C2=A0EFI_PXE_BASE_CODE_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0*BcInterface; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; BOOLEAN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 NewDhcpDiscoverValid; BOOLEAN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 NewDhcpAckReceived; BOOLEAN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 NewProxyOfferReceived ; @@ -3311,6 +3424,13 @@ BBTestSetPacketsFunctionTest ( // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested // BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // Re-initialize the EFI_PXE_BASE_CODE_PROTOCOL Status =3D ReInitPxeBaseCode (BcInterface); diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNetwork/Black= BoxTest/SimpleNetworkBBTestConformance.c b/uefi-sct/SctPkg/TestCase/UEFI/EF= I/Protocol/SimpleNetwork/BlackBoxTest/SimpleNetworkBBTestConformance.c index e73c7cebcbcf..36f0bd01b4d3 100644 --- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTest= /SimpleNetworkBBTestConformance.c +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTest= /SimpleNetworkBBTestConformance.c @@ -53,7 +53,7 @@ BBTestStartConformanceTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface // @@ -71,7 +71,13 @@ BBTestStartConformanceTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkStarted. // If not, change the state to EfiSimpleNetworkStarted. @@ -160,7 +166,7 @@ BBTestStopConformanceTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface // @@ -178,7 +184,13 @@ BBTestStopConformanceTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkStopped. // If not, change the state to EfiSimpleNetworkStopped. @@ -266,7 +278,7 @@ BBTestInitializeConformanceTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface // @@ -284,7 +296,13 @@ BBTestInitializeConformanceTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkStopped. // If not, change the state to EfiSimpleNetworkStopped. @@ -377,7 +395,7 @@ BBTestResetConformanceTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface // @@ -395,7 +413,13 @@ BBTestResetConformanceTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkStopped. // If not, change the state to EfiSimpleNetworkStopped. @@ -488,7 +512,7 @@ BBTestShutdownConformanceTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface // @@ -506,7 +530,13 @@ BBTestShutdownConformanceTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkStopped. // If not, change the state to EfiSimpleNetworkStopped. @@ -594,7 +624,7 @@ BBTestReceiveFilterConformanceTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_MAC_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 MAC; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface // @@ -612,7 +642,13 @@ BBTestReceiveFilterConformanceTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkStopped. // If not, change the state to EfiSimpleNetworkStopped. @@ -840,7 +876,7 @@ BBTestStationAddressConformanceTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface // @@ -858,7 +894,13 @@ BBTestStationAddressConformanceTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkStopped. // If not, change the state to EfiSimpleNetworkStopped. @@ -988,7 +1030,7 @@ BBTestStatisticsConformanceTest ( EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; EFI_NETWORK_STATISTICS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0StatisticsTable; UINTN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 StatisticsSize; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface // @@ -1006,7 +1048,13 @@ BBTestStatisticsConformanceTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkStopped. // If not, change the state to EfiSimpleNetworkStopped. @@ -1164,7 +1212,7 @@ BBTestMCastIpToMacConformanceTest ( EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; EFI_IP_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0IP; EFI_MAC_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 MAC; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface // @@ -1182,7 +1230,13 @@ BBTestMCastIpToMacConformanceTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkStopped. // If not, change the state to EfiSimpleNetworkStopped. @@ -1279,6 +1333,7 @@ BBTestNVDataConformanceTest ( EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2, State3; VOID =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*Buffer; UINT32 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0CheckPoint1State; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface // @@ -1296,7 +1351,13 @@ BBTestNVDataConformanceTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the network interface support NvData if not return // @@ -1525,6 +1586,7 @@ BBTestGetStatusConformanceTest ( EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; VOID =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*TxBuf; UINT32 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0InterruptStatus; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; //UINT32 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*pInterruptStatus; // @@ -1544,7 +1606,13 @@ BBTestGetStatusConformanceTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkStopped. // If not, change the state to EfiSimpleNetworkStopped. @@ -1717,7 +1785,7 @@ BBTestTransmitConformanceTest ( EFI_MAC_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 SrcAddr; EFI_MAC_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 DestAddr; UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Protocol; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface // @@ -1735,7 +1803,13 @@ BBTestTransmitConformanceTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkStopped. // If not, change the state to EfiSimpleNetworkStopped. @@ -1993,7 +2067,7 @@ BBTestReceiveConformanceTest ( EFI_MAC_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 SrcAddr; EFI_MAC_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 DestAddr; UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Protocol; - + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface // @@ -2011,7 +2085,13 @@ BBTestReceiveConformanceTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; - + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkStopped. // If not, change the state to EfiSimpleNetworkStopped. diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNetwork/Black= BoxTest/SimpleNetworkBBTestFunction.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/P= rotocol/SimpleNetwork/BlackBoxTest/SimpleNetworkBBTestFunction.c index 1259c42611fa..31c3590cd620 100644 --- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTest= /SimpleNetworkBBTestFunction.c +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTest= /SimpleNetworkBBTestFunction.c @@ -53,6 +53,7 @@ BBTestStartFunctionTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface @@ -71,6 +72,13 @@ BBTestStartFunctionTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkStopped. @@ -161,6 +169,7 @@ BBTestStopFunctionTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface @@ -179,6 +188,13 @@ BBTestStopFunctionTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkStarted. @@ -267,6 +283,7 @@ BBTestInitializeFunctionTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface @@ -285,6 +302,13 @@ BBTestInitializeFunctionTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkStarted. @@ -409,6 +433,7 @@ BBTestResetFunctionTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_SIMPLE_NETWORK_MODE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Mo= de; UINT32 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0InterruptStatus; VOID =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*TxBuf; @@ -434,6 +459,13 @@ BBTestResetFunctionTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkInitiali= zed. @@ -597,6 +629,7 @@ BBTestShutdownFunctionTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; // // Get the Standard Library Interface @@ -615,6 +648,13 @@ BBTestShutdownFunctionTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkInitiali= zed. @@ -705,6 +745,7 @@ BBTestReceiveFilterFunctionTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_SIMPLE_NETWORK_MODE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Mo= de; EFI_MAC_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 MAC; UINT32 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ReceiveFilterMask; @@ -728,6 +769,13 @@ BBTestReceiveFilterFunctionTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkInitiali= zed. @@ -967,6 +1015,7 @@ BBTestStationAddressFunctionTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_MAC_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 MacAddress; INTN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0CheckPoint1, CheckPoint2; EFI_MAC_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 BackMacAddress; @@ -988,6 +1037,13 @@ BBTestStationAddressFunctionTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkInitiali= zed. @@ -1125,6 +1181,7 @@ BBTestStatisticsFunctionTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_NETWORK_STATISTICS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0StatisticsTable1; EFI_NETWORK_STATISTICS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0StatisticsTable2; UINTN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 StatisticsSize; @@ -1160,6 +1217,13 @@ BBTestStatisticsFunctionTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkInitiali= zed. @@ -1296,6 +1360,7 @@ BBTestMCastIpToMacFunctionTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_IP_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0IP; EFI_MAC_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 MAC1; EFI_MAC_ADDRESS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 MAC2; @@ -1317,6 +1382,13 @@ BBTestMCastIpToMacFunctionTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkInitiali= zed. @@ -1432,6 +1504,7 @@ BBTestNVDataFunctionTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; VOID =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*Buffer; VOID =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*Buffer1; VOID =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*Buffer2; @@ -1453,6 +1526,13 @@ BBTestNVDataFunctionTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkInitiali= zed. @@ -1671,6 +1751,7 @@ BBTestGetStatusFunctionTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; VOID =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*TxBuf; UINT32 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0InterruptStatus; EFI_STATUS =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StatCode; @@ -1702,6 +1783,13 @@ BBTestGetStatusFunctionTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkInitiali= zed. @@ -1969,6 +2057,7 @@ BBTestTransmitFunctionTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_TEST_LOGGING_LIBRARY_PROTOCOL =C2=A0 =C2=A0 *LoggingLib; VOID =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*Buffer; UINTN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 HeaderSize; @@ -2015,6 +2104,13 @@ BBTestTransmitFunctionTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkInitiali= zed. @@ -2247,6 +2343,7 @@ BBTestReceiveFunctionTest ( EFI_TEST_ASSERTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0AssertionType; EFI_SIMPLE_NETWORK_PROTOCOL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *SnpInterfac= e; EFI_SIMPLE_NETWORK_STATE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0St= ate1, State2; + =C2=A0UINT16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*DevicePathStr; EFI_TEST_LOGGING_LIBRARY_PROTOCOL =C2=A0 =C2=A0 *LoggingLib; VOID =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*Buffer; UINTN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 HeaderSize; @@ -2290,6 +2387,13 @@ BBTestReceiveFunctionTest ( // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested // SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface; + =C2=A0DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid); + =C2=A0StandardLib->RecordMessage ( + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0StandardLib, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EFI_VERBOSE_LEVEL_= DEFAULT, + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L"Device Path: %s\= r\n", + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0DevicePathStr + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0); // // Check whether the state of network interface is EfiSimpleNetworkInitiali= zed. -- 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119938): https://edk2.groups.io/g/devel/message/119938 Mute This Topic: https://groups.io/mt/106873511/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --1tH6TdQf8YklKMdDzqaE Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
This email seems to be having formatting issues. Sending the patch inl= ine below.

From 36ca222cbd448c2de82f93975884af3c8cc94c71 Mon Sep 17 00:00:00 2001=
From: Prachotan Bathi <prachotan.bathi@arm.com>
Date: Tue,= 25 Jun 2024 11:10:57 -0500
Subject: [PATCH v2 1/1] EDK2-Test BUG4244 = V2 - Print PCIe device path for SCT
 failures.
Tests Modified:
AdapterInfoBBTest
HIIConfigAccessBBTest
PxeBaseCodeBBTest
SimpleNetworkBBTest
Uses SctDevicePathStrFromP= rotocol function from DevicePath.c
UEFI-SCT
Cc: G Edhaya Chandran <Edhaya.Chandran@arm.com>Cc: Barton Gao <gaojie@byosoft.com.cn>
Cc: Carolyn Gjertsen &= lt;Carolyn.Gjertsen@amd.com>
Cc: Samer El-Haj-Mahmoud <Samer.El-= Haj-Mahmoud@arm.com>
Cc: Eric Jin <eric.jin@intel.com>
C= c: Arvin Chen <arvinx.chen@intel.com>
Cc: Supreeth Venkatesh <= ;Supreeth.Venkatesh@amd.com>
Signed-off-by: Prachotan Bathi <pra= chotan.bathi@arm.com>
---
 uefi-sct/SctPkg/TestCase/UEFI/= EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoProtocolBBTest.inf   =        |   1 +
 uefi-sct/SctPkg/TestCase= /UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTest/SimpleNetworkBBTest.inf  = ;            |   3 +-
 uefi-sc= t/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoBBT= estConformance.c         |  28 +++-
 uef= i-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInf= oBBTestFunction.c            |  30 ++++-=
 uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/Blac= kBoxTest/HIIConfigAccessBBTestConformance.c |  20 ++-
 uefi-= sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/BlackBoxTest/HIIConfi= gAccessBBTestFunction.c    |  20 ++-
 uefi-sct/Sct= Pkg/TestCase/UEFI/EFI/Protocol/PxeBaseCode/BlackBoxTest/PxeBaseCodeBBTestCo= nformance.c         | 122 +++++++++++++++++-
 = ;uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/PxeBaseCode/BlackBoxTest/PxeBas= eCodeBBTestFunction.c            | 136 ++++++= ++++++++++++--
 uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/Simple= Network/BlackBoxTest/SimpleNetworkBBTestConformance.c     | 128 += +++++++++++++----
 uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/Sim= pleNetwork/BlackBoxTest/SimpleNetworkBBTestFunction.c       =  | 104 +++++++++++++++
 10 files changed, 539 insertions(+),= 53 deletions(-)
diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/Bl= ackBoxTest/AdapterInfoProtocolBBTest.inf b/uefi-sct/SctPkg/TestCase/UEFI/EF= I/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoProtocolBBTest.inf
inde= x b3bf99440705..12029bf693bc 100644
--- a/uefi-sct/SctPkg/TestCase/UEF= I/EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoProtocolBBTest.inf
= +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/A= dapterInfoProtocolBBTest.inf
@@ -49,3 +49,4 @@ [LibraryClasses]
&= nbsp;  EfiTestLib
 
 [Protocols]
+  gEfi= AdapterInformationProtocolGuid
\ No newline at end of file
diff -= -git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTes= t/SimpleNetworkBBTest.inf b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/Simp= leNetwork/BlackBoxTest/SimpleNetworkBBTest.inf
index 1d2d1d395fbb..580= a4c744dcc 100644
--- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/Simp= leNetwork/BlackBoxTest/SimpleNetworkBBTest.inf
+++ b/uefi-sct/SctPkg/T= estCase/UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTest/SimpleNetworkBBTest.in= f
@@ -51,4 +51,5 @@ [LibraryClasses]
   EfiTestLib
 
 [Protocols]
-  gEfiTestLoggingLibraryGuid
+  gEfiTestLoggingLibraryGuid
+  gBlackBoxEfiSimpleNetworkP= rotocolGuid
\ No newline at end of file
diff --git a/uefi-sct/Sct= Pkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoBBTestCo= nformance.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackB= oxTest/AdapterInfoBBTestConformance.c
index 19ccac93c7c7..3eb98ac6b15c= 100644
--- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/B= lackBoxTest/AdapterInfoBBTestConformance.c
+++ b/uefi-sct/SctPkg/TestC= ase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoBBTestConformance= .c
@@ -93,7 +93,7 @@ BBTestGetInformationConformanceTest (
 =  EFI_STANDARD_TEST_LIBRARY_PROTOCOL    *StandardLib;
&= nbsp;  EFI_STATUS               &nb= sp;            Status;
   EFI_= ADAPTER_INFORMATION_PROTOCOL      *AdapterInfo;
-
= +  UINT16                 &nbs= p;              *DevicePathStr;
&nb= sp;  //
   // init
   //
@@ -110,7 = +110,13 @@ BBTestGetInformationConformanceTest (
   if ( EFI= _ERROR(Status) ) {
     return Status;
  &nbs= p;}
-
+  DevicePathStr =3D SctDevicePathStrFromProtocol (Ada= pterInfo, &gEfiAdapterInformationProtocolGuid);
+  StandardLi= b->RecordMessage (
+             &nbs= p;  StandardLib,
+             &nbs= p;  EFI_VERBOSE_LEVEL_DEFAULT,
+         &nbs= p;      L"Device Path: %s\r\n",
+       =          DevicePathStr
+      =          );
   //
  &nbs= p;//Call check points
   //
@@ -137,6 +143,7 @@ BBTestS= etInformationConformanceTest (
   EFI_STANDARD_TEST_LIBRARY_= PROTOCOL    *StandardLib;
   EFI_STATUS   &nb= sp;                     &= nbsp;  Status;
   EFI_ADAPTER_INFORMATION_PROTOCOL &nbs= p;    *AdapterInfo;
+  UINT16       &nbs= p;                     &n= bsp;  *DevicePathStr;
            &= nbsp;                    =        
   //
   // init=
@@ -154,7 +161,13 @@ BBTestSetInformationConformanceTest (
 = ;  if ( EFI_ERROR(Status) ) {
     return Status;<= br />   }
-
+  DevicePathStr =3D SctDevicePathStrF= romProtocol (AdapterInfo, &gEfiAdapterInformationProtocolGuid);
+ =  StandardLib->RecordMessage (
+         &n= bsp;      StandardLib,
+         &n= bsp;      EFI_VERBOSE_LEVEL_DEFAULT,
+     &n= bsp;          L"Device Path: %s\r\n",
+  = ;              DevicePathStr
+ &nbs= p;              );
   //<= br />   //Call check points
   //
@@ -178,6 += 191,7 @@ BBTestGetSupportedTypesConformanceTest (
   EFI_STA= NDARD_TEST_LIBRARY_PROTOCOL    *StandardLib;
   EF= I_STATUS                   &nb= sp;        Status;
   EFI_ADAPTER_INFORM= ATION_PROTOCOL      *AdapterInfo;
+  UINT16  =                     &nbs= p;        *DevicePathStr;
      &nb= sp;                     &= nbsp;            
   //
&= nbsp;  // init
@@ -195,7 +209,13 @@ BBTestGetSupportedTypesConfor= manceTest (
   if ( EFI_ERROR(Status) ) {
   =  return Status;
   }
-
+  DevicePathStr= =3D SctDevicePathStrFromProtocol (AdapterInfo, &gEfiAdapterInformation= ProtocolGuid);
+  StandardLib->RecordMessage (
+   &= nbsp;            StandardLib,
+   &= nbsp;            EFI_VERBOSE_LEVEL_DEFAULT,+                L"Device Path:= %s\r\n",
+                Dev= icePathStr
+                );=
   //
   //Call check points
  &nb= sp;//
diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterI= nfo/BlackBoxTest/AdapterInfoBBTestFunction.c b/uefi-sct/SctPkg/TestCase/UEF= I/EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoBBTestFunction.c
in= dex 9372db298de0..788995c5e59f 100644
--- a/uefi-sct/SctPkg/TestCase/U= EFI/EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoBBTestFunction.c
= +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/A= dapterInfoBBTestFunction.c
@@ -68,7 +68,7 @@ BBTestGetInformationFunct= ionTest (
   EFI_STANDARD_TEST_LIBRARY_PROTOCOL    = ;*StandardLib;
   EFI_STATUS         &nb= sp;                  Status;   EFI_ADAPTER_INFORMATION_PROTOCOL      *Adap= terInfo;
-
+  UINT16           &nbs= p;                    *De= vicePathStr;
   //
   // init
  &nb= sp;//
@@ -85,7 +85,13 @@ BBTestGetInformationFunctionTest (
 = ;  if ( EFI_ERROR(Status) ) {
     return Status;<= br />   }
-
+  DevicePathStr =3D SctDevicePathStrF= romProtocol (AdapterInfo, &gEfiAdapterInformationProtocolGuid);
+ =  StandardLib->RecordMessage (
+         &n= bsp;      StandardLib,
+         &n= bsp;      EFI_VERBOSE_LEVEL_DEFAULT,
+     &n= bsp;          L"Device Path: %s\r\n",
+  = ;              DevicePathStr
+ &nbs= p;              );
   //<= br />   //Call check points
   //
@@ -108,7 += 114,7 @@ BBTestSetInformationFunctionTest (
   EFI_STANDARD_= TEST_LIBRARY_PROTOCOL    *StandardLib;
   EFI_STAT= US                     &n= bsp;      Status;
   EFI_ADAPTER_INFORMATION_= PROTOCOL      *AdapterInfo;
-
+  UINT16  = ;                     &nb= sp;        *DevicePathStr;
   //
&n= bsp;  // init
   //
@@ -125,7 +131,13 @@ BBTestSet= InformationFunctionTest (
   if ( EFI_ERROR(Status) ) {
     return Status;
   }
-
+  = ;DevicePathStr =3D SctDevicePathStrFromProtocol (AdapterInfo, &gEfiAdap= terInformationProtocolGuid);
+  StandardLib->RecordMessage (+                StandardLib,+                EFI_VERBOSE_LE= VEL_DEFAULT,
+                = L"Device Path: %s\r\n",
+             &n= bsp;  DevicePathStr
+             &= nbsp;  );
   //
   //Call check points   //
@@ -147,7 +159,7 @@ BBTestGetSupportedTypesFunctio= nTest (
   EFI_STANDARD_TEST_LIBRARY_PROTOCOL    *= StandardLib;
   EFI_STATUS          = ;                  Status;
   EFI_ADAPTER_INFORMATION_PROTOCOL      *Adapte= rInfo;
-  
+  UINT16          =                     &nbs= p;*DevicePathStr;
 
   //
   // ini= t
@@ -165,7 +177,13 @@ BBTestGetSupportedTypesFunctionTest (
&nbs= p;  if ( EFI_ERROR(Status) ) {
     return Status;=
   }
-
+  DevicePathStr =3D SctDevicePathStr= FromProtocol (AdapterInfo, &gEfiAdapterInformationProtocolGuid);
+=  StandardLib->RecordMessage (
+         &= nbsp;      StandardLib,
+         &= nbsp;      EFI_VERBOSE_LEVEL_DEFAULT,
+     &= nbsp;          L"Device Path: %s\r\n",
+ &nbs= p;              DevicePathStr
+ &nb= sp;              );
   //=
   //Call check points
   //
diff --git= a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/BlackBoxTest/= HIIConfigAccessBBTestConformance.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Prot= ocol/HIIConfigAccess/BlackBoxTest/HIIConfigAccessBBTestConformance.c
i= ndex 964a64cd1d34..098eec99b5f2 100644
--- a/uefi-sct/SctPkg/TestCase/= UEFI/EFI/Protocol/HIIConfigAccess/BlackBoxTest/HIIConfigAccessBBTestConform= ance.c
+++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAcces= s/BlackBoxTest/HIIConfigAccessBBTestConformance.c
@@ -120,7 +120,7 @@ = BBTestExtractConfigConformanceTest (
   EFI_STATUS   &n= bsp;                     =    Status;
   EFI_HII_CONFIG_ACCESS_PROTOCOL  = ;      *HIIConfigAccess;
   EFI_HII_CONFIG_RO= UTING_PROTOCOL       *HIIConfigRouting;
-  
+=  UINT16                  = ;              *DevicePathStr;
&nbs= p;  //
   // init
   //
@@ -137,7 += 137,13 @@ BBTestExtractConfigConformanceTest (
   if (EFI_ER= ROR(Status)) {
     return Status;
   }<= br />-
+  DevicePathStr =3D SctDevicePathStrFromProtocol (HIIConf= igAccess, &gBlackBoxEfiHIIConfigAccessProtocolGuid);
+  Stand= ardLib->RecordMessage (
+            =    StandardLib,
+            =    EFI_VERBOSE_LEVEL_DEFAULT,
+        =        L"Device Path: %s\r\n",
+     &n= bsp;          DevicePathStr
+     &= nbsp;          );
   //
 =  // Get the Config Routing Protocol Interface
   //@@ -170,7 +176,7 @@ BBTestRouteConfigConformanceTest (
   = ;EFI_STATUS                   =          Status;
   EFI_HII_CONFIG_= ACCESS_PROTOCOL        *HIIConfigAccess;
  &n= bsp;EFI_HII_CONFIG_ROUTING_PROTOCOL       *HIIConfigRouting;=
-  
+  UINT16            = ;                    *Dev= icePathStr;
   //
   // init
  &nbs= p;//
@@ -187,7 +193,13 @@ BBTestRouteConfigConformanceTest (
&nbs= p;  if (EFI_ERROR(Status)) {
     return Status;   }
-
+  DevicePathStr =3D SctDevicePathStrFr= omProtocol (HIIConfigAccess, &gBlackBoxEfiHIIConfigAccessProtocolGuid);=
+  StandardLib->RecordMessage (
+       &= nbsp;        StandardLib,
+       &= nbsp;        EFI_VERBOSE_LEVEL_DEFAULT,
+   &= nbsp;            L"Device Path: %s\r\n",
+                DevicePathStr
+                );
  &= nbsp;//
   // Get the Config Routing Protocol Interface
   //
diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protoc= ol/HIIConfigAccess/BlackBoxTest/HIIConfigAccessBBTestFunction.c b/uefi-sct/= SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/BlackBoxTest/HIIConfigAcc= essBBTestFunction.c
index fb4ee9b66d4f..a4f123276db1 100644
--- a= /uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/HIIConfigAccess/BlackBoxTest/HI= IConfigAccessBBTestFunction.c
+++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/= Protocol/HIIConfigAccess/BlackBoxTest/HIIConfigAccessBBTestFunction.c
= @@ -124,7 +124,7 @@ BBTestExtractConfigFunctionTest (
   EFI= _STATUS                   &nbs= p;        Status;
   EFI_HII_CONFIG_ACCE= SS_PROTOCOL        *HIIConfigAccess;
   = EFI_HII_CONFIG_ROUTING_PROTOCOL       *HIIConfigRouting;
-  
+  UINT16             &n= bsp;                  *DeviceP= athStr;
   //
   // init
   //=
@@ -141,7 +141,13 @@ BBTestExtractConfigFunctionTest (
  &n= bsp;if (EFI_ERROR(Status)) {
     return Status;
&= nbsp;  }
-
+  DevicePathStr =3D SctDevicePathStrFromPro= tocol (HIIConfigAccess, &gBlackBoxEfiHIIConfigAccessProtocolGuid);
+  StandardLib->RecordMessage (
+        =        StandardLib,
+        =        EFI_VERBOSE_LEVEL_DEFAULT,
+    =            L"Device Path: %s\r\n",
+ &n= bsp;              DevicePathStr
+ &= nbsp;              );
   = //
   // Get the Config Routing Protocol Interface
&nbs= p;  //
@@ -173,7 +179,7 @@ BBTestRouteConfigFunctionTest (
&= nbsp;  EFI_STATUS               &nb= sp;            Status;
   EFI_= HII_CONFIG_ACCESS_PROTOCOL        *HIIConfigAccess;
   EFI_HII_CONFIG_ROUTING_PROTOCOL       *HIICon= figRouting;
-
+  UINT16           &= nbsp;                    = *DevicePathStr;
   //
   // init
  =  //
@@ -190,7 +196,13 @@ BBTestRouteConfigFunctionTest (
&nb= sp;  if (EFI_ERROR(Status)) {
     return Status;<= br />   }
-  
+  DevicePathStr =3D SctDeviceP= athStrFromProtocol (HIIConfigAccess, &gBlackBoxEfiHIIConfigAccessProtoc= olGuid);
+  StandardLib->RecordMessage (
+     =            StandardLib,
+     =            EFI_VERBOSE_LEVEL_DEFAULT,
+ =                L"Device Path: %s\r\= n",
+                DevicePat= hStr
+                );
=    //
   // Get the Config Routing Protocol Interf= ace
   //
diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EF= I/Protocol/PxeBaseCode/BlackBoxTest/PxeBaseCodeBBTestConformance.c b/uefi-s= ct/SctPkg/TestCase/UEFI/EFI/Protocol/PxeBaseCode/BlackBoxTest/PxeBaseCodeBB= TestConformance.c
index d03eb850c5ad..8e7b0f7481b3 100644
--- a/u= efi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/PxeBaseCode/BlackBoxTest/PxeBaseC= odeBBTestConformance.c
+++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protoco= l/PxeBaseCode/BlackBoxTest/PxeBaseCodeBBTestConformance.c
@@ -50,7 +50= ,7 @@ BBTestNewStartConformanceTest (
   EFI_STATUS   &= nbsp;                    =    Status;
   EFI_TEST_ASSERTION     &n= bsp;              AssertionType;
&n= bsp;  EFI_PXE_BASE_CODE_PROTOCOL           &n= bsp;*BcInterface;
-
+  UINT16         &n= bsp;                     =  *DevicePathStr;
   //
   // Get the Sta= ndard Library Interface
   //
@@ -68,6 +68,13 @@ BBTest= NewStartConformanceTest (
   // Get the EFI_PXE_BASE_CODE_PR= OTOCOL Protocol interface to be tested
   //
  &nb= sp;BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+ &n= bsp;DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlac= kBoxEfiPxeBaseCodeProtocolGuid);
+  StandardLib->RecordMessage= (
+                StandardLi= b,
+                EFI_VERBOS= E_LEVEL_DEFAULT,
+               &n= bsp;L"Device Path: %s\r\n",
+            = ;    DevicePathStr
+           &nbs= p;    );
 
   //
   // Di= sable EFI_PXE_BASE_CODE_PROTOCOL Protocol interface
@@ -237,6 +244,7 @= @ BBTestNewStopConformanceTest (
   EFI_STATUS    =                     &nbs= p;  Status;
   EFI_TEST_ASSERTION       =              AssertionType;
  =  EFI_PXE_BASE_CODE_PROTOCOL            *= BcInterface;
+  UINT16             =                    *Devic= ePathStr;
 
   //
   // Get the Sta= ndard Library Interface
@@ -255,6 +263,13 @@ BBTestNewStopConformanceT= est (
   // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol inte= rface to be tested
   //
   BcInterface =3D (= EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+  DevicePathStr = =3D SctDevicePathStrFromProtocol (BcInterface, &gBlackBoxEfiPxeBaseCode= ProtocolGuid);
+  StandardLib->RecordMessage (
+   &= nbsp;            StandardLib,
+   &= nbsp;            EFI_VERBOSE_LEVEL_DEFAULT,+                L"Device Path:= %s\r\n",
+                Dev= icePathStr
+                );=
 
   //
   // Disable EFI_PXE_BASE= _CODE_PROTOCOL Protocol interface
@@ -418,6 +433,7 @@ BBTestStartConfo= rmanceTest (
   EFI_STATUS          = ;                  Status;
   EFI_TEST_ASSERTION            =        AssertionType;
   EFI_PXE_BASE_C= ODE_PROTOCOL            *BcInterface;
+ =  UINT16                  =              *DevicePathStr;
 = ;
   //
   // Get the Standard Library Interf= ace
@@ -436,6 +452,13 @@ BBTestStartConformanceTest (
  &nbs= p;// Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested
   //
   BcInterface =3D (EFI_PXE_BASE_CODE_PROT= OCOL *)ClientInterface;
+  DevicePathStr =3D SctDevicePathStrFrom= Protocol (BcInterface, &gBlackBoxEfiPxeBaseCodeProtocolGuid);
+ &n= bsp;StandardLib->RecordMessage (
+         &nbs= p;      StandardLib,
+         &nbs= p;      EFI_VERBOSE_LEVEL_DEFAULT,
+     &nbs= p;          L"Device Path: %s\r\n",
+   =              DevicePathStr
+  =              );
 
 =  //
   // Change EFI_PXE_BASE_CODE_PROTOCOL Protocol s= tate to enabled
@@ -522,6 +545,7 @@ BBTestStopConformanceTest (
&= nbsp;  EFI_STATUS               &nb= sp;            Status;
   EFI_= TEST_ASSERTION                 &nbs= p;  AssertionType;
   EFI_PXE_BASE_CODE_PROTOCOL  =          *BcInterface;
+  UINT16  =                     &nbs= p;        *DevicePathStr;
 
   = ;//
   // Get the Standard Library Interface
@@ -540,6 = +564,13 @@ BBTestStopConformanceTest (
   // Get the EFI_PXE= _BASE_CODE_PROTOCOL Protocol interface to be tested
   //   BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterfa= ce;
+  DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterfac= e, &gBlackBoxEfiPxeBaseCodeProtocolGuid);
+  StandardLib->= RecordMessage (
+               &nb= sp;StandardLib,
+               &nb= sp;EFI_VERBOSE_LEVEL_DEFAULT,
+           &nb= sp;    L"Device Path: %s\r\n",
+        =        DevicePathStr
+        = ;        );
 
   //
 = ;  // Make sure the EFI_PXE_BASE_CODE_PROTOCOL Protocol is disabled@@ -606,6 +637,7 @@ BBTestDhcpConformanceTest (
   EFI_ST= ATUS                     =        Status;
   EFI_TEST_ASSERTION &nb= sp;                  Assertion= Type;
   EFI_PXE_BASE_CODE_PROTOCOL       &nb= sp;    *BcInterface;
+  UINT16       &nb= sp;                     &= nbsp;  *DevicePathStr;
 
   //
  &n= bsp;// Get the Standard Library Interface
@@ -624,6 +656,13 @@ BBTestD= hcpConformanceTest (
   // Get the EFI_PXE_BASE_CODE_PROTOCO= L Protocol interface to be tested
   //
   Bc= Interface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+  D= evicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlackBoxE= fiPxeBaseCodeProtocolGuid);
+  StandardLib->RecordMessage (+                StandardLib,+                EFI_VERBOSE_LEV= EL_DEFAULT,
+                L= "Device Path: %s\r\n",
+             &nb= sp;  DevicePathStr
+             &n= bsp;  );
 
   //
   // Change = EFI_PXE_BASE_CODE_PROTOCOL Protocol to disabled
@@ -791,6 +830,7 @@ BB= TestDiscoverConformanceTest (
   EFI_STATUS     &n= bsp;                     =  Status;
   EFI_TEST_ASSERTION       &nb= sp;            AssertionType;
  &nb= sp;EFI_PXE_BASE_CODE_PROTOCOL            *BcI= nterface;
+  UINT16             &nb= sp;                  *DevicePa= thStr;
 
   //
   // Get the Standa= rd Library Interface
@@ -809,6 +849,13 @@ BBTestDiscoverConformanceTes= t (
   // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interf= ace to be tested
   //
   BcInterface =3D (EF= I_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+  DevicePathStr =3D = SctDevicePathStrFromProtocol (BcInterface, &gBlackBoxEfiPxeBaseCodeProt= ocolGuid);
+  StandardLib->RecordMessage (
+    = ;            StandardLib,
+    = ;            EFI_VERBOSE_LEVEL_DEFAULT,
= +                L"Device Path: %s\= r\n",
+                DeviceP= athStr
+                );
 
   //
   // Change EFI_PXE_BASE_CODE= _PROTOCOL Protocol to disabled
@@ -988,6 +1035,7 @@ BBTestMtftpConform= anceTest (
   EFI_STATUS           =                  Status;
=    EFI_TEST_ASSERTION             &= nbsp;      AssertionType;
   EFI_PXE_BASE_COD= E_PROTOCOL            *BcInterface;
+ &n= bsp;UINT16                   &= nbsp;            *DevicePathStr;
  =  UINTN                   =               BlockSize=3D512;
&nbs= p;  EFI_IP_ADDRESS               &n= bsp;        ServerIp;
   CHAR8   &n= bsp;                     =         *FileName;
@@ -1013,6 +1061,13 @@ BBTestMt= ftpConformanceTest (
   // Get the EFI_PXE_BASE_CODE_PROTOCO= L Protocol interface to be tested
   //
   Bc= Interface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+  D= evicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlackBoxE= fiPxeBaseCodeProtocolGuid);
+  StandardLib->RecordMessage (+                StandardLib,+                EFI_VERBOSE_LEV= EL_DEFAULT,
+                L= "Device Path: %s\r\n",
+             &nb= sp;  DevicePathStr
+             &n= bsp;  );
 
   //
   // Fill Pa= rameters (ServerIp, FileName, BufferPtr)
@@ -1473,6 +1528,7 @@ BBTestU= dpWriteConformanceTest (
   EFI_STATUS       =                      = ;Status;
   EFI_TEST_ASSERTION         &= nbsp;          AssertionType;
   EF= I_PXE_BASE_CODE_PROTOCOL            *BcInterf= ace;
+  UINT16               &= nbsp;                *DevicePathStr= ;
   EFI_IP_ADDRESS            = ;            DestIp;
   EFI_PX= E_BASE_CODE_UDP_PORT            DestPort;
   UINTN                = ;                 BufferSize;
= @@ -1501,6 +1557,13 @@ BBTestUdpWriteConformanceTest (
   //= Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested
&n= bsp;  //
   BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL= *)ClientInterface;
+  DevicePathStr =3D SctDevicePathStrFromProt= ocol (BcInterface, &gBlackBoxEfiPxeBaseCodeProtocolGuid);
+  = StandardLib->RecordMessage (
+           &= nbsp;    StandardLib,
+           &= nbsp;    EFI_VERBOSE_LEVEL_DEFAULT,
+       &= nbsp;        L"Device Path: %s\r\n",
+   &nbs= p;            DevicePathStr
+   &nb= sp;            );
 
  &nb= sp;// Disable EFI_PXE_BASE_CODE_PROTOCOL protocol if needed
  &nb= sp;Status =3D ChangePxeState (BcInterface, FALSE, BcInterface->Mode->= Started, FALSE);
@@ -1689,6 +1752,7 @@ BBTestUdpReadConformanceTest (<= br />   EFI_STATUS             &nbs= p;              Status;
  &nbs= p;EFI_TEST_ASSERTION                = ;    AssertionType;
   EFI_PXE_BASE_CODE_PROTOCOL =            *BcInterface;
+  UINT16 =                      = ;          *DevicePathStr;
   UINT1= 6                     &nb= sp;          OpFlags;
   UINTN &nbs= p;                     &n= bsp;         BufferSize;
   VOID   =                      = ;          *BufferPtr;
@@ -1713,6 +1777,13 @@= BBTestUdpReadConformanceTest (
   // Get the EFI_PXE_BASE_C= ODE_PROTOCOL Protocol interface to be tested
   //
&nbs= p;  BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+  DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &= ;gBlackBoxEfiPxeBaseCodeProtocolGuid);
+  StandardLib->RecordM= essage (
+                Stan= dardLib,
+                EFI_= VERBOSE_LEVEL_DEFAULT,
+             &nb= sp;  L"Device Path: %s\r\n",
+          =      DevicePathStr
+          = ;      );
 
   // Malloc for data   BufferSize =3D MAX_UDP_SIZE;
@@ -2004,6 +2075,7 @@ BB= TestSetIpFilterConformanceTest (
   EFI_STATUS    =                     &nbs= p;  Status;
   EFI_TEST_ASSERTION       =              AssertionType;
  =  EFI_PXE_BASE_CODE_PROTOCOL            *= BcInterface;
+  UINT16             =                    *Devic= ePathStr;
   EFI_PXE_BASE_CODE_IP_FILTER      = ;     BcIpFilter;
 
   //
@@ -2023,= 6 +2095,13 @@ BBTestSetIpFilterConformanceTest (
   // Get t= he EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested
  &= nbsp;//
   BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)Cli= entInterface;
+  DevicePathStr =3D SctDevicePathStrFromProtocol (= BcInterface, &gBlackBoxEfiPxeBaseCodeProtocolGuid);
+  Standa= rdLib->RecordMessage (
+             =    StandardLib,
+             =    EFI_VERBOSE_LEVEL_DEFAULT,
+         =        L"Device Path: %s\r\n",
+     &nb= sp;          DevicePathStr
+     &n= bsp;          );
 
   // = Disable EFI_PXE_BASE_CODE_PROTOCOL protocol if needed
   Sta= tus =3D ChangePxeState (BcInterface, FALSE, BcInterface->Mode->Starte= d, FALSE);
@@ -2084,6 +2163,7 @@ BBTestArpConformanceAutoTest (
&= nbsp;  EFI_STATUS               &nb= sp;            Status;
   EFI_= TEST_ASSERTION                 &nbs= p;  AssertionType;
   EFI_PXE_BASE_CODE_PROTOCOL  =          *BcInterface;
+  UINT16  =                     &nbs= p;        *DevicePathStr;
   EFI_IP_ADDR= ESS                     &= nbsp;  IpAddr;
 
   BcInterface =3D (EFI_PXE_= BASE_CODE_PROTOCOL *)ClientInterface;
@@ -2110,7 +2190,13 @@ BBTestArp= ConformanceAutoTest (
             =       );
     return Status;
 = ;  }
-
+  DevicePathStr =3D SctDevicePathStrFromProtoco= l (BcInterface, &gBlackBoxEfiPxeBaseCodeProtocolGuid);
+  Sta= ndardLib->RecordMessage (
+           &nbs= p;    StandardLib,
+           &nbs= p;    EFI_VERBOSE_LEVEL_DEFAULT,
+       &nbs= p;        L"Device Path: %s\r\n",
+     =            DevicePathStr
+    =            );
   //
&nbs= p;  // Disable EFI_PXE_BASE_CODE_PROTOCOL Protocol interface
&nbs= p;  //
@@ -2232,6 +2318,7 @@ BBTestArpConformanceManualTest (
   EFI_STATUS               =              Status;
   E= FI_TEST_ASSERTION                 &= nbsp;  AssertionType;
   EFI_PXE_BASE_CODE_PROTOCOL &nb= sp;          *BcInterface;
+  UINT16 &nb= sp;                     &= nbsp;        *DevicePathStr;
   EFI_IP_A= DDRESS                    = ;    IpAddr;
   EFI_MAC_ADDRESS     &nbs= p;                 MacAddr;
&n= bsp;  EFI_INI_FILE_HANDLE             &n= bsp;     FileHandle;
@@ -2263,6 +2350,13 @@ BBTestArpConform= anceManualTest (
   // Get the EFI_PXE_BASE_CODE_PROTOCOL Pr= otocol interface to be tested
   //
   BcInte= rface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+  Devic= ePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlackBoxEfiPx= eBaseCodeProtocolGuid);
+  StandardLib->RecordMessage (
+=                StandardLib,
+=                EFI_VERBOSE_LEVEL_D= EFAULT,
+                L"Dev= ice Path: %s\r\n",
+               =  DevicePathStr
+              =  );
 
   // Disable EFI_PXE_BASE_CODE_PROTOC= OL protocol if needed
   Status =3D ChangePxeState (BcInterf= ace, FALSE, BcInterface->Mode->Started, FALSE);
@@ -2452,6 +2546= ,7 @@ BBTestSetParametersConformanceTest (
   EFI_STATUS &nb= sp;                     &= nbsp;    Status;
   EFI_TEST_ASSERTION   &nbs= p;                AssertionType;   EFI_PXE_BASE_CODE_PROTOCOL         &nbs= p;  *BcInterface;
+  UINT16         &nbs= p;                     &n= bsp;*DevicePathStr;
 
   //
   // G= et the Standard Library Interface
@@ -2470,6 +2565,13 @@ BBTestSetPara= metersConformanceTest (
   // Get the EFI_PXE_BASE_CODE_PROT= OCOL Protocol interface to be tested
   //
   = ;BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+ &nbs= p;DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlackB= oxEfiPxeBaseCodeProtocolGuid);
+  StandardLib->RecordMessage (=
+                StandardLib,=
+                EFI_VERBOSE_= LEVEL_DEFAULT,
+               &nbs= p;L"Device Path: %s\r\n",
+             =    DevicePathStr
+            =    );
 
   // Disable EFI_PXE_BASE_CODE= _PROTOCOL protocol if needed
   Status =3D ChangePxeState (B= cInterface, FALSE, BcInterface->Mode->Started, FALSE);
@@ -2531,= 6 +2633,7 @@ BBTestSetStationIpConformanceTest (
   EFI_STAT= US                     &n= bsp;      Status;
   EFI_TEST_ASSERTION  = ;                  AssertionTy= pe;
   EFI_PXE_BASE_CODE_PROTOCOL        = ;    *BcInterface;
+  UINT16        = ;                     &nb= sp;  *DevicePathStr;
 
   //
  &nbs= p;// Get the Standard Library Interface
@@ -2549,6 +2652,13 @@ BBTestS= etStationIpConformanceTest (
   // Get the EFI_PXE_BASE_CODE= _PROTOCOL Protocol interface to be tested
   //
  =  BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+=  DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gB= lackBoxEfiPxeBaseCodeProtocolGuid);
+  StandardLib->RecordMess= age (
+                Standar= dLib,
+                EFI_VER= BOSE_LEVEL_DEFAULT,
+              =  L"Device Path: %s\r\n",
+           &n= bsp;    DevicePathStr
+           &= nbsp;    );
 
   // Disable EFI_PXE_BASE= _CODE_PROTOCOL protocol if needed
   Status =3D ChangePxeSta= te (BcInterface, FALSE, BcInterface->Mode->Started, FALSE);
@@ -= 2603,6 +2713,7 @@ BBTestSetPacketsConformanceTest (
   EFI_S= TATUS                    =        Status;
   EFI_TEST_ASSERTION &n= bsp;                  Assertio= nType;
   EFI_PXE_BASE_CODE_PROTOCOL       &n= bsp;    *BcInterface;
+  UINT16       &n= bsp;                     =    *DevicePathStr;
 
   //
  &= nbsp;// Get the Standard Library Interface
@@ -2621,6 +2732,13 @@ BBTe= stSetPacketsConformanceTest (
   // Get the EFI_PXE_BASE_COD= E_PROTOCOL Protocol interface to be tested
   //
 =  BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
= +  DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &g= BlackBoxEfiPxeBaseCodeProtocolGuid);
+  StandardLib->RecordMes= sage (
+                Standa= rdLib,
+                EFI_VE= RBOSE_LEVEL_DEFAULT,
+              = ;  L"Device Path: %s\r\n",
+           &= nbsp;    DevicePathStr
+           =      );
 
   // Disable EFI_PXE_BAS= E_CODE_PROTOCOL protocol if needed
   Status =3D ChangePxeSt= ate (BcInterface, FALSE, BcInterface->Mode->Started, FALSE);
dif= f --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/PxeBaseCode/BlackBoxTe= st/PxeBaseCodeBBTestFunction.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol= /PxeBaseCode/BlackBoxTest/PxeBaseCodeBBTestFunction.c
index 38368b521f= ce..5a10e48f3caf 100644
--- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protoc= ol/PxeBaseCode/BlackBoxTest/PxeBaseCodeBBTestFunction.c
+++ b/uefi-sct= /SctPkg/TestCase/UEFI/EFI/Protocol/PxeBaseCode/BlackBoxTest/PxeBaseCodeBBTe= stFunction.c
@@ -242,6 +242,7 @@ BBTestNewStartFunctionTest (
&nb= sp;  EFI_STATUS                = ;            Status;
   EFI_TE= ST_ASSERTION                  =  AssertionType;
   EFI_PXE_BASE_CODE_PROTOCOL   &= nbsp;        *BcInterface;
+  UINT16   &= nbsp;                    =        *DevicePathStr;
 
   U= INT32                    =            Index;
   CHAR8 &n= bsp;                     =           *TempPointer;
@@ -265,6 +266,13 @@ = BBTestNewStartFunctionTest (
   // Get the EFI_PXE_BASE_CODE= _PROTOCOL Protocol interface to be tested
   //
  =  BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+=  DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gB= lackBoxEfiPxeBaseCodeProtocolGuid);
+  StandardLib->RecordMess= age (
+                Standar= dLib,
+                EFI_VER= BOSE_LEVEL_DEFAULT,
+              =  L"Device Path: %s\r\n",
+           &n= bsp;    DevicePathStr
+           &= nbsp;    );
 
   //
   //= Disable EFI_PXE_BASE_CODE_PROTOCOL Protocol interface
@@ -991,6 +999,= 7 @@ BBTestNewSetIpFilterFunctionTest (
   EFI_STATUS  =                     &nbs= p;     Status;
   EFI_TEST_ASSERTION    =                 AssertionType;
   EFI_PXE_BASE_CODE_PROTOCOL          = ;  *BcInterface;
+  UINT16          = ;                     &nb= sp;*DevicePathStr;
   EFI_PXE_BASE_CODE_IP_FILTER   &nb= sp;        BcIpFilter;
   UINT8   &= nbsp;                    =          Index;
 
@@ -1014,6 +1023= ,13 @@ BBTestNewSetIpFilterFunctionTest (
   // Get the EFI_= PXE_BASE_CODE_PROTOCOL Protocol interface to be tested
   //=
   BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInte= rface;
+  DevicePathStr =3D SctDevicePathStrFromProtocol (BcInter= face, &gBlackBoxEfiPxeBaseCodeProtocolGuid);
+  StandardLib-&= gt;RecordMessage (
+               =  StandardLib,
+               =  EFI_VERBOSE_LEVEL_DEFAULT,
+           =      L"Device Path: %s\r\n",
+       &nb= sp;        DevicePathStr
+       &n= bsp;        );
 
   //
&n= bsp;  // Disable EFI_PXE_BASE_CODE_PROTOCOL Protocol interface
@@= -1198,7 +1214,8 @@ BBTestNewStopFunctionTest (
   EFI_STAND= ARD_TEST_LIBRARY_PROTOCOL    *StandardLib;
   EFI_= STATUS                    = ;        Status;
   EFI_TEST_ASSERTION &= nbsp;                  Asserti= onType;
-  EFI_PXE_BASE_CODE_PROTOCOL        =   *BcInterface;
+  EFI_PXE_BASE_CODE_PROTOCOL    =        *BcInterface;
+  UINT16    =                     &nbs= p;      *DevicePathStr;
 
   //
   // Get the Standard Library Interface
@@ -1217,6 +1234,= 13 @@ BBTestNewStopFunctionTest (
   // Get the EFI_PXE_BASE= _CODE_PROTOCOL Protocol interface to be tested
   //
&n= bsp;  BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;+  DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &a= mp;gBlackBoxEfiPxeBaseCodeProtocolGuid);
+  StandardLib->Recor= dMessage (
+                St= andardLib,
+                EF= I_VERBOSE_LEVEL_DEFAULT,
+             &= nbsp;  L"Device Path: %s\r\n",
+         &nbs= p;      DevicePathStr
+         &nb= sp;      );
 
   //
  &nb= sp;// Disable EFI_PXE_BASE_CODE_PROTOCOL Protocol interface
@@ -1340,7= +1364,8 @@ BBTestStartFunctionTest (
   EFI_STANDARD_TEST_L= IBRARY_PROTOCOL    *StandardLib;
   EFI_STATUS &nb= sp;                     &= nbsp;    Status;
   EFI_TEST_ASSERTION   &nbs= p;                AssertionType;-  EFI_PXE_BASE_CODE_PROTOCOL           *B= cInterface;
+  EFI_PXE_BASE_CODE_PROTOCOL       &n= bsp;    *BcInterface;
+  UINT16       &n= bsp;                     =    *DevicePathStr;
 
   //
  &= nbsp;// Get the Standard Library Interface
@@ -1359,6 +1384,13 @@ BBTe= stStartFunctionTest (
   // Get the EFI_PXE_BASE_CODE_PROTOC= OL Protocol interface to be tested
   //
   B= cInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+  = DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlackBox= EfiPxeBaseCodeProtocolGuid);
+  StandardLib->RecordMessage (+                StandardLib,+                EFI_VERBOSE_LE= VEL_DEFAULT,
+                = L"Device Path: %s\r\n",
+             &n= bsp;  DevicePathStr
+             &= nbsp;  );
 
   Status =3D ChangePxeState (BcI= nterface, FALSE, BcInterface->Mode->Started, FALSE);
  &nbs= p;if (EFI_ERROR(Status)) {
@@ -1710,7 +1742,8 @@ BBTestStopFunctionTes= t (
   EFI_STANDARD_TEST_LIBRARY_PROTOCOL    *Stan= dardLib;
   EFI_STATUS           &n= bsp;                Status;
&n= bsp;  EFI_TEST_ASSERTION             &nb= sp;      AssertionType;
-  EFI_PXE_BASE_CODE_PROTO= COL           *BcInterface;
+  EFI_PXE_B= ASE_CODE_PROTOCOL            *BcInterface;+  UINT16                 &= nbsp;              *DevicePathStr;
=  
   //
   // Get the Standard Library I= nterface
@@ -1729,6 +1762,13 @@ BBTestStopFunctionTest (
  &= nbsp;// Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested<= br />   //
   BcInterface =3D (EFI_PXE_BASE_CODE_P= ROTOCOL *)ClientInterface;
+  DevicePathStr =3D SctDevicePathStrF= romProtocol (BcInterface, &gBlackBoxEfiPxeBaseCodeProtocolGuid);
+=  StandardLib->RecordMessage (
+         &= nbsp;      StandardLib,
+         &= nbsp;      EFI_VERBOSE_LEVEL_DEFAULT,
+     &= nbsp;          L"Device Path: %s\r\n",
+ &nbs= p;              DevicePathStr
+ &nb= sp;              );
 
&nb= sp;  //
   // Enable EFI_PXE_BASE_CODE_PROTOCOL if need= ed
@@ -1783,7 +1823,8 @@ BBTestDhcpFunctionTest (
   EF= I_TEST_LOGGING_LIBRARY_PROTOCOL     *LoggingLib;
  &nbs= p;EFI_STATUS                  =          Status;
   EFI_TEST_ASSER= TION                    A= ssertionType;
-  EFI_PXE_BASE_CODE_PROTOCOL       =     *BcInterface;
+  EFI_PXE_BASE_CODE_PROTOCOL   =          *BcInterface;
+  UINT16   =                      = ;        *DevicePathStr;
   BOOLEAN &nbs= p;                     &n= bsp;       ret;
 
   //
@@ -18= 13,6 +1854,13 @@ BBTestDhcpFunctionTest (
   // Get the EFI_= PXE_BASE_CODE_PROTOCOL Protocol interface to be tested
   //=
   BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInte= rface;
+  DevicePathStr =3D SctDevicePathStrFromProtocol (BcInter= face, &gBlackBoxEfiPxeBaseCodeProtocolGuid);
+  StandardLib-&= gt;RecordMessage (
+               =  StandardLib,
+               =  EFI_VERBOSE_LEVEL_DEFAULT,
+           =      L"Device Path: %s\r\n",
+       &nb= sp;        DevicePathStr
+       &n= bsp;        );
 
   // Enable = EFI_PXE_BASE_CODE_PROTOCOL if needed
   Status =3D ChangePxe= State (BcInterface, FALSE, BcInterface->Mode->Started, TRUE);
@@= -1917,7 +1965,8 @@ BBTestDiscoverFunctionTest (
   EFI_TEST= _LOGGING_LIBRARY_PROTOCOL     *LoggingLib;
   EFI_= STATUS                    = ;        Status;
   EFI_TEST_ASSERTION &= nbsp;                  Asserti= onType;
-  EFI_PXE_BASE_CODE_PROTOCOL        =   *BcInterface;
+  EFI_PXE_BASE_CODE_PROTOCOL    =        *BcInterface;
+  UINT16    =                     &nbs= p;      *DevicePathStr;
   UINT16   &nbs= p;                     &n= bsp;      Layer;
 
   //
@@ -1= 947,6 +1996,13 @@ BBTestDiscoverFunctionTest (
   // Get the= EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested
  &nb= sp;//
   BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)Clien= tInterface;
+  DevicePathStr =3D SctDevicePathStrFromProtocol (Bc= Interface, &gBlackBoxEfiPxeBaseCodeProtocolGuid);
+  Standard= Lib->RecordMessage (
+             &n= bsp;  StandardLib,
+             &n= bsp;  EFI_VERBOSE_LEVEL_DEFAULT,
+         &n= bsp;      L"Device Path: %s\r\n",
+      = ;          DevicePathStr
+     &nbs= p;          );
 
   Statu= s =3D ReInitPxeBaseCode (BcInterface);
   if (EFI_ERROR(Stat= us))
@@ -2057,6 +2113,7 @@ BBTestMtftpFunctionTest (
   = ;EFI_INI_FILE_HANDLE                = ;    FileHandle;
   EFI_STATUS      = ;                     &nb= sp; Status;
   EFI_PXE_BASE_CODE_PROTOCOL     &nbs= p;      *BcInterface;
+  UINT16     &nbs= p;                     &n= bsp;    *DevicePathStr;
   EFI_SIMPLE_NETWORK_PROT= OCOL           *SnpInterface;
   UI= NTN                     &= nbsp;            FileSize;
   = EFI_TEST_ASSERTION                 =     AssertionType;
@@ -2096,6 +2153,13 @@ BBTestMtftpFunctio= nTest (
   // Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol in= terface to be tested
   //
   BcInterface =3D= (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+  DevicePathStr = =3D SctDevicePathStrFromProtocol (BcInterface, &gBlackBoxEfiPxeBaseCode= ProtocolGuid);
+  StandardLib->RecordMessage (
+   &= nbsp;            StandardLib,
+   &= nbsp;            EFI_VERBOSE_LEVEL_DEFAULT,+                L"Device Path:= %s\r\n",
+                Dev= icePathStr
+                );=
 
   // Enable EFI_PXE_BASE_CODE_PROTOCOL protoco= l if needed
   Status =3D ChangePxeState (BcInterface, FALSE= , BcInterface->Mode->Started, TRUE);
@@ -2240,6 +2304,7 @@ BBTes= tUdpWriteFunctionTest (
   EFI_INI_FILE_HANDLE    =                FileHandle;
&n= bsp;  EFI_STATUS               &nbs= p;             Status;
   EFI_= PXE_BASE_CODE_PROTOCOL            *BcInterfac= e;
+  UINT16               &nb= sp;                *DevicePathStr;<= br />   EFI_SIMPLE_NETWORK_PROTOCOL         &= nbsp; *SnpInterface;
   EFI_TEST_ASSERTION     &nb= sp;              AssertionType;
&nb= sp;
@@ -2288,6 +2353,13 @@ BBTestUdpWriteFunctionTest (
  &n= bsp;// Get the EFI_PXE_BASE_CODE_PROTOCOL Protocol interface to be tested   //
   BcInterface =3D (EFI_PXE_BASE_CODE_PR= OTOCOL *)ClientInterface;
+  DevicePathStr =3D SctDevicePathStrFr= omProtocol (BcInterface, &gBlackBoxEfiPxeBaseCodeProtocolGuid);
+ =  StandardLib->RecordMessage (
+         &n= bsp;      StandardLib,
+         &n= bsp;      EFI_VERBOSE_LEVEL_DEFAULT,
+     &n= bsp;          L"Device Path: %s\r\n",
+  = ;              DevicePathStr
+ &nbs= p;              );
 
&nbs= p;  //
   // Enable EFI_PXE_BASE_CODE_PROTOCOL if neede= d
@@ -2415,6 +2487,7 @@ BBTestUdpReadFunctionTest (
   = EFI_INI_FILE_HANDLE                =    FileHandle;
   EFI_STATUS      =                     &nbs= p; Status;
   EFI_PXE_BASE_CODE_PROTOCOL      = ;      *BcInterface;
+  UINT16      = ;                     &nb= sp;    *DevicePathStr;
   EFI_PXE_BASE_CODE_IP_FIL= TER            BcIpFilter;
   = EFI_SIMPLE_NETWORK_PROTOCOL           *SnpInterfac= e;
   EFI_TEST_ASSERTION           =           AssertionType;
@@ -2446,6 +2519,13 = @@ BBTestUdpReadFunctionTest (
   // Get the EFI_PXE_BASE_CO= DE_PROTOCOL Protocol interface to be tested
   //
 = ;  BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+  DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &= gBlackBoxEfiPxeBaseCodeProtocolGuid);
+  StandardLib->RecordMe= ssage (
+                Stand= ardLib,
+                EFI_V= ERBOSE_LEVEL_DEFAULT,
+             &nbs= p;  L"Device Path: %s\r\n",
+           =      DevicePathStr
+          =      );
 
   // Re - initialize EF= I_PXE_BASE_CODE_PROTOCOL
   Status =3D ReInitPxeBaseCode (Bc= Interface);
@@ -2585,6 +2665,7 @@ BBTestSetIpFilterFunctionTest (
   EFI_STATUS               &= nbsp;             Status;
   E= FI_TEST_ASSERTION                 &= nbsp;   AssertionType;
   EFI_PXE_BASE_CODE_PROTOCOL &n= bsp;          *BcInterface;
+  UINT16 &n= bsp;                     =          *DevicePathStr;
   EFI_PXE= _BASE_CODE_IP_FILTER            BcIpFilter; 
   //
@@ -2605,6 +2686,13 @@ BBTestSetIpFilt= erFunctionTest (
   // Get the EFI_PXE_BASE_CODE_PROTOCOL Pr= otocol interface to be tested
   //
   BcInte= rface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+  Devic= ePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlackBoxEfiPx= eBaseCodeProtocolGuid);
+  StandardLib->RecordMessage (
+=                StandardLib,
+=                EFI_VERBOSE_LEVEL_D= EFAULT,
+                L"Dev= ice Path: %s\r\n",
+               =  DevicePathStr
+              =  );
 
   //
   // Enable EFI_= PXE_BASE_CODE_PROTOCOL if needed
@@ -2696,6 +2784,7 @@ BBTestArpFuncti= onTest (
   EFI_STATUS           &n= bsp;                 Status;
&= nbsp;  EFI_TEST_ASSERTION             &n= bsp;       AssertionType;
   EFI_PXE_BASE_COD= E_PROTOCOL            *BcInterface;
+ &n= bsp;UINT16                   &= nbsp;            *DevicePathStr;
  =  EFI_IP_ADDRESS                = ;         IpAddr;
   EFI_MAC_ADDRESS &nb= sp;                     &= nbsp;MacAddr;
   EFI_SIMPLE_NETWORK_PROTOCOL     &= nbsp;      *SnpInterface;
@@ -2727,6 +2816,13 @@ BBTest= ArpFunctionTest (
   // Get the EFI_PXE_BASE_CODE_PROTOCOL P= rotocol interface to be tested
   //
   BcInt= erface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+  Devi= cePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlackBoxEfiP= xeBaseCodeProtocolGuid);
+  StandardLib->RecordMessage (
= +                StandardLib,
= +                EFI_VERBOSE_LEVEL_= DEFAULT,
+                L"De= vice Path: %s\r\n",
+              =  DevicePathStr
+              = ;  );
 
   Status =3D ReInitPxeBaseCode (BcIn= terface);
   if (EFI_ERROR(Status)){
@@ -2938,7 +3034,8= @@ BBTestSetParametersFunctionTest (
   EFI_STANDARD_TEST_L= IBRARY_PROTOCOL    *StandardLib;
   EFI_STATUS &nb= sp;                     &= nbsp;    Status;
   EFI_TEST_ASSERTION   &nbs= p;                AssertionType;-  EFI_PXE_BASE_CODE_PROTOCOL           *B= cInterface;
+  EFI_PXE_BASE_CODE_PROTOCOL       &n= bsp;    *BcInterface;
+  UINT16       &n= bsp;                     =    *DevicePathStr;
   BOOLEAN      =                     &nbs= p;   OrigAutoArp, NewAutoArp;
   UINT8     &n= bsp;                     =       OrigTTL, NewTTL;
 
@@ -2960,6 +3057,13 = @@ BBTestSetParametersFunctionTest (
   // Get the EFI_PXE_B= ASE_CODE_PROTOCOL Protocol interface to be tested
   //
   BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface= ;
+  DevicePathStr =3D SctDevicePathStrFromProtocol (BcInterface,= &gBlackBoxEfiPxeBaseCodeProtocolGuid);
+  StandardLib->Re= cordMessage (
+                = ;StandardLib,
+                = ;EFI_VERBOSE_LEVEL_DEFAULT,
+            = ;    L"Device Path: %s\r\n",
+         &= nbsp;      DevicePathStr
+         =        );
 
   //
  =  // Enable EFI_PXE_BASE_CODE_PROTOCOL if needed
@@ -3149,7 +3253,= 8 @@ BBTestSetStationIpFunctionTest (
   EFI_TEST_LOGGING_LI= BRARY_PROTOCOL     *LoggingLib;
   EFI_STATUS &nbs= p;                     &n= bsp;    Status;
   EFI_TEST_ASSERTION    = ;                AssertionType;
-  EFI_PXE_BASE_CODE_PROTOCOL           *Bc= Interface;
+  EFI_PXE_BASE_CODE_PROTOCOL       &nb= sp;    *BcInterface;
+  UINT16       &nb= sp;                     &= nbsp;  *DevicePathStr;
   EFI_IP_ADDRESS     =                    NewSta= tionIp, NewSubnetMask;
 
   //
@@ -3179,6 +32= 84,13 @@ BBTestSetStationIpFunctionTest (
   // Get the EFI_= PXE_BASE_CODE_PROTOCOL Protocol interface to be tested
   //=
   BcInterface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInte= rface;
+  DevicePathStr =3D SctDevicePathStrFromProtocol (BcInter= face, &gBlackBoxEfiPxeBaseCodeProtocolGuid);
+  StandardLib-&= gt;RecordMessage (
+               =  StandardLib,
+               =  EFI_VERBOSE_LEVEL_DEFAULT,
+           =      L"Device Path: %s\r\n",
+       &nb= sp;        DevicePathStr
+       &n= bsp;        );
 
   //
&n= bsp;  // Enable EFI_PXE_BASE_CODE_PROTOCOL if needed
@@ -3280,7 += 3392,8 @@ BBTestSetPacketsFunctionTest (
   EFI_STANDARD_TES= T_LIBRARY_PROTOCOL   *StandardLib;
   EFI_STATUS  =                     &nbs= p;    Status;
   EFI_TEST_ASSERTION     =                AssertionType;
= -  EFI_PXE_BASE_CODE_PROTOCOL           *BcIn= terface;
+  EFI_PXE_BASE_CODE_PROTOCOL        = ;    *BcInterface;
+  UINT16        = ;                     &nb= sp;  *DevicePathStr;
   BOOLEAN       &n= bsp;                     =   NewDhcpDiscoverValid;
   BOOLEAN      =                     &nbs= p;   NewDhcpAckReceived;
   BOOLEAN      = ;                     &nb= sp;   NewProxyOfferReceived ;
@@ -3311,6 +3424,13 @@ BBTestSetPac= ketsFunctionTest (
   // Get the EFI_PXE_BASE_CODE_PROTOCOL = Protocol interface to be tested
   //
   BcIn= terface =3D (EFI_PXE_BASE_CODE_PROTOCOL *)ClientInterface;
+  Dev= icePathStr =3D SctDevicePathStrFromProtocol (BcInterface, &gBlackBoxEfi= PxeBaseCodeProtocolGuid);
+  StandardLib->RecordMessage (
+                StandardLib,
+                EFI_VERBOSE_LEVEL= _DEFAULT,
+                L"D= evice Path: %s\r\n",
+              = ;  DevicePathStr
+             &nbs= p;  );
 
   // Re-initialize the EFI_PXE_BASE= _CODE_PROTOCOL
   Status =3D ReInitPxeBaseCode (BcInterface)= ;
diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNetwor= k/BlackBoxTest/SimpleNetworkBBTestConformance.c b/uefi-sct/SctPkg/TestCase/= UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTest/SimpleNetworkBBTestConformance= .c
index e73c7cebcbcf..36f0bd01b4d3 100644
--- a/uefi-sct/SctPkg/= TestCase/UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTest/SimpleNetworkBBTestCo= nformance.c
+++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNet= work/BlackBoxTest/SimpleNetworkBBTestConformance.c
@@ -53,7 +53,7 @@ B= BTestStartConformanceTest (
   EFI_TEST_ASSERTION   &nb= sp;                AssertionType;   EFI_SIMPLE_NETWORK_PROTOCOL         &n= bsp; *SnpInterface;
   EFI_SIMPLE_NETWORK_STATE    = ;          State1, State2;
-
+  UIN= T16                     &= nbsp;          *DevicePathStr;
   /= /
   // Get the Standard Library Interface
   = ;//
@@ -71,7 +71,13 @@ BBTestStartConformanceTest (
   = // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested
   //
   SnpInterface =3D (EFI_SIMPLE_NETWORK_PRO= TOCOL *)ClientInterface;
-
+  DevicePathStr =3D SctDevicePat= hStrFromProtocol (SnpInterface, &gBlackBoxEfiSimpleNetworkProtocolGuid)= ;
+  StandardLib->RecordMessage (
+       =          StandardLib,
+       =          EFI_VERBOSE_LEVEL_DEFAULT,
+   =              L"Device Path: %s\r\n",
+                DevicePathStr+                );
  =  //
   // Check whether the state of network interface = is EfiSimpleNetworkStarted.
   // If not, change the state t= o EfiSimpleNetworkStarted.
@@ -160,7 +166,7 @@ BBTestStopConformanceTe= st (
   EFI_TEST_ASSERTION          = ;          AssertionType;
   EFI_SI= MPLE_NETWORK_PROTOCOL           *SnpInterface;
   EFI_SIMPLE_NETWORK_STATE           =    State1, State2;
-
+  UINT16      = ;                     &nb= sp;    *DevicePathStr;
   //
   // = Get the Standard Library Interface
   //
@@ -178,7 +184= ,13 @@ BBTestStopConformanceTest (
   // Get the EFI_SIMPLE_= NETWORK_PROTOCOL Protocol interface to be tested
   //
=    SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterfac= e;
-
+  DevicePathStr =3D SctDevicePathStrFromProtocol (SnpI= nterface, &gBlackBoxEfiSimpleNetworkProtocolGuid);
+  Standar= dLib->RecordMessage (
+             &= nbsp;  StandardLib,
+             &= nbsp;  EFI_VERBOSE_LEVEL_DEFAULT,
+         &= nbsp;      L"Device Path: %s\r\n",
+     &nbs= p;          DevicePathStr
+     &nb= sp;          );
   //
  &= nbsp;// Check whether the state of network interface is EfiSimpleNetworkSto= pped.
   // If not, change the state to EfiSimpleNetworkStop= ped.
@@ -266,7 +278,7 @@ BBTestInitializeConformanceTest (
 =  EFI_TEST_ASSERTION               =      AssertionType;
   EFI_SIMPLE_NETWORK_PRO= TOCOL           *SnpInterface;
   E= FI_SIMPLE_NETWORK_STATE              Sta= te1, State2;
-
+  UINT16           =                      = ;*DevicePathStr;
   //
   // Get the Standard= Library Interface
   //
@@ -284,7 +296,13 @@ BBTestIni= tializeConformanceTest (
   // Get the EFI_SIMPLE_NETWORK_PR= OTOCOL Protocol interface to be tested
   //
  &nb= sp;SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface;
-<= br />+  DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, = &gBlackBoxEfiSimpleNetworkProtocolGuid);
+  StandardLib->R= ecordMessage (
+               &nbs= p;StandardLib,
+               &nbs= p;EFI_VERBOSE_LEVEL_DEFAULT,
+           &nbs= p;    L"Device Path: %s\r\n",
+         =        DevicePathStr
+        =        );
   //
   // Ch= eck whether the state of network interface is EfiSimpleNetworkStopped.
   // If not, change the state to EfiSimpleNetworkStopped.
= @@ -377,7 +395,7 @@ BBTestResetConformanceTest (
   EFI_TEST= _ASSERTION                   &= nbsp;AssertionType;
   EFI_SIMPLE_NETWORK_PROTOCOL   &n= bsp;       *SnpInterface;
   EFI_SIMPLE_NETWO= RK_STATE              State1, State2;-
+  UINT16               &= nbsp;                *DevicePathStr= ;
   //
   // Get the Standard Library Interf= ace
   //
@@ -395,7 +413,13 @@ BBTestResetConformanceTe= st (
   // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol inte= rface to be tested
   //
   SnpInterface =3D = (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface;
-
+  DeviceP= athStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBlackBoxEfiSim= pleNetworkProtocolGuid);
+  StandardLib->RecordMessage (
= +                StandardLib,
= +                EFI_VERBOSE_LEVEL_= DEFAULT,
+                L"De= vice Path: %s\r\n",
+              =  DevicePathStr
+              = ;  );
   //
   // Check whether the stat= e of network interface is EfiSimpleNetworkStopped.
   // If = not, change the state to EfiSimpleNetworkStopped.
@@ -488,7 +512,7 @@ = BBTestShutdownConformanceTest (
   EFI_TEST_ASSERTION  =                  AssertionTyp= e;
   EFI_SIMPLE_NETWORK_PROTOCOL        = ;   *SnpInterface;
   EFI_SIMPLE_NETWORK_STATE   &= nbsp;          State1, State2;
-
+  = ;UINT16                   &nbs= p;            *DevicePathStr;
  &nb= sp;//
   // Get the Standard Library Interface
  &= nbsp;//
@@ -506,7 +530,13 @@ BBTestShutdownConformanceTest (
&nbs= p;  // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be te= sted
   //
   SnpInterface =3D (EFI_SIMPLE_NE= TWORK_PROTOCOL *)ClientInterface;
-
+  DevicePathStr =3D Sct= DevicePathStrFromProtocol (SnpInterface, &gBlackBoxEfiSimpleNetworkProt= ocolGuid);
+  StandardLib->RecordMessage (
+    = ;            StandardLib,
+    = ;            EFI_VERBOSE_LEVEL_DEFAULT,
= +                L"Device Path: %s\= r\n",
+                DeviceP= athStr
+                );
   //
   // Check whether the state of network i= nterface is EfiSimpleNetworkStopped.
   // If not, change th= e state to EfiSimpleNetworkStopped.
@@ -594,7 +624,7 @@ BBTestReceiveF= ilterConformanceTest (
   EFI_TEST_ASSERTION     &= nbsp;              AssertionType;
&= nbsp;  EFI_SIMPLE_NETWORK_PROTOCOL           = *SnpInterface;
   EFI_MAC_ADDRESS        = ;               MAC;
-
+  = ;UINT16                   &nbs= p;            *DevicePathStr;
  &nb= sp;//
   // Get the Standard Library Interface
  &= nbsp;//
@@ -612,7 +642,13 @@ BBTestReceiveFilterConformanceTest (
   // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to = be tested
   //
   SnpInterface =3D (EFI_SIMP= LE_NETWORK_PROTOCOL *)ClientInterface;
-
+  DevicePathStr = =3D SctDevicePathStrFromProtocol (SnpInterface, &gBlackBoxEfiSimpleNetw= orkProtocolGuid);
+  StandardLib->RecordMessage (
+  = ;              StandardLib,
+  = ;              EFI_VERBOSE_LEVEL_DEFAULT= ,
+                L"Device Pa= th: %s\r\n",
+                = DevicePathStr
+                = ;);
   //
   // Check whether the state of ne= twork interface is EfiSimpleNetworkStopped.
   // If not, ch= ange the state to EfiSimpleNetworkStopped.
@@ -840,7 +876,7 @@ BBTestS= tationAddressConformanceTest (
   EFI_TEST_ASSERTION   =                  AssertionType= ;
   EFI_SIMPLE_NETWORK_PROTOCOL        =   *SnpInterface;
   EFI_SIMPLE_NETWORK_STATE   &n= bsp;          State1, State2;
-
+  = UINT16                    = ;            *DevicePathStr;
  &nbs= p;//
   // Get the Standard Library Interface
  &n= bsp;//
@@ -858,7 +894,13 @@ BBTestStationAddressConformanceTest (
   // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to = be tested
   //
   SnpInterface =3D (EFI_SIMP= LE_NETWORK_PROTOCOL *)ClientInterface;
-
+  DevicePathStr = =3D SctDevicePathStrFromProtocol (SnpInterface, &gBlackBoxEfiSimpleNetw= orkProtocolGuid);
+  StandardLib->RecordMessage (
+  = ;              StandardLib,
+  = ;              EFI_VERBOSE_LEVEL_DEFAULT= ,
+                L"Device Pa= th: %s\r\n",
+                = DevicePathStr
+                = ;);
   //
   // Check whether the state of ne= twork interface is EfiSimpleNetworkStopped.
   // If not, ch= ange the state to EfiSimpleNetworkStopped.
@@ -988,7 +1030,7 @@ BBTest= StatisticsConformanceTest (
   EFI_SIMPLE_NETWORK_STATE &nbs= p;            State1, State2;
  &nb= sp;EFI_NETWORK_STATISTICS               =  StatisticsTable;
   UINTN         =                      = ;   StatisticsSize;
-
+  UINT16       &n= bsp;                     =    *DevicePathStr;
   //
   // Get = the Standard Library Interface
   //
@@ -1006,7 +1048,1= 3 @@ BBTestStatisticsConformanceTest (
   // Get the EFI_SIM= PLE_NETWORK_PROTOCOL Protocol interface to be tested
   //   SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInte= rface;
-
+  DevicePathStr =3D SctDevicePathStrFromProtocol (= SnpInterface, &gBlackBoxEfiSimpleNetworkProtocolGuid);
+  Sta= ndardLib->RecordMessage (
+           &nbs= p;    StandardLib,
+           &nbs= p;    EFI_VERBOSE_LEVEL_DEFAULT,
+       &nbs= p;        L"Device Path: %s\r\n",
+     =            DevicePathStr
+    =            );
   //
&nbs= p;  // Check whether the state of network interface is EfiSimpleNetwor= kStopped.
   // If not, change the state to EfiSimpleNetwork= Stopped.
@@ -1164,7 +1212,7 @@ BBTestMCastIpToMacConformanceTest (
   EFI_SIMPLE_NETWORK_STATE           =    State1, State2;
   EFI_IP_ADDRESS    =                    IP;   EFI_MAC_ADDRESS             =           MAC;
-
+  UINT16   &= nbsp;                    =        *DevicePathStr;
   //
 = ;  // Get the Standard Library Interface
   //
@@ = -1182,7 +1230,13 @@ BBTestMCastIpToMacConformanceTest (
   /= / Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested
=    //
   SnpInterface =3D (EFI_SIMPLE_NETWORK_PROT= OCOL *)ClientInterface;
-
+  DevicePathStr =3D SctDevicePath= StrFromProtocol (SnpInterface, &gBlackBoxEfiSimpleNetworkProtocolGuid);=
+  StandardLib->RecordMessage (
+       &= nbsp;        StandardLib,
+       &= nbsp;        EFI_VERBOSE_LEVEL_DEFAULT,
+   &= nbsp;            L"Device Path: %s\r\n",
+                DevicePathStr
+                );
  &= nbsp;//
   // Check whether the state of network interface i= s EfiSimpleNetworkStopped.
   // If not, change the state to= EfiSimpleNetworkStopped.
@@ -1279,6 +1333,7 @@ BBTestNVDataConformanc= eTest (
   EFI_SIMPLE_NETWORK_STATE       &nb= sp;      State1, State2, State3;
   VOID &nbs= p;                     &n= bsp;          *Buffer;
   UINT32 &n= bsp;                     =          CheckPoint1State;
+  UINT16 &nb= sp;                     &= nbsp;        *DevicePathStr;
   //
=    // Get the Standard Library Interface
   //
@@ -1296,7 +1351,13 @@ BBTestNVDataConformanceTest (
   //= Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested
&= nbsp;  //
   SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTO= COL *)ClientInterface;
-
+  DevicePathStr =3D SctDevicePathS= trFromProtocol (SnpInterface, &gBlackBoxEfiSimpleNetworkProtocolGuid);<= br />+  StandardLib->RecordMessage (
+       &n= bsp;        StandardLib,
+       &n= bsp;        EFI_VERBOSE_LEVEL_DEFAULT,
+   &n= bsp;            L"Device Path: %s\r\n",
= +                DevicePathStr
+                );
  &n= bsp;//
   // Check whether the network interface support NvD= ata if not return
   //
@@ -1525,6 +1586,7 @@ BBTestGet= StatusConformanceTest (
   EFI_SIMPLE_NETWORK_STATE   &= nbsp;          State1, State2;
   V= OID                     &= nbsp;            *TxBuf;
   UI= NT32                     =            InterruptStatus;
+  UINT= 16                     &n= bsp;          *DevicePathStr;
   //= UINT32                    = ;            *pInterruptStatus;
    //
@@ -1544,7 +1606,13 @@ BBTestGetStatusConformanceT= est (
   // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol int= erface to be tested
   //
   SnpInterface =3D= (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface;
-
+  Device= PathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBlackBoxEfiSi= mpleNetworkProtocolGuid);
+  StandardLib->RecordMessage (
+                StandardLib,
+                EFI_VERBOSE_LEVEL= _DEFAULT,
+                L"D= evice Path: %s\r\n",
+              = ;  DevicePathStr
+             &nbs= p;  );
   //
   // Check whether the sta= te of network interface is EfiSimpleNetworkStopped.
   // If= not, change the state to EfiSimpleNetworkStopped.
@@ -1717,7 +1785,7 = @@ BBTestTransmitConformanceTest (
   EFI_MAC_ADDRESS  =                     SrcA= ddr;
   EFI_MAC_ADDRESS           &= nbsp;           DestAddr;
   UINT16=                     &nbs= p;          Protocol;
-
+  UINT16 &= nbsp;                    =          *DevicePathStr;
   //
   // Get the Standard Library Interface
   //@@ -1735,7 +1803,13 @@ BBTestTransmitConformanceTest (
  &nbs= p;// Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested   //
   SnpInterface =3D (EFI_SIMPLE_NETWORK_P= ROTOCOL *)ClientInterface;
-
+  DevicePathStr =3D SctDeviceP= athStrFromProtocol (SnpInterface, &gBlackBoxEfiSimpleNetworkProtocolGui= d);
+  StandardLib->RecordMessage (
+      = ;          StandardLib,
+      = ;          EFI_VERBOSE_LEVEL_DEFAULT,
+  = ;              L"Device Path: %s\r\n",+                DevicePathStr<= br />+                );
 = ;  //
   // Check whether the state of network interfac= e is EfiSimpleNetworkStopped.
   // If not, change the state= to EfiSimpleNetworkStopped.
@@ -1993,7 +2067,7 @@ BBTestReceiveConfor= manceTest (
   EFI_MAC_ADDRESS         &= nbsp;             SrcAddr;
   = EFI_MAC_ADDRESS                 &nb= sp;     DestAddr;
   UINT16       &= nbsp;                    =    Protocol;
-
+  UINT16       &nb= sp;                     &= nbsp;  *DevicePathStr;
   //
   // Get t= he Standard Library Interface
   //
@@ -2011,7 +2085,13= @@ BBTestReceiveConformanceTest (
   // Get the EFI_SIMPLE_= NETWORK_PROTOCOL Protocol interface to be tested
   //
=    SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterfac= e;
-
+  DevicePathStr =3D SctDevicePathStrFromProtocol (SnpI= nterface, &gBlackBoxEfiSimpleNetworkProtocolGuid);
+  Standar= dLib->RecordMessage (
+             &= nbsp;  StandardLib,
+             &= nbsp;  EFI_VERBOSE_LEVEL_DEFAULT,
+         &= nbsp;      L"Device Path: %s\r\n",
+     &nbs= p;          DevicePathStr
+     &nb= sp;          );
   //
  &= nbsp;// Check whether the state of network interface is EfiSimpleNetworkSto= pped.
   // If not, change the state to EfiSimpleNetworkStop= ped.
diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNet= work/BlackBoxTest/SimpleNetworkBBTestFunction.c b/uefi-sct/SctPkg/TestCase/= UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTest/SimpleNetworkBBTestFunction.c<= br />index 1259c42611fa..31c3590cd620 100644
--- a/uefi-sct/SctPkg/Tes= tCase/UEFI/EFI/Protocol/SimpleNetwork/BlackBoxTest/SimpleNetworkBBTestFunct= ion.c
+++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SimpleNetwork/B= lackBoxTest/SimpleNetworkBBTestFunction.c
@@ -53,6 +53,7 @@ BBTestStar= tFunctionTest (
   EFI_TEST_ASSERTION       &= nbsp;            AssertionType;
  &= nbsp;EFI_SIMPLE_NETWORK_PROTOCOL           *SnpInt= erface;
   EFI_SIMPLE_NETWORK_STATE       &nb= sp;      State1, State2;
+  UINT16     &= nbsp;                    =      *DevicePathStr;
 
   //
=    // Get the Standard Library Interface
@@ -71,6 +72,13 @@ = BBTestStartFunctionTest (
   // Get the EFI_SIMPLE_NETWORK_P= ROTOCOL Protocol interface to be tested
   //
  &n= bsp;SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface;
+=  DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &g= BlackBoxEfiSimpleNetworkProtocolGuid);
+  StandardLib->RecordM= essage (
+                Stan= dardLib,
+                EFI_= VERBOSE_LEVEL_DEFAULT,
+             &nb= sp;  L"Device Path: %s\r\n",
+          =      DevicePathStr
+          = ;      );
 
   //
   = ;// Check whether the state of network interface is EfiSimpleNetworkStopped= .
@@ -161,6 +169,7 @@ BBTestStopFunctionTest (
   EFI_T= EST_ASSERTION                  = ;  AssertionType;
   EFI_SIMPLE_NETWORK_PROTOCOL  =         *SnpInterface;
   EFI_SIMPLE_NE= TWORK_STATE              State1, State2;=
+  UINT16                = ;                *DevicePathStr; 
   //
   // Get the Standard Librar= y Interface
@@ -179,6 +188,13 @@ BBTestStopFunctionTest (
  =  // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be teste= d
   //
   SnpInterface =3D (EFI_SIMPLE_NETWO= RK_PROTOCOL *)ClientInterface;
+  DevicePathStr =3D SctDevicePath= StrFromProtocol (SnpInterface, &gBlackBoxEfiSimpleNetworkProtocolGuid);=
+  StandardLib->RecordMessage (
+       &= nbsp;        StandardLib,
+       &= nbsp;        EFI_VERBOSE_LEVEL_DEFAULT,
+   &= nbsp;            L"Device Path: %s\r\n",
+                DevicePathStr
+                );
    //
   // Check whether the state of network= interface is EfiSimpleNetworkStarted.
@@ -267,6 +283,7 @@ BBTestIniti= alizeFunctionTest (
   EFI_TEST_ASSERTION     &nbs= p;              AssertionType;
&nbs= p;  EFI_SIMPLE_NETWORK_PROTOCOL           *Sn= pInterface;
   EFI_SIMPLE_NETWORK_STATE      =        State1, State2;
+  UINT16   &nbs= p;                     &n= bsp;      *DevicePathStr;
 
   //   // Get the Standard Library Interface
@@ -285,6 +302,= 13 @@ BBTestInitializeFunctionTest (
   // Get the EFI_SIMPL= E_NETWORK_PROTOCOL Protocol interface to be tested
   //
   SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterf= ace;
+  DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterf= ace, &gBlackBoxEfiSimpleNetworkProtocolGuid);
+  StandardLib-= >RecordMessage (
+              =  StandardLib,
+              =  EFI_VERBOSE_LEVEL_DEFAULT,
+          =      L"Device Path: %s\r\n",
+       &n= bsp;        DevicePathStr
+       &= nbsp;        );
 
   //
&= nbsp;  // Check whether the state of network interface is EfiSimpleNet= workStarted.
@@ -409,6 +433,7 @@ BBTestResetFunctionTest (
 =  EFI_TEST_ASSERTION               =      AssertionType;
   EFI_SIMPLE_NETWORK_PRO= TOCOL           *SnpInterface;
   E= FI_SIMPLE_NETWORK_STATE              Sta= te1, State2;
+  UINT16             =                    *Devic= ePathStr;
   EFI_SIMPLE_NETWORK_MODE       &n= bsp;       Mode;
   UINT32     &nbs= p;                     &n= bsp;    InterruptStatus;
   VOID     &nb= sp;                     &= nbsp;      *TxBuf;
@@ -434,6 +459,13 @@ BBTestResetFunc= tionTest (
   // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protoco= l interface to be tested
   //
   SnpInterfac= e =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface;
+  DevicePa= thStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBlackBoxEfiSimp= leNetworkProtocolGuid);
+  StandardLib->RecordMessage (
+=                StandardLib,
+=                EFI_VERBOSE_LEVEL_D= EFAULT,
+                L"Dev= ice Path: %s\r\n",
+               =  DevicePathStr
+              =  );
 
   //
   // Check wheth= er the state of network interface is EfiSimpleNetworkInitialized.
@@ -= 597,6 +629,7 @@ BBTestShutdownFunctionTest (
   EFI_TEST_ASS= ERTION                    = ;AssertionType;
   EFI_SIMPLE_NETWORK_PROTOCOL    =       *SnpInterface;
   EFI_SIMPLE_NETWORK_S= TATE              State1, State2;
+=  UINT16                  = ;              *DevicePathStr;
&nbs= p;
   //
   // Get the Standard Library Inter= face
@@ -615,6 +648,13 @@ BBTestShutdownFunctionTest (
  &nb= sp;// Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to be tested   //
   SnpInterface =3D (EFI_SIMPLE_NETWORK_= PROTOCOL *)ClientInterface;
+  DevicePathStr =3D SctDevicePathStr= FromProtocol (SnpInterface, &gBlackBoxEfiSimpleNetworkProtocolGuid);+  StandardLib->RecordMessage (
+       &nbs= p;        StandardLib,
+       &nbs= p;        EFI_VERBOSE_LEVEL_DEFAULT,
+   &nbs= p;            L"Device Path: %s\r\n",
+ =                DevicePathStr
+=                );
 
   //
   // Check whether the state of network in= terface is EfiSimpleNetworkInitialized.
@@ -705,6 +745,7 @@ BBTestRece= iveFilterFunctionTest (
   EFI_TEST_ASSERTION     =                AssertionType;
=    EFI_SIMPLE_NETWORK_PROTOCOL          = *SnpInterface;
   EFI_SIMPLE_NETWORK_STATE     &n= bsp;        State1, State2;
+  UINT16   =                      = ;        *DevicePathStr;
   EFI_SIMPLE_N= ETWORK_MODE               Mode;
&nb= sp;  EFI_MAC_ADDRESS               =         MAC;
   UINT32     &nb= sp;                     &= nbsp;    ReceiveFilterMask;
@@ -728,6 +769,13 @@ BBTestRecei= veFilterFunctionTest (
   // Get the EFI_SIMPLE_NETWORK_PROT= OCOL Protocol interface to be tested
   //
   = ;SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface;
+ &n= bsp;DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBla= ckBoxEfiSimpleNetworkProtocolGuid);
+  StandardLib->RecordMess= age (
+                Standar= dLib,
+                EFI_VER= BOSE_LEVEL_DEFAULT,
+              =  L"Device Path: %s\r\n",
+           &n= bsp;    DevicePathStr
+           &= nbsp;    );
 
   //
   //= Check whether the state of network interface is EfiSimpleNetworkInitialize= d.
@@ -967,6 +1015,7 @@ BBTestStationAddressFunctionTest (
 =  EFI_TEST_ASSERTION               =      AssertionType;
   EFI_SIMPLE_NETWORK_PRO= TOCOL           *SnpInterface;
   E= FI_SIMPLE_NETWORK_STATE              Sta= te1, State2;
+  UINT16             =                    *Devic= ePathStr;
   EFI_MAC_ADDRESS         &nb= sp;             MacAddress;
   = ;INTN                    =              CheckPoint1, CheckPoint2;<= br />   EFI_MAC_ADDRESS            =           BackMacAddress;
@@ -988,6 +1037,13= @@ BBTestStationAddressFunctionTest (
   // Get the EFI_SIM= PLE_NETWORK_PROTOCOL Protocol interface to be tested
   //   SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInte= rface;
+  DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInte= rface, &gBlackBoxEfiSimpleNetworkProtocolGuid);
+  StandardLi= b->RecordMessage (
+             &nbs= p;  StandardLib,
+             &nbs= p;  EFI_VERBOSE_LEVEL_DEFAULT,
+         &nbs= p;      L"Device Path: %s\r\n",
+       =          DevicePathStr
+      =          );
 
   //
   // Check whether the state of network interface is EfiSimpleN= etworkInitialized.
@@ -1125,6 +1181,7 @@ BBTestStatisticsFunctionTest = (
   EFI_TEST_ASSERTION           &= nbsp;        AssertionType;
   EFI_SIMPL= E_NETWORK_PROTOCOL           *SnpInterface;
&= nbsp;  EFI_SIMPLE_NETWORK_STATE           &nb= sp;  State1, State2;
+  UINT16         &= nbsp;                    =  *DevicePathStr;
   EFI_NETWORK_STATISTICS   &nbs= p;            StatisticsTable1;
  &= nbsp;EFI_NETWORK_STATISTICS              = ;  StatisticsTable2;
   UINTN       &nbs= p;                     &n= bsp;   StatisticsSize;
@@ -1160,6 +1217,13 @@ BBTestStatisticsFun= ctionTest (
   // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protoc= ol interface to be tested
   //
   SnpInterfa= ce =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface;
+  DeviceP= athStr =3D SctDevicePathStrFromProtocol (SnpInterface, &gBlackBoxEfiSim= pleNetworkProtocolGuid);
+  StandardLib->RecordMessage (
= +                StandardLib,
= +                EFI_VERBOSE_LEVEL_= DEFAULT,
+                L"De= vice Path: %s\r\n",
+              =  DevicePathStr
+              = ;  );
 
   //
   // Check whet= her the state of network interface is EfiSimpleNetworkInitialized.
@@ = -1296,6 +1360,7 @@ BBTestMCastIpToMacFunctionTest (
   EFI_T= EST_ASSERTION                  = ;  AssertionType;
   EFI_SIMPLE_NETWORK_PROTOCOL  =         *SnpInterface;
   EFI_SIMPLE_NE= TWORK_STATE              State1, State2;=
+  UINT16                = ;                *DevicePathStr;   EFI_IP_ADDRESS             &n= bsp;          IP;
   EFI_MAC_ADDRES= S                     &nb= sp; MAC1;
   EFI_MAC_ADDRESS         &nb= sp;             MAC2;
@@ -1317,6 +1382,1= 3 @@ BBTestMCastIpToMacFunctionTest (
   // Get the EFI_SIMP= LE_NETWORK_PROTOCOL Protocol interface to be tested
   //   SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInter= face;
+  DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInter= face, &gBlackBoxEfiSimpleNetworkProtocolGuid);
+  StandardLib= ->RecordMessage (
+              = ;  StandardLib,
+              = ;  EFI_VERBOSE_LEVEL_DEFAULT,
+          = ;      L"Device Path: %s\r\n",
+       &= nbsp;        DevicePathStr
+       =          );
 
   //
=    // Check whether the state of network interface is EfiSimpleNe= tworkInitialized.
@@ -1432,6 +1504,7 @@ BBTestNVDataFunctionTest (
   EFI_TEST_ASSERTION            =        AssertionType;
   EFI_SIMPLE_NET= WORK_PROTOCOL           *SnpInterface;
 =  EFI_SIMPLE_NETWORK_STATE             &= nbsp;State1, State2;
+  UINT16          =                     &nbs= p;*DevicePathStr;
   VOID          =                     &nbs= p;  *Buffer;
   VOID          =                     &nbs= p;  *Buffer1;
   VOID          = ;                     &nb= sp;  *Buffer2;
@@ -1453,6 +1526,13 @@ BBTestNVDataFunctionTest (<= br />   // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface= to be tested
   //
   SnpInterface =3D (EFI_= SIMPLE_NETWORK_PROTOCOL *)ClientInterface;
+  DevicePathStr =3D S= ctDevicePathStrFromProtocol (SnpInterface, &gBlackBoxEfiSimpleNetworkPr= otocolGuid);
+  StandardLib->RecordMessage (
+   &nb= sp;            StandardLib,
+   &nb= sp;            EFI_VERBOSE_LEVEL_DEFAULT,
+                L"Device Path: %= s\r\n",
+                Devic= ePathStr
+                ); 
   //
   // Check whether the stat= e of network interface is EfiSimpleNetworkInitialized.
@@ -1671,6 +175= 1,7 @@ BBTestGetStatusFunctionTest (
   EFI_TEST_ASSERTION &= nbsp;                  Asserti= onType;
   EFI_SIMPLE_NETWORK_PROTOCOL       =     *SnpInterface;
   EFI_SIMPLE_NETWORK_STATE &nb= sp;            State1, State2;
+  U= INT16                    =            *DevicePathStr;
   = ;VOID                    =              *TxBuf;
   = UINT32                    = ;            InterruptStatus;
  &nb= sp;EFI_STATUS                  = ;          StatCode;
@@ -1702,6 +1783,13 @@ B= BTestGetStatusFunctionTest (
   // Get the EFI_SIMPLE_NETWOR= K_PROTOCOL Protocol interface to be tested
   //
 =  SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface;
+  DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface, &am= p;gBlackBoxEfiSimpleNetworkProtocolGuid);
+  StandardLib->Reco= rdMessage (
+                S= tandardLib,
+                E= FI_VERBOSE_LEVEL_DEFAULT,
+             =    L"Device Path: %s\r\n",
+         &nb= sp;      DevicePathStr
+         &n= bsp;      );
 
   //
  &n= bsp;// Check whether the state of network interface is EfiSimpleNetworkInit= ialized.
@@ -1969,6 +2057,7 @@ BBTestTransmitFunctionTest (
 = ;  EFI_TEST_ASSERTION              =      AssertionType;
   EFI_SIMPLE_NETWORK_PR= OTOCOL           *SnpInterface;
   = EFI_SIMPLE_NETWORK_STATE              St= ate1, State2;
+  UINT16            =                    *Devi= cePathStr;
   EFI_TEST_LOGGING_LIBRARY_PROTOCOL    = ; *LoggingLib;
   VOID           &n= bsp;                     =  *Buffer;
   UINTN           &= nbsp;                    = HeaderSize;
@@ -2015,6 +2104,13 @@ BBTestTransmitFunctionTest (
=    // Get the EFI_SIMPLE_NETWORK_PROTOCOL Protocol interface to b= e tested
   //
   SnpInterface =3D (EFI_SIMPL= E_NETWORK_PROTOCOL *)ClientInterface;
+  DevicePathStr =3D SctDev= icePathStrFromProtocol (SnpInterface, &gBlackBoxEfiSimpleNetworkProtoco= lGuid);
+  StandardLib->RecordMessage (
+     &= nbsp;          StandardLib,
+     &= nbsp;          EFI_VERBOSE_LEVEL_DEFAULT,
+ &= nbsp;              L"Device Path: %s\r\n= ",
+                DevicePath= Str
+                );
&= nbsp;
   //
   // Check whether the state of = network interface is EfiSimpleNetworkInitialized.
@@ -2247,6 +2343,7 @= @ BBTestReceiveFunctionTest (
   EFI_TEST_ASSERTION   &= nbsp;                AssertionType;=
   EFI_SIMPLE_NETWORK_PROTOCOL         =   *SnpInterface;
   EFI_SIMPLE_NETWORK_STATE   &nb= sp;          State1, State2;
+  UINT16 &= nbsp;                    =          *DevicePathStr;
   EFI_TE= ST_LOGGING_LIBRARY_PROTOCOL     *LoggingLib;
   VO= ID                     &n= bsp;            *Buffer;
   UI= NTN                     &= nbsp;           HeaderSize;
@@ -2290,6 +2387,= 13 @@ BBTestReceiveFunctionTest (
   // Get the EFI_SIMPLE_N= ETWORK_PROTOCOL Protocol interface to be tested
   //
&= nbsp;  SnpInterface =3D (EFI_SIMPLE_NETWORK_PROTOCOL *)ClientInterface= ;
+  DevicePathStr =3D SctDevicePathStrFromProtocol (SnpInterface= , &gBlackBoxEfiSimpleNetworkProtocolGuid);
+  StandardLib->= ;RecordMessage (
+               &n= bsp;StandardLib,
+               &n= bsp;EFI_VERBOSE_LEVEL_DEFAULT,
+           &n= bsp;    L"Device Path: %s\r\n",
+        = ;        DevicePathStr
+       &nbs= p;        );
 
   //
&nbs= p;  // Check whether the state of network interface is EfiSimpleNetwor= kInitialized.
-- 
2.34.1
_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#119938) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--1tH6TdQf8YklKMdDzqaE--