mirror of https://github.com/acidanthera/audk.git
Fix several minor coding style issues.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8092 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
aeb90c4a15
commit
51969ecb37
|
@ -1067,6 +1067,7 @@ AsciiErrorPrint (
|
||||||
...
|
...
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Prints a formatted Unicode string to a graphics console device specified by
|
Prints a formatted Unicode string to a graphics console device specified by
|
||||||
ConsoleOutputHandle defined in the EFI_SYSTEM_TABLE at the given (X,Y) coordinates.
|
ConsoleOutputHandle defined in the EFI_SYSTEM_TABLE at the given (X,Y) coordinates.
|
||||||
|
@ -1087,8 +1088,8 @@ AsciiErrorPrint (
|
||||||
If Format is NULL, then ASSERT().
|
If Format is NULL, then ASSERT().
|
||||||
If Format is not aligned on a 16-bit boundary, then ASSERT().
|
If Format is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
|
|
||||||
@param X X coordinate to print the string.
|
@param PointX X coordinate to print the string.
|
||||||
@param Y Y coordinate to print the string.
|
@param PointY Y coordinate to print the string.
|
||||||
@param ForeGround The foreground color of the string being printed. This is
|
@param ForeGround The foreground color of the string being printed. This is
|
||||||
an optional parameter that may be NULL. If it is NULL,
|
an optional parameter that may be NULL. If it is NULL,
|
||||||
then the foreground color of the current ConOut device
|
then the foreground color of the current ConOut device
|
||||||
|
@ -1108,8 +1109,8 @@ AsciiErrorPrint (
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PrintXY (
|
PrintXY (
|
||||||
IN UINTN X,
|
IN UINTN PointX,
|
||||||
IN UINTN Y,
|
IN UINTN PointY,
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
|
||||||
IN CONST CHAR16 *Format,
|
IN CONST CHAR16 *Format,
|
||||||
|
@ -1135,8 +1136,8 @@ PrintXY (
|
||||||
string is printed, and 0 is returned.
|
string is printed, and 0 is returned.
|
||||||
If Format is NULL, then ASSERT().
|
If Format is NULL, then ASSERT().
|
||||||
|
|
||||||
@param X X coordinate to print the string.
|
@param PointX X coordinate to print the string.
|
||||||
@param Y Y coordinate to print the string.
|
@param PointY Y coordinate to print the string.
|
||||||
@param ForeGround The foreground color of the string being printed. This is
|
@param ForeGround The foreground color of the string being printed. This is
|
||||||
an optional parameter that may be NULL. If it is NULL,
|
an optional parameter that may be NULL. If it is NULL,
|
||||||
then the foreground color of the current ConOut device
|
then the foreground color of the current ConOut device
|
||||||
|
@ -1156,8 +1157,8 @@ PrintXY (
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsciiPrintXY (
|
AsciiPrintXY (
|
||||||
IN UINTN X,
|
IN UINTN PointX,
|
||||||
IN UINTN Y,
|
IN UINTN PointY,
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
|
||||||
IN CONST CHAR8 *Format,
|
IN CONST CHAR8 *Format,
|
||||||
|
|
|
@ -333,7 +333,7 @@ ScsiRequestSenseCommand (
|
||||||
Executes the SCSI Read Capacity command on the SCSI target specified by ScsiIo.
|
Executes the SCSI Read Capacity command on the SCSI target specified by ScsiIo.
|
||||||
If Timeout is zero, then this function waits indefinitely for the command to complete.
|
If Timeout is zero, then this function waits indefinitely for the command to complete.
|
||||||
If Timeout is greater than zero, then the command is executed and will timeout after
|
If Timeout is greater than zero, then the command is executed and will timeout after
|
||||||
Timeout 100 ns units. The PMI parameter is used to construct the CDB for this SCSI command.
|
Timeout 100 ns units. The Pmi parameter is used to construct the CDB for this SCSI command.
|
||||||
If ScsiIo is NULL, then ASSERT().
|
If ScsiIo is NULL, then ASSERT().
|
||||||
If SenseDataLength is NULL, then ASSERT().
|
If SenseDataLength is NULL, then ASSERT().
|
||||||
If HostAdapterStatus is NULL, then ASSERT().
|
If HostAdapterStatus is NULL, then ASSERT().
|
||||||
|
@ -348,7 +348,7 @@ ScsiRequestSenseCommand (
|
||||||
@param[out] TargetStatus The status of the target.
|
@param[out] TargetStatus The status of the target.
|
||||||
@param[in, out] DataBuffer A pointer to a data buffer.
|
@param[in, out] DataBuffer A pointer to a data buffer.
|
||||||
@param[in, out] DataLength The length of data buffer.
|
@param[in, out] DataLength The length of data buffer.
|
||||||
@param[in] PMI Partial medium indicator.
|
@param[in] Pmi Partial medium indicator.
|
||||||
|
|
||||||
@retval EFI_SUCCESS Command is executed successfully.
|
@retval EFI_SUCCESS Command is executed successfully.
|
||||||
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire
|
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire
|
||||||
|
@ -373,7 +373,7 @@ ScsiReadCapacityCommand (
|
||||||
OUT UINT8 *TargetStatus,
|
OUT UINT8 *TargetStatus,
|
||||||
IN OUT VOID *DataBuffer, OPTIONAL
|
IN OUT VOID *DataBuffer, OPTIONAL
|
||||||
IN OUT UINT32 *DataLength,
|
IN OUT UINT32 *DataLength,
|
||||||
IN BOOLEAN PMI
|
IN BOOLEAN Pmi
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -388,7 +388,7 @@ ScsiReadCapacityCommand (
|
||||||
@param TargetStatus The status of the target.
|
@param TargetStatus The status of the target.
|
||||||
@param DataBuffer A pointer to a data buffer.
|
@param DataBuffer A pointer to a data buffer.
|
||||||
@param DataLength The length of data buffer.
|
@param DataLength The length of data buffer.
|
||||||
@param PMI Partial medium indicator.
|
@param Pmi Partial medium indicator.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The status of the unit is tested successfully.
|
@retval EFI_SUCCESS The status of the unit is tested successfully.
|
||||||
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed,
|
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed,
|
||||||
|
@ -408,7 +408,6 @@ ScsiReadCapacityCommand (
|
||||||
Request Packet to execute.
|
Request Packet to execute.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ScsiReadCapacity16Command (
|
ScsiReadCapacity16Command (
|
||||||
|
@ -420,7 +419,7 @@ ScsiReadCapacity16Command (
|
||||||
OUT UINT8 *TargetStatus,
|
OUT UINT8 *TargetStatus,
|
||||||
OUT VOID *DataBuffer,
|
OUT VOID *DataBuffer,
|
||||||
IN OUT UINT32 *DataLength,
|
IN OUT UINT32 *DataLength,
|
||||||
IN BOOLEAN PMI
|
IN BOOLEAN Pmi
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -306,9 +306,9 @@ AsciiErrorPrint (
|
||||||
If the EFI_HII_FONT_PROTOCOL is not present in the handle database, then no
|
If the EFI_HII_FONT_PROTOCOL is not present in the handle database, then no
|
||||||
string is printed, and 0 is returned.
|
string is printed, and 0 is returned.
|
||||||
|
|
||||||
@param X X coordinate to print the string.
|
@param PointX X coordinate to print the string.
|
||||||
@param Y Y coordinate to print the string.
|
@param PointY Y coordinate to print the string.
|
||||||
@param Foreground The forground color of the string being printed. This is
|
@param Foreground The foreground color of the string being printed. This is
|
||||||
an optional parameter that may be NULL. If it is NULL,
|
an optional parameter that may be NULL. If it is NULL,
|
||||||
then the foreground color of the current ConOut device
|
then the foreground color of the current ConOut device
|
||||||
in the EFI_SYSTEM_TABLE is used.
|
in the EFI_SYSTEM_TABLE is used.
|
||||||
|
@ -325,8 +325,8 @@ AsciiErrorPrint (
|
||||||
**/
|
**/
|
||||||
UINTN
|
UINTN
|
||||||
InternalPrintGraphic (
|
InternalPrintGraphic (
|
||||||
IN UINTN X,
|
IN UINTN PointX,
|
||||||
IN UINTN Y,
|
IN UINTN PointY,
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Foreground,
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Foreground,
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Background,
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Background,
|
||||||
IN CHAR16 *Buffer,
|
IN CHAR16 *Buffer,
|
||||||
|
@ -459,8 +459,8 @@ InternalPrintGraphic (
|
||||||
Buffer,
|
Buffer,
|
||||||
&FontInfo,
|
&FontInfo,
|
||||||
&Blt,
|
&Blt,
|
||||||
X,
|
PointX,
|
||||||
Y,
|
PointY,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
|
@ -483,8 +483,8 @@ InternalPrintGraphic (
|
||||||
Buffer,
|
Buffer,
|
||||||
&FontInfo,
|
&FontInfo,
|
||||||
&Blt,
|
&Blt,
|
||||||
X,
|
PointX,
|
||||||
Y,
|
PointY,
|
||||||
&RowInfoArray,
|
&RowInfoArray,
|
||||||
&RowInfoArraySize,
|
&RowInfoArraySize,
|
||||||
NULL
|
NULL
|
||||||
|
@ -502,10 +502,10 @@ InternalPrintGraphic (
|
||||||
UgaDraw,
|
UgaDraw,
|
||||||
(EFI_UGA_PIXEL *) Blt->Image.Bitmap,
|
(EFI_UGA_PIXEL *) Blt->Image.Bitmap,
|
||||||
EfiUgaBltBufferToVideo,
|
EfiUgaBltBufferToVideo,
|
||||||
X,
|
PointX,
|
||||||
Y,
|
PointY,
|
||||||
X,
|
PointX,
|
||||||
Y,
|
PointY,
|
||||||
RowInfoArray[0].LineWidth,
|
RowInfoArray[0].LineWidth,
|
||||||
RowInfoArray[0].LineHeight,
|
RowInfoArray[0].LineHeight,
|
||||||
Blt->Width * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL)
|
Blt->Width * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL)
|
||||||
|
@ -549,8 +549,8 @@ Error:
|
||||||
If Format is NULL, then ASSERT().
|
If Format is NULL, then ASSERT().
|
||||||
If Format is not aligned on a 16-bit boundary, then ASSERT().
|
If Format is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
|
|
||||||
@param X X coordinate to print the string.
|
@param PointX X coordinate to print the string.
|
||||||
@param Y Y coordinate to print the string.
|
@param PointY Y coordinate to print the string.
|
||||||
@param ForeGround The foreground color of the string being printed. This is
|
@param ForeGround The foreground color of the string being printed. This is
|
||||||
an optional parameter that may be NULL. If it is NULL,
|
an optional parameter that may be NULL. If it is NULL,
|
||||||
then the foreground color of the current ConOut device
|
then the foreground color of the current ConOut device
|
||||||
|
@ -570,8 +570,8 @@ Error:
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PrintXY (
|
PrintXY (
|
||||||
IN UINTN X,
|
IN UINTN PointX,
|
||||||
IN UINTN Y,
|
IN UINTN PointY,
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
|
||||||
IN CONST CHAR16 *Format,
|
IN CONST CHAR16 *Format,
|
||||||
|
@ -596,7 +596,7 @@ PrintXY (
|
||||||
|
|
||||||
PrintNum = UnicodeVSPrint (Buffer, BufferSize, Format, Marker);
|
PrintNum = UnicodeVSPrint (Buffer, BufferSize, Format, Marker);
|
||||||
|
|
||||||
ReturnNum = InternalPrintGraphic (X, Y, ForeGround, BackGround, Buffer, PrintNum);
|
ReturnNum = InternalPrintGraphic (PointX, PointY, ForeGround, BackGround, Buffer, PrintNum);
|
||||||
|
|
||||||
FreePool (Buffer);
|
FreePool (Buffer);
|
||||||
|
|
||||||
|
@ -622,8 +622,8 @@ PrintXY (
|
||||||
string is printed, and 0 is returned.
|
string is printed, and 0 is returned.
|
||||||
If Format is NULL, then ASSERT().
|
If Format is NULL, then ASSERT().
|
||||||
|
|
||||||
@param X X coordinate to print the string.
|
@param PointX X coordinate to print the string.
|
||||||
@param Y Y coordinate to print the string.
|
@param PointY Y coordinate to print the string.
|
||||||
@param ForeGround The foreground color of the string being printed. This is
|
@param ForeGround The foreground color of the string being printed. This is
|
||||||
an optional parameter that may be NULL. If it is NULL,
|
an optional parameter that may be NULL. If it is NULL,
|
||||||
then the foreground color of the current ConOut device
|
then the foreground color of the current ConOut device
|
||||||
|
@ -643,8 +643,8 @@ PrintXY (
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsciiPrintXY (
|
AsciiPrintXY (
|
||||||
IN UINTN X,
|
IN UINTN PointX,
|
||||||
IN UINTN Y,
|
IN UINTN PointY,
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
|
||||||
IN CONST CHAR8 *Format,
|
IN CONST CHAR8 *Format,
|
||||||
|
@ -668,7 +668,7 @@ AsciiPrintXY (
|
||||||
|
|
||||||
PrintNum = UnicodeSPrintAsciiFormat (Buffer, BufferSize, Format, Marker);
|
PrintNum = UnicodeSPrintAsciiFormat (Buffer, BufferSize, Format, Marker);
|
||||||
|
|
||||||
ReturnNum = InternalPrintGraphic (X, Y, ForeGround, BackGround, Buffer, PrintNum);
|
ReturnNum = InternalPrintGraphic (PointX, PointY, ForeGround, BackGround, Buffer, PrintNum);
|
||||||
|
|
||||||
FreePool (Buffer);
|
FreePool (Buffer);
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ EFI_EVENT mEfiVirtualNotifyEvent;
|
||||||
EFI_EVENT mEfiExitBootServicesEvent;
|
EFI_EVENT mEfiExitBootServicesEvent;
|
||||||
BOOLEAN mEfiGoneVirtual = FALSE;
|
BOOLEAN mEfiGoneVirtual = FALSE;
|
||||||
BOOLEAN mEfiAtRuntime = FALSE;
|
BOOLEAN mEfiAtRuntime = FALSE;
|
||||||
EFI_RUNTIME_SERVICES *mRT;
|
EFI_RUNTIME_SERVICES *gInternalRT;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set AtRuntime flag as TRUE after ExitBootServices.
|
Set AtRuntime flag as TRUE after ExitBootServices.
|
||||||
|
@ -63,7 +63,7 @@ RuntimeLibVirtualNotifyEvent (
|
||||||
//
|
//
|
||||||
// Update global for Runtime Services Table and IO
|
// Update global for Runtime Services Table and IO
|
||||||
//
|
//
|
||||||
EfiConvertPointer (0, (VOID **) &mRT);
|
EfiConvertPointer (0, (VOID **) &gInternalRT);
|
||||||
|
|
||||||
mEfiGoneVirtual = TRUE;
|
mEfiGoneVirtual = TRUE;
|
||||||
}
|
}
|
||||||
|
@ -90,7 +90,7 @@ RuntimeDriverLibConstruct (
|
||||||
ASSERT (gRT != NULL);
|
ASSERT (gRT != NULL);
|
||||||
ASSERT (gBS != NULL);
|
ASSERT (gBS != NULL);
|
||||||
|
|
||||||
mRT = gRT;
|
gInternalRT = gRT;
|
||||||
//
|
//
|
||||||
// Register SetVirtualAddressMap () notify function
|
// Register SetVirtualAddressMap () notify function
|
||||||
//
|
//
|
||||||
|
|
|
@ -21,6 +21,6 @@
|
||||||
#include <Library/UefiBootServicesTableLib.h>
|
#include <Library/UefiBootServicesTableLib.h>
|
||||||
#include <Library/UefiRuntimeServicesTableLib.h>
|
#include <Library/UefiRuntimeServicesTableLib.h>
|
||||||
#include <Guid/EventGroup.h>
|
#include <Guid/EventGroup.h>
|
||||||
extern EFI_RUNTIME_SERVICES *mRT;
|
extern EFI_RUNTIME_SERVICES *gInternalRT;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -58,7 +58,7 @@ EfiResetSystem (
|
||||||
IN VOID *ResetData OPTIONAL
|
IN VOID *ResetData OPTIONAL
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
mRT->ResetSystem (ResetType, ResetStatus, DataSize, ResetData);
|
gInternalRT->ResetSystem (ResetType, ResetStatus, DataSize, ResetData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ EfiGetTime (
|
||||||
OUT EFI_TIME_CAPABILITIES *Capabilities OPTIONAL
|
OUT EFI_TIME_CAPABILITIES *Capabilities OPTIONAL
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return mRT->GetTime (Time, Capabilities);
|
return gInternalRT->GetTime (Time, Capabilities);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ EfiSetTime (
|
||||||
IN EFI_TIME *Time
|
IN EFI_TIME *Time
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return mRT->SetTime (Time);
|
return gInternalRT->SetTime (Time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ EfiGetWakeupTime (
|
||||||
OUT EFI_TIME *Time
|
OUT EFI_TIME *Time
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return mRT->GetWakeupTime (Enabled, Pending, Time);
|
return gInternalRT->GetWakeupTime (Enabled, Pending, Time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ EfiSetWakeupTime (
|
||||||
IN EFI_TIME *Time OPTIONAL
|
IN EFI_TIME *Time OPTIONAL
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return mRT->SetWakeupTime (Enable, Time);
|
return gInternalRT->SetWakeupTime (Enable, Time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -233,7 +233,7 @@ EfiGetVariable (
|
||||||
OUT VOID *Data
|
OUT VOID *Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return mRT->GetVariable (VariableName, VendorGuid, Attributes, DataSize, Data);
|
return gInternalRT->GetVariable (VariableName, VendorGuid, Attributes, DataSize, Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -275,7 +275,7 @@ EfiGetNextVariableName (
|
||||||
IN OUT EFI_GUID *VendorGuid
|
IN OUT EFI_GUID *VendorGuid
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return mRT->GetNextVariableName (VariableNameSize, VariableName, VendorGuid);
|
return gInternalRT->GetNextVariableName (VariableNameSize, VariableName, VendorGuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -318,7 +318,7 @@ EfiSetVariable (
|
||||||
IN VOID *Data
|
IN VOID *Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return mRT->SetVariable (VariableName, VendorGuid, Attributes, DataSize, Data);
|
return gInternalRT->SetVariable (VariableName, VendorGuid, Attributes, DataSize, Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -344,7 +344,7 @@ EfiGetNextHighMonotonicCount (
|
||||||
OUT UINT32 *HighCount
|
OUT UINT32 *HighCount
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return mRT->GetNextHighMonotonicCount (HighCount);
|
return gInternalRT->GetNextHighMonotonicCount (HighCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -499,7 +499,7 @@ EfiSetVirtualAddressMap (
|
||||||
IN CONST EFI_MEMORY_DESCRIPTOR *VirtualMap
|
IN CONST EFI_MEMORY_DESCRIPTOR *VirtualMap
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return mRT->SetVirtualAddressMap (
|
return gInternalRT->SetVirtualAddressMap (
|
||||||
MemoryMapSize,
|
MemoryMapSize,
|
||||||
DescriptorSize,
|
DescriptorSize,
|
||||||
DescriptorVersion,
|
DescriptorVersion,
|
||||||
|
@ -550,7 +550,7 @@ EfiUpdateCapsule (
|
||||||
IN EFI_PHYSICAL_ADDRESS ScatterGatherList OPTIONAL
|
IN EFI_PHYSICAL_ADDRESS ScatterGatherList OPTIONAL
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return mRT->UpdateCapsule (
|
return gInternalRT->UpdateCapsule (
|
||||||
CapsuleHeaderArray,
|
CapsuleHeaderArray,
|
||||||
CapsuleCount,
|
CapsuleCount,
|
||||||
ScatterGatherList
|
ScatterGatherList
|
||||||
|
@ -601,7 +601,7 @@ EfiQueryCapsuleCapabilities (
|
||||||
OUT EFI_RESET_TYPE *ResetType
|
OUT EFI_RESET_TYPE *ResetType
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return mRT->QueryCapsuleCapabilities (
|
return gInternalRT->QueryCapsuleCapabilities (
|
||||||
CapsuleHeaderArray,
|
CapsuleHeaderArray,
|
||||||
CapsuleCount,
|
CapsuleCount,
|
||||||
MaximumCapsuleSize,
|
MaximumCapsuleSize,
|
||||||
|
@ -653,7 +653,7 @@ EfiQueryVariableInfo (
|
||||||
OUT UINT64 *MaximumVariableSize
|
OUT UINT64 *MaximumVariableSize
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return mRT->QueryVariableInfo (
|
return gInternalRT->QueryVariableInfo (
|
||||||
Attributes,
|
Attributes,
|
||||||
MaximumVariableStorageSize,
|
MaximumVariableStorageSize,
|
||||||
RemainingVariableStorageSize,
|
RemainingVariableStorageSize,
|
||||||
|
|
|
@ -539,7 +539,7 @@ ScsiRequestSenseCommand (
|
||||||
Executes the SCSI Read Capacity command on the SCSI target specified by ScsiIo.
|
Executes the SCSI Read Capacity command on the SCSI target specified by ScsiIo.
|
||||||
If Timeout is zero, then this function waits indefinitely for the command to complete.
|
If Timeout is zero, then this function waits indefinitely for the command to complete.
|
||||||
If Timeout is greater than zero, then the command is executed and will timeout after
|
If Timeout is greater than zero, then the command is executed and will timeout after
|
||||||
Timeout 100 ns units. The PMI parameter is used to construct the CDB for this SCSI command.
|
Timeout 100 ns units. The Pmi parameter is used to construct the CDB for this SCSI command.
|
||||||
If ScsiIo is NULL, then ASSERT().
|
If ScsiIo is NULL, then ASSERT().
|
||||||
If SenseDataLength is NULL, then ASSERT().
|
If SenseDataLength is NULL, then ASSERT().
|
||||||
If HostAdapterStatus is NULL, then ASSERT().
|
If HostAdapterStatus is NULL, then ASSERT().
|
||||||
|
@ -554,7 +554,7 @@ ScsiRequestSenseCommand (
|
||||||
@param[out] TargetStatus The status of the target.
|
@param[out] TargetStatus The status of the target.
|
||||||
@param[in, out] DataBuffer A pointer to a data buffer.
|
@param[in, out] DataBuffer A pointer to a data buffer.
|
||||||
@param[in, out] DataLength The length of data buffer.
|
@param[in, out] DataLength The length of data buffer.
|
||||||
@param[in] PMI Partial medium indicator.
|
@param[in] Pmi Partial medium indicator.
|
||||||
|
|
||||||
@retval EFI_SUCCESS Command is executed successfully.
|
@retval EFI_SUCCESS Command is executed successfully.
|
||||||
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire
|
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed, but the entire
|
||||||
|
@ -579,7 +579,7 @@ ScsiReadCapacityCommand (
|
||||||
OUT UINT8 *TargetStatus,
|
OUT UINT8 *TargetStatus,
|
||||||
IN OUT VOID *DataBuffer, OPTIONAL
|
IN OUT VOID *DataBuffer, OPTIONAL
|
||||||
IN OUT UINT32 *DataLength,
|
IN OUT UINT32 *DataLength,
|
||||||
IN BOOLEAN PMI
|
IN BOOLEAN Pmi
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_SCSI_IO_SCSI_REQUEST_PACKET CommandPacket;
|
EFI_SCSI_IO_SCSI_REQUEST_PACKET CommandPacket;
|
||||||
|
@ -611,9 +611,9 @@ ScsiReadCapacityCommand (
|
||||||
|
|
||||||
Cdb[0] = EFI_SCSI_OP_READ_CAPACITY;
|
Cdb[0] = EFI_SCSI_OP_READ_CAPACITY;
|
||||||
Cdb[1] = (UINT8) (Lun & EFI_SCSI_LOGICAL_UNIT_NUMBER_MASK);
|
Cdb[1] = (UINT8) (Lun & EFI_SCSI_LOGICAL_UNIT_NUMBER_MASK);
|
||||||
if (!PMI) {
|
if (!Pmi) {
|
||||||
//
|
//
|
||||||
// Partial medium indicator,if PMI is FALSE, the Cdb.2 ~ Cdb.5 MUST BE ZERO.
|
// Partial medium indicator,if Pmi is FALSE, the Cdb.2 ~ Cdb.5 MUST BE ZERO.
|
||||||
//
|
//
|
||||||
ZeroMem ((Cdb + 2), 4);
|
ZeroMem ((Cdb + 2), 4);
|
||||||
} else {
|
} else {
|
||||||
|
@ -646,7 +646,7 @@ ScsiReadCapacityCommand (
|
||||||
@param TargetStatus The status of the target.
|
@param TargetStatus The status of the target.
|
||||||
@param DataBuffer A pointer to a data buffer.
|
@param DataBuffer A pointer to a data buffer.
|
||||||
@param DataLength The length of data buffer.
|
@param DataLength The length of data buffer.
|
||||||
@param PMI Partial medium indicator.
|
@param Pmi Partial medium indicator.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The status of the unit is tested successfully.
|
@retval EFI_SUCCESS The status of the unit is tested successfully.
|
||||||
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed,
|
@retval EFI_BAD_BUFFER_SIZE The SCSI Request Packet was executed,
|
||||||
|
@ -666,7 +666,6 @@ ScsiReadCapacityCommand (
|
||||||
Request Packet to execute.
|
Request Packet to execute.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ScsiReadCapacity16Command (
|
ScsiReadCapacity16Command (
|
||||||
|
@ -678,7 +677,7 @@ ScsiReadCapacity16Command (
|
||||||
OUT UINT8 *TargetStatus,
|
OUT UINT8 *TargetStatus,
|
||||||
OUT VOID *DataBuffer,
|
OUT VOID *DataBuffer,
|
||||||
IN OUT UINT32 *DataLength,
|
IN OUT UINT32 *DataLength,
|
||||||
IN BOOLEAN PMI
|
IN BOOLEAN Pmi
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_SCSI_IO_SCSI_REQUEST_PACKET CommandPacket;
|
EFI_SCSI_IO_SCSI_REQUEST_PACKET CommandPacket;
|
||||||
|
@ -704,9 +703,9 @@ ScsiReadCapacity16Command (
|
||||||
|
|
||||||
Cdb[0] = EFI_SCSI_OP_READ_CAPACITY16;
|
Cdb[0] = EFI_SCSI_OP_READ_CAPACITY16;
|
||||||
Cdb[1] = 0x10;
|
Cdb[1] = 0x10;
|
||||||
if (!PMI) {
|
if (!Pmi) {
|
||||||
//
|
//
|
||||||
// Partial medium indicator,if PMI is FALSE, the Cdb.2 ~ Cdb.9 MUST BE ZERO.
|
// Partial medium indicator,if Pmi is FALSE, the Cdb.2 ~ Cdb.9 MUST BE ZERO.
|
||||||
//
|
//
|
||||||
ZeroMem ((Cdb + 2), 8);
|
ZeroMem ((Cdb + 2), 8);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue