From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web11.5674.1681816271366867949 for ; Tue, 18 Apr 2023 04:11:13 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=hV7zfPEj; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: victorx.hsu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681816273; x=1713352273; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zsvSiM7b62RX9UKfM53zlIpxP1Q9VFIbkCmAuERy5hY=; b=hV7zfPEjTabN8dYGCKVEbSibCXIgsFEEu8EaYg4o7lWZwhPI3Sjqfrk9 jlzyMNzOazIP9PhFcFUlKA7yA0XIgZxm6pU9kTaO74eVcBDCXfUpVQF56 5wxxBSsr2Aop3d2pKcxi+0SNbZrNZ6wzE0XLl5mH4LFf6DwW6EDVE58Nf Sxm2l07sx2aFv2pyyPdzf2nk6kkLNoF6lGnAhtNxNCO9ZzJFA42OqHipi rNO26BxqEXNVCYUVt8KVOhNy87ZegsgLhKqZ+6ROVD5W/qSb6Hlxm0nFV 8pZoxLTolDrhbmiHXnBdlCvykiJE7/G9pN6AE18QKuVEtZrIaJn6Wm5EC Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10683"; a="347892387" X-IronPort-AV: E=Sophos;i="5.99,207,1677571200"; d="scan'208";a="347892387" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2023 04:11:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10683"; a="834846788" X-IronPort-AV: E=Sophos;i="5.99,207,1677571200"; d="scan'208";a="834846788" Received: from hsuc1x-desk2.gar.corp.intel.com ([10.227.107.44]) by fmsmga001.fm.intel.com with ESMTP; 18 Apr 2023 04:11:11 -0700 From: victorx.hsu@intel.com To: devel@edk2.groups.io Cc: VictorX Hsu , Michael D Kinney , Guo Gua , Chan Laura , Prakashan Krishnadas Veliyathuparambil , K N Karthik Subject: [PATCH 3/4] MdePkg: Add NULL library of TraceHubDebugSysTLib Date: Tue, 18 Apr 2023 19:05:00 +0800 Message-Id: X-Mailer: git-send-email 2.40.0.windows.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: VictorX Hsu REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4144 This Library is NULL library of TraceHubDebugSysTLib. Cc: Michael D Kinney Cc: Guo Gua Cc: Chan Laura Cc: Prakashan Krishnadas Veliyathuparambil Cc: K N Karthik Signed-off-by: VictorX Hsu --- .../TraceHubDebugSysTLibNull.c | 76 +++++++++++++++++++ .../TraceHubDebugSysTLibNull.inf | 29 +++++++ MdePkg/MdePkg.dsc | 1 + 3 files changed, 106 insertions(+) create mode 100644 MdePkg/Library/TraceHubDebugSysTLibNull/TraceHubDebugSy= sTLibNull.c create mode 100644 MdePkg/Library/TraceHubDebugSysTLibNull/TraceHubDebugSy= sTLibNull.inf diff --git a/MdePkg/Library/TraceHubDebugSysTLibNull/TraceHubDebugSysTLibNu= ll.c b/MdePkg/Library/TraceHubDebugSysTLibNull/TraceHubDebugSysTLibNull.c new file mode 100644 index 0000000000..0bd14d4e24 --- /dev/null +++ b/MdePkg/Library/TraceHubDebugSysTLibNull/TraceHubDebugSysTLibNull.c @@ -0,0 +1,76 @@ +/** @file=0D +Null library of TraceHubDebugSysTLib.=0D +=0D +Copyright (c) 2023, Intel Corporation. All rights reserved.
=0D +=0D +SPDX-License-Identifier: BSD-2-Clause-Patent=0D +=0D +**/=0D +=0D +#include =0D +#include =0D +=0D +/**=0D + Write debug string to specified Trace Hub MMIO address.=0D +=0D + @param[in] SeverityType Severity type of input message.=0D + @param[in] Buffer A pointer to the data buffer.=0D + @param[in] NumberOfBytes The size of data buffer.=0D +=0D + @retval RETURN_SUCCESS Data was written to Trace Hub.=0D + @retval Other Failed to output Trace Hub message.=0D +**/=0D +RETURN_STATUS=0D +EFIAPI=0D +TraceHubSysTDebugWrite (=0D + IN TRACE_HUB_SEVERITY_TYPE SeverityType,=0D + IN UINT8 *Buffer,=0D + IN UINTN NumberOfBytes=0D + )=0D +{=0D + return RETURN_UNSUPPORTED;=0D +}=0D +=0D +/**=0D + Write catalog status code message to specified Trace Hub MMIO address.=0D +=0D + @param[in] SeverityType Severity type of input message.=0D + @param[in] Id Catalog ID.=0D + @param[in] Guid Driver Guid.=0D +=0D + @retval RETURN_SUCCESS Data was written to Trace Hub.=0D + @retval Other Failed to output Trace Hub message.=0D +**/=0D +RETURN_STATUS=0D +EFIAPI=0D +TraceHubSysTWriteCataLog64StatusCode (=0D + IN TRACE_HUB_SEVERITY_TYPE SeverityType,=0D + IN UINT64 Id,=0D + IN GUID *Guid=0D + )=0D +{=0D + return RETURN_UNSUPPORTED;=0D +}=0D +=0D +/**=0D + Write catalog message to specified Trace Hub MMIO address.=0D +=0D + @param[in] SeverityType Severity type of input message.=0D + @param[in] Id Catalog ID.=0D + @param[in] NumberOfParams Number of entries in argument list.=0D + @param[in] ... Catalog message parameters.=0D +=0D + @retval RETURN_SUCCESS Data was written to Trace Hub.=0D + @retval Other Failed to output Trace Hub message.=0D +**/=0D +RETURN_STATUS=0D +EFIAPI=0D +TraceHubSysTWriteCataLog64 (=0D + IN TRACE_HUB_SEVERITY_TYPE SeverityType,=0D + IN UINT64 Id,=0D + IN UINTN NumberOfParams,=0D + ...=0D + )=0D +{=0D + return RETURN_UNSUPPORTED;=0D +}=0D diff --git a/MdePkg/Library/TraceHubDebugSysTLibNull/TraceHubDebugSysTLibNu= ll.inf b/MdePkg/Library/TraceHubDebugSysTLibNull/TraceHubDebugSysTLibNull.i= nf new file mode 100644 index 0000000000..ba894fc250 --- /dev/null +++ b/MdePkg/Library/TraceHubDebugSysTLibNull/TraceHubDebugSysTLibNull.inf @@ -0,0 +1,29 @@ +## @file=0D +# Null library of TraceHubDebugSysTLib.=0D +#=0D +# Copyright (c) 2023, Intel Corporation. All rights reserved.
=0D +#=0D +# SPDX-License-Identifier: BSD-2-Clause-Patent=0D +#=0D +##=0D +=0D +=0D +[Defines]=0D + INF_VERSION =3D 0x00010005=0D + BASE_NAME =3D TraceHubDebugSysTLibNull=0D + FILE_GUID =3D 16196A4E-4196-4AF4-9A6B-F4D2ACC430A8= =0D + MODULE_TYPE =3D BASE=0D + VERSION_STRING =3D 1.0=0D + LIBRARY_CLASS =3D TraceHubDebugSysTLib=0D +=0D +#=0D +# The following information is for reference only and not required by the = build tools.=0D +#=0D +# VALID_ARCHITECTURES =3D IA32 X64=0D +#=0D +=0D +[Packages]=0D + MdePkg/MdePkg.dec=0D +=0D +[Sources]=0D + TraceHubDebugSysTLibNull.c=0D diff --git a/MdePkg/MdePkg.dsc b/MdePkg/MdePkg.dsc index ae9d871c52..82a4309ab2 100644 --- a/MdePkg/MdePkg.dsc +++ b/MdePkg/MdePkg.dsc @@ -183,6 +183,7 @@ MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf=0D MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf=0D MdePkg/Library/TdxLib/TdxLib.inf=0D + MdePkg/Library/TraceHubDebugSysTLibNull/TraceHubDebugSysTLibNull.inf=0D MdePkg/Library/MipiSysTLib/MipiSysTLib.inf=0D =0D [Components.EBC]=0D --=20 2.40.0.windows.1