Newer
Older
AMI-Aptio-BIOS-Reversed / PurleyPlatPkg / Acpi / DxeSmm / AcpiSmmPlatform / AcpiSmmPlatform.h
@Ajax Dong Ajax Dong 7 days ago 1 KB Recovering names
/** @file
  AcpiSmmPlatform.h -- Header for AcpiSmmPlatform

  Source: DEBUG_VS2015\X64\PurleyPlatPkg\Acpi\DxeSmm\AcpiSmm\AcpiSmmPlatform\DEBUG
  Build: HR6N0XMLK DEBUG_VS2015 X64

Copyright (c) HR650X BIOS Decompilation Project
**/

#ifndef __ACPISMMPLATFORM_H__
#define __ACPISMMPLATFORM_H__

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

//
// Function Prototypes
//

///
/// ModuleEntryPoint -- UEFI entry point / initialization function
///
EFI_STATUS
EFIAPI
ModuleEntryPoint(
  EFI_HANDLE        ImageHandle,
  EFI_SYSTEM_TABLE  *SystemTable
);

///
/// InitializeSmmAcpiPlatform -- caches EFI table pointers and performs module init pre-checks.
///
EFI_STATUS
EFIAPI
InitializeSmmAcpiPlatform(
  EFI_HANDLE        ImageHandle,
  EFI_SYSTEM_TABLE  *SystemTable
);

///
/// InitializeAcpiSmmPlatformHandlers -- installs ACPI SMM platform handlers and tables.
///
EFI_STATUS
EFIAPI
InitializeAcpiSmmPlatformHandlers(
  VOID
);

///
/// ReleaseSmmAcpiPlatformResources -- finalizes context resources.
///
VOID
EFIAPI
ReleaseSmmAcpiPlatformResources(
  VOID *Context
);

///
/// UnregisterSmmAcpiPlatformCallbacks -- unregisters ACPI event callbacks.
///
VOID
EFIAPI
UnregisterSmmAcpiPlatformCallbacks(
  VOID    *Context,
  INT64    Parameter
);

///
/// SmmAcpiPlatformAssert -- debug assert helper (AutoGen assertion trap).
///
VOID
EFIAPI
SmmAcpiPlatformAssert(
  CHAR8  *FileName,
  UINTN   Line,
  CHAR8  *Description
);

///
/// SetupAcpiSmmJumpRecovery -- protects SMM init path with setjmp-style recovery.
///
BOOLEAN
EFIAPI
SetupAcpiSmmJumpRecovery(
  VOID *Context
);

///
/// CleanupAcpiSmmPlatformOnFailure -- error/cleanup handler for failed init.
///
VOID
EFIAPI
CleanupAcpiSmmPlatformOnFailure(
  VOID
);

#endif /* __ACPISMMPLATFORM_H__ */