2 Common header file shared by all source files in this component.
4 Copyright (c) 2013-2015 Intel Corporation.
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef __COMMON_HEADER_H_
16 #define __COMMON_HEADER_H_
19 #include <Library/DebugLib.h>
20 #include <Library/BaseLib.h>
21 #include <Library/SerialPortLib.h>
22 #include <Library/IoLib.h>
23 #include <Library/HobLib.h>
24 #include <Library/BaseMemoryLib.h>
25 #include <Library/CapsuleLib.h>
26 #include <Library/IntelQNCLib.h>
28 #include <PlatformBoards.h>
30 #include <QNCAccess.h>
31 #include <Library/QNCAccessLib.h>
32 #include <IohAccess.h>
34 #include <Library/PlatformHelperLib.h>
37 // Routines shared between souce modules in this component.
41 WriteFirstFreeSpiProtect (
42 IN CONST UINT32 PchRootComplexBar
,
43 IN CONST UINT32 DirectValue
,
44 IN CONST UINT32 BaseAddress
,
45 IN CONST UINT32 Length
,
50 Pcal9555SetPortRegBit (
51 IN CONST UINT32 Pcal9555SlaveAddr
,
52 IN CONST UINT32 GpioNum
,
53 IN CONST UINT8 RegBase
,
54 IN CONST BOOLEAN LogicOne