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