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