2007-06-15 12:02:42 +02:00
|
|
|
/** @file
|
2009-06-10 19:41:25 +02:00
|
|
|
This file declares the Firmware Volume Protocol.
|
2018-06-27 15:06:55 +02:00
|
|
|
|
2009-06-10 19:41:25 +02:00
|
|
|
The Firmware Volume Protocol provides file-level access to the firmware volume.
|
|
|
|
Each firmware volume driver must produce an instance of the Firmware Volume
|
|
|
|
Protocol if the firmware volume is to be visible to the system. The Firmware
|
|
|
|
Volume Protocol also provides mechanisms for determining and modifying some
|
|
|
|
attributes of the firmware volume.
|
|
|
|
|
2018-06-27 15:06:55 +02:00
|
|
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
|
|
|
This program and the accompanying materials are licensed and made available under
|
|
|
|
the terms and conditions of the BSD License that accompanies this distribution.
|
2010-03-16 02:53:11 +01:00
|
|
|
The full text of the license may be found at
|
2018-06-27 15:06:55 +02:00
|
|
|
http://opensource.org/licenses/bsd-license.php.
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
2010-03-16 02:53:11 +01:00
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
|
|
|
@par Revision Reference:
|
|
|
|
This protocol is defined in Firmware Volume specification.
|
2010-03-16 02:53:11 +01:00
|
|
|
Version 0.9.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _FIRMWARE_VOLUME_H_
|
|
|
|
#define _FIRMWARE_VOLUME_H_
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Firmware Volume Protocol GUID definition
|
|
|
|
//
|
|
|
|
#define EFI_FIRMWARE_VOLUME_PROTOCOL_GUID \
|
|
|
|
{ \
|
|
|
|
0x389F751F, 0x1838, 0x4388, {0x83, 0x90, 0xCD, 0x81, 0x54, 0xBD, 0x27, 0xF8 } \
|
|
|
|
}
|
|
|
|
|
2008-12-16 16:31:58 +01:00
|
|
|
#define FV_DEVICE_SIGNATURE SIGNATURE_32 ('_', 'F', 'V', '_')
|
2007-06-15 12:02:42 +02:00
|
|
|
|
|
|
|
typedef struct _EFI_FIRMWARE_VOLUME_PROTOCOL EFI_FIRMWARE_VOLUME_PROTOCOL;
|
|
|
|
|
|
|
|
//
|
2008-05-16 11:45:51 +02:00
|
|
|
// FRAMEWORK_EFI_FV_ATTRIBUTES bit definitions
|
2007-06-15 12:02:42 +02:00
|
|
|
//
|
2008-05-16 11:45:51 +02:00
|
|
|
typedef UINT64 FRAMEWORK_EFI_FV_ATTRIBUTES;
|
2007-06-15 12:02:42 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// ************************************************************
|
2008-05-16 11:45:51 +02:00
|
|
|
// FRAMEWORK_EFI_FV_ATTRIBUTES bit definitions
|
2007-06-15 12:02:42 +02:00
|
|
|
// ************************************************************
|
|
|
|
//
|
|
|
|
#define EFI_FV_READ_DISABLE_CAP 0x0000000000000001ULL
|
|
|
|
#define EFI_FV_READ_ENABLE_CAP 0x0000000000000002ULL
|
|
|
|
#define EFI_FV_READ_STATUS 0x0000000000000004ULL
|
|
|
|
|
|
|
|
#define EFI_FV_WRITE_DISABLE_CAP 0x0000000000000008ULL
|
|
|
|
#define EFI_FV_WRITE_ENABLE_CAP 0x0000000000000010ULL
|
|
|
|
#define EFI_FV_WRITE_STATUS 0x0000000000000020ULL
|
|
|
|
|
|
|
|
#define EFI_FV_LOCK_CAP 0x0000000000000040ULL
|
|
|
|
#define EFI_FV_LOCK_STATUS 0x0000000000000080ULL
|
|
|
|
#define EFI_FV_WRITE_POLICY_RELIABLE 0x0000000000000100ULL
|
|
|
|
|
|
|
|
#define EFI_FV_ALIGNMENT_CAP 0x0000000000008000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_2 0x0000000000010000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_4 0x0000000000020000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_8 0x0000000000040000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_16 0x0000000000080000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_32 0x0000000000100000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_64 0x0000000000200000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_128 0x0000000000400000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_256 0x0000000000800000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_512 0x0000000001000000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_1K 0x0000000002000000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_2K 0x0000000004000000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_4K 0x0000000008000000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_8K 0x0000000010000000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_16K 0x0000000020000000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_32K 0x0000000040000000ULL
|
|
|
|
#define EFI_FV_ALIGNMENT_64K 0x0000000080000000ULL
|
|
|
|
|
|
|
|
//
|
|
|
|
// Protocol API definitions
|
|
|
|
//
|
|
|
|
|
|
|
|
/**
|
2009-07-28 15:25:37 +02:00
|
|
|
Retrieves attributes, insures positive polarity of attribute bits, and returns
|
2010-03-16 02:53:11 +01:00
|
|
|
resulting attributes in an output parameter.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
2009-06-10 19:41:25 +02:00
|
|
|
@param This Indicates the EFI_FIRMWARE_VOLUME_PROTOCOL instance.
|
2010-03-16 02:53:11 +01:00
|
|
|
@param Attributes Output buffer containing attributes.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
2009-06-10 19:41:25 +02:00
|
|
|
@retval EFI_SUCCESS The firmware volume attributes were returned.
|
2007-06-15 12:02:42 +02:00
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-07-31 09:44:54 +02:00
|
|
|
(EFIAPI *FRAMEWORK_EFI_FV_GET_ATTRIBUTES)(
|
2008-05-16 11:45:51 +02:00
|
|
|
IN EFI_FIRMWARE_VOLUME_PROTOCOL *This,
|
|
|
|
OUT FRAMEWORK_EFI_FV_ATTRIBUTES *Attributes
|
2007-06-15 12:02:42 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Sets volume attributes
|
|
|
|
|
2009-06-10 19:41:25 +02:00
|
|
|
@param This Indicates the EFI_FIRMWARE_VOLUME_PROTOCOL instance.
|
2018-06-27 15:06:55 +02:00
|
|
|
@param Attributes On input, Attributes is a pointer to an
|
|
|
|
EFI_FV_ATTRIBUTES containing the desired firmware
|
|
|
|
volume settings. On successful return, it contains
|
|
|
|
the new settings of the firmware volume. On
|
|
|
|
unsuccessful return, Attributes is not modified
|
2009-06-10 19:41:25 +02:00
|
|
|
and the firmware volume settings are not changed.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
2010-03-16 02:53:11 +01:00
|
|
|
@retval EFI_INVALID_PARAMETER A bit in Attributes was invalid.
|
2018-06-27 15:06:55 +02:00
|
|
|
@retval EFI_SUCCESS The requested firmware volume attributes were set
|
2009-06-10 19:41:25 +02:00
|
|
|
and the resulting EFI_FV_ATTRIBUTES is returned in
|
|
|
|
Attributes.
|
2018-06-27 15:06:55 +02:00
|
|
|
@retval EFI_ACCESS_DENIED The Device is locked and does not permit modification.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-07-31 09:44:54 +02:00
|
|
|
(EFIAPI *FRAMEWORK_EFI_FV_SET_ATTRIBUTES)(
|
2009-06-10 19:41:25 +02:00
|
|
|
IN EFI_FIRMWARE_VOLUME_PROTOCOL *This,
|
|
|
|
IN OUT FRAMEWORK_EFI_FV_ATTRIBUTES *Attributes
|
2007-06-15 12:02:42 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2018-06-27 15:06:55 +02:00
|
|
|
Read the requested file (NameGuid) or file information from the firmware volume
|
2009-06-10 19:41:25 +02:00
|
|
|
and returns data in Buffer.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
2009-07-28 15:25:37 +02:00
|
|
|
@param This The EFI_FIRMWARE_VOLUME_PROTOCOL instance.
|
2018-06-27 15:06:55 +02:00
|
|
|
@param NameGuid The pointer to EFI_GUID, which is the filename of
|
2010-03-16 02:53:11 +01:00
|
|
|
the file to read.
|
|
|
|
@param Buffer The pointer to pointer to buffer in which contents of file are returned.
|
2007-06-15 12:02:42 +02:00
|
|
|
<br>
|
2018-06-27 15:06:55 +02:00
|
|
|
If Buffer is NULL, only type, attributes, and size
|
2010-03-16 02:53:11 +01:00
|
|
|
are returned as there is no output buffer.
|
2007-06-15 12:02:42 +02:00
|
|
|
<br>
|
2018-06-27 15:06:55 +02:00
|
|
|
If Buffer != NULL and *Buffer == NULL, the output
|
2010-03-16 02:53:11 +01:00
|
|
|
buffer is allocated from BS pool by ReadFile.
|
2007-06-15 12:02:42 +02:00
|
|
|
<br>
|
2018-06-27 15:06:55 +02:00
|
|
|
If Buffer != NULL and *Buffer != NULL, the output
|
|
|
|
buffer has been allocated by the caller and is being
|
2010-03-16 02:53:11 +01:00
|
|
|
passed in.
|
2009-07-28 15:25:37 +02:00
|
|
|
@param BufferSize On input: The buffer size. On output: The size
|
2010-03-16 02:53:11 +01:00
|
|
|
required to complete the read.
|
2018-06-27 15:06:55 +02:00
|
|
|
@param FoundType The pointer to the type of the file whose data
|
2010-03-16 02:53:11 +01:00
|
|
|
is returned.
|
|
|
|
@param FileAttributes The pointer to attributes of the file whose data
|
|
|
|
is returned.
|
|
|
|
@param AuthenticationStatus The pointer to the authentication status of the data.
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS The call completed successfully.
|
2009-06-10 19:41:25 +02:00
|
|
|
@retval EFI_WARN_BUFFER_TOO_SMALL The buffer is too small to contain the requested output.
|
2010-03-16 02:53:11 +01:00
|
|
|
The buffer filled, and the output is truncated.
|
2009-07-28 15:25:37 +02:00
|
|
|
@retval EFI_NOT_FOUND NameGuid was not found in the firmware volume.
|
2018-06-27 15:06:55 +02:00
|
|
|
@retval EFI_DEVICE_ERROR A hardware error occurred when attempting to
|
2010-03-16 02:53:11 +01:00
|
|
|
access the firmware volume.
|
2009-07-28 15:25:37 +02:00
|
|
|
@retval EFI_ACCESS_DENIED The firmware volume is configured to disallow reads.
|
2009-06-10 19:41:25 +02:00
|
|
|
@retval EFI_OUT_OF_RESOURCES An allocation failure occurred.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-07-31 09:44:54 +02:00
|
|
|
(EFIAPI *FRAMEWORK_EFI_FV_READ_FILE)(
|
2007-06-15 12:02:42 +02:00
|
|
|
IN EFI_FIRMWARE_VOLUME_PROTOCOL *This,
|
|
|
|
IN EFI_GUID *NameGuid,
|
|
|
|
IN OUT VOID **Buffer,
|
|
|
|
IN OUT UINTN *BufferSize,
|
|
|
|
OUT EFI_FV_FILETYPE *FoundType,
|
|
|
|
OUT EFI_FV_FILE_ATTRIBUTES *FileAttributes,
|
|
|
|
OUT UINT32 *AuthenticationStatus
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Read the requested section from the specified file and returns data in Buffer.
|
|
|
|
|
2009-06-10 19:41:25 +02:00
|
|
|
@param This Indicates the EFI_FIRMWARE_VOLUME_PROTOCOL instance.
|
2010-03-16 02:53:11 +01:00
|
|
|
@param NameGuid Filename identifying the file from which to read.
|
|
|
|
@param SectionType The section type to retrieve.
|
|
|
|
@param SectionInstance The instance of SectionType to retrieve.
|
2018-06-27 15:06:55 +02:00
|
|
|
@param Buffer Pointer to pointer to buffer in which contents of
|
2010-03-16 02:53:11 +01:00
|
|
|
a file are returned.
|
2007-06-15 12:02:42 +02:00
|
|
|
<br>
|
2010-03-16 02:53:11 +01:00
|
|
|
If Buffer is NULL, only type, attributes, and size
|
|
|
|
are returned as there is no output buffer.
|
2007-06-15 12:02:42 +02:00
|
|
|
<br>
|
2018-06-27 15:06:55 +02:00
|
|
|
If Buffer != NULL and *Buffer == NULL, the output
|
2010-03-16 02:53:11 +01:00
|
|
|
buffer is allocated from BS pool by ReadFile.
|
2007-06-15 12:02:42 +02:00
|
|
|
<br>
|
2018-06-27 15:06:55 +02:00
|
|
|
If Buffer != NULL and *Buffer != NULL, the output
|
|
|
|
buffer has been allocated by the caller and is being
|
2010-03-16 02:53:11 +01:00
|
|
|
passed in.
|
2018-06-27 15:06:55 +02:00
|
|
|
@param BufferSize The pointer to the buffer size passed in, and on
|
2010-03-16 02:53:11 +01:00
|
|
|
output the size required to complete the read.
|
|
|
|
@param AuthenticationStatus The pointer to the authentication status of the data.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
2009-06-17 10:46:49 +02:00
|
|
|
@retval EFI_SUCCESS The call completed successfully.
|
2018-06-27 15:06:55 +02:00
|
|
|
@retval EFI_WARN_BUFFER_TOO_SMALL The buffer is too small to contain the requested output.
|
2009-06-17 10:46:49 +02:00
|
|
|
The buffer is filled and the output is truncated.
|
|
|
|
@retval EFI_OUT_OF_RESOURCES An allocation failure occurred.
|
2010-03-16 02:53:11 +01:00
|
|
|
@retval EFI_NOT_FOUND The name was not found in the firmware volume.
|
2018-06-27 15:06:55 +02:00
|
|
|
@retval EFI_DEVICE_ERROR A hardware error occurred when attempting to
|
2010-03-16 02:53:11 +01:00
|
|
|
access the firmware volume.
|
2009-06-17 10:46:49 +02:00
|
|
|
@retval EFI_ACCESS_DENIED The firmware volume is configured to disallow reads.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-07-31 09:44:54 +02:00
|
|
|
(EFIAPI *FRAMEWORK_EFI_FV_READ_SECTION)(
|
2007-06-15 12:02:42 +02:00
|
|
|
IN EFI_FIRMWARE_VOLUME_PROTOCOL *This,
|
|
|
|
IN EFI_GUID *NameGuid,
|
|
|
|
IN EFI_SECTION_TYPE SectionType,
|
|
|
|
IN UINTN SectionInstance,
|
|
|
|
IN OUT VOID **Buffer,
|
|
|
|
IN OUT UINTN *BufferSize,
|
|
|
|
OUT UINT32 *AuthenticationStatus
|
|
|
|
);
|
|
|
|
|
2008-05-16 11:45:51 +02:00
|
|
|
typedef UINT32 FRAMEWORK_EFI_FV_WRITE_POLICY;
|
2007-06-15 12:02:42 +02:00
|
|
|
|
2008-05-16 11:45:51 +02:00
|
|
|
#define FRAMEWORK_EFI_FV_UNRELIABLE_WRITE 0x00000000
|
|
|
|
#define FRAMEWORK_EFI_FV_RELIABLE_WRITE 0x00000001
|
2007-06-15 12:02:42 +02:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
EFI_GUID *NameGuid;
|
|
|
|
EFI_FV_FILETYPE Type;
|
|
|
|
EFI_FV_FILE_ATTRIBUTES FileAttributes;
|
|
|
|
VOID *Buffer;
|
|
|
|
UINT32 BufferSize;
|
2008-05-16 11:45:51 +02:00
|
|
|
} FRAMEWORK_EFI_FV_WRITE_FILE_DATA;
|
2007-06-15 12:02:42 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
Write the supplied file (NameGuid) to the FV.
|
|
|
|
|
2009-06-10 19:41:25 +02:00
|
|
|
@param This Indicates the EFI_FIRMWARE_VOLUME_PROTOCOL instance.
|
2018-06-27 15:06:55 +02:00
|
|
|
@param NumberOfFiles Indicates the number of file records pointed to
|
2010-03-16 02:53:11 +01:00
|
|
|
by FileData.
|
2018-06-27 15:06:55 +02:00
|
|
|
@param WritePolicy Indicates the level of reliability of the write
|
2010-03-16 02:53:11 +01:00
|
|
|
with respect to things like power failure events.
|
2018-06-27 15:06:55 +02:00
|
|
|
@param FileData A pointer to an array of EFI_FV_WRITE_FILE_DATA
|
|
|
|
structures. Each element in the array indicates
|
2010-03-16 02:53:11 +01:00
|
|
|
a file to write, and there are NumberOfFiles
|
|
|
|
elements in the input array.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
2009-06-17 10:46:49 +02:00
|
|
|
@retval EFI_SUCCESS The write completed successfully.
|
2018-06-27 15:06:55 +02:00
|
|
|
@retval EFI_OUT_OF_RESOURCES The firmware volume does not have enough free
|
2010-03-16 02:53:11 +01:00
|
|
|
space to store file(s).
|
2018-06-27 15:06:55 +02:00
|
|
|
@retval EFI_DEVICE_ERROR A hardware error occurred when attempting to
|
2010-03-16 02:53:11 +01:00
|
|
|
access the firmware volume.
|
2009-06-17 10:46:49 +02:00
|
|
|
@retval EFI_WRITE_PROTECTED The firmware volume is configured to disallow writes.
|
2018-06-27 15:06:55 +02:00
|
|
|
@retval EFI_NOT_FOUND A delete was requested, but the requested file was
|
2010-03-16 02:53:11 +01:00
|
|
|
not found in the firmware volume.
|
2009-06-17 10:46:49 +02:00
|
|
|
@retval EFI_INVALID_PARAMETER A delete was requested with a multiple file write.
|
|
|
|
An unsupported WritePolicy was requested.
|
|
|
|
An unknown file type was specified.
|
|
|
|
A file system specific error has occurred.
|
2007-06-15 12:02:42 +02:00
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-07-31 09:44:54 +02:00
|
|
|
(EFIAPI *FRAMEWORK_EFI_FV_WRITE_FILE)(
|
2008-05-16 11:45:51 +02:00
|
|
|
IN EFI_FIRMWARE_VOLUME_PROTOCOL *This,
|
|
|
|
IN UINT32 NumberOfFiles,
|
|
|
|
IN FRAMEWORK_EFI_FV_WRITE_POLICY WritePolicy,
|
|
|
|
IN FRAMEWORK_EFI_FV_WRITE_FILE_DATA *FileData
|
2007-06-15 12:02:42 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Given the input key, search for the next matching file in the volume.
|
|
|
|
|
2009-06-10 19:41:25 +02:00
|
|
|
@param This Indicates the EFI_FIRMWARE_VOLUME_PROTOCOL instance.
|
2018-06-27 15:06:55 +02:00
|
|
|
@param Key Pointer to a caller allocated buffer that contains
|
|
|
|
an implementation-specific key that is used to track
|
2010-03-16 02:53:11 +01:00
|
|
|
where to begin searching on successive calls.
|
|
|
|
@param FileType The pointer to the file type to filter for.
|
|
|
|
@param NameGuid The pointer to Guid filename of the file found.
|
|
|
|
@param Attributes The pointer to Attributes of the file found.
|
|
|
|
@param Size The pointer to Size in bytes of the file found.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
2018-06-27 15:06:55 +02:00
|
|
|
@retval EFI_SUCCESS The output parameters are filled with data obtained from
|
2009-06-17 10:46:49 +02:00
|
|
|
the first matching file that was found.
|
|
|
|
@retval EFI_NOT_FOUND No files of type FileType were found.
|
2018-06-27 15:06:55 +02:00
|
|
|
@retval EFI_DEVICE_ERROR A hardware error occurred when attempting to access
|
2009-06-17 10:46:49 +02:00
|
|
|
the firmware volume.
|
|
|
|
@retval EFI_ACCESS_DENIED The firmware volume is configured to disallow reads.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-07-31 09:44:54 +02:00
|
|
|
(EFIAPI *FRAMEWORK_EFI_FV_GET_NEXT_FILE)(
|
2007-06-15 12:02:42 +02:00
|
|
|
IN EFI_FIRMWARE_VOLUME_PROTOCOL *This,
|
|
|
|
IN OUT VOID *Key,
|
|
|
|
IN OUT EFI_FV_FILETYPE *FileType,
|
|
|
|
OUT EFI_GUID *NameGuid,
|
|
|
|
OUT EFI_FV_FILE_ATTRIBUTES *Attributes,
|
|
|
|
OUT UINTN *Size
|
|
|
|
);
|
|
|
|
|
2009-06-10 19:41:25 +02:00
|
|
|
//
|
|
|
|
// Protocol interface structure
|
|
|
|
//
|
2007-06-15 12:02:42 +02:00
|
|
|
struct _EFI_FIRMWARE_VOLUME_PROTOCOL {
|
2009-07-02 09:40:24 +02:00
|
|
|
///
|
|
|
|
/// Retrieves volume capabilities and current settings.
|
|
|
|
///
|
2008-05-16 11:45:51 +02:00
|
|
|
FRAMEWORK_EFI_FV_GET_ATTRIBUTES GetVolumeAttributes;
|
2009-07-02 09:40:24 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
/// Modifies the current settings of the firmware volume.
|
|
|
|
///
|
2008-05-16 11:45:51 +02:00
|
|
|
FRAMEWORK_EFI_FV_SET_ATTRIBUTES SetVolumeAttributes;
|
2009-07-02 09:40:24 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
/// Reads an entire file from the firmware volume.
|
|
|
|
///
|
2008-05-16 11:45:51 +02:00
|
|
|
FRAMEWORK_EFI_FV_READ_FILE ReadFile;
|
2009-07-02 09:40:24 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
/// Reads a single section from a file into a buffer.
|
|
|
|
///
|
2008-05-16 11:45:51 +02:00
|
|
|
FRAMEWORK_EFI_FV_READ_SECTION ReadSection;
|
2009-07-02 09:40:24 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
/// Writes an entire file into the firmware volume.
|
|
|
|
///
|
2008-05-16 11:45:51 +02:00
|
|
|
FRAMEWORK_EFI_FV_WRITE_FILE WriteFile;
|
2009-07-02 09:40:24 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
/// Provides service to allow searching the firmware volume.
|
|
|
|
///
|
2008-05-16 11:45:51 +02:00
|
|
|
FRAMEWORK_EFI_FV_GET_NEXT_FILE GetNextFile;
|
2009-07-02 09:40:24 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
/// Data field that indicates the size in bytes of the Key input buffer for
|
|
|
|
/// the GetNextFile() API.
|
|
|
|
///
|
|
|
|
UINT32 KeySize;
|
|
|
|
|
|
|
|
///
|
|
|
|
/// Handle of the parent firmware volume.
|
|
|
|
///
|
2007-06-15 12:02:42 +02:00
|
|
|
EFI_HANDLE ParentHandle;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern EFI_GUID gEfiFirmwareVolumeProtocolGuid;
|
|
|
|
|
|
|
|
#endif
|