TianoCore EDK2 master
Loading...
Searching...
No Matches
FwVolAttrib.c
Go to the documentation of this file.
1
9#include "DxeMain.h"
10#include "FwVolDriver.h"
11
23EFIAPI
26 OUT EFI_FV_ATTRIBUTES *Attributes
27 )
28{
29 EFI_STATUS Status;
30 FV_DEVICE *FvDevice;
32 EFI_FVB_ATTRIBUTES_2 FvbAttributes;
33
34 FvDevice = FV_DEVICE_FROM_THIS (This);
35 Fvb = FvDevice->Fvb;
36
37 //
38 // First get the Firmware Volume Block Attributes
39 //
40 Status = Fvb->GetAttributes (Fvb, &FvbAttributes);
41
42 //
43 // Mask out Fvb bits that are not defined in FV
44 //
45 FvbAttributes &= 0xfffff0ff;
46
47 *Attributes = (EFI_FV_ATTRIBUTES)FvbAttributes;
48
49 return Status;
50}
51
63EFIAPI
66 IN OUT EFI_FV_ATTRIBUTES *Attributes
67 )
68{
69 return EFI_UNSUPPORTED;
70}
71
86EFIAPI
89 IN CONST EFI_GUID *InformationType,
90 IN OUT UINTN *BufferSize,
91 OUT VOID *Buffer
92 )
93{
94 return EFI_UNSUPPORTED;
95}
96
111EFIAPI
114 IN CONST EFI_GUID *InformationType,
115 IN UINTN BufferSize,
116 IN CONST VOID *Buffer
117 )
118{
119 return EFI_UNSUPPORTED;
120}
UINT64 UINTN
UINT64 EFI_FV_ATTRIBUTES
EFI_STATUS EFIAPI FvGetVolumeAttributes(IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, OUT EFI_FV_ATTRIBUTES *Attributes)
Definition: FwVolAttrib.c:24
EFI_STATUS EFIAPI FvSetVolumeInfo(IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, IN CONST EFI_GUID *InformationType, IN UINTN BufferSize, IN CONST VOID *Buffer)
Definition: FwVolAttrib.c:112
EFI_STATUS EFIAPI FvGetVolumeInfo(IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, IN CONST EFI_GUID *InformationType, IN OUT UINTN *BufferSize, OUT VOID *Buffer)
Definition: FwVolAttrib.c:87
EFI_STATUS EFIAPI FvSetVolumeAttributes(IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, IN OUT EFI_FV_ATTRIBUTES *Attributes)
Definition: FwVolAttrib.c:64
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINT32 EFI_FVB_ATTRIBUTES_2
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213