TianoCore EDK2 master
Loading...
Searching...
No Matches
VirtHstiDxe.h File Reference

Go to the source code of this file.

Data Structures

struct  VIRT_ADAPTER_INFO_PLATFORM_SECURITY
 

Macros

#define VIRT_HSTI_SECURITY_FEATURE_SIZE   2
 
#define VIRT_HSTI_BYTE0_SMM_SMRAM_LOCK   BIT0
 
#define VIRT_HSTI_BYTE0_SMM_SECURE_VARS_FLASH   BIT1
 
#define VIRT_HSTI_BYTE0_READONLY_CODE_FLASH   BIT2
 
#define QEMU_FIRMWARE_FLASH_UNKNOWN   0
 
#define QEMU_FIRMWARE_FLASH_IS_ROM   1
 
#define QEMU_FIRMWARE_FLASH_IS_RAM   2
 
#define QEMU_FIRMWARE_FLASH_READ_ONLY   3
 
#define QEMU_FIRMWARE_FLASH_WRITABLE   4
 

Functions

VOID VirtHstiSetSupported (VIRT_ADAPTER_INFO_PLATFORM_SECURITY *VirtHsti, IN UINT32 ByteIndex, IN UINT8 BitMask)
 
BOOLEAN VirtHstiIsSupported (VIRT_ADAPTER_INFO_PLATFORM_SECURITY *VirtHsti, IN UINT32 ByteIndex, IN UINT8 BitMask)
 
VOID VirtHstiTestResult (CHAR16 *ErrorMsg, IN UINT32 ByteIndex, IN UINT8 BitMask)
 
VIRT_ADAPTER_INFO_PLATFORM_SECURITYVirtHstiQemuQ35Init (VOID)
 
VOID VirtHstiQemuQ35Verify (VOID)
 
VIRT_ADAPTER_INFO_PLATFORM_SECURITYVirtHstiQemuPCInit (VOID)
 
VOID VirtHstiQemuPCVerify (VOID)
 
VOID VirtHstiQemuCommonInit (VIRT_ADAPTER_INFO_PLATFORM_SECURITY *VirtHsti)
 
VOID VirtHstiQemuCommonVerify (VOID)
 
UINT32 VirtHstiQemuFirmwareFlashCheck (UINT32 Address)
 

Detailed Description

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file VirtHstiDxe.h.

Macro Definition Documentation

◆ QEMU_FIRMWARE_FLASH_IS_RAM

#define QEMU_FIRMWARE_FLASH_IS_RAM   2

Definition at line 87 of file VirtHstiDxe.h.

◆ QEMU_FIRMWARE_FLASH_IS_ROM

#define QEMU_FIRMWARE_FLASH_IS_ROM   1

Definition at line 86 of file VirtHstiDxe.h.

◆ QEMU_FIRMWARE_FLASH_READ_ONLY

#define QEMU_FIRMWARE_FLASH_READ_ONLY   3

Definition at line 88 of file VirtHstiDxe.h.

◆ QEMU_FIRMWARE_FLASH_UNKNOWN

#define QEMU_FIRMWARE_FLASH_UNKNOWN   0

Definition at line 85 of file VirtHstiDxe.h.

◆ QEMU_FIRMWARE_FLASH_WRITABLE

#define QEMU_FIRMWARE_FLASH_WRITABLE   4

Definition at line 89 of file VirtHstiDxe.h.

◆ VIRT_HSTI_BYTE0_READONLY_CODE_FLASH

#define VIRT_HSTI_BYTE0_READONLY_CODE_FLASH   BIT2

Definition at line 11 of file VirtHstiDxe.h.

◆ VIRT_HSTI_BYTE0_SMM_SECURE_VARS_FLASH

#define VIRT_HSTI_BYTE0_SMM_SECURE_VARS_FLASH   BIT1

Definition at line 10 of file VirtHstiDxe.h.

◆ VIRT_HSTI_BYTE0_SMM_SMRAM_LOCK

#define VIRT_HSTI_BYTE0_SMM_SMRAM_LOCK   BIT0

Definition at line 9 of file VirtHstiDxe.h.

◆ VIRT_HSTI_SECURITY_FEATURE_SIZE

#define VIRT_HSTI_SECURITY_FEATURE_SIZE   2

Definition at line 7 of file VirtHstiDxe.h.

Function Documentation

◆ VirtHstiIsSupported()

BOOLEAN VirtHstiIsSupported ( VIRT_ADAPTER_INFO_PLATFORM_SECURITY VirtHsti,
IN UINT32  ByteIndex,
IN UINT8  BitMask 
)

Definition at line 42 of file VirtHstiDxe.c.

◆ VirtHstiQemuCommonInit()

VOID VirtHstiQemuCommonInit ( VIRT_ADAPTER_INFO_PLATFORM_SECURITY VirtHsti)

Definition at line 13 of file QemuCommon.c.

◆ VirtHstiQemuCommonVerify()

VOID VirtHstiQemuCommonVerify ( VOID  )

Definition at line 21 of file QemuCommon.c.

◆ VirtHstiQemuFirmwareFlashCheck()

UINT32 VirtHstiQemuFirmwareFlashCheck ( UINT32  Address)

Definition at line 23 of file Flash.c.

◆ VirtHstiQemuPCInit()

VIRT_ADAPTER_INFO_PLATFORM_SECURITY * VirtHstiQemuPCInit ( VOID  )

Definition at line 26 of file QemuPC.c.

◆ VirtHstiQemuPCVerify()

VOID VirtHstiQemuPCVerify ( VOID  )

Definition at line 34 of file QemuPC.c.

◆ VirtHstiQemuQ35Init()

VIRT_ADAPTER_INFO_PLATFORM_SECURITY * VirtHstiQemuQ35Init ( VOID  )

Definition at line 26 of file QemuQ35.c.

◆ VirtHstiQemuQ35Verify()

VOID VirtHstiQemuQ35Verify ( VOID  )

Definition at line 39 of file QemuQ35.c.

◆ VirtHstiSetSupported()

VOID VirtHstiSetSupported ( VIRT_ADAPTER_INFO_PLATFORM_SECURITY VirtHsti,
IN UINT32  ByteIndex,
IN UINT8  BitMask 
)

Definition at line 30 of file VirtHstiDxe.c.

◆ VirtHstiTestResult()

VOID VirtHstiTestResult ( CHAR16 *  ErrorMsg,
IN UINT32  ByteIndex,
IN UINT8  BitMask 
)

Definition at line 53 of file VirtHstiDxe.c.