mirror of https://github.com/acidanthera/audk.git
Update to use DOS format
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6324 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
98c39c6b10
commit
a6ae3de442
|
@ -15,7 +15,7 @@
|
||||||
#ifndef __FVB_SERVICE_LIB_H__
|
#ifndef __FVB_SERVICE_LIB_H__
|
||||||
#define __FVB_SERVICE_LIB_H__
|
#define __FVB_SERVICE_LIB_H__
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads specified number of bytes into a buffer from the specified block.
|
Reads specified number of bytes into a buffer from the specified block.
|
||||||
|
|
||||||
The EfiFvbReadBlock() function reads the requested number of bytes from
|
The EfiFvbReadBlock() function reads the requested number of bytes from
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
@retval EFI_ACCESS_DENIED The firmware volume is in the ReadDisabled state.
|
@retval EFI_ACCESS_DENIED The firmware volume is in the ReadDisabled state.
|
||||||
@retval EFI_DEVICE_ERROR The block device is not functioning correctly and could not be read.
|
@retval EFI_DEVICE_ERROR The block device is not functioning correctly and could not be read.
|
||||||
@retval EFI_INVALID_PARAMETER Invalid parameter, Instance is larger than the max FVB number. Lba index is larger than the last block of the firmware volume. Offset is larger than the block size.
|
@retval EFI_INVALID_PARAMETER Invalid parameter, Instance is larger than the max FVB number. Lba index is larger than the last block of the firmware volume. Offset is larger than the block size.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -123,7 +123,7 @@ EfiFvbWriteBlock (
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Erases and initializes a firmware volume block.
|
Erases and initializes a firmware volume block.
|
||||||
|
|
||||||
The EfiFvbEraseBlock() function erases one block specified by Lba.
|
The EfiFvbEraseBlock() function erases one block specified by Lba.
|
||||||
|
@ -137,7 +137,7 @@ EfiFvbWriteBlock (
|
||||||
|
|
||||||
All calls to EfiFvbEraseBlock() must be fully flushed to the
|
All calls to EfiFvbEraseBlock() must be fully flushed to the
|
||||||
hardware before this function returns.
|
hardware before this function returns.
|
||||||
|
|
||||||
@param[in] Instance The FV instance to be erased.
|
@param[in] Instance The FV instance to be erased.
|
||||||
@param[in] Lba The logical block index to be erased from.
|
@param[in] Lba The logical block index to be erased from.
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ EfiFvbWriteBlock (
|
||||||
@retval EFI_INVALID_PARAMETER Invalid parameter. Instance is larger than the max
|
@retval EFI_INVALID_PARAMETER Invalid parameter. Instance is larger than the max
|
||||||
FVB number. Lba index is larger than the last block
|
FVB number. Lba index is larger than the last block
|
||||||
of the firmware volume.
|
of the firmware volume.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -159,7 +159,7 @@ EfiFvbEraseBlock (
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves the attributes and current settings of the specified block,
|
Retrieves the attributes and current settings of the specified block,
|
||||||
returns resulting attributes in output parameter.
|
returns resulting attributes in output parameter.
|
||||||
|
|
||||||
|
@ -168,11 +168,11 @@ EfiFvbEraseBlock (
|
||||||
the max FVB number, this function returns the status code EFI_INVALID_PARAMETER.
|
the max FVB number, this function returns the status code EFI_INVALID_PARAMETER.
|
||||||
|
|
||||||
If Attributes is NULL, then ASSERT().
|
If Attributes is NULL, then ASSERT().
|
||||||
|
|
||||||
@param[in] Instance The FV instance to be operated.
|
@param[in] Instance The FV instance to be operated.
|
||||||
@param[out] Attributes Pointer to EFI_FVB_ATTRIBUTES_2 in which the
|
@param[out] Attributes Pointer to EFI_FVB_ATTRIBUTES_2 in which the
|
||||||
attributes and current settings are returned.
|
attributes and current settings are returned.
|
||||||
|
|
||||||
@retval EFI_EFI_SUCCESS The firmware volume attributes were returned.
|
@retval EFI_EFI_SUCCESS The firmware volume attributes were returned.
|
||||||
@retval EFI_INVALID_PARAMETER Invalid parameter. Instance is larger than the max FVB number.
|
@retval EFI_INVALID_PARAMETER Invalid parameter. Instance is larger than the max FVB number.
|
||||||
**/
|
**/
|
||||||
|
@ -184,7 +184,7 @@ EfiFvbGetVolumeAttributes (
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Modify the attributes and current settings of the specified block
|
Modify the attributes and current settings of the specified block
|
||||||
according to the input parameter.
|
according to the input parameter.
|
||||||
|
|
||||||
|
@ -199,10 +199,10 @@ EfiFvbGetVolumeAttributes (
|
||||||
@param[in, out]Attributes On input, Attributes is a pointer to EFI_FVB_ATTRIBUTES_2
|
@param[in, out]Attributes On input, Attributes is a pointer to EFI_FVB_ATTRIBUTES_2
|
||||||
that contains the desired firmware volume settings.
|
that contains the desired firmware volume settings.
|
||||||
On successful return, it contains the new settings of the firmware volume.
|
On successful return, it contains the new settings of the firmware volume.
|
||||||
|
|
||||||
@retval EFI_EFI_SUCCESS The firmware volume attributes were modified successfully.
|
@retval EFI_EFI_SUCCESS The firmware volume attributes were modified successfully.
|
||||||
@retval EFI_INVALID_PARAMETER Invalid parameter. Instance is larger than the max FVB number.
|
@retval EFI_INVALID_PARAMETER Invalid parameter. Instance is larger than the max FVB number.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -212,7 +212,7 @@ EfiFvbSetVolumeAttributes (
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves the physical address of the specified memory mapped FV.
|
Retrieves the physical address of the specified memory mapped FV.
|
||||||
|
|
||||||
Retrieve the base address of a memory-mapped firmware volume specified by Instance.
|
Retrieve the base address of a memory-mapped firmware volume specified by Instance.
|
||||||
|
@ -220,15 +220,15 @@ EfiFvbSetVolumeAttributes (
|
||||||
code EFI_INVALID_PARAMETER.
|
code EFI_INVALID_PARAMETER.
|
||||||
|
|
||||||
If BaseAddress is NULL, then ASSERT().
|
If BaseAddress is NULL, then ASSERT().
|
||||||
|
|
||||||
@param[in] Instance The FV instance to be operated.
|
@param[in] Instance The FV instance to be operated.
|
||||||
@param[out] BaseAddress Pointer to a caller allocated EFI_PHYSICAL_ADDRESS
|
@param[out] BaseAddress Pointer to a caller allocated EFI_PHYSICAL_ADDRESS
|
||||||
that on successful return, contains the base address
|
that on successful return, contains the base address
|
||||||
of the firmware volume.
|
of the firmware volume.
|
||||||
|
|
||||||
@retval EFI_EFI_SUCCESS The firmware volume base address is returned.
|
@retval EFI_EFI_SUCCESS The firmware volume base address is returned.
|
||||||
@retval EFI_INVALID_PARAMETER Invalid parameter. Instance is larger than the max FVB number.
|
@retval EFI_INVALID_PARAMETER Invalid parameter. Instance is larger than the max FVB number.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -238,7 +238,7 @@ EfiFvbGetPhysicalAddress (
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieve the block size of the specified fv.
|
Retrieve the block size of the specified fv.
|
||||||
|
|
||||||
The EfiFvbGetBlockSize() function retrieves the size of the requested block.
|
The EfiFvbGetBlockSize() function retrieves the size of the requested block.
|
||||||
|
@ -250,7 +250,7 @@ EfiFvbGetPhysicalAddress (
|
||||||
If BlockSize is NULL, then ASSERT().
|
If BlockSize is NULL, then ASSERT().
|
||||||
|
|
||||||
If NumOfBlocks is NULL, then ASSERT().
|
If NumOfBlocks is NULL, then ASSERT().
|
||||||
|
|
||||||
@param[in] Instance The FV instance to be operated.
|
@param[in] Instance The FV instance to be operated.
|
||||||
@param[in] Lba Indicates which block to return the size for.
|
@param[in] Lba Indicates which block to return the size for.
|
||||||
@param[out] BlockSize Pointer to a caller-allocated UINTN in which the
|
@param[out] BlockSize Pointer to a caller-allocated UINTN in which the
|
||||||
|
@ -258,11 +258,11 @@ EfiFvbGetPhysicalAddress (
|
||||||
@param[out] NumOfBlocks Pointer to a caller-allocated UINTN in which the
|
@param[out] NumOfBlocks Pointer to a caller-allocated UINTN in which the
|
||||||
number of consecutive blocks, starting with Lba,
|
number of consecutive blocks, starting with Lba,
|
||||||
is returned. All blocks in this range have a size of BlockSize.
|
is returned. All blocks in this range have a size of BlockSize.
|
||||||
|
|
||||||
@retval EFI_EFI_SUCCESS The firmware volume base address is returned.
|
@retval EFI_EFI_SUCCESS The firmware volume base address is returned.
|
||||||
@retval EFI_INVALID_PARAMETER Invalid parameter. Instance is larger than the max FVB number.
|
@retval EFI_INVALID_PARAMETER Invalid parameter. Instance is larger than the max FVB number.
|
||||||
Lba index is larger than the last block of the firmware volume.
|
Lba index is larger than the last block of the firmware volume.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -274,7 +274,7 @@ EfiFvbGetBlockSize (
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Erases and initializes a specified range of a firmware volume.
|
Erases and initializes a specified range of a firmware volume.
|
||||||
|
|
||||||
The EfiFvbEraseCustomBlockRange() function erases the specified range in the firmware
|
The EfiFvbEraseCustomBlockRange() function erases the specified range in the firmware
|
||||||
|
@ -282,18 +282,18 @@ EfiFvbGetBlockSize (
|
||||||
LastLba index is larger than the last block of the firmware volume, StartLba > LastLba
|
LastLba index is larger than the last block of the firmware volume, StartLba > LastLba
|
||||||
or StartLba equal to LastLba but OffsetStartLba > OffsetLastLba, this function return
|
or StartLba equal to LastLba but OffsetStartLba > OffsetLastLba, this function return
|
||||||
the status code EFI_INVALID_PARAMETER.
|
the status code EFI_INVALID_PARAMETER.
|
||||||
|
|
||||||
@param[in] Instance The FV instance to be operated.
|
@param[in] Instance The FV instance to be operated.
|
||||||
@param[in] StartLba The starting logical block index to be erased.
|
@param[in] StartLba The starting logical block index to be erased.
|
||||||
@param[in] OffsetStartLba Offset into the starting block at which to
|
@param[in] OffsetStartLba Offset into the starting block at which to
|
||||||
begin erasing.
|
begin erasing.
|
||||||
@param[in] LastLba The last logical block index to be erased.
|
@param[in] LastLba The last logical block index to be erased.
|
||||||
@param[in] OffsetLastLba Offset into the last block at which to end erasing.
|
@param[in] OffsetLastLba Offset into the last block at which to end erasing.
|
||||||
|
|
||||||
@retval EFI_EFI_SUCCESS Successfully erase custom block range
|
@retval EFI_EFI_SUCCESS Successfully erase custom block range
|
||||||
@retval EFI_INVALID_PARAMETER Invalid parameter. Instance is larger than the max FVB number.
|
@retval EFI_INVALID_PARAMETER Invalid parameter. Instance is larger than the max FVB number.
|
||||||
@retval EFI_UNSUPPORTED Firmware volume block device has no this capability.
|
@retval EFI_UNSUPPORTED Firmware volume block device has no this capability.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
|
Loading…
Reference in New Issue