]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Common/EdkIIGlueDefinitionChangesBase.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Include / Common / EdkIIGlueDefinitionChangesBase.h
1 /*++
2
3 Copyright (c) 2004 - 2006, Intel Corporation
4 All rights reserved. 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 EdkIIGlueDefinitionChangesBase.h
16
17 Abstract:
18
19 Data structure definition changes from EDK to EDKII
20
21 --*/
22
23 #ifndef __EDKII_GLUE_DEFINITION_CHANGES_BASE_H__
24 #define __EDKII_GLUE_DEFINITION_CHANGES_BASE_H__
25
26 #include "EfiInternalFormRepresentation.h"
27 #include "EfiPxe.h"
28
29
30 // ----------------------------------------------------------------------------------
31 // Data Hub Record GUID Name changes
32 // ----------------------------------------------------------------------------------
33 #define gEfiProcessorSubClassGuid gProcessorSubClassName
34 #define gEfiCacheSubClassGuid gCacheSubClassName
35 #define gEfiMiscSubClassGuid gMiscSubClassName
36 #define gEfiProcessorProducerGuid gProcessorProducerGuid
37 #define gEfiMemoryProducerGuid gMemoryProducerGuid
38 #define gEfiMiscProducerGuid gMiscProducerGuid
39
40
41 // ----------------------------------------------------------------------------------
42 // Hob.h: Get the data and data size field of GUID
43 // ----------------------------------------------------------------------------------
44 #define GET_GUID_HOB_DATA(GuidHob) ((VOID *) (((UINT8 *) &((GuidHob)->Name)) + sizeof (EFI_GUID)))
45 #define GET_GUID_HOB_DATA_SIZE(GuidHob) (((GuidHob)->Header).HobLength - sizeof (EFI_HOB_GUID_TYPE))
46
47 // ----------------------------------------------------------------------------------
48 // InternalFormRepresentation.h:
49 // ----------------------------------------------------------------------------------
50
51 typedef struct {
52 EFI_IFR_OP_HEADER Header;
53 UINT16 QuestionId; // The ID designating what the question is about...sucked in from a #define, likely in the form of a variable name
54 UINT8 Width; // The Size of the Data being saved
55 STRING_REF Prompt; // The String Token for the Prompt
56 STRING_REF Help; // The string Token for the context-help
57 UINT8 Flags; // For now, if non-zero, means that it is the default option, - further definition likely
58 UINT16 Key; // Value to be passed to caller to identify this particular op-code
59 } EFI_IFR_CHECKBOX;
60
61 typedef struct {
62 EFI_IFR_OP_HEADER Header;
63 UINT8 Flags;
64 } EFI_IFR_GRAY_OUT;
65
66 typedef struct {
67 EFI_IFR_OP_HEADER Header;
68 } EFI_IFR_END_EXPR;
69
70 // ------------------------
71 // define GUID as EFI_GUID
72 // ------------------------
73 typedef EFI_GUID GUID;
74
75
76 // -------------------
77 // EdkII Names - Edk Names
78 // -------------------
79 #define EFI_GLOBAL_VARIABLE EFI_GLOBAL_VARIABLE_GUID
80 #define MPS_TABLE_GUID EFI_MPS_TABLE_GUID
81 #define SAL_SYSTEM_TABLE_GUID EFI_SAL_SYSTEM_TABLE_GUID
82 #define SMBIOS_TABLE_GUID EFI_SMBIOS_TABLE_GUID
83 #define EFI_OPTIONAL_PTR EFI_OPTIONAL_POINTER
84 #define PXE_FRAME_TYPE_FILTERED_MULTICAST PXE_FRAME_TYPE_MULTICAST
85 #define IMAGE_FILE_MACHINE_I386 EFI_IMAGE_MACHINE_IA32
86 #define IMAGE_FILE_MACHINE_IA64 EFI_IMAGE_MACHINE_IA64
87 #define IMAGE_FILE_MACHINE_EBC EFI_IMAGE_MACHINE_EBC
88 #define IMAGE_FILE_MACHINE_X64 EFI_IMAGE_MACHINE_X64
89 #define EVENT_TIMER EFI_EVENT_TIMER
90 #define EVENT_RUNTIME EFI_EVENT_RUNTIME
91 #define EVENT_RUNTIME_CONTEXT EFI_EVENT_RUNTIME_CONTEXT
92 #define EVENT_NOTIFY_WAIT EFI_EVENT_NOTIFY_WAIT
93 #define EVENT_NOTIFY_SIGNAL EFI_EVENT_NOTIFY_SIGNAL
94 #define EVENT_SIGNAL_EXIT_BOOT_SERVICES EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES
95 #define EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE
96 #define TPL_APPLICATION EFI_TPL_APPLICATION
97 #define TPL_CALLBACK EFI_TPL_CALLBACK
98 #define TPL_NOTIFY EFI_TPL_NOTIFY
99 #define TPL_HIGH_LEVEL EFI_TPL_HIGH_LEVEL
100
101 //
102 // Typos in R8.x
103 //
104 #define gEfiHobMemoryAllocModuleGuid gEfiHobMemeryAllocModuleGuid
105 #define gEfiHobMemoryAllocStackGuid gEfiHobMemeryAllocStackGuid
106 #define gEfiHobMemoryAllocBspStoreGuid gEfiHobMemeryAllocBspStoreGuid
107
108 //
109 // typedef Edk types - EdkII types
110 //
111 typedef PXE_CPB_START PXE_CPB_START_30;
112
113 #endif