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


Copyright (c) HR650X BIOS Decompilation Project
**/

#ifndef __PCIEERRORHANDLER_H__
#define __PCIEERRORHANDLER_H__

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

//
// Function Prototypes
//

///
/// ModuleEntryPoint -- UEFI entry point / initialization function
/// Recovered control flow: calls PcieErrorHandlerInitLibraries (0x7958),
/// RegisterPcieErrorHandler (0x7E70), and PcieErrorHandlerInitFailure (0x7E00).
///
EFI_STATUS
EFIAPI
ModuleEntryPoint(
  EFI_HANDLE        ImageHandle,
  EFI_SYSTEM_TABLE  *SystemTable
);

///
/// PcieErrorHandlerInitLibraries -- Library constructor chain initialization
/// Recovered at 0x7958. Sets up gST/gBS/gRT/gSmst and related globals.
///
EFI_STATUS
EFIAPI
PcieErrorHandlerInitLibraries(
  VOID
);

///
/// RegisterPcieErrorHandler -- Main initialization; locates PCIe-related
/// protocols and registers SMI handlers.
/// Recovered at 0x7E70.
///
EFI_STATUS
EFIAPI
RegisterPcieErrorHandler(
  EFI_HANDLE        ImageHandle,
  EFI_SYSTEM_TABLE  *SystemTable
);

///
/// PcieErrorHandlerInitFailure -- Fallback/cleanup on initialization failure.
/// Recovered at 0x7E00.
///
EFI_STATUS
EFIAPI
PcieErrorHandlerInitFailure(
  EFI_HANDLE        ImageHandle,
  EFI_SYSTEM_TABLE  *SystemTable
);

#endif /* __PCIEERRORHANDLER_H__ */