MdeModulePkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
## @file
|
||||
# PeiCdExpress recovery module.
|
||||
#
|
||||
# This module reads data from CDROM device by all installed block IO ppi and
|
||||
# This module reads data from CDROM device by all installed block IO ppi and
|
||||
# finds whether there is Recovery data in the device. If it finds recovery
|
||||
# data, it will install Device Recovery Module PPI.
|
||||
#
|
||||
# Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions
|
||||
|
@@ -5,14 +5,14 @@
|
||||
// finds whether there is Recovery data in the device. If it finds recovery
|
||||
// data, it will install Device Recovery Module PPI.
|
||||
//
|
||||
// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2006 - 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 which accompanies this distribution. The
|
||||
// full text of the license may be found at
|
||||
// http://opensource.org/licenses/bsd-license.php
|
||||
//
|
||||
//
|
||||
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// CdExpressPei Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions
|
||||
@@ -14,8 +14,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"CD PEI Module for Recovery"
|
||||
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Source file for CD recovery PEIM
|
||||
|
||||
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions
|
||||
@@ -21,7 +21,7 @@ CHAR8 *mRecoveryFileName;
|
||||
UINTN mRecoveryFileNameSize;
|
||||
|
||||
/**
|
||||
Installs the Device Recovery Module PPI, Initialize BlockIo Ppi
|
||||
Installs the Device Recovery Module PPI, Initialize BlockIo Ppi
|
||||
installation notification
|
||||
|
||||
@param FileHandle The file handle of the image.
|
||||
@@ -118,8 +118,8 @@ CdExpressPeimEntry (
|
||||
}
|
||||
|
||||
/**
|
||||
BlockIo installation notification function.
|
||||
|
||||
BlockIo installation notification function.
|
||||
|
||||
This function finds out all the current Block IO PPIs in the system and add them
|
||||
into private data.
|
||||
|
||||
@@ -275,7 +275,7 @@ UpdateBlocksAndVolumes (
|
||||
if (EFI_ERROR (Status)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
PrivateData->CapsuleCount++;
|
||||
}
|
||||
|
||||
@@ -411,7 +411,7 @@ FindRecoveryCapsules (
|
||||
|
||||
@retval EFI_SUCCESS The recovery capsule is successfully found in the volume.
|
||||
@retval EFI_NOT_FOUND The recovery capsule is not found in the volume.
|
||||
@retval Others
|
||||
@retval Others
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -508,18 +508,18 @@ RetrieveCapsuleFileFromRoot (
|
||||
Returns the number of DXE capsules residing on the device.
|
||||
|
||||
This function searches for DXE capsules from the associated device and returns
|
||||
the number and maximum size in bytes of the capsules discovered. Entry 1 is
|
||||
assumed to be the highest load priority and entry N is assumed to be the lowest
|
||||
the number and maximum size in bytes of the capsules discovered. Entry 1 is
|
||||
assumed to be the highest load priority and entry N is assumed to be the lowest
|
||||
priority.
|
||||
|
||||
@param[in] PeiServices General-purpose services that are available
|
||||
@param[in] PeiServices General-purpose services that are available
|
||||
to every PEIM
|
||||
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
||||
instance.
|
||||
@param[out] NumberRecoveryCapsules Pointer to a caller-allocated UINTN. On
|
||||
output, *NumberRecoveryCapsules contains
|
||||
the number of recovery capsule images
|
||||
available for retrieval from this PEIM
|
||||
@param[out] NumberRecoveryCapsules Pointer to a caller-allocated UINTN. On
|
||||
output, *NumberRecoveryCapsules contains
|
||||
the number of recovery capsule images
|
||||
available for retrieval from this PEIM
|
||||
instance.
|
||||
|
||||
@retval EFI_SUCCESS One or more capsules were discovered.
|
||||
@@ -555,18 +555,18 @@ GetNumberRecoveryCapsules (
|
||||
This function gets the size and type of the capsule specified by CapsuleInstance.
|
||||
|
||||
@param[in] PeiServices General-purpose services that are available to every PEIM
|
||||
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
||||
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
||||
instance.
|
||||
@param[in] CapsuleInstance Specifies for which capsule instance to retrieve
|
||||
the information. This parameter must be between
|
||||
one and the value returned by GetNumberRecoveryCapsules()
|
||||
@param[in] CapsuleInstance Specifies for which capsule instance to retrieve
|
||||
the information. This parameter must be between
|
||||
one and the value returned by GetNumberRecoveryCapsules()
|
||||
in NumberRecoveryCapsules.
|
||||
@param[out] Size A pointer to a caller-allocated UINTN in which
|
||||
the size of the requested recovery module is
|
||||
@param[out] Size A pointer to a caller-allocated UINTN in which
|
||||
the size of the requested recovery module is
|
||||
returned.
|
||||
@param[out] CapsuleType A pointer to a caller-allocated EFI_GUID in which
|
||||
the type of the requested recovery capsule is
|
||||
returned. The semantic meaning of the value
|
||||
@param[out] CapsuleType A pointer to a caller-allocated EFI_GUID in which
|
||||
the type of the requested recovery capsule is
|
||||
returned. The semantic meaning of the value
|
||||
returned is defined by the implementation.
|
||||
|
||||
@retval EFI_SUCCESS One or more capsules were discovered.
|
||||
@@ -620,12 +620,12 @@ GetRecoveryCapsuleInfo (
|
||||
This function, by whatever mechanism, retrieves a DXE capsule from some device
|
||||
and loads it into memory. Note that the published interface is device neutral.
|
||||
|
||||
@param[in] PeiServices General-purpose services that are available
|
||||
@param[in] PeiServices General-purpose services that are available
|
||||
to every PEIM
|
||||
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
||||
instance.
|
||||
@param[in] CapsuleInstance Specifies which capsule instance to retrieve.
|
||||
@param[out] Buffer Specifies a caller-allocated buffer in which
|
||||
@param[out] Buffer Specifies a caller-allocated buffer in which
|
||||
the requested recovery capsule will be returned.
|
||||
|
||||
@retval EFI_SUCCESS The capsule was loaded correctly.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Header file for CD recovery PEIM
|
||||
|
||||
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions
|
||||
@@ -105,8 +105,8 @@ typedef struct {
|
||||
} PEI_CD_EXPRESS_DIR_FILE_RECORD;
|
||||
|
||||
/**
|
||||
BlockIo installation notification function.
|
||||
|
||||
BlockIo installation notification function.
|
||||
|
||||
This function finds out all the current Block IO PPIs in the system and add them
|
||||
into private data.
|
||||
|
||||
@@ -144,18 +144,18 @@ UpdateBlocksAndVolumes (
|
||||
Returns the number of DXE capsules residing on the device.
|
||||
|
||||
This function searches for DXE capsules from the associated device and returns
|
||||
the number and maximum size in bytes of the capsules discovered. Entry 1 is
|
||||
assumed to be the highest load priority and entry N is assumed to be the lowest
|
||||
the number and maximum size in bytes of the capsules discovered. Entry 1 is
|
||||
assumed to be the highest load priority and entry N is assumed to be the lowest
|
||||
priority.
|
||||
|
||||
@param[in] PeiServices General-purpose services that are available
|
||||
@param[in] PeiServices General-purpose services that are available
|
||||
to every PEIM
|
||||
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
||||
instance.
|
||||
@param[out] NumberRecoveryCapsules Pointer to a caller-allocated UINTN. On
|
||||
output, *NumberRecoveryCapsules contains
|
||||
the number of recovery capsule images
|
||||
available for retrieval from this PEIM
|
||||
@param[out] NumberRecoveryCapsules Pointer to a caller-allocated UINTN. On
|
||||
output, *NumberRecoveryCapsules contains
|
||||
the number of recovery capsule images
|
||||
available for retrieval from this PEIM
|
||||
instance.
|
||||
|
||||
@retval EFI_SUCCESS One or more capsules were discovered.
|
||||
@@ -177,18 +177,18 @@ GetNumberRecoveryCapsules (
|
||||
This function gets the size and type of the capsule specified by CapsuleInstance.
|
||||
|
||||
@param[in] PeiServices General-purpose services that are available to every PEIM
|
||||
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
||||
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
||||
instance.
|
||||
@param[in] CapsuleInstance Specifies for which capsule instance to retrieve
|
||||
the information. This parameter must be between
|
||||
one and the value returned by GetNumberRecoveryCapsules()
|
||||
@param[in] CapsuleInstance Specifies for which capsule instance to retrieve
|
||||
the information. This parameter must be between
|
||||
one and the value returned by GetNumberRecoveryCapsules()
|
||||
in NumberRecoveryCapsules.
|
||||
@param[out] Size A pointer to a caller-allocated UINTN in which
|
||||
the size of the requested recovery module is
|
||||
@param[out] Size A pointer to a caller-allocated UINTN in which
|
||||
the size of the requested recovery module is
|
||||
returned.
|
||||
@param[out] CapsuleType A pointer to a caller-allocated EFI_GUID in which
|
||||
the type of the requested recovery capsule is
|
||||
returned. The semantic meaning of the value
|
||||
@param[out] CapsuleType A pointer to a caller-allocated EFI_GUID in which
|
||||
the type of the requested recovery capsule is
|
||||
returned. The semantic meaning of the value
|
||||
returned is defined by the implementation.
|
||||
|
||||
@retval EFI_SUCCESS One or more capsules were discovered.
|
||||
@@ -212,12 +212,12 @@ GetRecoveryCapsuleInfo (
|
||||
This function, by whatever mechanism, retrieves a DXE capsule from some device
|
||||
and loads it into memory. Note that the published interface is device neutral.
|
||||
|
||||
@param[in] PeiServices General-purpose services that are available
|
||||
@param[in] PeiServices General-purpose services that are available
|
||||
to every PEIM
|
||||
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
||||
instance.
|
||||
@param[in] CapsuleInstance Specifies which capsule instance to retrieve.
|
||||
@param[out] Buffer Specifies a caller-allocated buffer in which
|
||||
@param[out] Buffer Specifies a caller-allocated buffer in which
|
||||
the requested recovery capsule will be returned.
|
||||
|
||||
@retval EFI_SUCCESS The capsule was loaded correctly.
|
||||
@@ -260,7 +260,7 @@ FindRecoveryCapsules (
|
||||
|
||||
@retval EFI_SUCCESS The recovery capsule is successfully found in the volume.
|
||||
@retval EFI_NOT_FOUND The recovery capsule is not found in the volume.
|
||||
@retval Others
|
||||
@retval Others
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
|
@@ -9,7 +9,7 @@
|
||||
Aligned - A read of N contiguous sectors.
|
||||
OverRun - The last byte is not on a sector boundary.
|
||||
|
||||
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 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
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -55,7 +55,7 @@ DISK_IO_PRIVATE_DATA gDiskIoPrivateDataTemplate = {
|
||||
};
|
||||
|
||||
/**
|
||||
Test to see if this driver supports ControllerHandle.
|
||||
Test to see if this driver supports ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test
|
||||
@@ -162,7 +162,7 @@ DiskIoDriverBindingStart (
|
||||
if (EFI_ERROR (Status)) {
|
||||
gDiskIoPrivateDataTemplate.BlockIo2 = NULL;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Initialize the Disk IO device instance.
|
||||
//
|
||||
@@ -171,15 +171,15 @@ DiskIoDriverBindingStart (
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
goto ErrorExit;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// The BlockSize and IoAlign of BlockIo and BlockIo2 should equal.
|
||||
//
|
||||
ASSERT ((Instance->BlockIo2 == NULL) ||
|
||||
((Instance->BlockIo->Media->IoAlign == Instance->BlockIo2->Media->IoAlign) &&
|
||||
((Instance->BlockIo->Media->IoAlign == Instance->BlockIo2->Media->IoAlign) &&
|
||||
(Instance->BlockIo->Media->BlockSize == Instance->BlockIo2->Media->BlockSize)
|
||||
));
|
||||
|
||||
|
||||
InitializeListHead (&Instance->TaskQueue);
|
||||
EfiInitializeLock (&Instance->TaskQueueLock, TPL_NOTIFY);
|
||||
Instance->SharedWorkingBuffer = AllocateAlignedPages (
|
||||
@@ -289,7 +289,7 @@ DiskIoDriverBindingStop (
|
||||
if (EFI_ERROR (Status)) {
|
||||
DiskIo2 = NULL;
|
||||
}
|
||||
|
||||
|
||||
Instance = DISK_IO_PRIVATE_DATA_FROM_DISK_IO (DiskIo);
|
||||
|
||||
if (DiskIo2 != NULL) {
|
||||
@@ -315,7 +315,7 @@ DiskIoDriverBindingStop (
|
||||
);
|
||||
}
|
||||
if (!EFI_ERROR (Status)) {
|
||||
|
||||
|
||||
do {
|
||||
EfiAcquireLock (&Instance->TaskQueueLock);
|
||||
AllTaskDone = IsListEmpty (&Instance->TaskQueue);
|
||||
@@ -343,7 +343,7 @@ DiskIoDriverBindingStop (
|
||||
);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
}
|
||||
|
||||
|
||||
FreePool (Instance);
|
||||
}
|
||||
|
||||
@@ -378,7 +378,7 @@ DiskIoDestroySubtask (
|
||||
if (!Subtask->Blocking) {
|
||||
if (Subtask->WorkingBuffer != NULL) {
|
||||
FreeAlignedPages (
|
||||
Subtask->WorkingBuffer,
|
||||
Subtask->WorkingBuffer,
|
||||
Subtask->Length < Instance->BlockIo->Media->BlockSize
|
||||
? EFI_SIZE_TO_PAGES (Instance->BlockIo->Media->BlockSize)
|
||||
: EFI_SIZE_TO_PAGES (Subtask->Length)
|
||||
@@ -420,7 +420,7 @@ DiskIo2OnReadWriteComplete (
|
||||
ASSERT (Instance->Signature == DISK_IO_PRIVATE_DATA_SIGNATURE);
|
||||
ASSERT (Task->Signature == DISK_IO2_TASK_SIGNATURE);
|
||||
|
||||
if ((Subtask->WorkingBuffer != NULL) && !EFI_ERROR (TransactionStatus) &&
|
||||
if ((Subtask->WorkingBuffer != NULL) && !EFI_ERROR (TransactionStatus) &&
|
||||
(Task->Token != NULL) && !Subtask->Write
|
||||
) {
|
||||
CopyMem (Subtask->Buffer, Subtask->WorkingBuffer + Subtask->Offset, Subtask->Length);
|
||||
@@ -498,7 +498,7 @@ DiskIoCreateSubtask (
|
||||
}
|
||||
}
|
||||
DEBUG ((
|
||||
EFI_D_BLKIO,
|
||||
EFI_D_BLKIO,
|
||||
" %c:Lba/Offset/Length/WorkingBuffer/Buffer = %016lx/%08x/%08x/%08x/%08x\n",
|
||||
Write ? 'W': 'R', Lba, Offset, Length, WorkingBuffer, Buffer
|
||||
));
|
||||
@@ -553,7 +553,7 @@ DiskIoCreateSubtaskList (
|
||||
if (IoAlign == 0) {
|
||||
IoAlign = 1;
|
||||
}
|
||||
|
||||
|
||||
Lba = DivU64x32Remainder (Offset, BlockSize, &UnderRun);
|
||||
BufferPtr = (UINT8 *) Buffer;
|
||||
|
||||
@@ -596,7 +596,7 @@ DiskIoCreateSubtaskList (
|
||||
goto Done;
|
||||
}
|
||||
InsertTailList (Subtasks, &Subtask->Link);
|
||||
|
||||
|
||||
BufferPtr += Length;
|
||||
Offset += Length;
|
||||
BufferSize -= Length;
|
||||
@@ -633,7 +633,7 @@ DiskIoCreateSubtaskList (
|
||||
}
|
||||
InsertTailList (Subtasks, &Subtask->Link);
|
||||
}
|
||||
|
||||
|
||||
if (OverRunLba > Lba) {
|
||||
//
|
||||
// If the DiskIo maps directly to a BlockIo device do the read.
|
||||
@@ -726,7 +726,7 @@ DiskIo2Cancel (
|
||||
DISK_IO_PRIVATE_DATA *Instance;
|
||||
DISK_IO2_TASK *Task;
|
||||
LIST_ENTRY *Link;
|
||||
|
||||
|
||||
Instance = DISK_IO_PRIVATE_DATA_FROM_DISK_IO2 (This);
|
||||
|
||||
EfiAcquireLock (&Instance->TaskQueueLock);
|
||||
@@ -799,7 +799,7 @@ DiskIo2RemoveCompletedTask (
|
||||
If this field is NULL, synchronous/blocking IO is performed.
|
||||
@param BufferSize The size in bytes of Buffer. The number of bytes to read from the device.
|
||||
@param Buffer A pointer to the destination buffer for the data.
|
||||
The caller is responsible either having implicit or explicit ownership of the buffer.
|
||||
The caller is responsible either having implicit or explicit ownership of the buffer.
|
||||
**/
|
||||
EFI_STATUS
|
||||
DiskIo2ReadWriteDisk (
|
||||
@@ -948,7 +948,7 @@ DiskIo2ReadWriteDisk (
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
gBS->RaiseTPL (TPL_NOTIFY);
|
||||
|
||||
//
|
||||
@@ -1235,9 +1235,9 @@ DiskIoWriteDisk (
|
||||
/**
|
||||
The user Entry Point for module DiskIo. The user code starts with this function.
|
||||
|
||||
@param[in] ImageHandle The firmware allocated handle for the EFI image.
|
||||
@param[in] ImageHandle The firmware allocated handle for the EFI image.
|
||||
@param[in] SystemTable A pointer to the EFI System Table.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS The entry point is executed successfully.
|
||||
@retval other Some error occurs when executing this entry point.
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Master header file for DiskIo driver. It includes the module private defininitions.
|
||||
|
||||
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 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
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -100,7 +100,7 @@ extern EFI_COMPONENT_NAME2_PROTOCOL gDiskIoComponentName2;
|
||||
// Driver model protocol interface
|
||||
//
|
||||
/**
|
||||
Test to see if this driver supports ControllerHandle.
|
||||
Test to see if this driver supports ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test
|
||||
|
@@ -7,16 +7,16 @@
|
||||
# to any Block I/O interface that appears in the system that does not
|
||||
# already have a Disk I/O protocol. File systems and other disk access
|
||||
# code utilize the Disk I/O protocol.
|
||||
#
|
||||
# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# Copyright (c) 2006 - 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
|
||||
# which accompanies this distribution. The full text of the license may be found at
|
||||
# http://opensource.org/licenses/bsd-license.php
|
||||
#
|
||||
#
|
||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
|
@@ -8,13 +8,13 @@
|
||||
// already have a Disk I/O protocol. File systems and other disk access
|
||||
// code utilize the Disk I/O protocol.
|
||||
//
|
||||
// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2006 - 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
|
||||
// which accompanies this distribution. The full text of the license may be found at
|
||||
// http://opensource.org/licenses/bsd-license.php
|
||||
//
|
||||
//
|
||||
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// DiskIoDxe Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 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
|
||||
@@ -13,8 +13,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"Disk I/O DXE Driver"
|
||||
|
||||
|
||||
|
@@ -14,7 +14,7 @@
|
||||
partition content and validate the GPT table and GPT entry.
|
||||
|
||||
Copyright (c) 2018 Qualcomm Datacenter Technologies, Inc.
|
||||
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 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
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -101,7 +101,7 @@ PartitionRestoreGptTable (
|
||||
|
||||
@param[in] PartHeader Partition table header structure
|
||||
@param[in] PartEntry The partition entry array
|
||||
@param[out] PEntryStatus the partition entry status array
|
||||
@param[out] PEntryStatus the partition entry status array
|
||||
recording the status of each partition
|
||||
|
||||
**/
|
||||
@@ -698,7 +698,7 @@ Done:
|
||||
|
||||
@param[in] PartHeader Partition table header structure
|
||||
@param[in] PartEntry The partition entry array
|
||||
@param[out] PEntryStatus the partition entry status array
|
||||
@param[out] PEntryStatus the partition entry status array
|
||||
recording the status of each partition
|
||||
|
||||
**/
|
||||
@@ -736,7 +736,7 @@ PartitionCheckGptEntry (
|
||||
|
||||
if ((Entry->Attributes & BIT1) != 0) {
|
||||
//
|
||||
// If Bit 1 is set, this indicate that this is an OS specific GUID partition.
|
||||
// If Bit 1 is set, this indicate that this is an OS specific GUID partition.
|
||||
//
|
||||
PEntryStatus[Index1].OsSpecific = TRUE;
|
||||
}
|
||||
|
@@ -3,17 +3,17 @@
|
||||
|
||||
MBR - Master Boot Record is in the first sector of a partitioned hard disk.
|
||||
The MBR supports four partitions per disk. The MBR also contains legacy
|
||||
code that is not run on an EFI system. The legacy code reads the
|
||||
first sector of the active partition into memory and
|
||||
code that is not run on an EFI system. The legacy code reads the
|
||||
first sector of the active partition into memory and
|
||||
|
||||
BPB - BIOS Parameter Block is in the first sector of a FAT file system.
|
||||
The BPB contains information about the FAT file system. The BPB is
|
||||
BPB - BIOS Parameter Block is in the first sector of a FAT file system.
|
||||
The BPB contains information about the FAT file system. The BPB is
|
||||
always on the first sector of a media. The first sector also contains
|
||||
the legacy boot strap code.
|
||||
|
||||
Copyright (c) 2018 Qualcomm Datacenter Technologies, Inc.
|
||||
Copyright (c) 2014, Hewlett-Packard Development Company, L.P.<BR>
|
||||
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 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
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -31,7 +31,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
@param Mbr Parent Handle.
|
||||
@param LastLba Last Lba address on the device.
|
||||
|
||||
|
||||
@retval TRUE Mbr is a Valid MBR.
|
||||
@retval FALSE Mbr is not a Valid MBR.
|
||||
|
||||
@@ -76,7 +76,7 @@ PartitionValidMbr (
|
||||
// return FALSE since no block devices on a system are implemented
|
||||
// with INT 13h
|
||||
//
|
||||
|
||||
|
||||
DEBUG((EFI_D_INFO, "PartitionValidMbr: Bad MBR partition size EndingLBA(%1x) > LastLBA(%1x)\n", EndingLBA, LastLba));
|
||||
|
||||
return FALSE;
|
||||
@@ -113,7 +113,7 @@ PartitionValidMbr (
|
||||
@param[in] BlockIo Parent BlockIo interface.
|
||||
@param[in] BlockIo2 Parent BlockIo2 interface.
|
||||
@param[in] DevicePath Parent Device Path.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS A child handle was added.
|
||||
@retval EFI_MEDIA_CHANGED Media change was detected.
|
||||
@retval Others MBR partition was not found.
|
||||
@@ -215,9 +215,9 @@ PartitionInstallMbrChildHandles (
|
||||
if (Mbr->Partition[Index].OSIndicator == PMBR_GPT_PARTITION) {
|
||||
//
|
||||
// This is the guard MBR for the GPT. If you ever see a GPT disk with zero partitions you can get here.
|
||||
// We can not produce an MBR BlockIo for this device as the MBR spans the GPT headers. So formating
|
||||
// We can not produce an MBR BlockIo for this device as the MBR spans the GPT headers. So formating
|
||||
// this BlockIo would corrupt the GPT structures and require a recovery that would corrupt the format
|
||||
// that corrupted the GPT partition.
|
||||
// that corrupted the GPT partition.
|
||||
//
|
||||
continue;
|
||||
}
|
||||
|
@@ -27,8 +27,8 @@ EFI_DRIVER_BINDING_PROTOCOL gPartitionDriverBinding = {
|
||||
PartitionDriverBindingStart,
|
||||
PartitionDriverBindingStop,
|
||||
//
|
||||
// Grub4Dos copies the BPB of the first partition to the MBR. If the
|
||||
// DriverBindingStart() of the Fat driver gets run before that of Partition
|
||||
// Grub4Dos copies the BPB of the first partition to the MBR. If the
|
||||
// DriverBindingStart() of the Fat driver gets run before that of Partition
|
||||
// driver only the first partition can be recognized.
|
||||
// Let the driver binding version of Partition driver be higher than that of
|
||||
// Fat driver to make sure the DriverBindingStart() of the Partition driver
|
||||
@@ -40,7 +40,7 @@ EFI_DRIVER_BINDING_PROTOCOL gPartitionDriverBinding = {
|
||||
};
|
||||
|
||||
//
|
||||
// Prioritized function list to detect partition table.
|
||||
// Prioritized function list to detect partition table.
|
||||
//
|
||||
PARTITION_DETECT_ROUTINE mPartitionDetectRoutineTable[] = {
|
||||
PartitionInstallGptChildHandles,
|
||||
@@ -82,7 +82,7 @@ PartitionDriverBindingSupported (
|
||||
//
|
||||
if (RemainingDevicePath != NULL) {
|
||||
//
|
||||
// Check if RemainingDevicePath is the End of Device Path Node,
|
||||
// Check if RemainingDevicePath is the End of Device Path Node,
|
||||
// if yes, go on checking other conditions
|
||||
//
|
||||
if (!IsDevicePathEnd (RemainingDevicePath)) {
|
||||
@@ -205,13 +205,13 @@ PartitionDriverBindingStart (
|
||||
EFI_TPL OldTpl;
|
||||
|
||||
BlockIo2 = NULL;
|
||||
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||
//
|
||||
// Check RemainingDevicePath validation
|
||||
//
|
||||
if (RemainingDevicePath != NULL) {
|
||||
//
|
||||
// Check if RemainingDevicePath is the End of Device Path Node,
|
||||
// Check if RemainingDevicePath is the End of Device Path Node,
|
||||
// if yes, return EFI_SUCCESS
|
||||
//
|
||||
if (IsDevicePathEnd (RemainingDevicePath)) {
|
||||
@@ -333,12 +333,12 @@ PartitionDriverBindingStart (
|
||||
// driver. So don't try to close them. Otherwise, we will break the dependency
|
||||
// between the controller and the driver set up before.
|
||||
//
|
||||
// In the case that when the media changes on a device it will Reinstall the
|
||||
// In the case that when the media changes on a device it will Reinstall the
|
||||
// BlockIo interaface. This will cause a call to our Stop(), and a subsequent
|
||||
// reentrant call to our Start() successfully. We should leave the device open
|
||||
// when this happen. The "media change" case includes either the status is
|
||||
// EFI_MEDIA_CHANGED or it is a "media" to "no media" change.
|
||||
//
|
||||
// EFI_MEDIA_CHANGED or it is a "media" to "no media" change.
|
||||
//
|
||||
if (EFI_ERROR (Status) &&
|
||||
!EFI_ERROR (OpenStatus) &&
|
||||
Status != EFI_MEDIA_CHANGED &&
|
||||
@@ -351,7 +351,7 @@ PartitionDriverBindingStart (
|
||||
);
|
||||
//
|
||||
// Close Parent DiskIo2 if has.
|
||||
//
|
||||
//
|
||||
gBS->CloseProtocol (
|
||||
ControllerHandle,
|
||||
&gEfiDiskIo2ProtocolGuid,
|
||||
@@ -430,7 +430,7 @@ PartitionDriverBindingStop (
|
||||
);
|
||||
//
|
||||
// Close Parent BlockIO2 if has.
|
||||
//
|
||||
//
|
||||
gBS->CloseProtocol (
|
||||
ControllerHandle,
|
||||
&gEfiDiskIo2ProtocolGuid,
|
||||
@@ -467,7 +467,7 @@ PartitionDriverBindingStop (
|
||||
This->DriverBindingHandle,
|
||||
ControllerHandle,
|
||||
EFI_OPEN_PROTOCOL_GET_PROTOCOL
|
||||
);
|
||||
);
|
||||
|
||||
|
||||
Private = PARTITION_DEVICE_FROM_BLOCK_IO_THIS (BlockIo);
|
||||
@@ -893,7 +893,7 @@ PartitionCreateAccessTask (
|
||||
|
||||
/**
|
||||
Read BufferSize bytes from Lba into Buffer.
|
||||
|
||||
|
||||
This function reads the requested number of blocks from the device. All the
|
||||
blocks are read, or an error is returned.
|
||||
If EFI_DEVICE_ERROR, EFI_NO_MEDIA,_or EFI_MEDIA_CHANGED is returned and
|
||||
@@ -901,13 +901,13 @@ PartitionCreateAccessTask (
|
||||
not be signaled.
|
||||
|
||||
@param[in] This Indicates a pointer to the calling context.
|
||||
@param[in] MediaId Id of the media, changes every time the media is
|
||||
@param[in] MediaId Id of the media, changes every time the media is
|
||||
replaced.
|
||||
@param[in] Lba The starting Logical Block Address to read from.
|
||||
@param[in, out] Token A pointer to the token associated with the transaction.
|
||||
@param[in] BufferSize Size of Buffer, must be a multiple of device block size.
|
||||
@param[out] Buffer A pointer to the destination buffer for the data. The
|
||||
caller is responsible for either having implicit or
|
||||
@param[in, out] Token A pointer to the token associated with the transaction.
|
||||
@param[in] BufferSize Size of Buffer, must be a multiple of device block size.
|
||||
@param[out] Buffer A pointer to the destination buffer for the data. The
|
||||
caller is responsible for either having implicit or
|
||||
explicit ownership of the buffer.
|
||||
|
||||
@retval EFI_SUCCESS The read request was queued if Token->Event is
|
||||
@@ -919,7 +919,7 @@ PartitionCreateAccessTask (
|
||||
@retval EFI_MEDIA_CHANGED The MediaId is not for the current media.
|
||||
@retval EFI_BAD_BUFFER_SIZE The BufferSize parameter is not a multiple of the
|
||||
intrinsic block size of the device.
|
||||
@retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,
|
||||
@retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,
|
||||
or the buffer is not on proper alignment.
|
||||
@retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack
|
||||
of resources.
|
||||
@@ -994,7 +994,7 @@ PartitionReadBlocksEx (
|
||||
@retval EFI_MEDIA_CHNAGED The MediaId does not matched the current device.
|
||||
@retval EFI_DEVICE_ERROR The device reported an error while performing the write.
|
||||
@retval EFI_BAD_BUFFER_SIZE The Buffer was not a multiple of the block size of the device.
|
||||
@retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,
|
||||
@retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,
|
||||
or the buffer is not on proper alignment.
|
||||
@retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack
|
||||
of resources.
|
||||
@@ -1026,7 +1026,7 @@ PartitionWriteBlocksEx (
|
||||
if (Offset + BufferSize > Private->End) {
|
||||
return ProbeMediaStatusEx (Private->DiskIo2, MediaId, EFI_INVALID_PARAMETER);
|
||||
}
|
||||
|
||||
|
||||
if ((Token != NULL) && (Token->Event != NULL)) {
|
||||
Task = PartitionCreateAccessTask (Token);
|
||||
if (Task == NULL) {
|
||||
@@ -1046,10 +1046,10 @@ PartitionWriteBlocksEx (
|
||||
|
||||
/**
|
||||
Flush the Block Device.
|
||||
|
||||
|
||||
If EFI_DEVICE_ERROR, EFI_NO_MEDIA,_EFI_WRITE_PROTECTED or EFI_MEDIA_CHANGED
|
||||
is returned and non-blocking I/O is being used, the Event associated with
|
||||
this request will not be signaled.
|
||||
this request will not be signaled.
|
||||
|
||||
@param[in] This Indicates a pointer to the calling context.
|
||||
@param[in, out] Token A pointer to the token associated with the transaction
|
||||
@@ -1160,7 +1160,7 @@ PartitionInstallChildHandle (
|
||||
// Set the BlockIO into Private Data.
|
||||
//
|
||||
Private->BlockIo.Revision = ParentBlockIo->Revision;
|
||||
|
||||
|
||||
Private->BlockIo.Media = &Private->Media;
|
||||
CopyMem (Private->BlockIo.Media, ParentBlockIo->Media, sizeof (EFI_BLOCK_IO_MEDIA));
|
||||
|
||||
@@ -1180,7 +1180,7 @@ PartitionInstallChildHandle (
|
||||
Private->BlockIo2.Reset = PartitionResetEx;
|
||||
Private->BlockIo2.ReadBlocksEx = PartitionReadBlocksEx;
|
||||
Private->BlockIo2.WriteBlocksEx = PartitionWriteBlocksEx;
|
||||
Private->BlockIo2.FlushBlocksEx = PartitionFlushBlocksEx;
|
||||
Private->BlockIo2.FlushBlocksEx = PartitionFlushBlocksEx;
|
||||
}
|
||||
|
||||
Private->Media.IoAlign = 0;
|
||||
@@ -1234,7 +1234,7 @@ PartitionInstallChildHandle (
|
||||
}
|
||||
|
||||
//
|
||||
// Create the new handle.
|
||||
// Create the new handle.
|
||||
//
|
||||
Private->Handle = NULL;
|
||||
if (Private->DiskIo2 != NULL) {
|
||||
@@ -1252,7 +1252,7 @@ PartitionInstallChildHandle (
|
||||
NULL,
|
||||
NULL
|
||||
);
|
||||
} else {
|
||||
} else {
|
||||
Status = gBS->InstallMultipleProtocolInterfaces (
|
||||
&Private->Handle,
|
||||
&gEfiDevicePathProtocolGuid,
|
||||
@@ -1291,9 +1291,9 @@ PartitionInstallChildHandle (
|
||||
/**
|
||||
The user Entry Point for module Partition. The user code starts with this function.
|
||||
|
||||
@param[in] ImageHandle The firmware allocated handle for the EFI image.
|
||||
@param[in] ImageHandle The firmware allocated handle for the EFI image.
|
||||
@param[in] SystemTable A pointer to the EFI System Table.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS The entry point is executed successfully.
|
||||
@retval other Some error occurs when executing this entry point.
|
||||
|
||||
|
@@ -1,11 +1,11 @@
|
||||
/** @file
|
||||
Partition driver that produces logical BlockIo devices from a physical
|
||||
Partition driver that produces logical BlockIo devices from a physical
|
||||
BlockIo device. The logical BlockIo devices are based on the format
|
||||
of the raw block devices media. Currently "El Torito CD-ROM", UDF, Legacy
|
||||
MBR, and GPT partition schemes are supported.
|
||||
|
||||
Copyright (c) 2018 Qualcomm Datacenter Technologies, Inc.
|
||||
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 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
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -16,8 +16,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _PARTITION_H_
|
||||
#define _PARTITION_H_
|
||||
#ifndef _PARTITION_H_
|
||||
#define _PARTITION_H_
|
||||
|
||||
#include <Uefi.h>
|
||||
#include <Protocol/BlockIo.h>
|
||||
@@ -431,7 +431,7 @@ PartitionInstallElToritoChildHandles (
|
||||
@param[in] BlockIo Parent BlockIo interface.
|
||||
@param[in] BlockIo2 Parent BlockIo2 interface.
|
||||
@param[in] DevicePath Parent Device Path.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS A child handle was added.
|
||||
@retval EFI_MEDIA_CHANGED Media change was detected.
|
||||
@retval Others MBR partition was not found.
|
||||
|
@@ -11,15 +11,15 @@
|
||||
# This external input must be validated carefully to avoid security issue like
|
||||
# buffer overflow, integer overflow.
|
||||
#
|
||||
# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2006 - 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
|
||||
# which accompanies this distribution. The full text of the license may be found at
|
||||
# http://opensource.org/licenses/bsd-license.php
|
||||
#
|
||||
#
|
||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
|
@@ -5,19 +5,19 @@
|
||||
// the bytes from Start to End of the Parent Block I/O device.
|
||||
// The partition of physical BlockIo device supported is one of legacy MBR, GPT,
|
||||
// and "El Torito" partitions.
|
||||
//
|
||||
//
|
||||
// Caution: This module requires additional review when modified.
|
||||
// This driver will have external input - disk partition.
|
||||
// This external input must be validated carefully to avoid security issue like
|
||||
// buffer overflow, integer overflow.
|
||||
//
|
||||
// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2006 - 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
|
||||
// which accompanies this distribution. The full text of the license may be found at
|
||||
// http://opensource.org/licenses/bsd-license.php
|
||||
//
|
||||
//
|
||||
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// PartitionDxe Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 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
|
||||
@@ -13,8 +13,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"Partition DXE Driver"
|
||||
|
||||
|
||||
|
@@ -1,21 +1,21 @@
|
||||
## @file
|
||||
# English module that provides Unicode Collation supports.
|
||||
#
|
||||
#
|
||||
# This driver installs Unicode ISO 639-2 Collation and
|
||||
# RFC 4646 Unicode Collation 2 protocols based on feature flags
|
||||
# PcdUnicodeCollationSupport & PcdUnicodeCollation2Support respectively.
|
||||
# It allows code running in the boot services environment to perform lexical
|
||||
# comparison functions on Unicode strings for English languages.
|
||||
#
|
||||
# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# Copyright (c) 2006 - 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
|
||||
# which accompanies this distribution. The full text of the license may be found at
|
||||
# http://opensource.org/licenses/bsd-license.php
|
||||
#
|
||||
#
|
||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
|
@@ -7,13 +7,13 @@
|
||||
// It allows code running in the boot services environment to perform lexical
|
||||
// comparison functions on Unicode strings for English languages.
|
||||
//
|
||||
// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2006 - 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
|
||||
// which accompanies this distribution. The full text of the license may be found at
|
||||
// http://opensource.org/licenses/bsd-license.php
|
||||
//
|
||||
//
|
||||
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// EnglishDxe Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 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
|
||||
@@ -13,8 +13,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"English Language Support"
|
||||
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Driver to implement English version of Unicode Collation Protocol.
|
||||
|
||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 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
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -81,13 +81,13 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_COLLATION_PROTOCOL Unicode2Eng = {
|
||||
|
||||
/**
|
||||
The user Entry Point for English module.
|
||||
|
||||
This function initializes unicode character mapping and then installs Unicode
|
||||
Collation & Unicode Collation 2 Protocols based on the feature flags.
|
||||
|
||||
@param ImageHandle The firmware allocated handle for the EFI image.
|
||||
This function initializes unicode character mapping and then installs Unicode
|
||||
Collation & Unicode Collation 2 Protocols based on the feature flags.
|
||||
|
||||
@param ImageHandle The firmware allocated handle for the EFI image.
|
||||
@param SystemTable A pointer to the EFI System Table.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS The entry point is executed successfully.
|
||||
@retval other Some error occurs when executing this entry point.
|
||||
|
||||
@@ -204,7 +204,7 @@ EngStriColl (
|
||||
|
||||
|
||||
/**
|
||||
Converts all the characters in a Null-terminated string to
|
||||
Converts all the characters in a Null-terminated string to
|
||||
lower case characters.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@@ -418,8 +418,8 @@ EngFatToStr (
|
||||
|
||||
|
||||
/**
|
||||
Converts a Null-terminated string to legal characters in a FAT
|
||||
filename using an OEM character set.
|
||||
Converts a Null-terminated string to legal characters in a FAT
|
||||
filename using an OEM character set.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param String A pointer to a Null-terminated string. The string must
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Head file for Unicode Collation Protocol (English)
|
||||
|
||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 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
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -90,7 +90,7 @@ EngMetaiMatch (
|
||||
);
|
||||
|
||||
/**
|
||||
Converts all the characters in a Null-terminated string to
|
||||
Converts all the characters in a Null-terminated string to
|
||||
lower case characters.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@@ -140,8 +140,8 @@ EngFatToStr (
|
||||
);
|
||||
|
||||
/**
|
||||
Converts a Null-terminated string to legal characters in a FAT
|
||||
filename using an OEM character set.
|
||||
Converts a Null-terminated string to legal characters in a FAT
|
||||
filename using an OEM character set.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param String A pointer to a Null-terminated string. The string must
|
||||
@@ -165,13 +165,13 @@ EngStrToFat (
|
||||
|
||||
/**
|
||||
The user Entry Point for English module.
|
||||
|
||||
This function initializes unicode character mapping and then installs Unicode
|
||||
Collation & Unicode Collation 2 Protocols based on the feature flags.
|
||||
|
||||
@param ImageHandle The firmware allocated handle for the EFI image.
|
||||
This function initializes unicode character mapping and then installs Unicode
|
||||
Collation & Unicode Collation 2 Protocols based on the feature flags.
|
||||
|
||||
@param ImageHandle The firmware allocated handle for the EFI image.
|
||||
@param SystemTable A pointer to the EFI System Table.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS The entry point is executed successfully.
|
||||
@retval other Some error occurs when executing this entry point.
|
||||
|
||||
|
Reference in New Issue
Block a user