summaryrefslogtreecommitdiff
path: root/IntelSiliconPkg/Include
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2019-06-10 23:27:58 +0800
committerLiming Gao <liming.gao@intel.com>2019-06-25 09:16:50 +0800
commit77ff7d6aa2710d5e04b0bd14d8556957a3ed0602 (patch)
tree94dae1613cae725ce23ef492e0e6cd970bb56ed3 /IntelSiliconPkg/Include
parent370f16c5489609062d8ee0940f29f6c3393f1b68 (diff)
downloadedk2-77ff7d6aa2710d5e04b0bd14d8556957a3ed0602.zip
edk2-77ff7d6aa2710d5e04b0bd14d8556957a3ed0602.tar.gz
edk2-77ff7d6aa2710d5e04b0bd14d8556957a3ed0602.tar.bz2
Remove IntelSiliconPkg that has been moved to edk2-platform repo
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1890 Signed-off-by: Liming Gao <liming.gao@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Rangasai V Chaganty <rangasai.v.chaganty@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Sai Chaganty <rangasai.v.chaganty@intel.com>
Diffstat (limited to 'IntelSiliconPkg/Include')
-rw-r--r--IntelSiliconPkg/Include/Guid/MicrocodeFmp.h15
-rw-r--r--IntelSiliconPkg/Include/IndustryStandard/FirmwareInterfaceTable.h69
-rw-r--r--IntelSiliconPkg/Include/IndustryStandard/FirmwareVersionInfo.h54
-rw-r--r--IntelSiliconPkg/Include/IndustryStandard/IgdOpRegion.h149
-rw-r--r--IntelSiliconPkg/Include/IndustryStandard/Vtd.h355
-rw-r--r--IntelSiliconPkg/Include/Library/MicrocodeFlashAccessLib.h33
-rw-r--r--IntelSiliconPkg/Include/Ppi/VtdInfo.h37
-rw-r--r--IntelSiliconPkg/Include/Protocol/PlatformVtdPolicy.h143
8 files changed, 0 insertions, 855 deletions
diff --git a/IntelSiliconPkg/Include/Guid/MicrocodeFmp.h b/IntelSiliconPkg/Include/Guid/MicrocodeFmp.h
deleted file mode 100644
index b6ee34d..0000000
--- a/IntelSiliconPkg/Include/Guid/MicrocodeFmp.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/** @file
-
- Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
- SPDX-License-Identifier: BSD-2-Clause-Patent
-
-**/
-
-#ifndef __MICROCODE_FMP_GUID_H__
-#define __MICROCODE_FMP_GUID_H__
-
-#define MICROCODE_FMP_IMAGE_TYPE_ID_GUID { 0x96d4fdcd, 0x1502, 0x424d, { 0x9d, 0x4c, 0x9b, 0x12, 0xd2, 0xdc, 0xae, 0x5c } }
-
-extern EFI_GUID gMicrocodeFmpImageTypeIdGuid;
-
-#endif
diff --git a/IntelSiliconPkg/Include/IndustryStandard/FirmwareInterfaceTable.h b/IntelSiliconPkg/Include/IndustryStandard/FirmwareInterfaceTable.h
deleted file mode 100644
index 3a8dd24..0000000
--- a/IntelSiliconPkg/Include/IndustryStandard/FirmwareInterfaceTable.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/** @file
- FirmwareInterfaceTable (FIT) related definitions.
-
- @todo update document/spec reference
-
- Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
- SPDX-License-Identifier: BSD-2-Clause-Patent
-
-**/
-
-#ifndef __FIRMWARE_INTERFACE_TABLE_H__
-#define __FIRMWARE_INTERFACE_TABLE_H__
-
-//
-// FIT Entry type definitions
-//
-#define FIT_TYPE_00_HEADER 0x00
-#define FIT_TYPE_01_MICROCODE 0x01
-#define FIT_TYPE_02_STARTUP_ACM 0x02
-#define FIT_TYPE_07_BIOS_STARTUP_MODULE 0x07
-#define FIT_TYPE_08_TPM_POLICY 0x08
-#define FIT_TYPE_09_BIOS_POLICY 0x09
-#define FIT_TYPE_0A_TXT_POLICY 0x0A
-#define FIT_TYPE_0B_KEY_MANIFEST 0x0B
-#define FIT_TYPE_0C_BOOT_POLICY_MANIFEST 0x0C
-#define FIT_TYPE_10_CSE_SECURE_BOOT 0x10
-#define FIT_TYPE_2D_TXTSX_POLICY 0x2D
-#define FIT_TYPE_2F_JMP_DEBUG_POLICY 0x2F
-#define FIT_TYPE_7F_SKIP 0x7F
-
-#define FIT_POINTER_ADDRESS 0xFFFFFFC0 ///< Fixed address at 4G - 40h
-
-#define FIT_TYPE_VERSION 0x0100
-
-#define FIT_TYPE_00_SIGNATURE SIGNATURE_64 ('_', 'F', 'I', 'T', '_', ' ', ' ', ' ')
-
-#pragma pack(1)
-
-typedef struct {
- /**
- Address is the base address of the firmware component
- must be aligned on 16 byte boundary
- **/
- UINT64 Address;
- UINT8 Size[3]; ///< Size is the span of the component in multiple of 16 bytes
- UINT8 Reserved; ///< Reserved must be set to 0
- /**
- Component's version number in binary coded decimal (BCD) format.
- For the FIT header entry, the value in this field will indicate the revision
- number of the FIT data structure. The upper byte of the revision field
- indicates the major revision and the lower byte indicates the minor revision.
- **/
- UINT16 Version;
- UINT8 Type : 7; ///< FIT types 0x00 to 0x7F
- ///
- /// Checksum Valid indicates whether component has valid checksum.
- ///
- UINT8 C_V : 1;
- /**
- Component's checksum. The modulo sum of all the bytes in the component and
- the value in this field (Chksum) must add up to zero. This field is only
- valid if the C_V flag is non-zero.
- **/
- UINT8 Chksum;
-} FIRMWARE_INTERFACE_TABLE_ENTRY;
-
-#pragma pack()
-
-#endif
diff --git a/IntelSiliconPkg/Include/IndustryStandard/FirmwareVersionInfo.h b/IntelSiliconPkg/Include/IndustryStandard/FirmwareVersionInfo.h
deleted file mode 100644
index b30bc3f..0000000
--- a/IntelSiliconPkg/Include/IndustryStandard/FirmwareVersionInfo.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/** @file
- Intel Firmware Version Info (FVI) related definitions.
-
- @todo update document/spec reference
-
- Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
- SPDX-License-Identifier: BSD-2-Clause-Patent
-
-@par Specification Reference:
- System Management BIOS (SMBIOS) Reference Specification v3.0.0 dated 2015-Feb-12
- http://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.0.0.pdf
-
-**/
-
-#ifndef __FIRMWARE_VERSION_INFO_H__
-#define __FIRMWARE_VERSION_INFO_H__
-
-#include <IndustryStandard/SmBios.h>
-
-#define INTEL_FIRMWARE_VERSION_INFO_GROUP_NAME "Firmware Version Info"
-
-#pragma pack(1)
-
-///
-/// Firmware Version Structure
-///
-typedef struct {
- UINT8 MajorVersion;
- UINT8 MinorVersion;
- UINT8 Revision;
- UINT16 BuildNumber;
-} INTEL_FIRMWARE_VERSION;
-
-///
-/// Firmware Version Info (FVI) Structure
-///
-typedef struct {
- SMBIOS_TABLE_STRING ComponentName; ///< String Index of Component Name
- SMBIOS_TABLE_STRING VersionString; ///< String Index of Version String
- INTEL_FIRMWARE_VERSION Version; ///< Firmware version
-} INTEL_FIRMWARE_VERSION_INFO;
-
-///
-/// SMBIOS OEM Type Intel Firmware Version Info (FVI) Structure
-///
-typedef struct {
- SMBIOS_STRUCTURE Header; ///< SMBIOS structure header
- UINT8 Count; ///< Number of FVI entries in this structure
- INTEL_FIRMWARE_VERSION_INFO Fvi[1]; ///< FVI structure(s)
-} SMBIOS_TABLE_TYPE_OEM_INTEL_FVI;
-
-#pragma pack()
-
-#endif
diff --git a/IntelSiliconPkg/Include/IndustryStandard/IgdOpRegion.h b/IntelSiliconPkg/Include/IndustryStandard/IgdOpRegion.h
deleted file mode 100644
index f512535..0000000
--- a/IntelSiliconPkg/Include/IndustryStandard/IgdOpRegion.h
+++ /dev/null
@@ -1,149 +0,0 @@
-/** @file
- IGD OpRegion definition from Intel Integrated Graphics Device OpRegion
- Specification.
-
- https://01.org/sites/default/files/documentation/skl_opregion_rev0p5.pdf
-
- Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.<BR>
- SPDX-License-Identifier: BSD-2-Clause-Patent
-
-**/
-#ifndef _IGD_OPREGION_H_
-#define _IGD_OPREGION_H_
-
-#define IGD_OPREGION_HEADER_SIGN "IntelGraphicsMem"
-#define IGD_OPREGION_HEADER_MBOX1 BIT0
-#define IGD_OPREGION_HEADER_MBOX2 BIT1
-#define IGD_OPREGION_HEADER_MBOX3 BIT2
-#define IGD_OPREGION_HEADER_MBOX4 BIT3
-#define IGD_OPREGION_HEADER_MBOX5 BIT4
-
-/**
- OpRegion structures:
- Sub-structures define the different parts of the OpRegion followed by the
- main structure representing the entire OpRegion.
-
- @note These structures are packed to 1 byte offsets because the exact
- data location is required by the supporting design specification due to
- the fact that the data is used by ASL and Graphics driver code compiled
- separately.
-**/
-#pragma pack(1)
-///
-/// OpRegion Mailbox 0 Header structure. The OpRegion Header is used to
-/// identify a block of memory as the graphics driver OpRegion.
-/// Offset 0x0, Size 0x100
-///
-typedef struct {
- CHAR8 SIGN[0x10]; ///< Offset 0x00 OpRegion Signature
- UINT32 SIZE; ///< Offset 0x10 OpRegion Size
- UINT32 OVER; ///< Offset 0x14 OpRegion Structure Version
- UINT8 SVER[0x20]; ///< Offset 0x18 System BIOS Build Version
- UINT8 VVER[0x10]; ///< Offset 0x38 Video BIOS Build Version
- UINT8 GVER[0x10]; ///< Offset 0x48 Graphic Driver Build Version
- UINT32 MBOX; ///< Offset 0x58 Supported Mailboxes
- UINT32 DMOD; ///< Offset 0x5C Driver Model
- UINT32 PCON; ///< Offset 0x60 Platform Configuration
- CHAR16 DVER[0x10]; ///< Offset 0x64 GOP Version
- UINT8 RM01[0x7C]; ///< Offset 0x84 Reserved Must be zero
-} IGD_OPREGION_HEADER;
-
-///
-/// OpRegion Mailbox 1 - Public ACPI Methods
-/// Offset 0x100, Size 0x100
-///
-typedef struct {
- UINT32 DRDY; ///< Offset 0x100 Driver Readiness
- UINT32 CSTS; ///< Offset 0x104 Status
- UINT32 CEVT; ///< Offset 0x108 Current Event
- UINT8 RM11[0x14]; ///< Offset 0x10C Reserved Must be Zero
- UINT32 DIDL[8]; ///< Offset 0x120 Supported Display Devices ID List
- UINT32 CPDL[8]; ///< Offset 0x140 Currently Attached Display Devices List
- UINT32 CADL[8]; ///< Offset 0x160 Currently Active Display Devices List
- UINT32 NADL[8]; ///< Offset 0x180 Next Active Devices List
- UINT32 ASLP; ///< Offset 0x1A0 ASL Sleep Time Out
- UINT32 TIDX; ///< Offset 0x1A4 Toggle Table Index
- UINT32 CHPD; ///< Offset 0x1A8 Current Hotplug Enable Indicator
- UINT32 CLID; ///< Offset 0x1AC Current Lid State Indicator
- UINT32 CDCK; ///< Offset 0x1B0 Current Docking State Indicator
- UINT32 SXSW; ///< Offset 0x1B4 Display Switch Notification on Sx State Resume
- UINT32 EVTS; ///< Offset 0x1B8 Events supported by ASL
- UINT32 CNOT; ///< Offset 0x1BC Current OS Notification
- UINT32 NRDY; ///< Offset 0x1C0 Driver Status
- UINT8 DID2[0x1C]; ///< Offset 0x1C4 Extended Supported Devices ID List (DOD)
- UINT8 CPD2[0x1C]; ///< Offset 0x1E0 Extended Attached Display Devices List
- UINT8 RM12[4]; ///< Offset 0x1FC - 0x1FF Reserved Must be zero
-} IGD_OPREGION_MBOX1;
-
-///
-/// OpRegion Mailbox 2 - Software SCI Interface
-/// Offset 0x200, Size 0x100
-///
-typedef struct {
- UINT32 SCIC; ///< Offset 0x200 Software SCI Command / Status / Data
- UINT32 PARM; ///< Offset 0x204 Software SCI Parameters
- UINT32 DSLP; ///< Offset 0x208 Driver Sleep Time Out
- UINT8 RM21[0xF4]; ///< Offset 0x20C - 0x2FF Reserved Must be zero
-} IGD_OPREGION_MBOX2;
-
-///
-/// OpRegion Mailbox 3 - BIOS/Driver Notification - ASLE Support
-/// Offset 0x300, Size 0x100
-///
-typedef struct {
- UINT32 ARDY; ///< Offset 0x300 Driver Readiness
- UINT32 ASLC; ///< Offset 0x304 ASLE Interrupt Command / Status
- UINT32 TCHE; ///< Offset 0x308 Technology Enabled Indicator
- UINT32 ALSI; ///< Offset 0x30C Current ALS Luminance Reading
- UINT32 BCLP; ///< Offset 0x310 Requested Backlight Brightness
- UINT32 PFIT; ///< Offset 0x314 Panel Fitting State or Request
- UINT32 CBLV; ///< Offset 0x318 Current Brightness Level
- UINT16 BCLM[0x14]; ///< Offset 0x31C Backlight Brightness Levels Duty Cycle Mapping Table
- UINT32 CPFM; ///< Offset 0x344 Current Panel Fitting Mode
- UINT32 EPFM; ///< Offset 0x348 Enabled Panel Fitting Modes
- UINT8 PLUT[0x4A]; ///< Offset 0x34C Panel Look Up Table & Identifier
- UINT32 PFMB; ///< Offset 0x396 PWM Frequency and Minimum Brightness
- UINT32 CCDV; ///< Offset 0x39A Color Correction Default Values
- UINT32 PCFT; ///< Offset 0x39E Power Conservation Features
- UINT32 SROT; ///< Offset 0x3A2 Supported Rotation Angles
- UINT32 IUER; ///< Offset 0x3A6 Intel Ultrabook(TM) Event Register
- UINT64 FDSS; ///< Offset 0x3AA DSS Buffer address allocated for IFFS feature
- UINT32 FDSP; ///< Offset 0x3B2 Size of DSS buffer
- UINT32 STAT; ///< Offset 0x3B6 State Indicator
- UINT64 RVDA; ///< Offset 0x3BA Physical address of Raw VBT data. Added from Spec Version 0.90 to support VBT greater than 6KB.
- UINT32 RVDS; ///< Offset 0x3C2 Size of Raw VBT data. Added from Spec Version 0.90 to support VBT greater than 6KB.
- UINT8 RM32[0x3A]; ///< Offset 0x3C6 - 0x3FF Reserved Must be zero.
-} IGD_OPREGION_MBOX3;
-
-///
-/// OpRegion Mailbox 4 - VBT Video BIOS Table
-/// Offset 0x400, Size 0x1800
-///
-typedef struct {
- UINT8 RVBT[0x1800]; ///< Offset 0x400 - 0x1BFF Raw VBT Data
-} IGD_OPREGION_MBOX4;
-
-///
-/// OpRegion Mailbox 5 - BIOS/Driver Notification - Data storage BIOS to Driver data sync
-/// Offset 0x1C00, Size 0x400
-///
-typedef struct {
- UINT32 PHED; ///< Offset 0x1C00 Panel Header
- UINT8 BDDC[0x100]; ///< Offset 0x1C04 Panel EDID (DDC data)
- UINT8 RM51[0x2FC]; ///< Offset 0x1D04 - 0x1FFF Reserved Must be zero
-} IGD_OPREGION_MBOX5;
-
-///
-/// IGD OpRegion Structure
-///
-typedef struct {
- IGD_OPREGION_HEADER Header; ///< OpRegion header (Offset 0x0, Size 0x100)
- IGD_OPREGION_MBOX1 MBox1; ///< Mailbox 1: Public ACPI Methods (Offset 0x100, Size 0x100)
- IGD_OPREGION_MBOX2 MBox2; ///< Mailbox 2: Software SCI Interface (Offset 0x200, Size 0x100)
- IGD_OPREGION_MBOX3 MBox3; ///< Mailbox 3: BIOS to Driver Notification (Offset 0x300, Size 0x100)
- IGD_OPREGION_MBOX4 MBox4; ///< Mailbox 4: Video BIOS Table (VBT) (Offset 0x400, Size 0x1800)
- IGD_OPREGION_MBOX5 MBox5; ///< Mailbox 5: BIOS to Driver Notification Extension (Offset 0x1C00, Size 0x400)
-} IGD_OPREGION_STRUCTURE;
-#pragma pack()
-
-#endif
diff --git a/IntelSiliconPkg/Include/IndustryStandard/Vtd.h b/IntelSiliconPkg/Include/IndustryStandard/Vtd.h
deleted file mode 100644
index b2f745b..0000000
--- a/IntelSiliconPkg/Include/IndustryStandard/Vtd.h
+++ /dev/null
@@ -1,355 +0,0 @@
-/** @file
- The definition for VTD register.
- It is defined in "Intel VT for Direct IO Architecture Specification".
-
- Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
- SPDX-License-Identifier: BSD-2-Clause-Patent
-
-**/
-
-#ifndef __VTD_REG_H__
-#define __VTD_REG_H__
-
-#pragma pack(1)
-
-//
-// Translation Structure Formats
-//
-#define VTD_ROOT_ENTRY_NUMBER 256
-#define VTD_CONTEXT_ENTRY_NUMBER 256
-
-typedef union {
- struct {
- UINT32 Present:1;
- UINT32 Reserved_1:11;
- UINT32 ContextTablePointerLo:20;
- UINT32 ContextTablePointerHi:32;
-
- UINT64 Reserved_64;
- } Bits;
- struct {
- UINT64 Uint64Lo;
- UINT64 Uint64Hi;
- } Uint128;
-} VTD_ROOT_ENTRY;
-
-typedef union {
- struct {
- UINT32 LowerPresent:1;
- UINT32 Reserved_1:11;
- UINT32 LowerContextTablePointerLo:20;
- UINT32 LowerContextTablePointerHi:32;
-
- UINT32 UpperPresent:1;
- UINT32 Reserved_65:11;
- UINT32 UpperContextTablePointerLo:20;
- UINT32 UpperContextTablePointerHi:32;
- } Bits;
- struct {
- UINT64 Uint64Lo;
- UINT64 Uint64Hi;
- } Uint128;
-} VTD_EXT_ROOT_ENTRY;
-
-typedef union {
- struct {
- UINT32 Present:1;
- UINT32 FaultProcessingDisable:1;
- UINT32 TranslationType:2;
- UINT32 Reserved_4:8;
- UINT32 SecondLevelPageTranslationPointerLo:20;
- UINT32 SecondLevelPageTranslationPointerHi:32;
-
- UINT32 AddressWidth:3;
- UINT32 Ignored_67:4;
- UINT32 Reserved_71:1;
- UINT32 DomainIdentifier:16;
- UINT32 Reserved_88:8;
- UINT32 Reserved_96:32;
- } Bits;
- struct {
- UINT64 Uint64Lo;
- UINT64 Uint64Hi;
- } Uint128;
-} VTD_CONTEXT_ENTRY;
-
-typedef union {
- struct {
- UINT32 Present:1;
- UINT32 FaultProcessingDisable:1;
- UINT32 TranslationType:3;
- UINT32 ExtendedMemoryType:3;
- UINT32 DeferredInvalidateEnable:1;
- UINT32 PageRequestEnable:1;
- UINT32 NestedTranslationEnable:1;
- UINT32 PASIDEnable:1;
- UINT32 SecondLevelPageTranslationPointerLo:20;
- UINT32 SecondLevelPageTranslationPointerHi:32;
-
- UINT32 AddressWidth:3;
- UINT32 PageGlobalEnable:1;
- UINT32 NoExecuteEnable:1;
- UINT32 WriteProtectEnable:1;
- UINT32 CacheDisable:1;
- UINT32 ExtendedMemoryTypeEnable:1;
- UINT32 DomainIdentifier:16;
- UINT32 SupervisorModeExecuteProtection:1;
- UINT32 ExtendedAccessedFlagEnable:1;
- UINT32 ExecuteRequestsEnable:1;
- UINT32 SecondLevelExecuteEnable:1;
- UINT32 Reserved_92:4;
- UINT32 PageAttributeTable0:3;
- UINT32 Reserved_Pat0:1;
- UINT32 PageAttributeTable1:3;
- UINT32 Reserved_Pat1:1;
- UINT32 PageAttributeTable2:3;
- UINT32 Reserved_Pat2:1;
- UINT32 PageAttributeTable3:3;
- UINT32 Reserved_Pat3:1;
- UINT32 PageAttributeTable4:3;
- UINT32 Reserved_Pat4:1;
- UINT32 PageAttributeTable5:3;
- UINT32 Reserved_Pat5:1;
- UINT32 PageAttributeTable6:3;
- UINT32 Reserved_Pat6:1;
- UINT32 PageAttributeTable7:3;
- UINT32 Reserved_Pat7:1;
-
- UINT32 PASIDTableSize:4;
- UINT32 Reserved_132:8;
- UINT32 PASIDTablePointerLo:20;
- UINT32 PASIDTablePointerHi:32;
-
- UINT32 Reserved_192:12;
- UINT32 PASIDStateTablePointerLo:20;
- UINT32 PASIDStateTablePointerHi:32;
- } Bits;
- struct {
- UINT64 Uint64_1;
- UINT64 Uint64_2;
- UINT64 Uint64_3;
- UINT64 Uint64_4;
- } Uint256;
-} VTD_EXT_CONTEXT_ENTRY;
-
-typedef union {
- struct {
- UINT32 Present:1;
- UINT32 Reserved_1:2;
- UINT32 PageLevelCacheDisable:1;
- UINT32 PageLevelWriteThrough:1;
- UINT32 Reserved_5:6;
- UINT32 SupervisorRequestsEnable:1;
- UINT32 FirstLevelPageTranslationPointerLo:20;
- UINT32 FirstLevelPageTranslationPointerHi:32;
- } Bits;
- UINT64 Uint64;
-} VTD_PASID_ENTRY;
-
-typedef union {
- struct {
- UINT32 Reserved_0:32;
- UINT32 ActiveReferenceCount:16;
- UINT32 Reserved_48:15;
- UINT32 DeferredInvalidate:1;
- } Bits;
- UINT64 Uint64;
-} VTD_PASID_STATE_ENTRY;
-
-typedef union {
- struct {
- UINT32 Present:1;
- UINT32 ReadWrite:1;
- UINT32 UserSupervisor:1;
- UINT32 PageLevelWriteThrough:1;
- UINT32 PageLevelCacheDisable:1;
- UINT32 Accessed:1;
- UINT32 Dirty:1;
- UINT32 PageSize:1; // It is PageAttribute:1 for 4K page entry
- UINT32 Global:1;
- UINT32 Ignored_9:1;
- UINT32 ExtendedAccessed:1;
- UINT32 Ignored_11:1;
- // NOTE: There is PageAttribute:1 as bit12 for 1G page entry and 2M page entry
- UINT32 AddressLo:20;
- UINT32 AddressHi:20;
- UINT32 Ignored_52:11;
- UINT32 ExecuteDisable:1;
- } Bits;
- UINT64 Uint64;
-} VTD_FIRST_LEVEL_PAGING_ENTRY;
-
-typedef union {
- struct {
- UINT32 Read:1;
- UINT32 Write:1;
- UINT32 Execute:1;
- UINT32 ExtendedMemoryType:3;
- UINT32 IgnorePAT:1;
- UINT32 PageSize:1;
- UINT32 Ignored_8:3;
- UINT32 Snoop:1;
- UINT32 AddressLo:20;
- UINT32 AddressHi:20;
- UINT32 Ignored_52:10;
- UINT32 TransientMapping:1;
- UINT32 Ignored_63:1;
- } Bits;
- UINT64 Uint64;
-} VTD_SECOND_LEVEL_PAGING_ENTRY;
-
-//
-// Register Descriptions
-//
-#define R_VER_REG 0x00
-#define R_CAP_REG 0x08
-#define B_CAP_REG_RWBF BIT4
-#define R_ECAP_REG 0x10
-#define R_GCMD_REG 0x18
-#define B_GMCD_REG_WBF BIT27
-#define B_GMCD_REG_SRTP BIT30
-#define B_GMCD_REG_TE BIT31
-#define R_GSTS_REG 0x1C
-#define B_GSTS_REG_WBF BIT27
-#define B_GSTS_REG_RTPS BIT30
-#define B_GSTS_REG_TE BIT31
-#define R_RTADDR_REG 0x20
-#define R_CCMD_REG 0x28
-#define B_CCMD_REG_CIRG_MASK (BIT62|BIT61)
-#define V_CCMD_REG_CIRG_GLOBAL BIT61
-#define V_CCMD_REG_CIRG_DOMAIN BIT62
-#define V_CCMD_REG_CIRG_DEVICE (BIT62|BIT61)
-#define B_CCMD_REG_ICC BIT63
-#define R_FSTS_REG 0x34
-#define R_FECTL_REG 0x38
-#define R_FEDATA_REG 0x3C
-#define R_FEADDR_REG 0x40
-#define R_FEUADDR_REG 0x44
-#define R_AFLOG_REG 0x58
-
-#define R_IVA_REG 0x00 // + IRO
-#define B_IVA_REG_AM_MASK (BIT0|BIT1|BIT2|BIT3|BIT4|BIT5)
-#define B_IVA_REG_AM_4K 0 // 1 page
-#define B_IVA_REG_AM_2M 9 // 2M page
-#define B_IVA_REG_IH BIT6
-#define R_IOTLB_REG 0x08 // + IRO
-#define B_IOTLB_REG_IIRG_MASK (BIT61|BIT60)
-#define V_IOTLB_REG_IIRG_GLOBAL BIT60
-#define V_IOTLB_REG_IIRG_DOMAIN BIT61
-#define V_IOTLB_REG_IIRG_PAGE (BIT61|BIT60)
-#define B_IOTLB_REG_IVT BIT63
-
-#define R_FRCD_REG 0x00 // + FRO
-
-#define R_PMEN_ENABLE_REG 0x64
-#define R_PMEN_LOW_BASE_REG 0x68
-#define R_PMEN_LOW_LIMITE_REG 0x6C
-#define R_PMEN_HIGH_BASE_REG 0x70
-#define R_PMEN_HIGH_LIMITE_REG 0x78
-
-typedef union {
- struct {
- UINT8 ND:3; // Number of domains supported
- UINT8 AFL:1; // Advanced Fault Logging
- UINT8 RWBF:1; // Required Write-Buffer Flushing
- UINT8 PLMR:1; // Protected Low-Memory Region
- UINT8 PHMR:1; // Protected High-Memory Region
- UINT8 CM:1; // Caching Mode
-
- UINT8 SAGAW:5; // Supported Adjusted Guest Address Widths
- UINT8 Rsvd_13:3;
-
- UINT8 MGAW:6; // Maximum Guest Address Width
- UINT8 ZLR:1; // Zero Length Read
- UINT8 Rsvd_23:1;
-
- UINT16 FRO:10; // Fault-recording Register offset
- UINT16 SLLPS:4; // Second Level Large Page Support
- UINT16 Rsvd_38:1;
- UINT16 PSI:1; // Page Selective Invalidation
-
- UINT8 NFR:8; // Number of Fault-recording Registers
-
- UINT8 MAMV:6; // Maximum Address Mask Value
- UINT8 DWD:1; // Write Draining
- UINT8 DRD:1; // Read Draining
-
- UINT8 FL1GP:1; // First Level 1-GByte Page Support
- UINT8 Rsvd_57:2;
- UINT8 PI:1; // Posted Interrupts Support
- UINT8 Rsvd_60:4;
- } Bits;
- UINT64 Uint64;
-} VTD_CAP_REG;
-
-typedef union {
- struct {
- UINT8 C:1; // Page-walk Coherency
- UINT8 QI:1; // Queued Invalidation support
- UINT8 DT:1; // Device-TLB support
- UINT8 IR:1; // Interrupt Remapping support
- UINT8 EIM:1; // Extended Interrupt Mode
- UINT8 Rsvd_5:1;
- UINT8 PT:1; // Pass Through
- UINT8 SC:1; // Snoop Control
-
- UINT16 IRO:10; // IOTLB Register Offset
- UINT16 Rsvd_18:2;
- UINT16 MHMV:4; // Maximum Handle Mask Value
-
- UINT8 ECS:1; // Extended Context Support
- UINT8 MTS:1; // Memory Type Support
- UINT8 NEST:1; // Nested Translation Support
- UINT8 DIS:1; // Deferred Invalidate Support
- UINT8 PASID:1; // Process Address Space ID Support
- UINT8 PRS:1; // Page Request Support
- UINT8 ERS:1; // Execute Request Support
- UINT8 SRS:1; // Supervisor Request Support
-
- UINT32 Rsvd_32:1;
- UINT32 NWFS:1; // No Write Flag Support
- UINT32 EAFS:1; // Extended Accessed Flag Support
- UINT32 PSS:5; // PASID Size Supported
- UINT32 Rsvd_40:24;
- } Bits;
- UINT64 Uint64;
-} VTD_ECAP_REG;
-
-typedef union {
- struct {
- UINT32 Rsvd_0:12;
- UINT32 FILo:20; // FaultInfo
- UINT32 FIHi:32; // FaultInfo
-
- UINT32 SID:16; // Source Identifier
- UINT32 Rsvd_80:13;
- UINT32 PRIV:1; // Privilege Mode Requested
- UINT32 EXE:1; // Execute Permission Requested
- UINT32 PP:1; // PASID Present
-
- UINT32 FR:8; // Fault Reason
- UINT32 PV:20; // PASID Value
- UINT32 AT:2; // Address Type
- UINT32 T:1; // Type (0: Write, 1: Read)
- UINT32 F:1; // Fault
- } Bits;
- UINT64 Uint64[2];
-} VTD_FRCD_REG;
-
-typedef union {
- struct {
- UINT8 Function:3;
- UINT8 Device:5;
- UINT8 Bus;
- } Bits;
- struct {
- UINT8 ContextIndex;
- UINT8 RootIndex;
- } Index;
- UINT16 Uint16;
-} VTD_SOURCE_ID;
-
-#pragma pack()
-
-#endif
-
diff --git a/IntelSiliconPkg/Include/Library/MicrocodeFlashAccessLib.h b/IntelSiliconPkg/Include/Library/MicrocodeFlashAccessLib.h
deleted file mode 100644
index f991945..0000000
--- a/IntelSiliconPkg/Include/Library/MicrocodeFlashAccessLib.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/** @file
- Microcode flash device access library.
-
- Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
- SPDX-License-Identifier: BSD-2-Clause-Patent
-
-**/
-
-
-#ifndef __MICROCODE_FLASH_ACCESS_LIB_H__
-#define __MICROCODE_FLASH_ACCESS_LIB_H__
-
-/**
- Perform microcode write opreation.
-
- @param[in] FlashAddress The address of flash device to be accessed.
- @param[in] Buffer The pointer to the data buffer.
- @param[in] Length The length of data buffer in bytes.
-
- @retval EFI_SUCCESS The operation returns successfully.
- @retval EFI_WRITE_PROTECTED The flash device is read only.
- @retval EFI_UNSUPPORTED The flash device access is unsupported.
- @retval EFI_INVALID_PARAMETER The input parameter is not valid.
-**/
-EFI_STATUS
-EFIAPI
-MicrocodeFlashWrite (
- IN EFI_PHYSICAL_ADDRESS FlashAddress,
- IN VOID *Buffer,
- IN UINTN Length
- );
-
-#endif
diff --git a/IntelSiliconPkg/Include/Ppi/VtdInfo.h b/IntelSiliconPkg/Include/Ppi/VtdInfo.h
deleted file mode 100644
index f91dbc0..0000000
--- a/IntelSiliconPkg/Include/Ppi/VtdInfo.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/** @file
- The definition for VTD information PPI.
-
- This is a lightweight VTd information report in PEI phase.
-
- Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
- SPDX-License-Identifier: BSD-2-Clause-Patent
-
-**/
-
-#ifndef __VTD_INFO_PPI_H__
-#define __VTD_INFO_PPI_H__
-
-#include <IndustryStandard/DmaRemappingReportingTable.h>
-
-#define EDKII_VTD_INFO_PPI_GUID \
- { \
- 0x8a59fcb3, 0xf191, 0x400c, { 0x97, 0x67, 0x67, 0xaf, 0x2b, 0x25, 0x68, 0x4a } \
- }
-
-//
-// VTD info PPI just use same data structure as DMAR table.
-//
-// The reported information must include what is needed in PEI phase, e.g.
-// the VTd engine (such as DRHD)
-// the reserved DMA address in PEI for eary graphic (such as RMRR for graphic UMA)
-//
-// The reported information can be and might be a subset of full DMAR table, e.g.
-// if some data is not avaiable (such as ANDD),
-// if some data is not needed (such as RMRR for legacy USB).
-//
-typedef EFI_ACPI_DMAR_HEADER EDKII_VTD_INFO_PPI;
-
-extern EFI_GUID gEdkiiVTdInfoPpiGuid;
-
-#endif
-
diff --git a/IntelSiliconPkg/Include/Protocol/PlatformVtdPolicy.h b/IntelSiliconPkg/Include/Protocol/PlatformVtdPolicy.h
deleted file mode 100644
index acab432..0000000
--- a/IntelSiliconPkg/Include/Protocol/PlatformVtdPolicy.h
+++ /dev/null
@@ -1,143 +0,0 @@
-/** @file
- The definition for platform VTD policy.
-
- Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
- SPDX-License-Identifier: BSD-2-Clause-Patent
-
-**/
-
-#ifndef __PLATFORM_VTD_POLICY_PROTOCOL_H__
-#define __PLATFORM_VTD_POLICY_PROTOCOL_H__
-
-#include <IndustryStandard/Vtd.h>
-#include <IndustryStandard/DmaRemappingReportingTable.h>
-
-#define EDKII_PLATFORM_VTD_POLICY_PROTOCOL_GUID \
- { \
- 0x3d17e448, 0x466, 0x4e20, { 0x99, 0x9f, 0xb2, 0xe1, 0x34, 0x88, 0xee, 0x22 } \
- }
-
-typedef struct _EDKII_PLATFORM_VTD_POLICY_PROTOCOL EDKII_PLATFORM_VTD_POLICY_PROTOCOL;
-
-#define EDKII_PLATFORM_VTD_POLICY_PROTOCOL_REVISION 0x00010000
-
-typedef struct {
- UINT16 Segment;
- VTD_SOURCE_ID SourceId;
-} EDKII_PLATFORM_VTD_DEVICE_INFO;
-
-/**
- Get the VTD SourceId from the device handler.
- This function is required for non PCI device handler.
-
- Pseudo-algo in Intel VTd driver:
- Status = PlatformGetVTdDeviceId ();
- if (EFI_ERROR(Status)) {
- if (DeviceHandle is PCI) {
- Get SourceId from Bus/Device/Function
- } else {
- return EFI_UNSUPPORTED
- }
- }
- Get VTd engine by Segment/Bus/Device/Function.
-
- @param[in] This The protocol instance pointer.
- @param[in] DeviceHandle Device Identifier in UEFI.
- @param[out] DeviceInfo DeviceInfo for indentify the VTd engine in ACPI Table
- and the VTd page entry.
-
- @retval EFI_SUCCESS The VtdIndex and SourceId are returned.
- @retval EFI_INVALID_PARAMETER DeviceHandle is not a valid handler.
- @retval EFI_INVALID_PARAMETER DeviceInfo is NULL.
- @retval EFI_NOT_FOUND The Segment or SourceId information is NOT found.
- @retval EFI_UNSUPPORTED This function is not supported.
-
-**/
-typedef
-EFI_STATUS
-(EFIAPI *EDKII_PLATFORM_VTD_POLICY_GET_DEVICE_ID) (
- IN EDKII_PLATFORM_VTD_POLICY_PROTOCOL *This,
- IN EFI_HANDLE DeviceHandle,
- OUT EDKII_PLATFORM_VTD_DEVICE_INFO *DeviceInfo
- );
-
-#pragma pack(1)
-
-typedef struct {
- //
- // The segment number of the device
- //
- UINT16 SegmentNumber;
- //
- // Device scope definition in DMAR table
- //
- EFI_ACPI_DMAR_DEVICE_SCOPE_STRUCTURE_HEADER DeviceScope;
- //
- // Pci path definition in DMAR table
- //
-//EFI_ACPI_DMAR_PCI_PATH PciPath[];
-} EDKII_PLATFORM_VTD_DEVICE_SCOPE;
-
-typedef struct {
- UINT16 VendorId;
- UINT16 DeviceId;
- UINT8 RevisionId;
- UINT16 SubsystemVendorId;
- UINT16 SubsystemDeviceId;
-} EDKII_PLATFORM_VTD_PCI_DEVICE_ID;
-
-#define EDKII_PLATFORM_VTD_EXCEPTION_DEVICE_INFO_TYPE_END 0
-#define EDKII_PLATFORM_VTD_EXCEPTION_DEVICE_INFO_TYPE_DEVICE_SCOPE 1
-#define EDKII_PLATFORM_VTD_EXCEPTION_DEVICE_INFO_TYPE_PCI_DEVICE_ID 2
-
-typedef struct {
- //
- // EDKII_PLATFORM_VTD_EXCEPTION_DEVICE_INFO_TYPE_xxx defined above.
- //
- UINT8 Type;
- //
- // The length of the full data structure including EDKII_PLATFORM_VTD_EXCEPTION_DEVICE_INFO and Data.
- //
- UINT8 Length;
- //
- // Data can be EDKII_PLATFORM_VTD_DEVICE_SCOPE or EDKII_PLATFORM_VTD_PCI_DEVICE_ID
- //
-//UINT8 Data[Length - sizeof(EDKII_PLATFORM_VTD_EXCEPTION_DEVICE_INFO)];
-} EDKII_PLATFORM_VTD_EXCEPTION_DEVICE_INFO;
-
-#pragma pack()
-
-
-/**
- Get a list of the exception devices.
-
- The VTd driver should always set ALLOW for the device in this list.
-
- @param[in] This The protocol instance pointer.
- @param[out] DeviceInfoCount The count of the list of DeviceInfo.
- @param[out] DeviceInfo A callee allocated buffer to hold a list of DeviceInfo.
- Each DeviceInfo pointer points to EDKII_PLATFORM_VTD_EXCEPTION_DEVICE_INFO.
-
- @retval EFI_SUCCESS The DeviceInfoCount and DeviceInfo are returned.
- @retval EFI_INVALID_PARAMETER DeviceInfoCount is NULL, or DeviceInfo is NULL.
- @retval EFI_UNSUPPORTED This function is not supported.
-
-**/
-typedef
-EFI_STATUS
-(EFIAPI *EDKII_PLATFORM_VTD_POLICY_GET_EXCEPTION_DEVICE_LIST) (
- IN EDKII_PLATFORM_VTD_POLICY_PROTOCOL *This,
- OUT UINTN *DeviceInfoCount,
- OUT VOID **DeviceInfo
- );
-
-struct _EDKII_PLATFORM_VTD_POLICY_PROTOCOL {
- UINT64 Revision;
- EDKII_PLATFORM_VTD_POLICY_GET_DEVICE_ID GetDeviceId;
- EDKII_PLATFORM_VTD_POLICY_GET_EXCEPTION_DEVICE_LIST GetExceptionDeviceList;
-};
-
-extern EFI_GUID gEdkiiPlatformVTdPolicyProtocolGuid;
-
-#endif
-