TianoCore EDK2 master
Loading...
Searching...
No Matches
FwVolAttrib.c File Reference
#include "DxeMain.h"
#include "FwVolDriver.h"

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI FvGetVolumeAttributes (IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, OUT EFI_FV_ATTRIBUTES *Attributes)
 
EFI_STATUS EFIAPI FvSetVolumeAttributes (IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, IN OUT EFI_FV_ATTRIBUTES *Attributes)
 
EFI_STATUS EFIAPI FvGetVolumeInfo (IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, IN CONST EFI_GUID *InformationType, IN OUT UINTN *BufferSize, OUT VOID *Buffer)
 
EFI_STATUS EFIAPI FvSetVolumeInfo (IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, IN CONST EFI_GUID *InformationType, IN UINTN BufferSize, IN CONST VOID *Buffer)
 

Detailed Description

Implements get/set firmware volume attributes

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

Definition in file FwVolAttrib.c.

Function Documentation

◆ FvGetVolumeAttributes()

EFI_STATUS EFIAPI FvGetVolumeAttributes ( IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL This,
OUT EFI_FV_ATTRIBUTES Attributes 
)

Retrieves attributes, insures positive polarity of attribute bits, returns resulting attributes in output parameter.

Parameters
ThisCalling context
Attributesoutput buffer which contains attributes
Return values
EFI_SUCCESSSuccessfully got volume attributes

Definition at line 24 of file FwVolAttrib.c.

◆ FvGetVolumeInfo()

EFI_STATUS EFIAPI FvGetVolumeInfo ( IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL This,
IN CONST EFI_GUID InformationType,
IN OUT UINTN BufferSize,
OUT VOID *  Buffer 
)

Return information of type InformationType for the requested firmware volume.

Parameters
ThisPointer to EFI_FIRMWARE_VOLUME2_PROTOCOL.
InformationTypeInformationType for requested.
BufferSizeOn input, size of Buffer.On output, the amount of data returned in Buffer.
BufferA poniter to the data buffer to return.
Return values
EFI_SUCCESSSuccessfully got volume Information.

Definition at line 87 of file FwVolAttrib.c.

◆ FvSetVolumeAttributes()

EFI_STATUS EFIAPI FvSetVolumeAttributes ( IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL This,
IN OUT EFI_FV_ATTRIBUTES Attributes 
)

Sets current attributes for volume

Parameters
ThisCalling context
AttributesAt input, contains attributes to be set. At output contains new value of FV
Return values
EFI_UNSUPPORTEDCould not be set.

Definition at line 64 of file FwVolAttrib.c.

◆ FvSetVolumeInfo()

EFI_STATUS EFIAPI FvSetVolumeInfo ( IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL This,
IN CONST EFI_GUID InformationType,
IN UINTN  BufferSize,
IN CONST VOID *  Buffer 
)

Set information of type InformationType for the requested firmware volume.

Parameters
ThisPointer to EFI_FIRMWARE_VOLUME2_PROTOCOL.
InformationTypeInformationType for requested.
BufferSizeOn input, size of Buffer.On output, the amount of data returned in Buffer.
BufferA poniter to the data buffer to return.
Return values
EFI_SUCCESSSuccessfully set volume Information.

Definition at line 112 of file FwVolAttrib.c.