3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
24 #include "PlatformEarlyInit.h"
27 Perform SSA related platform initialization.
32 IN SYSTEM_CONFIGURATION
*SystemConfiguration
,
33 IN CONST EFI_PEI_SERVICES
**PeiServices
37 DEBUG ((EFI_D_ERROR
, "PlatformSsaInit() - Start\n"));
38 DEBUG ((EFI_D_ERROR
, "PlatformSsaInit() - SystemConfiguration->ISPDevSel 0x%x\n",SystemConfiguration
->ISPDevSel
));
39 if(SystemConfiguration
->ISPDevSel
== 0x02)
42 // Device 3 Interrupt Route
45 (ILB_BASE_ADDRESS
+ R_PCH_ILB_D3IR
),
46 V_PCH_ILB_DXXIR_IAR_PIRQH
// For IUNIT
48 MmioRead16(ILB_BASE_ADDRESS
+ R_PCH_ILB_D3IR
); // Read Posted Writes Register
49 DEBUG ((EFI_D_ERROR
, "PlatformSsaInit() - Device 3 Interrupt Route Done\n"));
53 // Device 2 Interrupt Route
56 (ILB_BASE_ADDRESS
+ R_PCH_ILB_D2IR
),
57 V_PCH_ILB_DXXIR_IAR_PIRQA
// For IGD
59 MmioRead16(ILB_BASE_ADDRESS
+ R_PCH_ILB_D2IR
); // Read Posted Writes Register
60 DEBUG ((EFI_D_ERROR
, "PlatformSsaInit() - Device 2 Interrupt Route Done\n"));