]> git.proxmox.com Git - mirror_edk2.git/blobdiff - QuarkPlatformPkg/Library/PlatformHelperLib/CommonHeader.h
QuarkPlatformPkg: Add new package for Galileo boards
[mirror_edk2.git] / QuarkPlatformPkg / Library / PlatformHelperLib / CommonHeader.h
diff --git a/QuarkPlatformPkg/Library/PlatformHelperLib/CommonHeader.h b/QuarkPlatformPkg/Library/PlatformHelperLib/CommonHeader.h
new file mode 100644 (file)
index 0000000..ce4aff1
--- /dev/null
@@ -0,0 +1,57 @@
+/** @file\r
+Common header file shared by all source files in this component.\r
+\r
+Copyright (c) 2013-2015 Intel Corporation.\r
+\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+**/\r
+\r
+#ifndef __COMMON_HEADER_H_\r
+#define __COMMON_HEADER_H_\r
+\r
+#include <Uefi.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/BaseLib.h>\r
+#include <Library/SerialPortLib.h>\r
+#include <Library/IoLib.h>\r
+#include <Library/HobLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
+#include <Library/CapsuleLib.h>\r
+#include <Library/IntelQNCLib.h>\r
+#include <Platform.h>\r
+#include <PlatformBoards.h>\r
+#include <Pcal9555.h>\r
+#include <QNCAccess.h>\r
+#include <Library/QNCAccessLib.h>\r
+#include <IohAccess.h>\r
+\r
+#include <Library/PlatformHelperLib.h>\r
+\r
+//\r
+// Routines shared between souce modules in this component.\r
+//\r
+\r
+EFI_STATUS\r
+WriteFirstFreeSpiProtect (\r
+  IN CONST UINT32                         PchRootComplexBar,\r
+  IN CONST UINT32                         DirectValue,\r
+  IN CONST UINT32                         BaseAddress,\r
+  IN CONST UINT32                         Length,\r
+  OUT UINT32                              *OffsetPtr\r
+  );\r
+\r
+VOID\r
+Pcal9555SetPortRegBit (\r
+  IN CONST UINT32                         Pcal9555SlaveAddr,\r
+  IN CONST UINT32                         GpioNum,\r
+  IN CONST UINT8                          RegBase,\r
+  IN CONST BOOLEAN                        LogicOne\r
+  );\r
+\r
+#endif\r