+++ /dev/null
-/** @file\r
-\r
- Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
- \r\r
- SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
- \r\r
-\r
-Module Name:\r
-\r
-\r
- PlatformSsaInitPeim.c\r
-\r
-Abstract:\r
-\r
-\r
---*/\r
-\r
-#include "PlatformEarlyInit.h"\r
-\r
-/**\r
- Perform SSA related platform initialization.\r
-\r
-**/\r
-VOID\r
-PlatformSsaInit (\r
- IN SYSTEM_CONFIGURATION *SystemConfiguration,\r
- IN CONST EFI_PEI_SERVICES **PeiServices\r
- )\r
-{\r
-\r
- DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - Start\n"));\r
- DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - SystemConfiguration->ISPDevSel 0x%x\n",SystemConfiguration->ISPDevSel));\r
- if(SystemConfiguration->ISPDevSel == 0x02)\r
- {\r
- //\r
- // Device 3 Interrupt Route\r
- //\r
- MmioWrite16 (\r
- (ILB_BASE_ADDRESS + R_PCH_ILB_D3IR),\r
- V_PCH_ILB_DXXIR_IAR_PIRQH // For IUNIT\r
- );\r
- MmioRead16(ILB_BASE_ADDRESS + R_PCH_ILB_D3IR); // Read Posted Writes Register\r
- DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - Device 3 Interrupt Route Done\n"));\r
- }\r
-\r
- //\r
- // Device 2 Interrupt Route\r
- //\r
- MmioWrite16 (\r
- (ILB_BASE_ADDRESS + R_PCH_ILB_D2IR),\r
- V_PCH_ILB_DXXIR_IAR_PIRQA // For IGD\r
- );\r
- MmioRead16(ILB_BASE_ADDRESS + R_PCH_ILB_D2IR); // Read Posted Writes Register\r
- DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - Device 2 Interrupt Route Done\n"));\r
-\r
- return;\r
-}\r