1 /** @file 2 Common header file shared by all source files in this component. 3 4 Copyright (c) 2013-2015 Intel Corporation. 5 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 10 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. 13 **/ 14 15 #ifndef __COMMON_HEADER_H_ 16 #define __COMMON_HEADER_H_ 17 18 #include <Uefi.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> 27 #include <Platform.h> 28 #include <PlatformBoards.h> 29 #include <Pcal9555.h> 30 #include <QNCAccess.h> 31 #include <Library/QNCAccessLib.h> 32 #include <IohAccess.h> 33 34 #include <Library/PlatformHelperLib.h> 35 36 // 37 // Routines shared between souce modules in this component. 38 // 39 40 EFI_STATUS 41 WriteFirstFreeSpiProtect ( 42 IN CONST UINT32 PchRootComplexBar, 43 IN CONST UINT32 DirectValue, 44 IN CONST UINT32 BaseAddress, 45 IN CONST UINT32 Length, 46 OUT UINT32 *OffsetPtr 47 ); 48 49 VOID 50 Pcal9555SetPortRegBit ( 51 IN CONST UINT32 Pcal9555SlaveAddr, 52 IN CONST UINT32 GpioNum, 53 IN CONST UINT8 RegBase, 54 IN CONST BOOLEAN LogicOne 55 ); 56 57 #endif 58