1/** @file 2Header file for the PCH SPI Runtime Driver. 3 4Copyright (c) 2013-2015 Intel Corporation. 5 6This program and the accompanying materials 7are licensed and made available under the terms and conditions of the BSD License 8which accompanies this distribution. The full text of the license may be found at 9http://opensource.org/licenses/bsd-license.php 10 11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12WITHOUT 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// 42VOID 43PchSpiVirtualddressChangeEvent ( 44 IN EFI_EVENT Event, 45 IN VOID *Context 46 ) 47/*++ 48 49Routine Description: 50 51 Fixup internal data pointers so that the services can be called in virtual mode. 52 53Arguments: 54 55 Event The event registered. 56 Context Event context. Not used in this event handler. 57 58Returns: 59 60 None. 61 62--*/ 63; 64 65VOID 66EFIAPI 67SpiPhaseInit ( 68 VOID 69 ) 70/*++ 71Routine Description: 72 73 This function is a hook for Spi Dxe phase specific initialization 74 75Arguments: 76 77 None 78 79Returns: 80 81 None 82 83--*/ 84; 85#endif 86