From nobody Fri May 3 05:22:07 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+44488+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+44488+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1564387567; cv=none; d=zoho.com; s=zohoarc; b=Ta3YpLS2TKasUrp8x9Qul8B4/3ovQtuhYVTCeyQyvhz4ZATn21X7fI2NrlNeq71VPiBoUmafat+aMBMZioLDTEWO/CIE98FaJPgzLEv5CBDhNxXw3B4Fk+01iVLxWGOgKDFq00f7+7bfl47vL6MCWEvbkXBklFTrKE4+p/S4eQs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564387567; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=aMlQb/IQzg0CvlqmTQ/t5SJsUOa9RtEwIlv/Fl2nS8c=; b=Lqx0Gcnzrd7Zt6Sfu75//7Z4qzZF88rQov4V/6KdjxJN9bjdDtcgW1khr3owb71oKlgnX8G29bYk+klrr3ypS/XXIiahKFA4lWO4uJrjUUWJDySA+mwQRq9Tk+/D0KCAun9Q3aVyipcT3tSjbWCP3iIA+Hru/TRPAclgzlnL66k= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+44488+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1564387567690154.13030796239832; Mon, 29 Jul 2019 01:06:07 -0700 (PDT) Return-Path: X-Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by groups.io with SMTP; Mon, 29 Jul 2019 01:06:07 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jul 2019 01:06:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,322,1559545200"; d="scan'208";a="179255164" X-Received: from chenmarc-mobl.gar.corp.intel.com ([10.5.245.189]) by FMSMGA003.fm.intel.com with ESMTP; 29 Jul 2019 01:06:05 -0700 From: "Marc W Chen" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Ray Ni Subject: [edk2-devel] [PATCH V2] MdePkg: Add PI 1.5 SmramMemoryReserve HOB file Date: Mon, 29 Jul 2019 16:04:52 +0800 Message-Id: <20190729080452.7548-1-marc.w.chen@intel.com> Precedence: Bulk List-Unsubscribe: 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,marc.w.chen@intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1564387567; bh=ZYNYkZq/ewiZ11v0RZcMZEOFleCCpn50EA7hAIUUzb0=; h=Cc:Date:From:Reply-To:Subject:To; b=v8WuNu7fgAMkSlZRwNwLI2MUY5FXgJNWJQv7yMvyz5csvyruyq7A4Sux7jTCvFuRnpv Kd9Kpk1OFpP3+Uzl82t715ufnVgMMBnifaML+OZje5BFdfdc4VoO9JruSrcqPYuXFyzz/ ZwMgk9c4UB6fwn4uAhKdTcPASF3+iJGGDi4= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This is a special GUID extension Hob to describe SMRAM memory regions Cc: Michael D Kinney Cc: Liming Gao Cc: Ray Ni Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2020 Signed-off-by: Marc W Chen --- MdePkg/Include/Guid/SmramMemoryReserve.h | 45 ++++++++++++++++++++++++++++= ++++ MdePkg/MdePkg.dec | 3 +++ 2 files changed, 48 insertions(+) create mode 100644 MdePkg/Include/Guid/SmramMemoryReserve.h diff --git a/MdePkg/Include/Guid/SmramMemoryReserve.h b/MdePkg/Include/Guid= /SmramMemoryReserve.h new file mode 100644 index 0000000000..3ba8c6f526 --- /dev/null +++ b/MdePkg/Include/Guid/SmramMemoryReserve.h @@ -0,0 +1,45 @@ +/** @file + This is a special GUID extension Hob to describe SMRAM memory regions. + + This file defines: + * the GUID used to identify the GUID HOB for reserving SMRAM regions. + * the data structure of SMRAM descriptor to describe SMRAM candidate reg= ions + * values of state of SMRAM candidate regions + * the GUID specific data structure of HOB for reserving SMRAM regions. + + Copyright (c) 2019, Intel Corporation. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent + + @par Revision Reference: + GUIDs defined in PI SPEC version 1.5. + +**/ + +#ifndef _SMRAM_MEMORY_RESERVE_H_ +#define _SMRAM_MEMORY_RESERVE_H_ + +#define EFI_SMM_SMRAM_MEMORY_GUID \ + { \ + 0x6dadf1d1, 0xd4cc, 0x4910, {0xbb, 0x6e, 0x82, 0xb1, 0xfd, 0x80, 0xff,= 0x3d } \ + } + +/** +* The GUID extension hob is to describe SMRAM memory regions supported by = the platform. +**/ +typedef struct { + /// + /// Designates the number of possible regions in the system + /// that can be usable for SMRAM. + /// + UINT32 NumberOfSmmReservedRegions; + /// + /// Used throughout this protocol to describe the candidate + /// regions for SMRAM that are supported by this platform. + /// + EFI_SMRAM_DESCRIPTOR Descriptor[1]; +} EFI_SMRAM_HOB_DESCRIPTOR_BLOCK; + +extern EFI_GUID gEfiSmmSmramMemoryReserveGuid; + +#endif + diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index b382efd578..ccfa220a02 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -749,6 +749,9 @@ ## Include/Guid/GraphicsInfoHob.h gEfiGraphicsDeviceInfoHobGuid =3D { 0xe5cb2ac9, 0xd35d, 0x4430, { 0x= 93, 0x6e, 0x1d, 0xe3, 0x32, 0x47, 0x8d, 0xe7 }} =20 + ## Include/Guid/SmramMemoryReserve.h + gEfiSmmSmramMemoryReserveGuid =3D { 0x6dadf1d1, 0xd4cc, 0x4910, { 0x= bb, 0x6e, 0x82, 0xb1, 0xfd, 0x80, 0xff, 0x3d }} + # # GUID defined in PI1.6 # --=20 2.16.2.windows.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 (#44488): https://edk2.groups.io/g/devel/message/44488 Mute This Topic: https://groups.io/mt/32640070/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-