]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/CodeTools/Source/Include/Common/MultiPhase.h
More renames for Tool Packages
[mirror_edk2.git] / Tools / CodeTools / Source / Include / Common / MultiPhase.h
CommitLineData
21b50a27 1/** @file\r
2 This includes some definitions that will be used in both PEI and DXE phases.\r
3\r
4 Copyright (c) 2006, Intel Corporation \r
5 All rights reserved. This program and the accompanying materials \r
6 are licensed and made available under the terms and conditions of the BSD License \r
7 which accompanies this distribution. The full text of the license may be found at \r
8 http://opensource.org/licenses/bsd-license.php \r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
12\r
13 Module Name: MultiPhase.h\r
14\r
15**/\r
16\r
17#ifndef __MULTI_PHASE_H__\r
18#define __MULTI_PHASE_H__\r
19\r
20//\r
21//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\r
22//\r
23// Needed EFI defines for PEI\r
24//\r
25typedef UINT64 EFI_PHYSICAL_ADDRESS;\r
26\r
27typedef enum {\r
28 EfiReservedMemoryType,\r
29 EfiLoaderCode,\r
30 EfiLoaderData,\r
31 EfiBootServicesCode,\r
32 EfiBootServicesData,\r
33 EfiRuntimeServicesCode,\r
34 EfiRuntimeServicesData,\r
35 EfiConventionalMemory,\r
36 EfiUnusableMemory,\r
37 EfiACPIReclaimMemory,\r
38 EfiACPIMemoryNVS,\r
39 EfiMemoryMappedIO,\r
40 EfiMemoryMappedIOPortSpace,\r
41 EfiPalCode,\r
42 EfiMaxMemoryType\r
43} EFI_MEMORY_TYPE;\r
44\r
45typedef UINT32 EFI_STATUS_CODE_TYPE;\r
46typedef UINT32 EFI_STATUS_CODE_VALUE;\r
47\r
48typedef struct {\r
49 UINT16 HeaderSize;\r
50 UINT16 Size;\r
51 EFI_GUID Type;\r
52} EFI_STATUS_CODE_DATA;\r
53\r
54typedef struct {\r
55 UINT64 Signature;\r
56 UINT32 Revision;\r
57 UINT32 HeaderSize;\r
58 UINT32 CRC32;\r
59 UINT32 Reserved;\r
60} EFI_TABLE_HEADER;\r
61\r
62#define EFI_PAGE_SIZE 4096\r
63\r
64\r
65typedef VOID *EFI_HANDLE;\r
66typedef UINT16 EFI_HII_HANDLE;\r
67typedef UINT16 STRING_REF;\r
68typedef struct {\r
69 INT16 Value;\r
70 INT16 Exponent;\r
71} EFI_EXP_BASE10_DATA;\r
72\r
73//\r
74// Define macros to build data structure signatures from characters.\r
75//\r
76#define EFI_SIGNATURE_16(A, B) ((A) | (B << 8))\r
77#define EFI_SIGNATURE_32(A, B, C, D) (EFI_SIGNATURE_16 (A, B) | (EFI_SIGNATURE_16 (C, D) << 16))\r
78#define EFI_SIGNATURE_64(A, B, C, D, E, F, G, H) \\r
79 (EFI_SIGNATURE_32 (A, B, C, D) | ((UINT64) (EFI_SIGNATURE_32 (E, F, G, H)) << 32))\r
80\r
81\r
82#include <Protocol/DevicePath.h>\r
83\r
84#endif\r