]> git.proxmox.com Git - mirror_edk2.git/blob - QuarkPlatformPkg/Library/PlatformHelperLib/CommonHeader.h
8016309f57384432ff294c964162db357bd4fb52
[mirror_edk2.git] / QuarkPlatformPkg / Library / PlatformHelperLib / CommonHeader.h
1 /** @file
2 Common header file shared by all source files in this component.
3
4 Copyright (c) 2013-2015 Intel Corporation.
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7 **/
8
9 #ifndef __COMMON_HEADER_H_
10 #define __COMMON_HEADER_H_
11
12 #include <Uefi.h>
13 #include <Library/DebugLib.h>
14 #include <Library/BaseLib.h>
15 #include <Library/SerialPortLib.h>
16 #include <Library/IoLib.h>
17 #include <Library/HobLib.h>
18 #include <Library/BaseMemoryLib.h>
19 #include <Library/CapsuleLib.h>
20 #include <Library/IntelQNCLib.h>
21 #include <Platform.h>
22 #include <PlatformBoards.h>
23 #include <Pcal9555.h>
24 #include <QNCAccess.h>
25 #include <Library/QNCAccessLib.h>
26 #include <IohAccess.h>
27
28 #include <Library/PlatformHelperLib.h>
29
30 //
31 // Routines shared between souce modules in this component.
32 //
33
34 EFI_STATUS
35 WriteFirstFreeSpiProtect (
36 IN CONST UINT32 PchRootComplexBar,
37 IN CONST UINT32 DirectValue,
38 IN CONST UINT32 BaseAddress,
39 IN CONST UINT32 Length,
40 OUT UINT32 *OffsetPtr
41 );
42
43 VOID
44 Pcal9555SetPortRegBit (
45 IN CONST UINT32 Pcal9555SlaveAddr,
46 IN CONST UINT32 GpioNum,
47 IN CONST UINT8 RegBase,
48 IN CONST BOOLEAN LogicOne
49 );
50
51 #endif