Adds the System Agent NVS ACPI table and structures Cc: Sai Chaganty <rangasai.v.chaga...@intel.com> Cc: Nate DeSimone <nathaniel.l.desim...@intel.com> Cc: Isaac Oram <isaac.w.o...@intel.com> Cc: Rosen Chuang <rosen.chu...@intel.com> Signed-off-by: Saloni Kasbekar <saloni.kasbe...@intel.com> --- .../SystemAgent/AcpiTables/SaSsdt/SaNvs.asl | 18 +++++++++++ .../IncludePrivate/Protocol/SaNvsArea.h | 30 +++++++++++++++++++ .../SystemAgent/IncludePrivate/SaNvsAreaDef.h | 22 ++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 Silicon/Intel/AlderlakeSiliconPkg/SystemAgent/AcpiTables/SaSsdt/SaNvs.asl create mode 100644 Silicon/Intel/AlderlakeSiliconPkg/SystemAgent/IncludePrivate/Protocol/SaNvsArea.h create mode 100644 Silicon/Intel/AlderlakeSiliconPkg/SystemAgent/IncludePrivate/SaNvsAreaDef.h
diff --git a/Silicon/Intel/AlderlakeSiliconPkg/SystemAgent/AcpiTables/SaSsdt/SaNvs.asl b/Silicon/Intel/AlderlakeSiliconPkg/SystemAgent/AcpiTables/SaSsdt/SaNvs.asl new file mode 100644 index 0000000000..e9785873d2 --- /dev/null +++ b/Silicon/Intel/AlderlakeSiliconPkg/SystemAgent/AcpiTables/SaSsdt/SaNvs.asl @@ -0,0 +1,18 @@ +/**@file + + Copyright (c) 2022, Intel Corporation. All rights reserved.<BR> + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + + // + // Define SA NVS Area operation region. + // + + + OperationRegion(SANV,SystemMemory,SANB,SANL) + Field(SANV,AnyAcc,Lock,Preserve) + { Offset(0), M64B, 64, // Offset(0), Base of above 4GB MMIO resource + Offset(8), M64L, 64, // Offset(8), Length of above 4GB MMIO resource + Offset(16), M32B, 32, // Offset(16), Base of below 4GB MMIO resource + Offset(20), M32L, 32, // Offset(20), Length of below 4GB MMIO resource + } \ No newline at end of file diff --git a/Silicon/Intel/AlderlakeSiliconPkg/SystemAgent/IncludePrivate/Protocol/SaNvsArea.h b/Silicon/Intel/AlderlakeSiliconPkg/SystemAgent/IncludePrivate/Protocol/SaNvsArea.h new file mode 100644 index 0000000000..3a75465843 --- /dev/null +++ b/Silicon/Intel/AlderlakeSiliconPkg/SystemAgent/IncludePrivate/Protocol/SaNvsArea.h @@ -0,0 +1,30 @@ +/** @file + Definition of the System Agent global NVS area protocol. + This protocol publishes the address and format of a global ACPI NVS buffer + used as a communications buffer between SMM/DXE/PEI code and ASL code. + + Copyright (c) 2022, Intel Corporation. All rights reserved.<BR> + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#ifndef _SYSTEM_AGENT_NVS_AREA_H_ +#define _SYSTEM_AGENT_NVS_AREA_H_ + +// +// SA NVS Area definition +// +#include <SaNvsAreaDef.h> + +// +// Extern the GUID for protocol users. +// +extern EFI_GUID gSaNvsAreaProtocolGuid; + +/// +/// System Agent Global NVS Area Protocol +/// +typedef struct { + SYSTEM_AGENT_NVS_AREA *Area; ///< System Agent Global NVS Area Structure +} SYSTEM_AGENT_NVS_AREA_PROTOCOL; + +#endif // _SYSTEM_AGENT_NVS_AREA_H_ diff --git a/Silicon/Intel/AlderlakeSiliconPkg/SystemAgent/IncludePrivate/SaNvsAreaDef.h b/Silicon/Intel/AlderlakeSiliconPkg/SystemAgent/IncludePrivate/SaNvsAreaDef.h new file mode 100644 index 0000000000..5b8136866a --- /dev/null +++ b/Silicon/Intel/AlderlakeSiliconPkg/SystemAgent/IncludePrivate/SaNvsAreaDef.h @@ -0,0 +1,22 @@ +/**@file + + Copyright (c) 2022, Intel Corporation. All rights reserved.<BR> + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + + // + // Define SA NVS Area operation region. + // +#ifndef _SA_NVS_AREA_DEF_H_ +#define _SA_NVS_AREA_DEF_H_ + +#pragma pack (push,1) +typedef struct { + UINT64 Mmio64Base; ///< Offset 0 Base of above 4GB MMIO resource + UINT64 Mmio64Length; ///< Offset 8 Length of above 4GB MMIO resource + UINT32 Mmio32Base; ///< Offset 16 Base of below 4GB MMIO resource + UINT32 Mmio32Length; ///< Offset 20 Length of below 4GB MMIO resource +} SYSTEM_AGENT_NVS_AREA; + +#pragma pack(pop) +#endif -- 2.36.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#106124): https://edk2.groups.io/g/devel/message/106124 Mute This Topic: https://groups.io/mt/99554477/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-