TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | SMM_FTW_COMMUNICATE_FUNCTION_HEADER |
struct | SMM_FTW_GET_MAX_BLOCK_SIZE_HEADER |
struct | SMM_FTW_ALLOCATE_HEADER |
struct | SMM_FTW_WRITE_HEADER |
struct | SMM_FTW_RESTART_HEADER |
struct | SMM_FTW_GET_LAST_WRITE_HEADER |
Macros | |
#define | FTW_FUNCTION_GET_MAX_BLOCK_SIZE 1 |
#define | FTW_FUNCTION_ALLOCATE 2 |
#define | FTW_FUNCTION_WRITE 3 |
#define | FTW_FUNCTION_RESTART 4 |
#define | FTW_FUNCTION_ABORT 5 |
#define | FTW_FUNCTION_GET_LAST_WRITE 6 |
#define | SMM_COMMUNICATE_HEADER_SIZE (OFFSET_OF (EFI_MM_COMMUNICATE_HEADER, Data)) |
#define | SMM_FTW_COMMUNICATE_HEADER_SIZE (OFFSET_OF (SMM_FTW_COMMUNICATE_FUNCTION_HEADER, Data)) |
Functions | |
EFI_STATUS | MmFaultTolerantWriteInitialize (VOID) |
BOOLEAN | FtwSmmIsPrimaryBufferValid (IN EFI_PHYSICAL_ADDRESS Buffer, IN UINT64 Length) |
VOID | FtwNotifySmmReady (VOID) |
The common header file for SMM FTW module and SMM FTW DXE Module.
Copyright (c) 2011 - 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file FaultTolerantWriteSmmCommon.h.
#define FTW_FUNCTION_ABORT 5 |
Definition at line 20 of file FaultTolerantWriteSmmCommon.h.
#define FTW_FUNCTION_ALLOCATE 2 |
Definition at line 17 of file FaultTolerantWriteSmmCommon.h.
#define FTW_FUNCTION_GET_LAST_WRITE 6 |
Definition at line 21 of file FaultTolerantWriteSmmCommon.h.
#define FTW_FUNCTION_GET_MAX_BLOCK_SIZE 1 |
Definition at line 16 of file FaultTolerantWriteSmmCommon.h.
#define FTW_FUNCTION_RESTART 4 |
Definition at line 19 of file FaultTolerantWriteSmmCommon.h.
#define FTW_FUNCTION_WRITE 3 |
Definition at line 18 of file FaultTolerantWriteSmmCommon.h.
#define SMM_COMMUNICATE_HEADER_SIZE (OFFSET_OF (EFI_MM_COMMUNICATE_HEADER, Data)) |
Size of SMM communicate header, without including the payload.
Definition at line 32 of file FaultTolerantWriteSmmCommon.h.
#define SMM_FTW_COMMUNICATE_HEADER_SIZE (OFFSET_OF (SMM_FTW_COMMUNICATE_FUNCTION_HEADER, Data)) |
Size of SMM FTW communicate function header, without including the payload.
Definition at line 37 of file FaultTolerantWriteSmmCommon.h.
VOID FtwNotifySmmReady | ( | VOID | ) |
Notify the system that the SMM FTW driver is ready.
Definition at line 62 of file FaultTolerantWriteStandaloneMm.c.
BOOLEAN FtwSmmIsPrimaryBufferValid | ( | IN EFI_PHYSICAL_ADDRESS | Buffer, |
IN UINT64 | Length | ||
) |
This function checks if the Primary Buffer is valid.
Buffer | The buffer start address to be checked. |
Length | The buffer length to be checked. |
TRUE | This buffer is valid. |
FALSE | This buffer is not valid. |
This function checks if the Primary Buffer is valid per processor architecture and does not overlap with SMRAM.
Buffer | The buffer start address to be checked. |
Length | The buffer length to be checked. |
TRUE | This buffer is valid per processor architecture and does not overlap with SMRAM. |
FALSE | This buffer is not valid per processor architecture or overlaps with SMRAM. |
Definition at line 26 of file FaultTolerantWriteStandaloneMm.c.
EFI_STATUS MmFaultTolerantWriteInitialize | ( | VOID | ) |
Shared entry point of the module.
EFI_SUCCESS | The initialization finished successfully. |
EFI_OUT_OF_RESOURCES | Allocate memory error |
EFI_INVALID_PARAMETER | Workspace or Spare block does not exist |
Shared entry point of the module
EFI_SUCCESS | The initialization finished successfully. |
EFI_OUT_OF_RESOURCES | Allocate memory error |
EFI_INVALID_PARAMETER | Workspace or Spare block does not exist |
Definition at line 611 of file FaultTolerantWriteSmm.c.