From nobody Tue Feb 10 23:14:28 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+109626+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+109626+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1697450803; cv=none; d=zohomail.com; s=zohoarc; b=SLTUfMzaMa0ottL0M05IpEMGVsoBofwRSIgWSBjjhR7awlNmwnAo7NQyBVHDxObjzRRoOwZvwT6q0XOWRYLBxWzCiIAgAztttHCZa5g02Sv3/TS3SVGjIIebzVNy5ahK+avxSywn26T8JxdAaDTd5t5mnujWSLHKOegSZsX/gQE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697450803; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=XtYHP4UMe/Rh24Ka9AkwbluGMq8QSGUxScs6bS2tAHg=; b=dyTRCv9dqKGiKYbDoKNU1CJJjXpCBjEZ6TBqF2mfA+RqEy79xY6gm3PfmJ0O+ZiLLHqP9xo7yNY4PYR+CJrD+oanNnnP3KC0KZHMqDUWza6YjfzyMfdOZDvK1m0n29+mdK3YtzNLzmg9hxydLS8FLSalGoRq9qjyHcTlW9zqNsU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+109626+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 169745080373024.638754603707866; Mon, 16 Oct 2023 03:06:43 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=ZVGyLH54DoZL5qW5aDNOi4ezGLcs2x7rlyMcWY93P5k=; c=relaxed/simple; d=groups.io; h=From:Date:Subject:MIME-Version:Message-Id:References:In-Reply-To:To:Cc:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20140610; t=1697450803; v=1; b=N3JD0pSCju6GWLwaUAkf8OqT2gVDS8N83cNLdVLVgYHE9D5e8adKz396DMXSh0GwdqAYi2Wu mNCoDs0NNV7Ed88yIQr+CZvxiLFmG0EpShYIpWzV54gVADfvkXoD6rdyHen0CzWnR6u+ssEd8LZ UYsj3ox0KIF9KUOO1cJxihhE= X-Received: by 127.0.0.2 with SMTP id P8wAYY1788612xNVI1yLekqr; Mon, 16 Oct 2023 03:06:43 -0700 X-Received: from muminek.juszkiewicz.com.pl (muminek.juszkiewicz.com.pl [213.251.184.221]) by mx.groups.io with SMTP id smtpd.web10.115206.1697450801993570866 for ; Mon, 16 Oct 2023 03:06:42 -0700 X-Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 45AE5260B8D; Mon, 16 Oct 2023 12:06:39 +0200 (CEST) X-Virus-Scanned: Debian amavis at juszkiewicz.com.pl X-Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavis, port 10024) with ESMTP id ZTRa8piOd0vM; Mon, 16 Oct 2023 12:06:37 +0200 (CEST) X-Received: from [172.17.0.1] (83.11.27.172.ipv4.supernova.orange.pl [83.11.27.172]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id DC285260AFA; Mon, 16 Oct 2023 12:06:36 +0200 (CEST) From: "Marcin Juszkiewicz" Date: Mon, 16 Oct 2023 12:06:27 +0200 Subject: [edk2-devel] [PATCH edk2-platforms v2 1/4] SbsaQemu: introduce macro to compare platform version MIME-Version: 1.0 Message-Id: <20231016-ehci-xhci-fix-v2-1-cec625451daf@linaro.org> References: <20231016-ehci-xhci-fix-v2-0-cec625451daf@linaro.org> In-Reply-To: <20231016-ehci-xhci-fix-v2-0-cec625451daf@linaro.org> To: devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Jeremy Linton , Nhi Pham , Chuong Tran , Rebecca Cran 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,marcin.juszkiewicz@linaro.org List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: CNnNLYTo4rKfDMGLLhHi3rSex1787277AA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1697450804387100003 We want to check "if platver < 0.3" in an easy way. --- .../IndustryStandard/SbsaQemuPlatformVersion.h | 25 ++++++++++++++++= ++++ 1 file changed, 25 insertions(+) diff --git a/Silicon/Qemu/SbsaQemu/Include/IndustryStandard/SbsaQemuPlatfor= mVersion.h b/Silicon/Qemu/SbsaQemu/Include/IndustryStandard/SbsaQemuPlatfor= mVersion.h new file mode 100644 index 000000000000..dd2483787002 --- /dev/null +++ b/Silicon/Qemu/SbsaQemu/Include/IndustryStandard/SbsaQemuPlatformVersio= n.h @@ -0,0 +1,25 @@ +/** @file +* +* Copyright (c) Linaro Limited. All rights reserved. +* +* SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#ifndef SBSAQEMUPLATFORM_VERSION_H +#define SBSAQEMUPLATFORM_VERSION_H + +/* + * Compare PlatformVersion + * + */ + +#define PLATFORM_VERSION_LESS_THAN(Major, Minor) ( \ + ( \ + ( PcdGet32 (PcdPlatformVersionMajor) < Major) || \ + ( \ + ( PcdGet32 (PcdPlatformVersionMajor) =3D=3D Major) && \ + ( PcdGet32 (PcdPlatformVersionMinor) < Minor) \ + ) \ + ) \ +) +#endif --=20 2.41.0 -=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 (#109626): https://edk2.groups.io/g/devel/message/109626 Mute This Topic: https://groups.io/mt/101992602/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-