From nobody Tue Feb 10 17:45:41 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+110134+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+110134+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1698341642; cv=none; d=zohomail.com; s=zohoarc; b=knoZ9vBlT/ncwN2vMLyk95pzXPhm2PaSZ2nMdKYbYLy4w2BodHwoln7zd3nlV1sRsM7CzCNziNcIjdWuEY6xxTXEZOsM7JQxPL0INFmelcHcIf0c0EJqRBvZ/lVNdyOgu5pmDyELrbxoM3MRQVZmuPtGUDyeBhY5qLYiHcpbZGk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1698341642; 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=F9ydredUDAOyfh0gf/WkACXoCWe3mPlNKCYoYC6ZjTc=; b=TvedN/HR2G/YH1MhYbR8hnwZGhzq0P19Jc8NlHCUYmoSiLs53HTzr9Hyhda4YqEigZ8WhcPBL+xHr5mAvsKFj6nINWgqXlm0HRJqauYHIetEGNknhOKWFDi0mpQgs0TnauPUwxpS3KRGO3i0KVGj0/HcJqrV8rCF2dyT1sA09n8= 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+110134+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 1698341642215653.9998086554443; Thu, 26 Oct 2023 10:34:02 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=k+fQMhKoKosoMCvaM0HY3pvdfrKt2C0/33VrlP5DKBQ=; 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=1698341641; v=1; b=KiTl3pIHtUNPhIYTfeGjGXCGTN6OrpoWqg2dQVoQP/z8sCFZlwuRKVhUBVO54zKHwKrVgvNp Gx/qJ1oFvHQ9bgDDLbvvdg6+rY7B1IcBcJWvv7iWLCaQrOKSOynrSJ/89SLvV341eiUCy5kI+Ck byHenCeZ2JFP8FyrlB0Ij3ls= X-Received: by 127.0.0.2 with SMTP id 8qHoYY1788612xU9rMMojvWz; Thu, 26 Oct 2023 10:34:01 -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.206877.1698341641215793085 for ; Thu, 26 Oct 2023 10:34:01 -0700 X-Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 6D3E42600A6; Thu, 26 Oct 2023 19:33:58 +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 vEN0a592BSCm; Thu, 26 Oct 2023 19:33:56 +0200 (CEST) X-Received: from [192.168.210.114] (83.11.185.48.ipv4.supernova.orange.pl [83.11.185.48]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id E493A2608AB; Thu, 26 Oct 2023 19:33:55 +0200 (CEST) From: "Marcin Juszkiewicz" Date: Thu, 26 Oct 2023 19:33:49 +0200 Subject: [edk2-devel] [PATCH edk2-platforms v6 1/4] SbsaQemu: introduce macro to compare platform version MIME-Version: 1.0 Message-Id: <20231026-ehci-xhci-fix-v6-1-923ae4f73b8e@linaro.org> References: <20231026-ehci-xhci-fix-v6-0-923ae4f73b8e@linaro.org> In-Reply-To: <20231026-ehci-xhci-fix-v6-0-923ae4f73b8e@linaro.org> To: devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Jeremy Linton , Nhi Pham , Chuong Tran , Rebecca Cran , Marcin Juszkiewicz 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: KUn7HzRweuAH98JjkDHrZ2sSx1787277AA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1698341643735100002 We want to check "if platver < 0.3" in an easy way. Signed-off-by: Marcin Juszkiewicz --- .../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 (#110134): https://edk2.groups.io/g/devel/message/110134 Mute This Topic: https://groups.io/mt/102205080/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-