]> git.proxmox.com Git - mirror_edk2.git/blame - QuarkPlatformPkg/Library/PlatformHelperLib/CommonHeader.h
QuarkPlatformPkg: Add new package for Galileo boards
[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
6This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13**/\r
14\r
15#ifndef __COMMON_HEADER_H_\r
16#define __COMMON_HEADER_H_\r
17\r
18#include <Uefi.h>\r
19#include <Library/DebugLib.h>\r
20#include <Library/BaseLib.h>\r
21#include <Library/SerialPortLib.h>\r
22#include <Library/IoLib.h>\r
23#include <Library/HobLib.h>\r
24#include <Library/BaseMemoryLib.h>\r
25#include <Library/CapsuleLib.h>\r
26#include <Library/IntelQNCLib.h>\r
27#include <Platform.h>\r
28#include <PlatformBoards.h>\r
29#include <Pcal9555.h>\r
30#include <QNCAccess.h>\r
31#include <Library/QNCAccessLib.h>\r
32#include <IohAccess.h>\r
33\r
34#include <Library/PlatformHelperLib.h>\r
35\r
36//\r
37// Routines shared between souce modules in this component.\r
38//\r
39\r
40EFI_STATUS\r
41WriteFirstFreeSpiProtect (\r
42 IN CONST UINT32 PchRootComplexBar,\r
43 IN CONST UINT32 DirectValue,\r
44 IN CONST UINT32 BaseAddress,\r
45 IN CONST UINT32 Length,\r
46 OUT UINT32 *OffsetPtr\r
47 );\r
48\r
49VOID\r
50Pcal9555SetPortRegBit (\r
51 IN CONST UINT32 Pcal9555SlaveAddr,\r
52 IN CONST UINT32 GpioNum,\r
53 IN CONST UINT8 RegBase,\r
54 IN CONST BOOLEAN LogicOne\r
55 );\r
56\r
57#endif\r