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