]>
Commit | Line | Data |
---|---|---|
3cbfba02 DW |
1 | /** @file\r |
2 | \r | |
3 | Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r | |
4 | \r\r | |
5 | This program and the accompanying materials are licensed and made available under\r\r | |
6 | the terms and conditions of the BSD License that accompanies this distribution. \r\r | |
7 | The full text of the license may be found at \r\r | |
8 | http://opensource.org/licenses/bsd-license.php. \r\r | |
9 | \r\r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r\r | |
12 | \r\r | |
13 | \r | |
14 | Module Name:\r | |
15 | \r | |
16 | \r | |
17 | PlatformSsaInitPeim.c\r | |
18 | \r | |
19 | Abstract:\r | |
20 | \r | |
21 | \r | |
22 | --*/\r | |
23 | \r | |
24 | #include "PlatformEarlyInit.h"\r | |
25 | \r | |
26 | /**\r | |
27 | Perform SSA related platform initialization.\r | |
28 | \r | |
29 | **/\r | |
30 | VOID\r | |
31 | PlatformSsaInit (\r | |
32 | IN SYSTEM_CONFIGURATION *SystemConfiguration,\r | |
33 | IN CONST EFI_PEI_SERVICES **PeiServices\r | |
34 | )\r | |
35 | {\r | |
36 | \r | |
37 | DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - Start\n"));\r | |
38 | DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - SystemConfiguration->ISPDevSel 0x%x\n",SystemConfiguration->ISPDevSel));\r | |
39 | if(SystemConfiguration->ISPDevSel == 0x02)\r | |
40 | {\r | |
41 | //\r | |
42 | // Device 3 Interrupt Route\r | |
43 | //\r | |
44 | MmioWrite16 (\r | |
45 | (ILB_BASE_ADDRESS + R_PCH_ILB_D3IR),\r | |
46 | V_PCH_ILB_DXXIR_IAR_PIRQH // For IUNIT\r | |
47 | );\r | |
48 | MmioRead16(ILB_BASE_ADDRESS + R_PCH_ILB_D3IR); // Read Posted Writes Register\r | |
49 | DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - Device 3 Interrupt Route Done\n"));\r | |
50 | }\r | |
51 | \r | |
52 | //\r | |
53 | // Device 2 Interrupt Route\r | |
54 | //\r | |
55 | MmioWrite16 (\r | |
56 | (ILB_BASE_ADDRESS + R_PCH_ILB_D2IR),\r | |
57 | V_PCH_ILB_DXXIR_IAR_PIRQA // For IGD\r | |
58 | );\r | |
59 | MmioRead16(ILB_BASE_ADDRESS + R_PCH_ILB_D2IR); // Read Posted Writes Register\r | |
60 | DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - Device 2 Interrupt Route Done\n"));\r | |
61 | \r | |
62 | return;\r | |
63 | }\r |