]>
Commit | Line | Data |
---|---|---|
6bfbb5f0 | 1 | ## @file\r |
c98d6f47 | 2 | # Module produces PciCfgPpi2 on top of PciCfgPpi. It also updates the \r |
3 | # PciCfg2Ppi pointer in the EFI_PEI_SERVICES upon a installation of\r | |
0004d140 | 4 | # EcpPeiPciCfgPpi. \r |
5 | #\r | |
6 | # EcpPeiPciCfgPpi is installed by a framework module which\r | |
7 | # produce PciCfgPpi originally. Such framework module is updated based on the \r | |
8 | # following rule to install EcpPeiPciCfgPpi instead of updating the PciCfg pointer\r | |
9 | # in the Framework PeiServicesTable: \r | |
10 | # \r | |
c98d6f47 | 11 | # Search pattern:\r |
12 | # PeiServices->PciCfg = <*>;\r | |
13 | # Replace pattern:\r | |
14 | # {\r | |
15 | # static EFI_PEI_PPI_DESCRIPTOR gEcpPeiPciCfgPpiList = {\r | |
16 | # (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),\r | |
17 | # &gEcpPeiPciCfgPpiGuid,\r | |
18 | # <*>\r | |
19 | # };\r | |
64cd21af | 20 | # (**PeiServices).InstallPpi (PeiServices, &gEcpPeiPciCfgPpiList);\r |
c98d6f47 | 21 | # }\r |
0004d140 | 22 | # \r |
23 | # In addition, the PeiServicesTable definition in PeiApi.h is updated to\r | |
24 | # \r | |
25 | # struct _EFI_PEI_SERVICES {\r | |
26 | # EFI_TABLE_HEADER Hdr;\r | |
27 | # ...\r | |
28 | # \r | |
29 | # //\r | |
30 | # // Pointer to PPI interface\r | |
31 | # //\r | |
32 | # #if (PI_SPECIFICATION_VERSION < 0x00010000)\r | |
33 | # \r | |
34 | # PEI_CPU_IO_PPI *CpuIo;\r | |
35 | # ECP_PEI_PCI_CFG_PPI *PciCfg; //Changed.\r | |
36 | # #else\r | |
37 | # ...\r | |
38 | # #endif\r | |
39 | # \r | |
40 | # };\r | |
41 | # \r | |
42 | # This change enable the detection of code segment which invokes PeiServices->PciCfg->Modify.\r | |
43 | # Such code causes a build break as ECP_PEI_PCI_CFG_PPI does not has "Modify" field. \r | |
44 | # This should be updated to a call to PeiLibPciCfgModify as shown below:\r | |
45 | # \r | |
46 | # Search pattern:\r | |
47 | # *->Modify(<*>); \r | |
48 | # Replace pattern:\r | |
49 | # PeiLibPciCfgModify(<*>);\r | |
50 | #\r | |
c98d6f47 | 51 | # PIWG's PI specification replaces Inte's EFI Specification 1.10.\r |
52 | # EFI_PEI_PCI_CFG_PPI defined in Inte's EFI Specification 1.10 is replaced by\r | |
53 | # EFI_PEI_PCI_CFG2_PPI in PI 1.0.\r | |
54 | # This module produces PciCfgPpi on top of PciCfgPpi2. This module is used on platform when both of\r | |
55 | # these two conditions are true:\r | |
56 | # 1) Framework module present that produces PCI CFG PPI AND\r | |
57 | # 2) PI module that produces PCI CFG2 is not present\r | |
4259256b | 58 | #\r |
d490265c SZ |
59 | #\r |
60 | # Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r | |
4259256b | 61 | #\r |
584d5652 | 62 | # This program and the accompanying materials\r |
4259256b | 63 | # are licensed and made available under the terms and conditions of the BSD License\r |
64 | # which accompanies this distribution. The full text of the license may be found at\r | |
65 | # http://opensource.org/licenses/bsd-license.php\r | |
66 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
67 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
68 | #\r | |
69 | #\r | |
6bfbb5f0 | 70 | ##\r |
4259256b | 71 | \r |
72 | [Defines]\r | |
73 | INF_VERSION = 0x00010005\r | |
f275c91c | 74 | BASE_NAME = PciCfg2OnPciCfgThunk\r |
4259256b | 75 | FILE_GUID = 41401688-2862-431b-BAAC-6ECADAC384AB\r |
76 | MODULE_TYPE = PEIM\r | |
77 | VERSION_STRING = 1.0\r | |
4259256b | 78 | \r |
79 | ENTRY_POINT = PeimInitializePciCfg2\r | |
80 | \r | |
81 | #\r | |
82 | # The following information is for reference only and not required by the build tools.\r | |
83 | #\r | |
84 | # VALID_ARCHITECTURES = IA32 X64 IPF EBC\r | |
85 | #\r | |
86 | \r | |
6bfbb5f0 | 87 | [Sources]\r |
f275c91c | 88 | PciCfg2OnPciCfgThunk.c\r |
4259256b | 89 | \r |
90 | [Packages]\r | |
91 | MdePkg/MdePkg.dec\r | |
92 | IntelFrameworkPkg/IntelFrameworkPkg.dec\r | |
93 | EdkCompatibilityPkg/EdkCompatibilityPkg.dec\r | |
94 | \r | |
95 | [LibraryClasses]\r | |
96 | PeimEntryPoint\r | |
97 | DebugLib\r | |
98 | \r | |
99 | [Ppis]\r | |
100 | gEfiPciCfgPpiInServiceTableGuid\r | |
101 | gEfiPciCfg2PpiGuid\r | |
102 | gEcpPeiPciCfgPpiGuid\r | |
103 | \r | |
104 | [Depex]\r | |
105 | TRUE\r |