]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: Add 3 missing function declaration comments and change a function static...
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 9 Sep 2011 16:57:26 +0000 (16:57 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 9 Sep 2011 16:57:26 +0000 (16:57 +0000)
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

ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c
ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c

index 1b6b189f25beb7fd04907aa3e2f3befcaefe7e92..a2b520e1d18823a78507ce0e5471abff81e122bf 100644 (file)
@@ -457,6 +457,16 @@ ConfigFromFile(
   return (SHELL_SUCCESS);\r
 }\r
 \r
+/**\r
+  Present a requested action to the user.\r
+\r
+  @param[in] DriverImageHandle  The handle for the driver to configure.\r
+  @param[in] ControllerHandle   The handle of the device being managed by the Driver specified.\r
+  @param[in] ChildHandle        The handle of a child device of the specified device.\r
+  @param[in] ActionRequired     The required HII action.\r
+\r
+  @retval SHELL_INVALID_PARAMETER   A parameter has a invalid value.\r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 ShellCmdDriverConfigurationProcessActionRequired (\r
@@ -510,6 +520,22 @@ ShellCmdDriverConfigurationProcessActionRequired (
   return EFI_SUCCESS;\r
 }\r
 \r
+/**\r
+  Do the configuration in an environment without HII.\r
+\r
+  @param[in] Language           The language code.\r
+  @param[in] ForceDefaults      TRUE to force defaults, FALSE otherwise.\r
+  @param[in] DefaultType        If ForceDefaults is TRUE, specifies the default type.\r
+  @param[in] AllChildren        TRUE to configure all children, FALSE otherwise.\r
+  @param[in] ValidateOptions    TRUE to validate existing options, FALSE otherwise.\r
+  @param[in] SetOptions         TRUE to set options, FALSE otherwise.\r
+  @param[in] DriverImageHandle  The handle for the driver to configure.\r
+  @param[in] DeviceHandle       The handle of the device being managed by the Driver specified.\r
+  @param[in] ChildHandle        The handle of a child device of the specified device.\r
+\r
+  @retval SHELL_NOT_FOUND           A specified handle could not be found.\r
+  @retval SHELL_INVALID_PARAMETER   A parameter has a invalid value.\r
+**/\r
 SHELL_STATUS\r
 EFIAPI\r
 PreHiiDrvCfg (\r
index 10d38d80227c942a8caf0470ace2410b6f133d27..f24a55c87a6890ad0a851944006213b6bb6dcab9 100644 (file)
@@ -17,6 +17,7 @@
 \r
 #define PING_IP4_COPY_ADDRESS(Dest, Src) (CopyMem ((Dest), (Src), sizeof (EFI_IPv4_ADDRESS)))\r
 \r
+UINT64          CurrentTick = 0;\r
 \r
 //\r
 // Function templates to match the IPv4 and IPv6 commands that we use.\r
@@ -217,13 +218,17 @@ STATIC CONST CHAR16      *mSrcString;
 STATIC UINT64            mFrequency = 0;\r
 EFI_CPU_ARCH_PROTOCOL    *gCpu = NULL;\r
 \r
+/**\r
+  Read the current time.\r
+\r
+  @retval the current tick value.\r
+**/\r
 UINT64\r
 EFIAPI\r
 ReadTime (\r
   VOID\r
   )\r
 {\r
-  static UINT64          CurrentTick = 0;\r
   UINT64                 TimerPeriod;\r
   EFI_STATUS             Status;\r
 \r