74 lines
2.1 KiB
C
74 lines
2.1 KiB
C
/** @file
|
|
This driver provides IHISI interface in SMM mode
|
|
|
|
;******************************************************************************
|
|
;* Copyright (c) 2015 - 2019, Insyde Software Corp. All Rights Reserved.
|
|
;*
|
|
;* You may not reproduce, distribute, publish, display, perform, modify, adapt,
|
|
;* transmit, broadcast, present, recite, release, license or otherwise exploit
|
|
;* any part of this publication in any form, by any means, without the prior
|
|
;* written permission of Insyde Software Corporation.
|
|
;*
|
|
;******************************************************************************
|
|
*/
|
|
|
|
#ifndef _ME_CAPSULE_SMM_H_
|
|
#define _ME_CAPSULE_SMM_H_
|
|
|
|
#include <H2OIhisi.h>
|
|
#include <Library/DebugLib.h>
|
|
#include <Library/SmmOemSvcChipsetLib.h>
|
|
#include <Library/SmmServicesTableLib.h>
|
|
#include <Library/UefiBootServicesTableLib.h>
|
|
#include <Protocol/H2OIhisi.h>
|
|
#include <Protocol/SmmFwBlockService.h>
|
|
#include <Library/BaseLib.h>
|
|
#include "Fmts.h"
|
|
extern H2O_IHISI_PROTOCOL *mH2OIhisi;
|
|
extern EFI_SMM_FW_BLOCK_SERVICE_PROTOCOL *mSmmFwBlockService;
|
|
|
|
/**
|
|
Register IHISI sub function if SubFuncTable CmdNumber/AsciiFuncGuid define in PcdIhisiRegisterTable list.
|
|
|
|
@param[out] SubFuncTable Pointer to ihisi register table.
|
|
@param[out] TableCount SubFuncTable count
|
|
|
|
@retval EFI_SUCCESS Function succeeded.
|
|
@return Other Error occurred in this function.
|
|
**/
|
|
EFI_STATUS
|
|
RegisterIhisiSubFunction (
|
|
IHISI_REGISTER_TABLE *SubFuncTable,
|
|
UINT16 TableCount
|
|
);
|
|
|
|
/**
|
|
Determine whether ME state is in recovery mode.
|
|
|
|
@retval TRUE Is in Recovery mode.
|
|
@retval FALSE Not in Recovery mode.
|
|
|
|
**/
|
|
BOOLEAN
|
|
EFIAPI
|
|
IsMeStateRecovery (
|
|
VOID
|
|
);
|
|
|
|
/**
|
|
Determine whether is up to maximum try of ME recovery.
|
|
|
|
@param[in] Recorder If TRUE, set the variable to record the times of recovery try.
|
|
|
|
@retval TRUE Is up to maximum try.
|
|
@retval FALSE Not up to maximum try.
|
|
|
|
**/
|
|
BOOLEAN
|
|
EFIAPI
|
|
IsMaxRecoveryTry (
|
|
IN BOOLEAN Recorder
|
|
);
|
|
|
|
#endif
|