TianoCore EDK2 master
|
#include "UefiShellDriver1CommandsLib.h"
#include <Protocol/HiiConfigAccess.h>
#include <Protocol/HiiDatabase.h>
Go to the source code of this file.
Variables | |
STATIC CONST EFI_GUID * | CfgGuidList [] = { &gEfiDriverConfigurationProtocolGuid, &gEfiDriverConfiguration2ProtocolGuid, NULL } |
STATIC CONST SHELL_PARAM_ITEM | ParamListHii [] |
STATIC CONST SHELL_PARAM_ITEM | ParamListPreHii [] |
Main file for DrvCfg shell Driver1 function.
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file DrvCfg.c.
SHELL_STATUS ConfigFromFile | ( | IN EFI_HANDLE | Handle, |
IN CONST CHAR16 * | FileName | ||
) |
SHELL_STATUS ConfigToFile | ( | IN CONST EFI_HANDLE | Handle, |
IN CONST CHAR16 * | FileName | ||
) |
EFI_STATUS ConvertHandleToHiiHandle | ( | IN CONST EFI_HANDLE | Handle, |
OUT EFI_HII_HANDLE * | HiiHandle, | ||
IN EFI_HII_DATABASE_PROTOCOL * | HiiDb | ||
) |
EFI_STATUS FindHiiHandleViaDevPath | ( | IN CONST EFI_DEVICE_PATH_PROTOCOL * | DevPath1, |
OUT EFI_HII_HANDLE * | HiiHandle, | ||
IN EFI_HII_DATABASE_PROTOCOL * | HiiDb | ||
) |
Find the EFI_HII_HANDLE by device path.
[in] | DevPath1 | The Device Path to match. |
[out] | HiiHandle | The EFI_HII_HANDLE after the converstion. |
[in] | HiiDb | The Hii database protocol |
EFI_SUCCESS | The operation was successful. |
EFI_NOT_FOUND | There was no EFI_HII_HANDLE found for that deviec path. |
SHELL_STATUS PreHiiDrvCfg | ( | IN CONST CHAR8 * | Language, |
IN BOOLEAN | ForceDefaults, | ||
IN UINT32 | DefaultType, | ||
IN BOOLEAN | AllChildren, | ||
IN BOOLEAN | ValidateOptions, | ||
IN BOOLEAN | SetOptions, | ||
IN EFI_HANDLE | DriverImageHandle, | ||
IN EFI_HANDLE | DeviceHandle, | ||
IN EFI_HANDLE | ChildHandle | ||
) |
Do the configuration in an environment without HII.
[in] | Language | The language code. |
[in] | ForceDefaults | TRUE to force defaults, FALSE otherwise. |
[in] | DefaultType | If ForceDefaults is TRUE, specifies the default type. |
[in] | AllChildren | TRUE to configure all children, FALSE otherwise. |
[in] | ValidateOptions | TRUE to validate existing options, FALSE otherwise. |
[in] | SetOptions | TRUE to set options, FALSE otherwise. |
[in] | DriverImageHandle | The handle for the driver to configure. |
[in] | DeviceHandle | The handle of the device being managed by the Driver specified. |
[in] | ChildHandle | The handle of a child device of the specified device. |
SHELL_NOT_FOUND | A specified handle could not be found. |
SHELL_INVALID_PARAMETER | A parameter has a invalid value. |
SHELL_STATUS PrintConfigInfoOnAll | ( | IN CONST BOOLEAN | ChildrenToo, |
IN CONST CHAR8 * | Language, | ||
IN CONST BOOLEAN | UseHii | ||
) |
Function to print out configuration information on all configurable handles.
[in] | ChildrenToo | TRUE to tewst for children. |
[in] | Language | ASCII string for language code. |
[in] | UseHii | TRUE to check for Hii and DPC, FALSE for DCP only. |
SHELL_SUCCESS | The operation was successful. |
EFI_STATUS ShellCmdDriverConfigurationProcessActionRequired | ( | EFI_HANDLE | DriverImageHandle, |
EFI_HANDLE | ControllerHandle, | ||
EFI_HANDLE | ChildHandle, | ||
EFI_DRIVER_CONFIGURATION_ACTION_REQUIRED | ActionRequired | ||
) |
Present a requested action to the user.
[in] | DriverImageHandle | The handle for the driver to configure. |
[in] | ControllerHandle | The handle of the device being managed by the Driver specified. |
[in] | ChildHandle | The handle of a child device of the specified device. |
[in] | ActionRequired | The required HII action. |
SHELL_INVALID_PARAMETER | A parameter has a invalid value. |
SHELL_STATUS EFIAPI ShellCommandRunDrvCfg | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
STATIC CONST SHELL_PARAM_ITEM ParamListHii[] |