TianoCore EDK2 master
|
#include "HddPasswordPei.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | UnlockDevice (IN EDKII_PEI_ATA_PASS_THRU_PPI *AtaPassThru, IN UINT16 Port, IN UINT16 PortMultiplierPort, IN CHAR8 Identifier, IN CHAR8 *Password) |
EFI_STATUS | FreezeLockDevice (IN EDKII_PEI_ATA_PASS_THRU_PPI *AtaPassThru, IN UINT16 Port, IN UINT16 PortMultiplierPort) |
VOID | UnlockHddPassword (IN EDKII_PEI_ATA_PASS_THRU_PPI *AtaPassThruPpi) |
EFI_STATUS EFIAPI | HddPasswordAtaPassThruNotify (IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDesc, IN VOID *Ppi) |
EFI_STATUS EFIAPI | HddPasswordPeiInit (IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices) |
Variables | |
EFI_GUID | mHddPasswordDeviceInfoGuid = HDD_PASSWORD_DEVICE_INFO_GUID |
EFI_PEI_NOTIFY_DESCRIPTOR | mHddPasswordAtaPassThruPpiNotifyDesc |
HddPassword PEI module which is used to unlock HDD password for S3.
Copyright (c) 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file HddPasswordPei.c.
EFI_STATUS FreezeLockDevice | ( | IN EDKII_PEI_ATA_PASS_THRU_PPI * | AtaPassThru, |
IN UINT16 | Port, | ||
IN UINT16 | PortMultiplierPort | ||
) |
Send security freeze lock cmd through ATA PassThru PPI.
[in] | AtaPassThru | The pointer to the ATA PassThru PPI. |
[in] | Port | The port number of the ATA device. |
[in] | PortMultiplierPort | The port multiplier port number of the ATA device. |
EFI_SUCCESS | Successful to send security freeze lock cmd. |
EFI_INVALID_PARAMETER | The parameter passed-in is invalid. |
EFI_OUT_OF_RESOURCES | Not enough memory to send unlock hdd password cmd. |
EFI_DEVICE_ERROR | Can not send security freeze lock cmd. |
Definition at line 124 of file HddPasswordPei.c.
EFI_STATUS EFIAPI HddPasswordAtaPassThruNotify | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN EFI_PEI_NOTIFY_DESCRIPTOR * | NotifyDesc, | ||
IN VOID * | Ppi | ||
) |
Entry point of the notification callback function itself within the PEIM. It is to unlock HDD password for S3.
PeiServices | Indirect reference to the PEI Services Table. |
NotifyDescriptor | Address of the notification descriptor data structure. |
Ppi | Address of the PPI that was installed. |
Definition at line 318 of file HddPasswordPei.c.
EFI_STATUS EFIAPI HddPasswordPeiInit | ( | IN EFI_PEI_FILE_HANDLE | FileHandle, |
IN CONST EFI_PEI_SERVICES ** | PeiServices | ||
) |
Main entry for this module.
FileHandle | Handle of the file being invoked. |
PeiServices | Pointer to PEI Services table. |
Definition at line 350 of file HddPasswordPei.c.
EFI_STATUS UnlockDevice | ( | IN EDKII_PEI_ATA_PASS_THRU_PPI * | AtaPassThru, |
IN UINT16 | Port, | ||
IN UINT16 | PortMultiplierPort, | ||
IN CHAR8 | Identifier, | ||
IN CHAR8 * | Password | ||
) |
Send unlock hdd password cmd through ATA PassThru PPI.
[in] | AtaPassThru | The pointer to the ATA PassThru PPI. |
[in] | Port | The port number of the ATA device. |
[in] | PortMultiplierPort | The port multiplier port number of the ATA device. |
[in] | Identifier | The identifier to set user or master password. |
[in] | Password | The hdd password of attached ATA device. |
EFI_SUCCESS | Successful to send unlock hdd password cmd. |
EFI_INVALID_PARAMETER | The parameter passed-in is invalid. |
EFI_OUT_OF_RESOURCES | Not enough memory to send unlock hdd password cmd. |
EFI_DEVICE_ERROR | Can not send unlock hdd password cmd. |
Definition at line 30 of file HddPasswordPei.c.
VOID UnlockHddPassword | ( | IN EDKII_PEI_ATA_PASS_THRU_PPI * | AtaPassThruPpi | ) |
Unlock HDD password for S3.
[in] | AtaPassThruPpi | Pointer to the EDKII_PEI_ATA_PASS_THRU_PPI instance. |
Definition at line 200 of file HddPasswordPei.c.
EFI_PEI_NOTIFY_DESCRIPTOR mHddPasswordAtaPassThruPpiNotifyDesc |
Definition at line 333 of file HddPasswordPei.c.
EFI_GUID mHddPasswordDeviceInfoGuid = HDD_PASSWORD_DEVICE_INFO_GUID |
Definition at line 12 of file HddPasswordPei.c.