Drivers.c revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews Main file for Drivers shell Driver1 function.
9c2e820b3bbed87177e9752754d871952400c000David Lawrence Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
9c2e820b3bbed87177e9752754d871952400c000David Lawrence This program and the accompanying materials
9c2e820b3bbed87177e9752754d871952400c000David Lawrence are licensed and made available under the terms and conditions of the BSD License
9c2e820b3bbed87177e9752754d871952400c000David Lawrence which accompanies this distribution. The full text of the license may be found at
9c2e820b3bbed87177e9752754d871952400c000David Lawrence http://opensource.org/licenses/bsd-license.php
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
9c2e820b3bbed87177e9752754d871952400c000David Lawrence Get a device path (in text format) for a given handle.
9c2e820b3bbed87177e9752754d871952400c000David Lawrence @param[in] TheHandle The handle to get the device path for.
9c2e820b3bbed87177e9752754d871952400c000David Lawrence @retval NULL An error occured.
9c2e820b3bbed87177e9752754d871952400c000David Lawrence @return A pointer to the driver path as a string. The callee must
9c2e820b3bbed87177e9752754d871952400c000David Lawrence free this memory.
NULL,
NULL,
NULL);
NULL);
return (NULL);
return (RetVal);
Status = gBS->OpenProtocol((EFI_HANDLE)TheHandle, &gEfiDriverConfigurationProtocolGuid, NULL, gImageHandle, NULL, EFI_OPEN_PROTOCOL_TEST_PROTOCOL);
return (FALSE);
return (TRUE);
Status = gBS->OpenProtocol((EFI_HANDLE)TheHandle, &gEfiDriverDiagnostics2ProtocolGuid, NULL, gImageHandle, NULL, EFI_OPEN_PROTOCOL_TEST_PROTOCOL);
Status = gBS->OpenProtocol((EFI_HANDLE)TheHandle, &gEfiDriverDiagnosticsProtocolGuid, NULL, gImageHandle, NULL, EFI_OPEN_PROTOCOL_TEST_PROTOCOL);
return (FALSE);
return (TRUE);
Status = gBS->OpenProtocol((EFI_HANDLE)TheHandle, &gEfiDriverBindingProtocolGuid, (VOID**)&DriverBinding, gImageHandle, NULL, EFI_OPEN_PROTOCOL_GET_PROTOCOL);
return (RetVal);
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, ProblemParam);
return (SHELL_INVALID_PARAMETER);
FormatString = HiiGetString(gShellDriver1HiiHandle, STRING_TOKEN(STR_DRIVERS_ITEM_LINE_SFO), Language);
ChildCount = 0;
DeviceCount = 0;
Lang,
return (ShellStatus);