From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (NAM11-BN8-obe.outbound.protection.outlook.com [40.107.236.100]) by mx.groups.io with SMTP id smtpd.web08.1661.1663050036318316366 for ; Mon, 12 Sep 2022 23:20:37 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@os.amperecomputing.com header.s=selector2 header.b=LTSn+s2W; spf=pass (domain: os.amperecomputing.com, ip: 40.107.236.100, mailfrom: nhi@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V6OSw66soU/17V+PtLQhbtPDq1UtZq5wiozZpFFGjeGQsGFQ0ujujKIo0PsvCwu/3l8WuJ4k1Q2KnOxrUKnbH440nlCG6TvlFGyWiMtfgOHTA4IF2o7EPFGug9bLOGdWt23DAyp9dQdCZi7Ah3RtCWYYSfBunNAEBlDBDljHWZaOYuJJ3BrMWbQUA+n23cmdDISgX/KDZ1H7TPPqqW1Hgi0QFB4VACeksfM/166mXB7GzkmbHw7UelnfzqBgEG8dIJpraPJ7g+rHSnM1lhJ7yKv7pJsqHIE96RTI1UZF96k+GFprxEwhJPMtfJQa+C9cY5nohv23XOgBuECTmMP/0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1eVnAGg1+pv0d9FHy+AcOBvkMvblHdqlZgYbr4E7PTQ=; b=X9Q/9tJFvxi04Tix4a7ncOQKij8UjDxkgVVoE9o22kDIsSo/k7lZd0rz6g1oVZ5a6g0x/RP5CV6EJYqv0VX8a07uzoTN8Gsg+/kwlToGFKpubCW4quOh6midGyZ9OMzOSD4Nyi8o800ose9kLt7VFw7fvqhOTqidzIkRLoM0x1GKtaYKvVGYDlWrnYSitUaXnTcQh6Neg9HNIhQzSIJ/CkFiKTzZgJBRrLY5cLN1AnYa6E78TM8vuQ8WYxk6Abi8YdZtfIIVX6Pns9VpzgIKoa+bg+iQYK8Kle+qMeMjhRfAZGpZhfLMGpI25DTv54J9jhaixIXHeS/s+LmWLDQ4og== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1eVnAGg1+pv0d9FHy+AcOBvkMvblHdqlZgYbr4E7PTQ=; b=LTSn+s2WuA5b4qI14tNutzh0x4PtIT74Tg8vAwYFlVChJGRXG6PunPUIBp46SRWwDFXoE1Wmrp8kHfjsl+Vh4QIer+ikwbep841RKqC9BNl8TB7fCc6WcWlmdt2FcozKok0eBDX+o5XStUph+Bm15m37c9hTcDmV9HjAmePlp1k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from PH0PR01MB7287.prod.exchangelabs.com (2603:10b6:510:10a::21) by MN2PR01MB5854.prod.exchangelabs.com (2603:10b6:208:195::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Tue, 13 Sep 2022 06:20:32 +0000 Received: from PH0PR01MB7287.prod.exchangelabs.com ([fe80::fc6b:4f56:8f32:dfa5]) by PH0PR01MB7287.prod.exchangelabs.com ([fe80::fc6b:4f56:8f32:dfa5%4]) with mapi id 15.20.5612.022; Tue, 13 Sep 2022 06:20:32 +0000 From: "Nhi Pham" To: devel@edk2.groups.io, quic_llindhol@quicinc.com, ardb+tianocore@kernel.org, sami.mujawar@arm.com, quic_rcran@quicinc.com CC: patches@amperecomputing.com, Nhi Pham Subject: [edk2-platforms][PATCH 1/2] SbsaQemu/OemMiscLib: Update for new OemMiscLib APIs Date: Tue, 13 Sep 2022 13:17:34 +0700 Message-ID: <20220913061735.735632-2-nhi@os.amperecomputing.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220913061735.735632-1-nhi@os.amperecomputing.com> References: <20220913061735.735632-1-nhi@os.amperecomputing.com> X-ClientProxiedBy: SI1PR02CA0029.apcprd02.prod.outlook.com (2603:1096:4:1f4::20) To PH0PR01MB7287.prod.exchangelabs.com (2603:10b6:510:10a::21) Return-Path: nhi@os.amperecomputing.com MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR01MB7287:EE_|MN2PR01MB5854:EE_ X-MS-Office365-Filtering-Correlation-Id: dacc0424-f422-4977-0607-08da95500fd0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W8Ts/H+j+CaVjbZWvwb7DZ/5aChuJUfGIqsCaXYRX0bG5Be4lYAjIcW9LWA0Ffv7hnToKcE9hYL8GjCoSOmsFO7Q2Aqqkn3q7Hl/5hwBmUTvxH1Z0eLLWOQ8A50bqOHjE4CPfHAPnpJ+kbDdVT2y2vb07YOGN8SyAZSkLcX9qi/2dxK05TQ4Njy1l/8cv0UuQpmPld7bxkGaEN0CnmBQn8Xfe+s2d0b0AwUniJpU4mwHNIbL4EdGYC/4xC+cd3YTniPr9eVFyJEeFeM4P+/a5AG6WugvZFPSSe3isLPyLbr67X11LRruRgM3MQRiGJrNGDd6jeJClKg+LOV3G3fgG11OShRVY8pBzfIpEVBYgZDInzbs7cO0buvyY9CroCAbwdl2cYMZQIkXd3WelFqaoXOZ42OT0kCuTMw9zkZoVS/pKdRykv/SrJ9pc/QNXCO3iHYk7BtnE7yzmWrs4XvL6JBiqn2jZsy2vRIbBsF+QAWN7ImKCQM4lp7TTxWnYxsuNaKsuiFMoVh+5X+nuue16YL69D2sL6It45nFPZ+1LHyEx3H/TS5qLEDqOc9SK6qdVnlycBGWsppnnMMEPOjecM0L2LyjNbJDZNxdPU55Df3C+p2ceGajm/uI+2DkUP078hHsKZAlqojFA2EUpGarCLjauY7qFiERiIyMye9Nr2XKoTq32E93Qwl+Yd19iSG57wedt/hDteQMYyfzvYkEU/Wzh5mKa5XCK98z6sRY9jVUUz7NmGYovWSwhOwbR/rDIwiVJ2DMgeu9rHP86LhGow== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR01MB7287.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(396003)(39850400004)(366004)(346002)(376002)(451199015)(26005)(478600001)(1076003)(6486002)(107886003)(186003)(5660300002)(2616005)(6512007)(38100700002)(316002)(2906002)(8936002)(4326008)(41300700001)(66946007)(38350700002)(8676002)(66476007)(66556008)(52116002)(86362001)(6506007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?MOPtzdQu0ABeG9JvWGXnl21Pa1UZ3OJ+LWt8oK9bTz9bnAxaVvdLq0NaB6FX?= =?us-ascii?Q?FWK5Ggp2GSmrpUkCuKUvN3hK10Hec2Q2y8t0WR/3kkpHiE4+UpHa2EEqBE4q?= =?us-ascii?Q?fP0oyakM3LjFq/FJBDVQ711DoeaY/gFdkFSlXYKrbdkzOqYuyObswyYR0g+T?= =?us-ascii?Q?U3qM4709Bp30LhLNoOZkkldjbgS+GoUxvd1A+qeVxe7ZVxtxxEmUVJvQRpFv?= =?us-ascii?Q?NCmygG4M+g3KMWO0IyZBMr5bP2oCpJVI2Cze6JkCTTXnRR4KzPHun7nRACmn?= =?us-ascii?Q?2ZP5yD1K1MntGSwrzoys2RgpaCivBqY35Cq1q1Lr1VbLLaVIhxC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pPEr63J9hnGnZLEux/zpdXDnm9kZvCQbDC/gmjFMj?= =?us-ascii?Q?PBSDnpsC8+72YwMS1IcyA8LHdJPe2uSpqRS2lOQw6y7hnoZSzdDLJGcEDPAq?= =?us-ascii?Q?b8Q6aw9L+mVXMdM7V6NOJ4jzcUcSO2nvXh/phOxbxEShENiKzCjdk8tX/dUK?= =?us-ascii?Q?0KmHSw7S1M20d29qaA+jqKMHrZOdp5eMvqOx+V3sn9GBzTiuJ3or+YZ4qbD0?= =?us-ascii?Q?4XDWwHRwLDi0c6rjOWXkc9iqDmcLUx5k/IehCQLhtxE7hMs6P68X8f3Dkfeo?= =?us-ascii?Q?Bkc1630Pj2JTzYClr8F6a4CE8z89SN0QyaJtkQ/iD84ulqN4kFyf8Vp6sDc9?= =?us-ascii?Q?2T2aqL8k5G7uE6JFKWEq5a57kYHtxQ5E/lbKhq6KfVrTi7AsFtJgxtrbFLAh?= =?us-ascii?Q?QPQ5de7V6VWgtDfi/OGGlME=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: dacc0424-f422-4977-0607-08da95500fd0 X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB7287.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2022 06:20:32.5934 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Q8a5fdWZzjb3Jkh9h0HzVWNXP3tYHL4RV29tfZsBMLc36Y7mhX+tn1cXn+rKgWOFfBNhcehJ3pkdJf6ew9KVUj7zZj13LbuvYfiv3267/3Y= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR01MB5854 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain This is to reflect the new APIs added to edk2/OemMiscLib library. Signed-off-by: Nhi Pham --- Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.inf | 3 ++ Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.c | 42 ++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.inf b/Platform/Qe= mu/SbsaQemu/OemMiscLib/OemMiscLib.inf index 04a07a55cee9..94e368e50a3c 100644 --- a/Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.inf +++ b/Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.inf @@ -34,6 +34,9 @@ [LibraryClasses] IoLib PcdLib =20 +[Guids] + gZeroGuid + [Pcd] gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdDeviceTreeBaseAddress =20 diff --git a/Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.c b/Platform/Qemu= /SbsaQemu/OemMiscLib/OemMiscLib.c index 326bb56bcfa3..f14c18ef0874 100644 --- a/Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.c +++ b/Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.c @@ -9,6 +9,7 @@ **/ =20 #include +#include #include #include #include @@ -330,3 +331,44 @@ OemGetChassisNumPowerCords ( { return 1; } + +/** + Fetches the system UUID. + + @param[out] SystemUuid The pointer to the buffer to store the System= UUID. + +**/ +VOID +EFIAPI +OemGetSystemUuid ( + OUT GUID *SystemUuid + ) +{ + CopyGuid (SystemUuid, &gZeroGuid); +} + +/** Fetches the BIOS release. + + @return The BIOS release. +**/ +UINT16 +EFIAPI +OemGetBiosRelease ( + VOID + ) +{ + return 0xFFFF; +} + +/** Fetches the embedded controller firmware release. + + @return The embedded controller firmware release. +**/ +UINT16 +EFIAPI +OemGetEmbeddedControllerFirmwareRelease ( + VOID + ) +{ + return 0xFFFF; +} --=20 2.25.1