]>
Commit | Line | Data |
---|---|---|
b303605e MK |
1 | /** @file\r |
2 | Common header file shared by all source files in this component.\r | |
3 | \r | |
4 | Copyright (c) 2013-2015 Intel Corporation.\r | |
5 | \r | |
6 | This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT 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 | |
40 | EFI_STATUS\r | |
41 | WriteFirstFreeSpiProtect (\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 | |
49 | VOID\r | |
50 | Pcal9555SetPortRegBit (\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 |