• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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   EdkIIGlueDefinitionChangesDxe.h
16 
17 Abstract:
18 
19   Data structure definition changes from EDK to EDKII
20 
21 --*/
22 
23 #ifndef __EDKII_GLUE_DEFINITION_CHANGES_DXE_H__
24 #define __EDKII_GLUE_DEFINITION_CHANGES_DXE_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 #if (TIANO_RELEASE_VERSION <= 0x00080005)
35   #define gEfiStatusCodeRuntimeProtocolGuid         gEfiStatusCodeArchProtocolGuid
36 #endif
37 
38 //
39 // typedef Edk types - EdkII types
40 //
41 typedef EFI_MEMORY_ARRAY_START_ADDRESS               EFI_MEMORY_ARRAY_START_ADDRESS_DATA;
42 typedef EFI_MEMORY_DEVICE_START_ADDRESS              EFI_MEMORY_DEVICE_START_ADDRESS_DATA;
43 typedef EFI_MISC_LAST_PCI_BUS                        EFI_MISC_LAST_PCI_BUS_DATA;
44 typedef EFI_MISC_BIOS_VENDOR                         EFI_MISC_BIOS_VENDOR_DATA;
45 typedef EFI_MISC_SYSTEM_MANUFACTURER                 EFI_MISC_SYSTEM_MANUFACTURER_DATA;
46 typedef EFI_MISC_BASE_BOARD_MANUFACTURER             EFI_MISC_BASE_BOARD_MANUFACTURER_DATA;
47 typedef EFI_MISC_CHASSIS_MANUFACTURER                EFI_MISC_CHASSIS_MANUFACTURER_DATA;
48 typedef EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR  EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_DATA;
49 typedef EFI_MISC_SYSTEM_SLOT_DESIGNATION             EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA;
50 typedef EFI_MISC_ONBOARD_DEVICE                      EFI_MISC_ONBOARD_DEVICE_DATA;
51 typedef EFI_MISC_ONBOARD_DEVICE_TYPE_DATA            EFI_MISC_PORTING_DEVICE_TYPE_DATA;
52 typedef EFI_MISC_OEM_STRING                          EFI_MISC_OEM_STRING_DATA;
53 typedef EFI_MISC_SYSTEM_OPTION_STRING                EFI_MISC_SYSTEM_OPTION_STRING_DATA;
54 typedef EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES     EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_DATA;
55 typedef EFI_MISC_SYSTEM_LANGUAGE_STRING              EFI_MISC_SYSTEM_LANGUAGE_STRING_DATA;
56 typedef EFI_MISC_BIS_ENTRY_POINT                     EFI_MISC_BIS_ENTRY_POINT_DATA;
57 typedef EFI_MISC_BOOT_INFORMATION_STATUS             EFI_MISC_BOOT_INFORMATION_STATUS_DATA;
58 typedef EFI_MISC_SYSTEM_POWER_SUPPLY                 EFI_MISC_SYSTEM_POWER_SUPPLY_DATA ;
59 typedef EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION         EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION_DATA;
60 
61 // -------------------
62 // EdkII Names - Edk Names
63 // -------------------
64 #define gEfiAcpiSupportProtocolGuid                   gEfiAcpiSupportGuid
65 #define gEfiLoadPeImageProtocolGuid                   gEfiLoadPeImageGuid
66 #if (EFI_SPECIFICATION_VERSION < 0x0002000A)
67 #define EFI_GLYPH_NON_SPACING                         GLYPH_NON_SPACING
68 #define EFI_GLYPH_WIDE                                GLYPH_NON_BREAKING
69 #endif
70 #define BOOT_OBJECT_AUTHORIZATION_PARMSET_GUID        BOOT_OBJECT_AUTHORIZATION_PARMSET_GUIDVALUE
71 #define EFI_EBC_PROTOCOL_GUID                         EFI_EBC_INTERPRETER_PROTOCOL_GUID
72 #define EFI_FILE_SYSTEM_VOLUME_LABEL_ID               EFI_FILE_SYSTEM_VOLUME_LABEL_INFO_ID_GUID
73 #define EFI_LOADED_IMAGE_PROTOCOL_REVISION            EFI_LOADED_IMAGE_INFORMATION_REVISION
74 #define EFI_LOAD_FILE_PROTOCOL_GUID                   LOAD_FILE_PROTOCOL_GUID
75 #define EFI_PXE_BASE_CODE_PROTOCOL_REVISION           EFI_PXE_BASE_CODE_INTERFACE_REVISION
76 #define EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL_REVISION  EFI_PXE_BASE_CODE_CALLBACK_INTERFACE_REVISION
77 #define EFI_SERIAL_IO_PROTOCOL_REVISION               SERIAL_IO_INTERFACE_REVISION
78 #define EFI_FILE_PROTOCOL_REVISION                    EFI_FILE_HANDLE_REVISION
79 #define EFI_SIMPLE_TEXT_INPUT_PROTOCOL_GUID           EFI_SIMPLE_TEXT_IN_PROTOCOL_GUID
80 
81 
82 //
83 // typedef Edk types - EdkII types
84 //
85 typedef EFI_VOLUME_OPEN                              EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_OPEN_VOLUME;
86 typedef EFI_TEXT_OUTPUT_STRING                       EFI_TEXT_STRING;
87 #if (EFI_SPECIFICATION_VERSION < 0x0002000A)
88 typedef SCREEN_DESCRIPTOR                            EFI_SCREEN_DESCRIPTOR;
89 #endif
90 typedef EFI_SIMPLE_TEXT_IN_PROTOCOL                  EFI_SIMPLE_TEXT_INPUT_PROTOCOL;
91 typedef EFI_SIMPLE_TEXT_OUT_PROTOCOL                 EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL;
92 //typedef EFI_TO_LEGACY16_INIT_TABLE                   EFI_TO_COMPATIBILITY16_INIT_TABLE;
93 //typedef DISPATCH_OPROM_TABLE                         EFI_DISPATCH_OPROM_TABLE;
94 
95 #endif
96