]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/Library/MultiPlatformLib/MultiPlatformLib.h
Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to
[mirror_edk2.git] / Vlv2TbltDevicePkg / Library / MultiPlatformLib / MultiPlatformLib.h
1 /**@file
2 Multiplatform initialization header file.
3
4 This file includes package header files, library classes.
5
6 Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
7
8 This program and the accompanying materials are licensed and made available under
9 the terms and conditions of the BSD License that accompanies this distribution.
10 The full text of the license may be found at
11 http://opensource.org/licenses/bsd-license.php.
12
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15
16 **/
17
18 #ifndef _MULTIPLATFORM_LIB_H_
19 #define _MULTIPLATFORM_LIB_H_
20
21
22 #define LEN_64M 0x4000000
23
24 //
25 // Default PCI32 resource size
26 //
27 #define RES_MEM32_MIN_LEN 0x38000000
28
29 #define RES_IO_BASE 0x0D00
30 #define RES_IO_LIMIT 0xFFFF
31
32 #include <PiDxe.h>
33 #include <Library/BaseLib.h>
34 #include <FrameworkPei.h>
35
36 #include "PlatformBaseAddresses.h"
37 #include "PchAccess.h"
38 #include "SetupMode.h"
39 #include "PlatformBootMode.h"
40 #include "Platform.h"
41
42 #include <Ppi/Stall.h>
43 #include <Guid/SetupVariable.h>
44 #include <Ppi/AtaController.h>
45 #include <Ppi/FindFv.h>
46 #include <Ppi/BootInRecoveryMode.h>
47 #include <Ppi/ReadOnlyVariable2.h>
48 #include <Ppi/Capsule.h>
49 #include <Guid/EfiVpdData.h>
50 #include <Library/DebugLib.h>
51 #include <Library/BaseMemoryLib.h>
52 #include <Library/PcdLib.h>
53 #include <Library/IoLib.h>
54 #include <Library/HobLib.h>
55 #include <Library/BaseLib.h>
56 #include <IndustryStandard/Pci22.h>
57 #include <Ppi/Speaker.h>
58 #include <Guid/FirmwareFileSystem.h>
59 #include <Guid/MemoryTypeInformation.h>
60 #include <Ppi/Cache.h>
61 #include <Ppi/Reset.h>
62 #include <Ppi/EndOfPeiPhase.h>
63 #include <Ppi/MemoryDiscovered.h>
64 #include <Guid/GlobalVariable.h>
65 #include <Ppi/RecoveryModule.h>
66 #include <Ppi/DeviceRecoveryModule.h>
67 #include <Guid/Capsule.h>
68 #include <Guid/RecoveryDevice.h>
69 #include <Ppi/MasterBootMode.h>
70 #include <Guid/PlatformInfo.h>
71
72 #include <BoardOemIds/BoardOemIds.h>
73 #include <BoardSsidSvid/BoardSsidSvid.h>
74
75
76 EFI_STATUS
77 GetPlatformInfoHob (
78 IN CONST EFI_PEI_SERVICES **PeiServices,
79 OUT EFI_PLATFORM_INFO_HOB **PlatformInfoHob
80 );
81
82 EFI_STATUS
83 MultiPlatformGpioTableInit (
84 IN CONST EFI_PEI_SERVICES **PeiServices,
85 IN EFI_PLATFORM_INFO_HOB *PlatformInfoHob
86 );
87
88 EFI_STATUS
89 MultiPlatformGpioProgram (
90 IN CONST EFI_PEI_SERVICES **PeiServices,
91 IN EFI_PLATFORM_INFO_HOB *PlatformInfoHob
92 );
93
94 #endif