From 6a5aa4d6dc8240128ebc667919cc8f5d68541f45 Mon Sep 17 00:00:00 2001 From: jcarsey Date: Fri, 9 Sep 2011 16:57:26 +0000 Subject: ShellPkg: Add 3 missing function declaration comments and change a function static variable to a file global variable. Submitted-by: jcarsey Reviewed-by: geekboy15a Reviewed-by: ydong10 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12317 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/UefiShellDriver1CommandsLib/DrvCfg.c | 26 ++++++++++++++++++++++ .../Library/UefiShellNetwork1CommandsLib/Ping.c | 7 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) (limited to 'ShellPkg') diff --git a/ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c b/ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c index 1b6b189f25..a2b520e1d1 100644 --- a/ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c +++ b/ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c @@ -457,6 +457,16 @@ ConfigFromFile( return (SHELL_SUCCESS); } +/** + Present a requested action to the user. + + @param[in] DriverImageHandle The handle for the driver to configure. + @param[in] ControllerHandle The handle of the device being managed by the Driver specified. + @param[in] ChildHandle The handle of a child device of the specified device. + @param[in] ActionRequired The required HII action. + + @retval SHELL_INVALID_PARAMETER A parameter has a invalid value. +**/ EFI_STATUS EFIAPI ShellCmdDriverConfigurationProcessActionRequired ( @@ -510,6 +520,22 @@ ShellCmdDriverConfigurationProcessActionRequired ( return EFI_SUCCESS; } +/** + Do the configuration in an environment without HII. + + @param[in] Language The language code. + @param[in] ForceDefaults TRUE to force defaults, FALSE otherwise. + @param[in] DefaultType If ForceDefaults is TRUE, specifies the default type. + @param[in] AllChildren TRUE to configure all children, FALSE otherwise. + @param[in] ValidateOptions TRUE to validate existing options, FALSE otherwise. + @param[in] SetOptions TRUE to set options, FALSE otherwise. + @param[in] DriverImageHandle The handle for the driver to configure. + @param[in] DeviceHandle The handle of the device being managed by the Driver specified. + @param[in] ChildHandle The handle of a child device of the specified device. + + @retval SHELL_NOT_FOUND A specified handle could not be found. + @retval SHELL_INVALID_PARAMETER A parameter has a invalid value. +**/ SHELL_STATUS EFIAPI PreHiiDrvCfg ( diff --git a/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c b/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c index 10d38d8022..f24a55c87a 100644 --- a/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c +++ b/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c @@ -17,6 +17,7 @@ #define PING_IP4_COPY_ADDRESS(Dest, Src) (CopyMem ((Dest), (Src), sizeof (EFI_IPv4_ADDRESS))) +UINT64 CurrentTick = 0; // // Function templates to match the IPv4 and IPv6 commands that we use. @@ -217,13 +218,17 @@ STATIC CONST CHAR16 *mSrcString; STATIC UINT64 mFrequency = 0; EFI_CPU_ARCH_PROTOCOL *gCpu = NULL; +/** + Read the current time. + + @retval the current tick value. +**/ UINT64 EFIAPI ReadTime ( VOID ) { - static UINT64 CurrentTick = 0; UINT64 TimerPeriod; EFI_STATUS Status; -- cgit v1.2.3