TianoCore EDK2 master
|
#include "SpiCommon.h"
Go to the source code of this file.
Functions | |
UINT32 | AcquireSpiBar0 (IN UINTN PchSpiBase) |
VOID | ReleaseSpiBar0 (IN UINTN PchSpiBase) |
VOID | CpuSmmDisableBiosWriteProtect (IN BOOLEAN EnableSmmSts) |
EFI_STATUS EFIAPI | DisableBiosWriteProtect (IN UINTN PchSpiBase, IN UINT8 CpuSmmBwp) |
VOID EFIAPI | EnableBiosWriteProtect (IN UINTN PchSpiBase, IN UINT8 CpuSmmBwp) |
UINT8 | SaveAndDisableSpiPrefetchCache (IN UINTN PchSpiBase) |
VOID | SetSpiBiosControlRegister (IN UINTN PchSpiBase, IN UINT8 BiosCtlValue) |
Copyright (c) 2017-2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PchSpi.c.
VOID CpuSmmDisableBiosWriteProtect | ( | IN BOOLEAN | EnableSmmSts | ) |
EFI_STATUS EFIAPI DisableBiosWriteProtect | ( | IN UINTN | PchSpiBase, |
IN UINT8 | CpuSmmBwp | ||
) |
This function is a hook for Spi to disable BIOS Write Protect.
[in] | PchSpiBase | PCH SPI PCI Base Address |
[in] | CpuSmmBwp | Need to disable CPU SMM Bios write protection or not |
EFI_SUCCESS | The protocol instance was properly initialized |
EFI_ACCESS_DENIED | The BIOS Region can only be updated in SMM phase |