Newer
Older
AMI-Aptio-BIOS-Reversed / PurleyPlatPkg / Ras / Smm / ErrHandling / MainErrorHandler / MainErrorHandler.h
@Ajax Dong Ajax Dong 7 days ago 1 KB Recovering names
/** @file
  MainErrorHandler.h -- Header for MainErrorHandler


Copyright (c) HR650X BIOS Decompilation Project
**/

#ifndef __MAINERRORHANDLER_H__
#define __MAINERRORHANDLER_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
);

///
/// InitMainErrorHandlerLibraries -- library constructor chain initialization
/// for gST/gBS/gRT/gSmst and related global protocol pointers.
///
EFI_STATUS
EFIAPI
InitMainErrorHandlerLibraries(
  VOID
);

///
/// RegisterMainErrorHandlerCallbacks -- main error handler registration and setup.
///
EFI_STATUS
EFIAPI
RegisterMainErrorHandlerCallbacks(
  EFI_HANDLE        ImageHandle,
  EFI_SYSTEM_TABLE  *SystemTable
);

///
/// UnregisterMainErrorHandlerCallbacks -- cleanup and unload handlers when init fails.
///
EFI_STATUS
EFIAPI
UnregisterMainErrorHandlerCallbacks(
  EFI_HANDLE        ImageHandle,
  EFI_SYSTEM_TABLE  *SystemTable
);

#endif /* __MAINERRORHANDLER_H__ */