1 /*++
2 
3 Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution.  The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8 
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 
12 
13 Module Name:
14 
15   EdkIIGlueDefinitionChangesPeim.h
16 
17 Abstract:
18 
19   Data structure definition changes from EDK to EDKII
20 
21 --*/
22 
23 #ifndef __EDKII_GLUE_DEFINITION_CHANGES_PEIM_H__
24 #define __EDKII_GLUE_DEFINITION_CHANGES_PEIM_H__
25 
26 #if (EFI_SPECIFICATION_VERSION >= 0x0002000A)
27 #include "TianoHii.h"
28 #else
29 #include "EfiInternalFormRepresentation.h"
30 #endif
31 
32 #include "EdkIIGlueDefinitionChangesBase.h"
33 
34 #include "EfiPciCfg.h"
35 
36 //
37 // typedef Edk types - EdkII types
38 //
39 typedef EFI_MEMORY_ARRAY_START_ADDRESS               EFI_MEMORY_ARRAY_START_ADDRESS_DATA;
40 typedef EFI_MEMORY_DEVICE_START_ADDRESS              EFI_MEMORY_DEVICE_START_ADDRESS_DATA;
41 typedef EFI_MISC_LAST_PCI_BUS                        EFI_MISC_LAST_PCI_BUS_DATA;
42 typedef EFI_MISC_BIOS_VENDOR                         EFI_MISC_BIOS_VENDOR_DATA;
43 typedef EFI_MISC_SYSTEM_MANUFACTURER                 EFI_MISC_SYSTEM_MANUFACTURER_DATA;
44 typedef EFI_MISC_BASE_BOARD_MANUFACTURER             EFI_MISC_BASE_BOARD_MANUFACTURER_DATA;
45 typedef EFI_MISC_CHASSIS_MANUFACTURER                EFI_MISC_CHASSIS_MANUFACTURER_DATA;
46 typedef EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR  EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_DATA;
47 typedef EFI_MISC_SYSTEM_SLOT_DESIGNATION             EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA;
48 typedef EFI_MISC_ONBOARD_DEVICE                      EFI_MISC_ONBOARD_DEVICE_DATA;
49 typedef EFI_MISC_ONBOARD_DEVICE_TYPE_DATA            EFI_MISC_PORTING_DEVICE_TYPE_DATA;
50 typedef EFI_MISC_OEM_STRING                          EFI_MISC_OEM_STRING_DATA;
51 typedef EFI_MISC_SYSTEM_OPTION_STRING                EFI_MISC_SYSTEM_OPTION_STRING_DATA;
52 typedef EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES     EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_DATA;
53 typedef EFI_MISC_SYSTEM_LANGUAGE_STRING              EFI_MISC_SYSTEM_LANGUAGE_STRING_DATA;
54 typedef EFI_MISC_BIS_ENTRY_POINT                     EFI_MISC_BIS_ENTRY_POINT_DATA;
55 typedef EFI_MISC_BOOT_INFORMATION_STATUS             EFI_MISC_BOOT_INFORMATION_STATUS_DATA;
56 typedef EFI_MISC_SYSTEM_POWER_SUPPLY                 EFI_MISC_SYSTEM_POWER_SUPPLY_DATA ;
57 typedef EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION         EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION_DATA;
58 
59 // -------------------
60 // EdkII Names - Edk Names
61 // -------------------
62 #define gEfiPeiCpuIoPpiInServiceTableGuid             gPeiCpuIoPpiInServiceTableGuid
63 #define gEfiEndOfPeiSignalPpiGuid                     gEndOfPeiSignalPpiGuid
64 #define gEfiPeiFvFileLoaderPpiGuid                    gPeiFvFileLoaderPpiGuid
65 #define gEfiPeiMasterBootModePpiGuid                  gPeiMasterBootModePpiGuid
66 #define gEfiPeiMemoryDiscoveredPpiGuid                gPeiMemoryDiscoveredPpiGuid
67 #define gEfiPciCfgPpiInServiceTableGuid               gPeiPciCfgPpiInServiceTableGuid
68 #define gEfiPeiReadOnlyVariablePpiGuid                gPeiReadOnlyVariablePpiGuid
69 #define gEfiPeiRecoveryModulePpiGuid                  gPeiRecoveryModulePpiGuid
70 #define gEfiPeiResetPpiGuid                           gPeiResetPpiGuid
71 #define gEfiPeiS3ResumePpiGuid                        gPeiS3ResumePpiGuid
72 #define gEfiPeiSectionExtractionPpiGuid               gPeiSectionExtractionPpiGuid
73 #define gEfiPeiSecurityPpiGuid                        gPeiSecurityPpiGuid
74 #define gEfiPeiStatusCodePpiGuid                      gPeiStatusCodePpiGuid
75 #define gEfiPeiBootScriptExecuterPpiGuid              gPeiBootScriptExecuterPpiGuid
76 #define gEfiPeiSmbusPpiGuid                           gPeiSmbusPpiGuid
77 #define gEfiPeiBlockIoPpiGuid                         gPeiBlockIoPpiGuid
78 #define gEfiPeiDeviceRecoveryModulePpiGuid            gPeiDeviceRecoveryModulePpiGuid
79 #define gEfiPeiStallPpiGuid                           gPeiStallPpiGuid
80 #define gEfiPeiPciCfgPpiInServiceTableGuid            gPeiPciCfgPpiInServiceTableGuid
81 #define gEfiPeiAtaControllerPpiGuid                   gPeiAtaControllerPpiGuid
82 #define EFI_PEI_CPU_IO_PPI_INSTALLED_GUID             PEI_CPU_IO_PPI_GUID
83 #define EFI_PEI_RESET_PPI_GUID                        PEI_RESET_PPI_GUID
84 #define EFI_PEI_PCI_CFG_PPI_INSTALLED_GUID            PEI_PCI_CFG_PPI_GUID
85 #define EFI_PEI_REPORT_PROGRESS_CODE_PPI_GUID         PEI_STATUS_CODE_PPI_GUID
86 #define EFI_PEI_BOOT_IN_RECOVERY_MODE_PEIM_PPI        PEI_BOOT_IN_RECOVERY_MODE_PEIM_PPI
87 #define EFI_PEI_END_OF_PEI_PHASE_PPI_GUID             PEI_END_OF_PEI_PHASE_PPI_GUID
88 #define EFI_PEI_MASTER_BOOT_MODE_PEIM_PPI             PEI_MASTER_BOOT_MODE_PEIM_PPI
89 #define EFI_PEI_PERMANENT_MEMORY_INSTALLED_PPI_GUID   PEI_PERMANENT_MEMORY_INSTALLED_PPI_GUID
90 #define EFI_PEI_READ_ONLY_VARIABLE_ACCESS_PPI_GUID    PEI_READ_ONLY_VARIABLE_ACCESS_PPI_GUID
91 #define EFI_PEI_RECOVERY_MODULE_PPI_GUID              PEI_RECOVERY_MODULE_INTERFACE_PPI
92 #define EFI_PEI_S3_RESUME_PPI_GUID                    PEI_S3_RESUME_PPI_GUID
93 #define EFI_PEI_SECURITY_PPI_GUID                     PEI_SECURITY_PPI_GUID
94 #define EFI_PEI_STALL_PPI_GUID                        PEI_STALL_PPI_GUID
95 #define EFI_PEI_SMBUS_PPI_GUID                        PEI_SMBUS_PPI_GUID
96 #define EFI_PEI_BOOT_SCRIPT_EXECUTER_PPI_GUID         PEI_BOOT_SCRIPT_EXECUTER_PPI_GUID
97 #define EFI_PEI_FIND_FV_PPI_GUID                      EFI_FIND_FV_PPI_GUID
98 #define EFI_PEI_VIRTUAL_BLOCK_IO_PPI                  PEI_BLOCK_IO_PPI_GUID
99 #define EFI_PEI_DEVICE_RECOVERY_MODULE_PPI_GUID       PEI_DEVICE_RECOVERY_MODULE_INTERFACE_PPI
100 
101 
102 //
103 // typedef Edk types - EdkII types
104 //
105 typedef PEI_RECOVERY_MODULE_INTERFACE                EFI_PEI_RECOVERY_MODULE_PPI;
106 typedef PEI_STALL_PPI                                EFI_PEI_STALL_PPI;
107 typedef PEI_SMBUS_PPI                                EFI_PEI_SMBUS_PPI;
108 typedef PEI_READ_ONLY_VARIABLE_PPI                   EFI_PEI_READ_ONLY_VARIABLE_PPI;
109 typedef PEI_PCI_CFG_PPI                              EFI_PEI_PCI_CFG_PPI;
110 typedef PEI_STATUS_CODE_PPI                          EFI_PEI_PROGRESS_CODE_PPI;
111 typedef PEI_CPU_IO_PPI_WIDTH                         EFI_PEI_CPU_IO_PPI_WIDTH;
112 typedef PEI_CPU_IO_PPI_IO_MEM                        EFI_PEI_CPU_IO_PPI_IO_MEM;
113 typedef PEI_CPU_IO_PPI_ACCESS                        EFI_PEI_CPU_IO_PPI_ACCESS;
114 typedef PEI_CPU_IO_PPI_IO_READ8                      EFI_PEI_CPU_IO_PPI_IO_READ8;
115 typedef PEI_CPU_IO_PPI_IO_READ16                     EFI_PEI_CPU_IO_PPI_IO_READ16;
116 typedef PEI_CPU_IO_PPI_IO_READ32                     EFI_PEI_CPU_IO_PPI_IO_READ32;
117 typedef PEI_CPU_IO_PPI_IO_READ64                     EFI_PEI_CPU_IO_PPI_IO_READ64;
118 typedef PEI_CPU_IO_PPI_IO_WRITE8                     EFI_PEI_CPU_IO_PPI_IO_WRITE8;
119 typedef PEI_CPU_IO_PPI_IO_WRITE16                    EFI_PEI_CPU_IO_PPI_IO_WRITE16;
120 typedef PEI_CPU_IO_PPI_IO_WRITE32                    EFI_PEI_CPU_IO_PPI_IO_WRITE32;
121 typedef PEI_CPU_IO_PPI_IO_WRITE64                    EFI_PEI_CPU_IO_PPI_IO_WRITE64;
122 typedef PEI_CPU_IO_PPI_MEM_READ8                     EFI_PEI_CPU_IO_PPI_MEM_READ8;
123 typedef PEI_CPU_IO_PPI_MEM_READ16                    EFI_PEI_CPU_IO_PPI_MEM_READ16;
124 typedef PEI_CPU_IO_PPI_MEM_READ32                    EFI_PEI_CPU_IO_PPI_MEM_READ32;
125 typedef PEI_CPU_IO_PPI_MEM_READ64                    EFI_PEI_CPU_IO_PPI_MEM_READ64;
126 typedef PEI_CPU_IO_PPI_MEM_WRITE8                    EFI_PEI_CPU_IO_PPI_MEM_WRITE8;
127 typedef PEI_CPU_IO_PPI_MEM_WRITE16                   EFI_PEI_CPU_IO_PPI_MEM_WRITE16;
128 typedef PEI_CPU_IO_PPI_MEM_WRITE32                   EFI_PEI_CPU_IO_PPI_MEM_WRITE32;
129 typedef PEI_CPU_IO_PPI_MEM_WRITE64                   EFI_PEI_CPU_IO_PPI_MEM_WRITE64;
130 typedef PEI_GET_VARIABLE                             EFI_PEI_GET_VARIABLE;
131 typedef PEI_GET_NEXT_VARIABLE_NAME                   EFI_PEI_GET_NEXT_VARIABLE_NAME;
132 typedef PEI_LOAD_RECOVERY_CAPSULE                    EFI_PEI_LOAD_RECOVERY_CAPSULE;
133 typedef PEI_RESET_PPI                                EFI_PEI_RESET_PPI;
134 typedef PEI_S3_RESUME_PPI                            EFI_PEI_S3_RESUME_PPI;
135 typedef PEI_S3_RESUME_PPI_RESTORE_CONFIG             EFI_PEI_S3_RESUME_PPI_RESTORE_CONFIG;
136 typedef SEC_PLATFORM_INFORMATION                     EFI_SEC_PLATFORM_INFORMATION;
137 typedef PEI_SECURITY_PPI                             EFI_PEI_SECURITY_PPI;
138 typedef PEI_SECURITY_AUTHENTICATION_STATE            EFI_PEI_SECURITY_AUTHENTICATION_STATE;
139 typedef PEI_STALL                                    EFI_PEI_STALL;
140 typedef PEI_SMBUS_PPI_EXECUTE_OPERATION              EFI_PEI_SMBUS_PPI_EXECUTE_OPERATION;
141 typedef PEI_SMBUS_NOTIFY_FUNCTION                    EFI_PEI_SMBUS_NOTIFY_FUNCTION;
142 typedef PEI_SMBUS_PPI_ARP_DEVICE                     EFI_PEI_SMBUS_PPI_ARP_DEVICE;
143 typedef PEI_SMBUS_PPI_GET_ARP_MAP                    EFI_PEI_SMBUS_PPI_GET_ARP_MAP;
144 typedef PEI_SMBUS_PPI_NOTIFY                         EFI_PEI_SMBUS_PPI_NOTIFY;
145 typedef PEI_BOOT_SCRIPT_EXECUTE                      EFI_PEI_BOOT_SCRIPT_EXECUTE;
146 typedef PEI_BOOT_SCRIPT_EXECUTER_PPI                 EFI_PEI_BOOT_SCRIPT_EXECUTER_PPI;
147 typedef EFI_FIND_FV_FINDFV                           EFI_PEI_FIND_FV_FINDFV;
148 typedef EFI_FIND_FV_PPI                              EFI_PEI_FIND_FV_PPI;
149 typedef PEI_RECOVERY_BLOCK_IO_INTERFACE              EFI_PEI_RECOVERY_BLOCK_IO_PPI;
150 typedef PEI_LBA                                      EFI_PEI_LBA;
151 typedef PEI_BLOCK_IO_MEDIA                           EFI_PEI_BLOCK_IO_MEDIA;
152 typedef PEI_BLOCK_DEVICE_TYPE                        EFI_PEI_BLOCK_DEVICE_TYPE;
153 typedef PEI_GET_NUMBER_BLOCK_DEVICES                 EFI_PEI_GET_NUMBER_BLOCK_DEVICES;
154 typedef PEI_GET_DEVICE_MEDIA_INFORMATION             EFI_PEI_GET_DEVICE_MEDIA_INFORMATION;
155 typedef PEI_READ_BLOCKS                              EFI_PEI_READ_BLOCKS;
156 typedef PEI_DEVICE_RECOVERY_MODULE_INTERFACE         EFI_PEI_DEVICE_RECOVERY_MODULE_PPI;
157 typedef PEI_DEVICE_GET_NUMBER_RECOVERY_CAPSULE       EFI_PEI_DEVICE_GET_NUMBER_RECOVERY_CAPSULE;
158 typedef PEI_DEVICE_GET_RECOVERY_CAPSULE_INFO         EFI_PEI_DEVICE_GET_RECOVERY_CAPSULE_INFO;
159 typedef PEI_DEVICE_LOAD_RECOVERY_CAPSULE             EFI_PEI_DEVICE_LOAD_RECOVERY_CAPSULE;
160 
161 
162 #endif
163