summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/IndustryStandard
diff options
context:
space:
mode:
authorChris Jones <christopher.jones@arm.com>2021-07-21 11:44:21 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-08-11 01:53:28 +0000
commit1803757a9bef854d732764a4235bbf710b665880 (patch)
treecd81560ba48e1be181e5b105b36fe97ed17b94e5 /MdePkg/Include/IndustryStandard
parent75c4a8e10d5f5458cb94d3ed63749a2cce9e43b0 (diff)
downloadedk2-1803757a9bef854d732764a4235bbf710b665880.tar.gz
edk2-1803757a9bef854d732764a4235bbf710b665880.tar.bz2
edk2-1803757a9bef854d732764a4235bbf710b665880.zip
MdePkg: Add Secure Access Components in the SDEV table
Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3516) Make changes to ACPI 6.4 header according to the latest specification: - ACPI 6.4 January 2021, Section 5.2.26.1.1 - Mantis ID 2111 (https://mantis.uefi.org/mantis/view.php?id=2111) Signed-off-by: Chris Jones <christopher.jones@arm.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'MdePkg/Include/IndustryStandard')
-rw-r--r--MdePkg/Include/IndustryStandard/Acpi64.h80
1 files changed, 56 insertions, 24 deletions
diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/IndustryStandard/Acpi64.h
index cd09300380..4faed17a9e 100644
--- a/MdePkg/Include/IndustryStandard/Acpi64.h
+++ b/MdePkg/Include/IndustryStandard/Acpi64.h
@@ -1661,15 +1661,16 @@ typedef struct {
#define EFI_ACPI_6_4_SECURE_DEVICES_TABLE_REVISION 0x01
///
-/// Secure Devcice types
+/// Secure Device types
///
-#define EFI_ACPI_6_4_SDEV_TYPE_PCIE_ENDPOINT_DEVICE 0x01
#define EFI_ACPI_6_4_SDEV_TYPE_ACPI_NAMESPACE_DEVICE 0x00
+#define EFI_ACPI_6_4_SDEV_TYPE_PCIE_ENDPOINT_DEVICE 0x01
///
-/// Secure Devcice flags
+/// Secure Device flags
///
-#define EFI_ACPI_6_4_SDEV_FLAG_ALLOW_HANDOFF BIT0
+#define EFI_ACPI_6_4_SDEV_FLAG_ALLOW_HANDOFF BIT0
+#define EFI_ACPI_6_4_SDEV_FLAG_SECURE_ACCESS_COMPONENTS_PRESENT BIT1
///
/// SDEV Structure Header
@@ -1681,32 +1682,63 @@ typedef struct {
} EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER;
///
-/// PCIe Endpoint Device based Secure Device Structure
+/// ACPI_NAMESPACE_DEVICE based Secure Device Structure
///
typedef struct {
- UINT8 Type;
- UINT8 Flags;
- UINT16 Length;
- UINT16 PciSegmentNumber;
- UINT16 StartBusNumber;
- UINT16 PciPathOffset;
- UINT16 PciPathLength;
- UINT16 VendorSpecificDataOffset;
- UINT16 VendorSpecificDataLength;
-} EFI_ACPI_6_4_SDEV_STRUCTURE_PCIE_ENDPOINT_DEVICE;
+ EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER Header;
+ UINT16 DeviceIdentifierOffset;
+ UINT16 DeviceIdentifierLength;
+ UINT16 VendorSpecificDataOffset;
+ UINT16 VendorSpecificDataLength;
+ UINT16 SecureAccessComponentsOffset;
+ UINT16 SecureAccessComponentsLength;
+} EFI_ACPI_6_4_SDEV_STRUCTURE_ACPI_NAMESPACE_DEVICE;
///
-/// ACPI_NAMESPACE_DEVICE based Secure Device Structure
+/// Secure Access Component Types
+///
+#define EFI_ACPI_6_4_SDEV_SECURE_ACCESS_COMPONENT_TYPE_IDENTIFICATION 0x00
+#define EFI_ACPI_6_4_SDEV_SECURE_ACCESS_COMPONENT_TYPE_MEMORY 0x01
+
+///
+/// Identification Based Secure Access Component
///
typedef struct {
- UINT8 Type;
- UINT8 Flags;
- UINT16 Length;
- UINT16 DeviceIdentifierOffset;
- UINT16 DeviceIdentifierLength;
- UINT16 VendorSpecificDataOffset;
- UINT16 VendorSpecificDataLength;
-} EFI_ACPI_6_4_SDEV_STRUCTURE_ACPI_NAMESPACE_DEVICE;
+ EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER Header;
+ UINT16 HardwareIdentifierOffset;
+ UINT16 HardwareIdentifierLength;
+ UINT16 SubsystemIdentifierOffset;
+ UINT16 SubsystemIdentifierLength;
+ UINT16 HardwareRevision;
+ UINT8 HardwareRevisionPresent;
+ UINT8 ClassCodePresent;
+ UINT8 PciCompatibleBaseClass;
+ UINT8 PciCompatibleSubClass;
+ UINT8 PciCompatibleProgrammingInterface;
+} EFI_ACPI_6_4_SDEV_SECURE_ACCESS_COMPONENT_IDENTIFICATION_STRUCTURE;
+
+///
+/// Memory-based Secure Access Component
+///
+typedef struct {
+ EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER Header;
+ UINT32 Reserved;
+ UINT64 MemoryAddressBase;
+ UINT64 MemoryLength;
+} EFI_ACPI_6_4_SDEV_SECURE_ACCESS_COMPONENT_MEMORY_STRUCTURE;
+
+///
+/// PCIe Endpoint Device based Secure Device Structure
+///
+typedef struct {
+ EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER Header;
+ UINT16 PciSegmentNumber;
+ UINT16 StartBusNumber;
+ UINT16 PciPathOffset;
+ UINT16 PciPathLength;
+ UINT16 VendorSpecificDataOffset;
+ UINT16 VendorSpecificDataLength;
+} EFI_ACPI_6_4_SDEV_STRUCTURE_PCIE_ENDPOINT_DEVICE;
///
/// Boot Error Record Table (BERT)