]> git.proxmox.com Git - mirror_edk2.git/blame - QuarkSocPkg/QuarkNorthCluster/Spi/RuntimeDxe/PchSpi.h
QuarkSocPkg: Add new package for Quark SoC X1000
[mirror_edk2.git] / QuarkSocPkg / QuarkNorthCluster / Spi / RuntimeDxe / PchSpi.h
CommitLineData
9b6bbcdb
MK
1/** @file\r
2Header file for the PCH SPI Runtime Driver.\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\r
16#ifndef _PCH_SPI_H_\r
17#define _PCH_SPI_H_\r
18\r
19#include <Library/PcdLib.h>\r
20#include <Library/UefiLib.h>\r
21#include <Library/DebugLib.h>\r
22#include <Library/UefiRuntimeLib.h>\r
23#include <Library/S3BootScriptLib.h>\r
24#include <Library/MemoryAllocationLib.h>\r
25#include <Library/DxeServicesTableLib.h>\r
26#include <Library/UefiRuntimeServicesTableLib.h>\r
27#include <Library/UefiBootServicesTableLib.h>\r
28#include <Protocol/Spi.h>\r
29#include "SpiCommon.h"\r
30#include <Library/PciExpressLib.h>\r
31#include <IntelQNCRegs.h>\r
32#include <Library/IntelQNCLib.h>\r
33#include <Library/QNCAccessLib.h>\r
34#include <Library/TimerLib.h>\r
35\r
36#define EFI_INTERNAL_POINTER 0x00000004\r
37\r
38\r
39//\r
40// Function prototypes used by the SPI protocol.\r
41//\r
42VOID\r
43PchSpiVirtualddressChangeEvent (\r
44 IN EFI_EVENT Event,\r
45 IN VOID *Context\r
46 )\r
47/*++\r
48\r
49Routine Description:\r
50\r
51 Fixup internal data pointers so that the services can be called in virtual mode.\r
52\r
53Arguments:\r
54\r
55 Event The event registered.\r
56 Context Event context. Not used in this event handler.\r
57\r
58Returns:\r
59\r
60 None.\r
61\r
62--*/\r
63;\r
64\r
65VOID\r
66EFIAPI\r
67SpiPhaseInit (\r
68 VOID\r
69 )\r
70/*++\r
71Routine Description:\r
72\r
73 This function is a hook for Spi Dxe phase specific initialization\r
74\r
75Arguments:\r
76\r
77 None\r
78\r
79Returns:\r
80\r
81 None\r
82\r
83--*/\r
84;\r
85#endif\r