diff options
Diffstat (limited to 'MdeModulePkg/Universal/PlatformDriOverrideDxe')
7 files changed, 72 insertions, 72 deletions
diff --git a/MdeModulePkg/Universal/PlatformDriOverrideDxe/InternalPlatDriOverrideDxe.h b/MdeModulePkg/Universal/PlatformDriOverrideDxe/InternalPlatDriOverrideDxe.h index 75af763522..a9354c6cf4 100644 --- a/MdeModulePkg/Universal/PlatformDriOverrideDxe/InternalPlatDriOverrideDxe.h +++ b/MdeModulePkg/Universal/PlatformDriOverrideDxe/InternalPlatDriOverrideDxe.h @@ -2,7 +2,7 @@ Ihe internal heder file includes the required Protocol/Guid/Library
and the shared function APIs.
-Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>
+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
which accompanies this distribution. The full text of the license may be found at
@@ -146,8 +146,8 @@ GetDriverFromMapping ( @retval EFI_INVALID_PARAMETER ControllerDevicePath or MappingDataBase is NULL.
@retval EFI_NOT_FOUND ControllerDevicePath is not found in MappingDataBase or
- DriverImageDevicePath is not found in the found DriverImage Info list.
- @retval EFI_SUCCESS The controller's total override driver number and
+ DriverImageDevicePath is not found in the found DriverImage Info list.
+ @retval EFI_SUCCESS The controller's total override driver number and
input DriverImage's order number is correctly return.
**/
EFI_STATUS
@@ -169,14 +169,14 @@ CheckMapping ( override driver image item
@param DriverImageDevicePath The driver image device path need to be insert
@param MappingDataBase Mapping database list entry pointer
- @param DriverImageNO The inserted order number. If this number is taken,
+ @param DriverImageNO The inserted order number. If this number is taken,
the larger available number will be used.
@retval EFI_INVALID_PARAMETER ControllerDevicePath is NULL, or DriverImageDevicePath is NULL
or MappingDataBase is NULL
- @retval EFI_ALREADY_STARTED The input Controller to input DriverImage has been
+ @retval EFI_ALREADY_STARTED The input Controller to input DriverImage has been
recorded into the mapping database.
- @retval EFI_SUCCESS The Controller and DriverImage are inserted into
+ @retval EFI_SUCCESS The Controller and DriverImage are inserted into
the mapping database successfully.
**/
@@ -193,7 +193,7 @@ InsertDriverImage ( /**
Delete a controller's override driver from the mapping database.
- @param ControllerDevicePath The controller device path will be deleted
+ @param ControllerDevicePath The controller device path will be deleted
when all drivers images on it are removed.
@param DriverImageDevicePath The driver image device path will be delete.
If NULL, all driver image will be delete.
@@ -201,7 +201,7 @@ InsertDriverImage ( @retval EFI_INVALID_PARAMETER ControllerDevicePath is NULL, or MappingDataBase is NULL
@retval EFI_NOT_FOUND ControllerDevicePath is not found in MappingDataBase or
- DriverImageDevicePath is not found in the found DriverImage Info list.
+ DriverImageDevicePath is not found in the found DriverImage Info list.
@retval EFI_SUCCESS Delete the specified driver successfully.
**/
diff --git a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.c b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.c index 76c240b73d..b2ddf1020b 100644 --- a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.c +++ b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.c @@ -1,6 +1,6 @@ /** @file
This file also installs UEFI PLATFORM_DRIVER_OVERRIDE_PROTOCOL.
-
+
The main code offers a UI interface in device manager to let user configure
platform override protocol to override the default algorithm for matching
drivers to controllers.
@@ -13,7 +13,7 @@ 4. It save all the mapping info in NV variables which will be consumed
by platform override protocol driver to publish the platform override protocol.
-Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>
+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
which accompanies this distribution. The full text of the license may be found at
@@ -96,7 +96,7 @@ HII_VENDOR_DEVICE_PATH mHiiVendorDevicePath = { {
END_DEVICE_PATH_TYPE,
END_ENTIRE_DEVICE_PATH_SUBTYPE,
- {
+ {
(UINT8) (END_DEVICE_PATH_LENGTH),
(UINT8) ((END_DEVICE_PATH_LENGTH) >> 8)
}
@@ -107,7 +107,7 @@ HII_VENDOR_DEVICE_PATH mHiiVendorDevicePath = { Converting a given device to an unicode string.
@param DevPath Given device path instance
-
+
@return Converted string from given device path.
@retval L"?" Converting failed.
**/
@@ -131,7 +131,7 @@ DevicePathToStr ( }
/**
- Worker function to get the driver name by ComponentName or ComponentName2 protocol
+ Worker function to get the driver name by ComponentName or ComponentName2 protocol
according to the driver binding handle.
@param DriverBindingHandle The Handle of DriverBinding.
@@ -197,7 +197,7 @@ GetComponentNameWorker ( /**
- Get the driver name by ComponentName or ComponentName2 protocol
+ Get the driver name by ComponentName or ComponentName2 protocol
according to the driver binding handle
@param DriverBindingHandle The Handle of DriverBinding.
@@ -219,7 +219,7 @@ GetComponentName ( DriverName = GetComponentNameWorker (DriverBindingHandle, &gEfiComponentName2ProtocolGuid, L"PlatformLang");
if (DriverName == NULL) {
//
- // If we can not get driver name from Component Name 2 protocol, we can try ISO 639-2 Component Name protocol.
+ // If we can not get driver name from Component Name 2 protocol, we can try ISO 639-2 Component Name protocol.
//
DriverName = GetComponentNameWorker (DriverBindingHandle, &gEfiComponentNameProtocolGuid, L"Lang");
}
@@ -266,7 +266,7 @@ GetImageName ( // Make sure device path node is aligned when accessing it's FV Name Guid field.
//
AlignedDevPathNode = AllocateCopyPool (DevicePathNodeLength(DevPathNode), DevPathNode);
-
+
//
// Find the Fv File path
//
@@ -298,9 +298,9 @@ GetImageName ( Buffer = NULL;
}
}
-
+
FreePool (AlignedDevPathNode);
-
+
//
// Next device path node
//
@@ -344,13 +344,13 @@ UpdateDeviceSelectPage ( VOID *StartOpCodeHandle;
VOID *EndOpCodeHandle;
EFI_IFR_GUID_LABEL *StartLabel;
- EFI_IFR_GUID_LABEL *EndLabel;
+ EFI_IFR_GUID_LABEL *EndLabel;
//
// Set current page form ID.
//
- mCurrentPage = FORM_ID_DEVICE;
-
+ mCurrentPage = FORM_ID_DEVICE;
+
//
// Initial the mapping database in memory
//
@@ -507,7 +507,7 @@ UpdateDeviceSelectPage ( // Save the device path string toke for next access use
//
mControllerToken[Index] = NewStringToken;
-
+
HiiCreateGotoOpCode (
StartOpCodeHandle,
FORM_ID_DRIVER,
@@ -575,7 +575,7 @@ GetDriverBindingHandleFromImageHandle ( if (EFI_ERROR (Status) || (DriverBindingHandleCount == 0)) {
return NULL;
}
-
+
//
// Get the first Driver Binding handle which has the specific image handle.
//
@@ -819,7 +819,7 @@ UpdateBindingDriverSelectPage ( //
NewStrSize = StrSize (DriverName);
NewString = AllocateZeroPool (NewStrSize);
- ASSERT (NewString != NULL);
+ ASSERT (NewString != NULL);
if (EFI_ERROR (CheckMapping (mControllerDevicePathProtocol[mSelectedCtrIndex], LoadedImageDevicePath, &mMappingDataBase, NULL, NULL))) {
mDriSelection[Index] = FALSE;
} else {
@@ -842,7 +842,7 @@ UpdateBindingDriverSelectPage ( NewStrSize = StrSize (DriverName);
NewString = AllocateZeroPool (NewStrSize);
- ASSERT (NewString != NULL);
+ ASSERT (NewString != NULL);
StrCatS (NewString, NewStrSize/sizeof(CHAR16), DriverName);
NewStringHelpToken = HiiSetString (Private->RegisteredHandle, DriverImageFilePathToken[Index], NewString, NULL);
ASSERT (NewStringHelpToken != 0);
@@ -1058,7 +1058,7 @@ UpdatePrioritySelectPage ( FakeNvData->DriOrder[Index] = (UINT8) OrderNO[MinNO];
TempNO[MinNO] = MAX_CHOICE_NUM + 1;
}
-
+
//
// Create Order List OpCode
//
@@ -1289,7 +1289,7 @@ PlatOverMngrRouteConfig ( if (!HiiIsConfigHdrMatch (Configuration, &gPlatformOverridesManagerGuid, mVariableName)) {
return EFI_NOT_FOUND;
}
-
+
*Progress = Configuration + StrLen (Configuration);
Private = EFI_CALLBACK_INFO_FROM_THIS (This);
FakeNvData = &Private->FakeNvData;
@@ -1365,7 +1365,7 @@ PlatOverMngrCallback ( if (Value == NULL) {
return EFI_INVALID_PARAMETER;
}
-
+
if (KeyValue == KEY_VALUE_DRIVER_GOTO_PREVIOUS) {
UpdateDeviceSelectPage (Private, KeyValue, FakeNvData);
//
@@ -1426,7 +1426,7 @@ PlatOverMngrCallback ( ASSERT (FALSE);
}
break;
-
+
case KEY_VALUE_ORDER_SAVE_AND_EXIT:
Status = CommitChanges (Private, KeyValue, FakeNvData);
*ActionRequest = EFI_BROWSER_ACTION_REQUEST_SUBMIT;
@@ -1526,14 +1526,14 @@ GetDriver ( This driver doesn't support this API.
@param This A pointer to the EFI_PLATFORM_DRIVER_OVERRIDE_
- PROTOCOL instance.
+ PROTOCOL instance.
@param ControllerHandle The device handle of the controller to check if a driver override
- exists.
+ exists.
@param DriverImagePath On input, a pointer to the previous driver device path returned by
GetDriverPath(). On output, a pointer to the next driver
device path. Passing in a pointer to NULL, will return the first
driver device path for ControllerHandle.
-
+
@retval EFI_UNSUPPORTED
**/
EFI_STATUS
@@ -1550,18 +1550,18 @@ GetDriverPath ( /**
Used to associate a driver image handle with a device path that was returned on a prior call to the
- GetDriverPath() service. This driver image handle will then be available through the
+ GetDriverPath() service. This driver image handle will then be available through the
GetDriver() service. This driver doesn't support this API.
@param This A pointer to the EFI_PLATFORM_DRIVER_OVERRIDE_
- PROTOCOL instance.
- @param ControllerHandle The device handle of the controller.
+ PROTOCOL instance.
+ @param ControllerHandle The device handle of the controller.
@param DriverImagePath A pointer to the driver device path that was returned in a prior
- call to GetDriverPath().
+ call to GetDriverPath().
@param DriverImageHandle The driver image handle that was returned by LoadImage()
- when the driver specified by DriverImagePath was loaded
- into memory.
-
+ when the driver specified by DriverImagePath was loaded
+ into memory.
+
@retval EFI_UNSUPPORTED
**/
EFI_STATUS
@@ -1597,7 +1597,7 @@ PlatDriOverrideDxeInit ( EFI_STATUS Status;
EFI_FORM_BROWSER2_PROTOCOL *FormBrowser2;
VOID *Instance;
-
+
//
// There should only be one Form Configuration protocol
//
@@ -1626,7 +1626,7 @@ PlatDriOverrideDxeInit ( if (!EFI_ERROR (Status)) {
return EFI_ALREADY_STARTED;
}
-
+
mCallerImageHandle = ImageHandle;
mCallbackInfo = AllocateZeroPool (sizeof (EFI_CALLBACK_INFO));
if (mCallbackInfo == NULL) {
@@ -1691,7 +1691,7 @@ PlatDriOverrideDxeInit ( //
mDriverImageHandleCount = 0;
mCurrentPage = 0;
-
+
return EFI_SUCCESS;
Finish:
diff --git a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.uni b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.uni index 22d33d313f..ef9e890c3d 100644 --- a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.uni +++ b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.uni @@ -4,11 +4,11 @@ // It doesn't install again if this protocol exists.
// It only implements one interface GetDriver of PLATFORM_DRIVER_OVERRIDE_PROTOCOL protocol
// and doesn't support other two interfaces GetDriverPath, DriverLoaded.
-//
+//
// This driver also offers an UI interface in device manager to let user configure
// platform override protocol to override the default algorithm for matching
// drivers to controllers.
-//
+//
// The main flow:
// 1. It dynamicly locate all controller device path.
// 2. It dynamicly locate all drivers which support binding protocol.
@@ -16,16 +16,16 @@ // mapping between drivers to controllers.
// 4. It save all the mapping info in NV variables for the following boot,
// which will be consumed by GetDriver API of the produced the platform override protocol.
-//
+//
// Caution: This module is a sample implementation for the test purpose.
//
-// Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
+// 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
// 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.
//
diff --git a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxeExtra.uni b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxeExtra.uni index 0648a02afd..5226fd6556 100644 --- a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxeExtra.uni +++ b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxeExtra.uni @@ -1,7 +1,7 @@ // /** @file
// PlatDriOverrideDxe 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
"Platform Driver Override DXE Driver"
diff --git a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideLib.c b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideLib.c index 86c34be88d..d49f6c9953 100644 --- a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideLib.c +++ b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideLib.c @@ -1,7 +1,7 @@ /** @file
Implementation of the shared functions to do the platform driver vverride mapping.
- Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>
+ 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
which accompanies this distribution. The full text of the license may be found at
@@ -751,7 +751,7 @@ InitOverridesMapping ( //
// Check buffer overflow.
//
- if ((OverrideItem->ControllerDevicePath == NULL) || (VariableIndex < (UINT8 *) ControllerDevicePath) ||
+ if ((OverrideItem->ControllerDevicePath == NULL) || (VariableIndex < (UINT8 *) ControllerDevicePath) ||
(VariableIndex > (UINT8 *) VariableBuffer + BufferSize)) {
Corrupted = TRUE;
break;
@@ -781,7 +781,7 @@ InitOverridesMapping ( //
// Check buffer overflow
//
- if ((DriverImageInfo->DriverImagePath == NULL) || (VariableIndex < (UINT8 *) DriverDevicePath) ||
+ if ((DriverImageInfo->DriverImagePath == NULL) || (VariableIndex < (UINT8 *) DriverDevicePath) ||
(VariableIndex < (UINT8 *) VariableBuffer + BufferSize)) {
Corrupted = TRUE;
break;
@@ -1094,7 +1094,7 @@ SaveOverridesMapping ( if (EFI_ERROR (Status)) {
if (NumIndex > 0) {
//
- // Delete all PlatDriOver variables when full mapping can't be set.
+ // Delete all PlatDriOver variables when full mapping can't be set.
//
DeleteOverridesVariables ();
}
@@ -1112,7 +1112,7 @@ SaveOverridesMapping ( @param ImageHandle The Image handle
@param BindingHandle The BindingHandle of the found Driver Binding protocol.
- If Binding protocol is not found, it is set to NULL.
+ If Binding protocol is not found, it is set to NULL.
@return Pointer into the Binding Protocol interface
@retval NULL The parameter is not valid or the binding protocol is not found.
@@ -1551,8 +1551,8 @@ GetDriverFromMapping ( @retval EFI_INVALID_PARAMETER ControllerDevicePath or MappingDataBase is NULL.
@retval EFI_NOT_FOUND ControllerDevicePath is not found in MappingDataBase or
- DriverImageDevicePath is not found in the found DriverImage Info list.
- @retval EFI_SUCCESS The controller's total override driver number and
+ DriverImageDevicePath is not found in the found DriverImage Info list.
+ @retval EFI_SUCCESS The controller's total override driver number and
input DriverImage's order number is correctly return.
**/
EFI_STATUS
@@ -1668,14 +1668,14 @@ CheckMapping ( override driver image item
@param DriverImageDevicePath The driver image device path need to be insert
@param MappingDataBase Mapping database list entry pointer
- @param DriverImageNO The inserted order number. If this number is taken,
+ @param DriverImageNO The inserted order number. If this number is taken,
the larger available number will be used.
@retval EFI_INVALID_PARAMETER ControllerDevicePath is NULL, or DriverImageDevicePath is NULL
or MappingDataBase is NULL
- @retval EFI_ALREADY_STARTED The input Controller to input DriverImage has been
+ @retval EFI_ALREADY_STARTED The input Controller to input DriverImage has been
recorded into the mapping database.
- @retval EFI_SUCCESS The Controller and DriverImage are inserted into
+ @retval EFI_SUCCESS The Controller and DriverImage are inserted into
the mapping database successfully.
**/
@@ -1799,7 +1799,7 @@ InsertDriverImage ( /**
Delete a controller's override driver from the mapping database.
- @param ControllerDevicePath The controller device path will be deleted
+ @param ControllerDevicePath The controller device path will be deleted
when all drivers images on it are removed.
@param DriverImageDevicePath The driver image device path will be delete.
If NULL, all driver image will be delete.
@@ -1807,7 +1807,7 @@ InsertDriverImage ( @retval EFI_INVALID_PARAMETER ControllerDevicePath is NULL, or MappingDataBase is NULL
@retval EFI_NOT_FOUND ControllerDevicePath is not found in MappingDataBase or
- DriverImageDevicePath is not found in the found DriverImage Info list.
+ DriverImageDevicePath is not found in the found DriverImage Info list.
@retval EFI_SUCCESS Delete the specified driver successfully.
**/
diff --git a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatOverMngr.h b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatOverMngr.h index ca2094551d..86d9a2bb96 100644 --- a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatOverMngr.h +++ b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatOverMngr.h @@ -1,9 +1,9 @@ /** @file
-
+
The defintions are required both by Source code and Vfr file.
- The PLAT_OVER_MNGR_DATA structure, form guid and Ifr question ID are defined.
+ The PLAT_OVER_MNGR_DATA structure, form guid and Ifr question ID are defined.
-Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
+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
which accompanies this distribution. The full text of the license may be found at
diff --git a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf index 4225fb92c3..5bd9e44edd 100644 --- a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf +++ b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf @@ -1,9 +1,9 @@ ## @file
# This driver produces UEFI PLATFORM_DRIVER_OVERRIDE_PROTOCOL if this protocol doesn't exist.
# It doesn't install again if this protocol exists.
-# It only implements one interface GetDriver of PLATFORM_DRIVER_OVERRIDE_PROTOCOL protocol
-# and doesn't support other two interfaces GetDriverPath, DriverLoaded.
-#
+# It only implements one interface GetDriver of PLATFORM_DRIVER_OVERRIDE_PROTOCOL protocol
+# and doesn't support other two interfaces GetDriverPath, DriverLoaded.
+#
# This driver also offers an UI interface in device manager to let user configure
# platform override protocol to override the default algorithm for matching
# drivers to controllers.
@@ -13,12 +13,12 @@ # 2. It dynamicly locate all drivers which support binding protocol.
# 3. It export and dynamicly update two menu to let user select the
# mapping between drivers to controllers.
-# 4. It save all the mapping info in NV variables for the following boot,
+# 4. It save all the mapping info in NV variables for the following boot,
# which will be consumed by GetDriver API of the produced the platform override protocol.
#
# Caution: This module is a sample implementation for the test purpose.
#
-# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
+# 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
@@ -70,8 +70,8 @@ DevicePathLib
DxeServicesTableLib
UefiRuntimeServicesTableLib
- PrintLib
-
+ PrintLib
+
[Guids]
#
# This GUID C Name is not required for build since it is from UefiLib and not directly used by this module source.
|