]> code.delx.au - refind/blob - EfiLib/Platform.h
Properly initialise variable to fix detection of non-Arch kernel versions
[refind] / EfiLib / Platform.h
1 /*
2 Headers collection for procedures
3 */
4 /**
5
6 Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>
7 This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
11
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14
15 **/
16
17 #ifndef __REFIT_PLATFORM_H__
18 #define __REFIT_PLATFORM_H__
19
20
21 #include <Uefi.h>
22
23 #include <Guid/Acpi.h>
24 #include <Guid/EventGroup.h>
25 #include <Guid/SmBios.h>
26 #include <Guid/Mps.h>
27
28 #include <Library/BaseLib.h>
29 #include <Library/BaseMemoryLib.h>
30 #include <Library/DebugLib.h>
31 #include <Library/HiiLib.h>
32 #include <Library/MemoryAllocationLib.h>
33 #include <Library/PcdLib.h>
34 #include <Library/PerformanceLib.h>
35 #include <Library/PeCoffGetEntryPointLib.h>
36 #include <Library/TimerLib.h>
37 #include <Library/UefiBootServicesTableLib.h>
38 #include <Library/UefiDriverEntryPoint.h>
39 #include <Library/UefiLib.h>
40 #include <Library/UefiRuntimeServicesTableLib.h>
41 #include <Library/UefiRuntimeLib.h>
42
43 #include <Framework/FrameworkInternalFormRepresentation.h>
44
45 #include <IndustryStandard/Acpi10.h>
46 #include <IndustryStandard/Acpi20.h>
47
48 #include <Protocol/Cpu.h>
49 #include <Protocol/CpuIo.h>
50 #include <Protocol/DataHub.h>
51 #include <Protocol/DevicePathToText.h>
52 #include <Protocol/FrameworkHii.h>
53 #include <Protocol/Smbios.h>
54 #include <Protocol/VariableWrite.h>
55 #include <Protocol/Variable.h>
56
57 #include "../include/Bmp.h"
58 #include "efiConsoleControl.h"
59 #include "EfiLib/GenericBdsLib.h"
60
61 #include "../refind/global.h"
62
63 #define EFI_HANDLE_TYPE_UNKNOWN 0x000
64 #define EFI_HANDLE_TYPE_IMAGE_HANDLE 0x001
65 #define EFI_HANDLE_TYPE_DRIVER_BINDING_HANDLE 0x002
66 #define EFI_HANDLE_TYPE_DEVICE_DRIVER 0x004
67 #define EFI_HANDLE_TYPE_BUS_DRIVER 0x008
68 #define EFI_HANDLE_TYPE_DRIVER_CONFIGURATION_HANDLE 0x010
69 #define EFI_HANDLE_TYPE_DRIVER_DIAGNOSTICS_HANDLE 0x020
70 #define EFI_HANDLE_TYPE_COMPONENT_NAME_HANDLE 0x040
71 #define EFI_HANDLE_TYPE_DEVICE_HANDLE 0x080
72 #define EFI_HANDLE_TYPE_PARENT_HANDLE 0x100
73 #define EFI_HANDLE_TYPE_CONTROLLER_HANDLE 0x200
74 #define EFI_HANDLE_TYPE_CHILD_HANDLE 0x400
75
76 EFI_STATUS EFIAPI InitializeConsoleSim (VOID);
77
78 #endif