You've already forked DasharoModulePkg
mirror of
https://github.com/Dasharo/DasharoModulePkg.git
synced 2026-03-06 14:50:17 -08:00
56 lines
1.1 KiB
C
56 lines
1.1 KiB
C
/** @file
|
|
A library for providing services related to Dasharo-specific EFI variables.
|
|
|
|
Copyright (c) 2024, 3mdeb Sp. z o.o. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef _DASHARO_VARIABLES_LIB_H_
|
|
#define _DASHARO_VARIABLES_LIB_H_
|
|
|
|
#include <Base.h>
|
|
#include <DasharoOptions.h>
|
|
|
|
/**
|
|
Query a default value for a specified variable.
|
|
|
|
@param VarName Name of the variable.
|
|
|
|
@retval Default value which is all zeroes for an unknown variable name.
|
|
**/
|
|
DASHARO_VAR_DATA
|
|
EFIAPI
|
|
DasharoGetVariableDefault (
|
|
CHAR16 *VarName
|
|
);
|
|
|
|
/**
|
|
Query attributes of a specified variable.
|
|
|
|
@param VarName Name of the variable.
|
|
|
|
@retval EFI variable attributes (the value is sensible for unknown ones).
|
|
**/
|
|
UINT32
|
|
EFIAPI
|
|
DasharoGetVariableAttributes (
|
|
CHAR16 *VarName
|
|
);
|
|
|
|
/**
|
|
Measure EFI variables specific to Dasharo.
|
|
|
|
This function should be called before booting into an OS or a UEFI
|
|
application.
|
|
|
|
@retval RETURN_SUCCESS Successfully measured all variables.
|
|
**/
|
|
EFI_STATUS
|
|
EFIAPI
|
|
DasharoMeasureVariables (
|
|
VOID
|
|
);
|
|
|
|
#endif
|