Newer
Older
AMI-Aptio-BIOS-Reversed / PurleySktPkg / SouthClusterLbg / Gpio / Smm / PchGpioUnlockSmm / PchGpioUnlockSmm.h
/** @file
  PchGpioUnlockSmm.h -- Header for PchGpioUnlockSmm


Copyright (c) HR650X BIOS Decompilation Project
**/

#ifndef __PCHGPIOUNLOCKSMM_H__
#define __PCHGPIOUNLOCKSMM_H__

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

//
// Function Prototypes
//

///
/// ModuleEntryPoint -- module entry point for GPIO unlock in SMM
///
EFI_STATUS
EFIAPI
ModuleEntryPoint(
  IN EFI_HANDLE        ImageHandle,
  IN EFI_SYSTEM_TABLE *SystemTable
);

///
/// InitializePchGpioUnlockSmm -- set up firmware/SMM context for GPIO unlock
///
EFI_STATUS
EFIAPI
InitializePchGpioUnlockSmm(
  IN EFI_HANDLE        ImageHandle,
  IN EFI_SYSTEM_TABLE *SystemTable
);

///
/// ExecutePchGpioUnlockSequence -- apply GPIO unlock policy and settings
///
EFI_STATUS
EFIAPI
ExecutePchGpioUnlockSequence(
  VOID
);

///
/// HandlePchGpioUnlockFailure -- best-effort recovery for failed unlock attempts
///
EFI_STATUS
EFIAPI
HandlePchGpioUnlockFailure(
  VOID
);

#endif /* __PCHGPIOUNLOCKSMM_H__ */