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