TianoCore EDK2 master
Loading...
Searching...
No Matches
DxeCcProbeLib.c File Reference
#include <Uefi/UefiBaseType.h>
#include <Library/CcProbeLib.h>
#include <WorkArea.h>

Go to the source code of this file.

Functions

STATIC UINT8 ReadCcGuestType (VOID)
 
UINT8 EFIAPI CcProbe (VOID)
 
EFI_STATUS EFIAPI DxeCcProbeLibConstructor (VOID)
 

Variables

STATIC UINT8 mCcProbeGuestType = 0
 
STATIC BOOLEAN mCcProbed = FALSE
 

Detailed Description

CcProbeLib is used to probe the Confidential computing guest type.

Copyright (c) 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file DxeCcProbeLib.c.

Function Documentation

◆ CcProbe()

UINT8 EFIAPI CcProbe ( VOID  )

Probe the ConfidentialComputing Guest type. See defition of CC_GUEST_TYPE in <ConfidentialComputingGuestAttr.h>.

Returns
The guest type

Definition at line 48 of file DxeCcProbeLib.c.

◆ DxeCcProbeLibConstructor()

EFI_STATUS EFIAPI DxeCcProbeLibConstructor ( VOID  )

Constructor of DxeCcProbeLib

Returns
EFI_SUCCESS Successfully called of constructor

Definition at line 62 of file DxeCcProbeLib.c.

◆ ReadCcGuestType()

STATIC UINT8 ReadCcGuestType ( VOID  )

Read the the ConfidentialComputing Guest type from Ovmf work-area.

Returns
The ConfidentialComputing Guest type

Definition at line 24 of file DxeCcProbeLib.c.

Variable Documentation

◆ mCcProbed

STATIC BOOLEAN mCcProbed = FALSE

Definition at line 15 of file DxeCcProbeLib.c.

◆ mCcProbeGuestType

STATIC UINT8 mCcProbeGuestType = 0

Definition at line 14 of file DxeCcProbeLib.c.