Functions | |
VOID EFIAPI | OnReadyToBoot (IN EFI_EVENT Event, IN VOID *Context) |
VOID | InitiateTPerReset (IN EFI_STORAGE_SECURITY_COMMAND_PROTOCOL *Ssp, IN UINT32 MediaId) |
VOID EFIAPI | TPerResetAtEndOfDxe (IN EFI_EVENT Event, IN VOID *Context) |
EFI_STATUS EFIAPI | MorDriverEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
UINT8 | mMorControl |
This driver initilize MemoryOverwriteRequestControl variable. It will clear MOR_CLEAR_MEMORY_BIT bit if it is set. It will also do TPer Reset for those encrypted drives through EFI_STORAGE_SECURITY_COMMAND_PROTOCOL at EndOfDxe.
Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
VOID InitiateTPerReset | ( | IN EFI_STORAGE_SECURITY_COMMAND_PROTOCOL * | Ssp, | |
IN UINT32 | MediaId | |||
) |
Send TPer Reset command to reset eDrive to lock all protected bands. Typically, there are 2 mechanism for resetting eDrive. They are: 1. TPer Reset through IEEE 1667 protocol. 2. TPer Reset through native TCG protocol. This routine will detect what protocol the attached eDrive comform to, TCG or IEEE 1667 protocol. Then send out TPer Reset command separately.
[in] | Ssp | The pointer to EFI_STORAGE_SECURITY_COMMAND_PROTOCOL instance. |
[in] | MediaId | ID of the medium to receive data from or send data to. |
References BOOLEAN(), EFI_STATUS(), ROUNDUP512, SECURITY_PROTOCOL_IEEE1667, SECURITY_PROTOCOL_TCG, SUPPORTED_SECURITY_PROTOCOLS_PARAMETER_DATA::SupportedSecurityListLength, SUPPORTED_SECURITY_PROTOCOLS_PARAMETER_DATA::SupportedSecurityProtocol, TRUE, and UINTN().
Referenced by TPerResetAtEndOfDxe().
EFI_STATUS EFIAPI MorDriverEntryPoint | ( | IN EFI_HANDLE | ImageHandle, | |
IN EFI_SYSTEM_TABLE * | SystemTable | |||
) |
Entry Point for TCG MOR Control driver.
[in] | ImageHandle | Image handle of this driver. |
[in] | SystemTable | A Pointer to the EFI System Table. |
EFI_SUCEESS |
The firmware is required to create the MemoryOverwriteRequestControl UEFI variable.
References EFI_STATUS(), mMorControl, OnReadyToBoot(), TPerResetAtEndOfDxe(), and UINTN().
VOID EFIAPI OnReadyToBoot | ( | IN EFI_EVENT | Event, | |
IN VOID * | Context | |||
) |
Ready to Boot Event notification handler.
Sequence of OS boot events is measured in this event notification handler.
[in] | Event | Event whose notification function is being invoked |
[in] | Context | Pointer to the notification function's context |
References EFI_STATUS(), mMorControl, and UINTN().
VOID EFIAPI TPerResetAtEndOfDxe | ( | IN EFI_EVENT | Event, | |
IN VOID * | Context | |||
) |
Notification function of END_OF_DXE.
This is a notification function registered on END_OF_DXE event. It is to get VarCheckPcdBin.
[in] | Event | Event whose notification function is being invoked. |
[in] | Context | Pointer to the notification function's context. |
References EFI_STATUS(), InitiateTPerReset(), and UINTN().
Referenced by MorDriverEntryPoint().
UINT8 mMorControl |
Referenced by MorDriverEntryPoint(), and OnReadyToBoot().