Newer
Older
AMI-Aptio-BIOS-Reversed / PurleySktPkg / SouthClusterLbg / SiInit / Pei / SiInitPreMem / SiInitPreMem.h
/** @file
  SiInitPreMem.h -- Header for SiInitPreMem
**/

#ifndef __SIINITPREMEM_H__
#define __SIINITPREMEM_H__

#include "../uefi_headers/Uefi.h"

EFI_PEI_SERVICES **
EFIAPI
GetPeiServicesPtr (
  VOID
  );

VOID
EFIAPI
DebugPrint (
  IN UINTN   ErrorLevel,
  IN CHAR8   *Format,
  ...
  );

EFI_STATUS
EFIAPI
PpiInstall (
  IN EFI_PEI_PPI_DESCRIPTOR  *PpiList
  );

UINTN
EFIAPI
StartPerformanceMeasurement (
  IN UINT64   *PerfTsc    OPTIONAL,
  IN UINT32   EventType,
  IN VOID     *GuidPtr
  );

UINTN
EFIAPI
EndPerformanceMeasurement (
  IN UINT64   *PerfTsc    OPTIONAL,
  IN UINT32   EventType,
  IN VOID     *GuidPtr
  );

EFI_STATUS
EFIAPI
SiInitPreMemEntryPoint (
  IN EFI_HANDLE        ImageHandle,
  IN EFI_SYSTEM_TABLE  *SystemTable
  );

VOID
EFIAPI
SiInitPrePolicy (
  VOID
  );

VOID
EFIAPI
PrintPchInfo (
  VOID
  );

EFI_STATUS
EFIAPI
PchWdtInit (
  VOID
  );

BOOLEAN
EFIAPI
PchWdtIsUnexpectedReset (
  VOID
  );

EFI_STATUS
EFIAPI
InstallPchResetPpi (
  VOID
  );

EFI_STATUS
EFIAPI
InstallPchSpiPpi (
  VOID
  );

EFI_STATUS
EFIAPI
PchInitPreMem (
  VOID
  );

EFI_STATUS
EFIAPI
PchAcpiBaseSet (
  IN UINT16  AcpiBase
  );

EFI_STATUS
EFIAPI
PchPwrmBaseGet (
  OUT UINT32  *PwrmBase
  );

EFI_STATUS
EFIAPI
PchPwrmBaseSet (
  VOID
  );

EFI_STATUS
EFIAPI
PchTcoBaseSet (
  VOID
  );

VOID
EFIAPI
PchFabricErrorCheck (
  VOID
  );

EFI_STATUS
EFIAPI
PchEarlyDisabledDeviceHandling (
  IN VOID  *Policy
  );

EFI_STATUS
EFIAPI
GpioInitEarly (
  VOID
  );

UINT16
EFIAPI
MmioRead16 (
  IN UINT16  *Address
  );

VOID
EFIAPI
MmioWrite16 (
  IN UINT16  *Address,
  IN UINT16  Value
  );

UINT32
EFIAPI
PchGetMmPciAddress (
  IN UINT8   Bus,
  IN UINT8   Device,
  IN UINT8   Function
  );

UINT16
EFIAPI
PchPciRead16 (
  IN UINT32  Address
  );

VOID
EFIAPI
PchPciWrite32 (
  IN UINT32  Address,
  IN UINT32  Data
  );

UINT32
EFIAPI
PchPcrRead32 (
  IN UINT32  Pid,
  IN UINT32  Offset
  );

VOID
EFIAPI
PchPcrWrite32 (
  IN UINT32  Pid,
  IN UINT32  Offset,
  IN UINT32  Data
  );

EFI_STATUS
EFIAPI
SpiProtocolInit (
  OUT PCH_SPI_INSTANCE  *SpiInstance
  );

VOID
EFIAPI
PchInfoGetPchSeriesStr (
  OUT CHAR8   *Buf,
  IN  UINTN   BufSize
  );

VOID
EFIAPI
PchInfoGetPchSteppingStr (
  OUT CHAR8   *Buf,
  IN  UINTN   BufSize,
  IN  INT16   *DeviceId
  );

VOID
EFIAPI
PchInfoGetPchSkuStr (
  OUT CHAR8   *Buf,
  IN  UINTN   BufSize
  );

#endif