Update Migration database since EfiLibInstallDriverBinding & EfiLibInstallAllDriverProtocols have been added back to UefiLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3038 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -15,176 +15,6 @@
|
||||
|
||||
**/
|
||||
|
||||
////#UefiBootServicesTableLib
|
||||
EFI_STATUS
|
||||
R8_EfiLibInstallDriverBinding (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable,
|
||||
IN EFI_DRIVER_BINDING_PROTOCOL *DriverBinding,
|
||||
IN EFI_HANDLE DriverBindingHandle
|
||||
)
|
||||
/*++
|
||||
|
||||
Routine Description:
|
||||
|
||||
Intialize a driver by installing the Driver Binding Protocol onto the
|
||||
driver's DriverBindingHandle. This is typically the same as the driver's
|
||||
ImageHandle, but it can be different if the driver produces multiple
|
||||
DriverBinding Protocols. This function also initializes the EFI Driver
|
||||
Library that initializes the global variables gST, gBS, gRT.
|
||||
|
||||
Arguments:
|
||||
|
||||
ImageHandle - The image handle of the driver.
|
||||
SystemTable - The EFI System Table that was passed to the driver's entry point
|
||||
DriverBinding - A Driver Binding Protocol instance that this driver is producing
|
||||
DriverBindingHandle - The handle that DriverBinding is to be installe onto. If this
|
||||
parameter is NULL, then a new handle is created.
|
||||
|
||||
Returns:
|
||||
|
||||
EFI_SUCCESS - DriverBinding is installed onto DriverBindingHandle
|
||||
Others - Some error occurs when executing gBS->InstallProtocolInterface()
|
||||
|
||||
--*/
|
||||
{
|
||||
//
|
||||
// Porting Guide:
|
||||
// This obsolete Edk library interface installs driver binding protocol.
|
||||
// If the entry point of that module ONLY invokes this function, it can
|
||||
// use UefiDriverModuleLib in MdePkg and expose "DriverBinding" protocol interface
|
||||
// at the <Externs> tag, build tool will auto generate code to handle it.
|
||||
// For example:
|
||||
// <Externs>
|
||||
// <Extern>
|
||||
// <DriverBinding>gFatDriverBinding</DriverBinding>
|
||||
// </Extern>
|
||||
// </Externs>
|
||||
//
|
||||
DriverBinding->ImageHandle = ImageHandle;
|
||||
DriverBinding->DriverBindingHandle = DriverBindingHandle;
|
||||
|
||||
return gBS->InstallProtocolInterface (
|
||||
&DriverBinding->DriverBindingHandle,
|
||||
&gEfiDriverBindingProtocolGuid,
|
||||
EFI_NATIVE_INTERFACE,
|
||||
DriverBinding
|
||||
);
|
||||
}
|
||||
////~
|
||||
|
||||
////#UefiBootServicesTableLib
|
||||
EFI_STATUS
|
||||
R8_EfiLibInstallAllDriverProtocols (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable,
|
||||
IN EFI_DRIVER_BINDING_PROTOCOL *DriverBinding,
|
||||
IN EFI_HANDLE DriverBindingHandle,
|
||||
IN EFI_COMPONENT_NAME_PROTOCOL *ComponentName, OPTIONAL
|
||||
IN EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration, OPTIONAL
|
||||
IN EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics OPTIONAL
|
||||
)
|
||||
/*++
|
||||
|
||||
Routine Description:
|
||||
|
||||
Intialize a driver by installing the Driver Binding Protocol onto the
|
||||
driver's DriverBindingHandle. This is typically the same as the driver's
|
||||
ImageHandle, but it can be different if the driver produces multiple
|
||||
DriverBinding Protocols. This function also initializes the EFI Driver
|
||||
Library that initializes the global variables gST, gBS, gRT.
|
||||
|
||||
Arguments:
|
||||
|
||||
ImageHandle - The image handle of the driver
|
||||
SystemTable - The EFI System Table that was passed to the driver's entry point
|
||||
DriverBinding - A Driver Binding Protocol instance that this driver is producing
|
||||
DriverBindingHandle - The handle that DriverBinding is to be installe onto. If this
|
||||
parameter is NULL, then a new handle is created.
|
||||
ComponentName - A Component Name Protocol instance that this driver is producing
|
||||
DriverConfiguration - A Driver Configuration Protocol instance that this driver is producing
|
||||
DriverDiagnostics - A Driver Diagnostics Protocol instance that this driver is producing
|
||||
|
||||
Returns:
|
||||
|
||||
EFI_SUCCESS - DriverBinding is installed onto DriverBindingHandle
|
||||
Others - Some error occurs when executing gBS->InstallProtocolInterface()
|
||||
|
||||
--*/
|
||||
{
|
||||
//
|
||||
// Porting Guide:
|
||||
// This obsolete Edk library interface installs driver binding protocol
|
||||
// with optional component name, driver configuration & driver diagnotics protocols.
|
||||
// If the entry point of that module ONLY invokes this function, it can
|
||||
// use UefiDriverModuleLib in MdePkg and expose "DriverBinding", "ComponentName",
|
||||
// "DriverConfiguration" and "DriverDiagnostics" protocol interfaces.
|
||||
// at the <Externs> tag, build tool will auto generate code to handle it.
|
||||
// For example:
|
||||
// <Externs>
|
||||
// <Extern>
|
||||
// <DriverBinding>gFatDriverBinding</DriverBinding>
|
||||
// </Extern>
|
||||
// <Extern>
|
||||
// <ComponentName>gFatComponentName</ComponentName>
|
||||
// </Extern>
|
||||
// </Externs>
|
||||
//
|
||||
EFI_STATUS Status;
|
||||
|
||||
DriverBinding->ImageHandle = ImageHandle;
|
||||
DriverBinding->DriverBindingHandle = DriverBindingHandle;
|
||||
|
||||
Status = gBS->InstallProtocolInterface (
|
||||
&DriverBinding->DriverBindingHandle,
|
||||
&gEfiDriverBindingProtocolGuid,
|
||||
EFI_NATIVE_INTERFACE,
|
||||
DriverBinding
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
|
||||
if (ComponentName != NULL) {
|
||||
Status = gBS->InstallProtocolInterface (
|
||||
&DriverBinding->DriverBindingHandle,
|
||||
&gEfiComponentNameProtocolGuid,
|
||||
EFI_NATIVE_INTERFACE,
|
||||
ComponentName
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
||||
if (DriverConfiguration != NULL) {
|
||||
Status = gBS->InstallProtocolInterface (
|
||||
&DriverBinding->DriverBindingHandle,
|
||||
&gEfiDriverConfigurationProtocolGuid,
|
||||
EFI_NATIVE_INTERFACE,
|
||||
DriverConfiguration
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
||||
if (DriverDiagnostics != NULL) {
|
||||
Status = gBS->InstallProtocolInterface (
|
||||
&DriverBinding->DriverBindingHandle,
|
||||
&gEfiDriverDiagnosticsProtocolGuid,
|
||||
EFI_NATIVE_INTERFACE,
|
||||
DriverDiagnostics
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
////~
|
||||
|
||||
////
|
||||
BOOLEAN
|
||||
R8_EfiLibCompareLanguage (
|
||||
|
Reference in New Issue
Block a user