--- /dev/null
+/** @file\r
+ GUIDs for HII package list installed by Shell libraries.\r
+\r
+ Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+ This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution. The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef _SHELLLIB_HII_GUID_H_\r
+#define _SHELLLIB_HII_GUID_H_\r
+\r
+#define HANDLE_PARSING_HII_GUID \\r
+ { \\r
+ 0xb8969637, 0x81de, 0x43af, { 0xbc, 0x9a, 0x24, 0xd9, 0x89, 0x13, 0xf2, 0xf6 } \\r
+ }\r
+\r
+#define SHELL_DEBUG1_HII_GUID \\r
+ { \\r
+ 0x25f200aa, 0xd3cb, 0x470a, { 0xbf, 0x51, 0xe7, 0xd1, 0x62, 0xd2, 0x2e, 0x6f } \\r
+ }\r
+\r
+#define SHELL_DRIVER1_HII_GUID \\r
+ { \\r
+ 0xaf0b742, 0x63ec, 0x45bd, {0x8d, 0xb6, 0x71, 0xad, 0x7f, 0x2f, 0xe8, 0xe8} \\r
+ }\r
+\r
+#define SHELL_INSTALL1_HII_GUID \\r
+ { \\r
+ 0x7d574d54, 0xd364, 0x4d4a, { 0x95, 0xe3, 0x49, 0x45, 0xdb, 0x7a, 0xd3, 0xee } \\r
+ }\r
+\r
+#define SHELL_LEVEL1_HII_GUID \\r
+ { \\r
+ 0xdec5daa4, 0x6781, 0x4820, { 0x9c, 0x63, 0xa7, 0xb0, 0xe4, 0xf1, 0xdb, 0x31 } \\r
+ }\r
+\r
+#define SHELL_LEVEL2_HII_GUID \\r
+ { \\r
+ 0xf95a7ccc, 0x4c55, 0x4426, { 0xa7, 0xb4, 0xdc, 0x89, 0x61, 0x95, 0xb, 0xae } \\r
+ }\r
+\r
+#define SHELL_LEVEL3_HII_GUID \\r
+ { \\r
+ 0x4344558d, 0x4ef9, 0x4725, { 0xb1, 0xe4, 0x33, 0x76, 0xe8, 0xd6, 0x97, 0x4f } \\r
+ }\r
+\r
+#define SHELL_NETWORK1_HII_GUID \\r
+ { \\r
+ 0xf3d301bb, 0xf4a5, 0x45a8, { 0xb0, 0xb7, 0xfa, 0x99, 0x9c, 0x62, 0x37, 0xae } \\r
+ }\r
+\r
+extern EFI_GUID gHandleParsingHiiGuid;\r
+extern EFI_GUID gShellDebug1HiiGuid;\r
+extern EFI_GUID gShellDriver1HiiGuid;\r
+extern EFI_GUID gShellInstall1HiiGuid;\r
+extern EFI_GUID gShellLevel1HiiGuid;\r
+extern EFI_GUID gShellLevel2HiiGuid;\r
+extern EFI_GUID gShellLevel3HiiGuid;\r
+extern EFI_GUID gShellNetwork1HiiGuid;\r
+\r
+#endif\r
\r
#include "UefiHandleParsingLib.h"\r
\r
-\r
-STATIC CONST EFI_GUID mHandleParsingHiiGuid = \\r
- { \\r
- 0xb8969637, 0x81de, 0x43af, { 0xbc, 0x9a, 0x24, 0xd9, 0x89, 0x13, 0xf2, 0xf6 } \\r
- };\r
EFI_HANDLE mHandleParsingHiiHandle;\r
HANDLE_INDEX_LIST mHandleList = {{{NULL,NULL},0,0},0};\r
\r
IN EFI_SYSTEM_TABLE *SystemTable\r
)\r
{\r
- mHandleParsingHiiHandle = HiiAddPackages (&mHandleParsingHiiGuid, gImageHandle, UefiHandleParsingLibStrings, NULL);\r
+ mHandleParsingHiiHandle = HiiAddPackages (&gHandleParsingHiiGuid, gImageHandle, UefiHandleParsingLibStrings, NULL);\r
if (mHandleParsingHiiHandle == NULL) {\r
return (EFI_DEVICE_ERROR);\r
}\r
#include <Guid/GlobalVariable.h>\r
#include <Guid/Gpt.h>\r
#include <Guid/FileSystemInfo.h>\r
+#include <Guid/ShellLibHiiGuid.h>\r
\r
#include <Protocol/SimpleFileSystem.h>\r
#include <Protocol/LoadedImage.h>\r
## @file\r
# Provides interface to advanced shell functionality for parsing both handle and protocol database.\r
-# Copyright (c) 2010, Intel Corporation. All rights reserved. <BR>\r
+# Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved. <BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
gEfiGlobalVariableGuid\r
gEfiPartTypeSystemPartGuid\r
gEfiPartTypeLegacyMbrGuid\r
+ gHandleParsingHiiGuid\r
\r
[Pcd.common]\r
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize # ALWAYS_CONSUMED\r
\r
STATIC CONST CHAR16 mFileName[] = L"Debug1Commands";\r
EFI_HANDLE gShellDebug1HiiHandle = NULL;\r
-CONST EFI_GUID gShellDebug1HiiGuid = \\r
- { \\r
- 0x25f200aa, 0xd3cb, 0x470a, { 0xbf, 0x51, 0xe7, 0xd1, 0x62, 0xd2, 0x2e, 0x6f } \\r
- };\r
\r
/**\r
Gets the debug file name. This will be used if HII is not working.\r
#include <Guid/ConsoleInDevice.h>\r
#include <Guid/ConsoleOutDevice.h>\r
#include <Guid/FileSystemInfo.h>\r
+#include <Guid/ShellLibHiiGuid.h>\r
\r
#include <Protocol/EfiShell.h>\r
#include <Protocol/EfiShellParameters.h>\r
\r
\r
extern EFI_HANDLE gShellDebug1HiiHandle;\r
-extern CONST EFI_GUID gShellDebug1HiiGuid;\r
\r
/**\r
Function printing hex output to the console.\r
## @file\r
# Provides shell Debug1 profile functions\r
#\r
-# Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
gEfiSalSystemTableGuid\r
gEfiAcpi10TableGuid\r
gEfiAcpi20TableGuid\r
-\r
+ gShellDebug1HiiGuid\r
EFI_HANDLE gShellDriver1HiiHandle = NULL;\r
BOOLEAN gInReconnect = FALSE;\r
\r
-CONST EFI_GUID gShellDriver1HiiGuid = \\r
- { \\r
- 0xaf0b742, 0x63ec, 0x45bd, {0x8d, 0xb6, 0x71, 0xad, 0x7f, 0x2f, 0xe8, 0xe8} \\r
- };\r
-\r
/**\r
Function to return the name of the file containing help if HII will not be used.\r
\r
#include <Guid/GlobalVariable.h>\r
#include <Guid/ConsoleInDevice.h>\r
#include <Guid/ConsoleOutDevice.h>\r
+#include <Guid/ShellLibHiiGuid.h>\r
\r
#include <Protocol/EfiShell.h>\r
#include <Protocol/EfiShellParameters.h>\r
\r
\r
extern EFI_HANDLE gShellDriver1HiiHandle;\r
-extern CONST EFI_GUID gShellDriver1HiiGuid;\r
extern BOOLEAN gInReconnect;\r
\r
/**\r
## @file\r
# Provides shell driver1 profile functions\r
#\r
-# Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
gEfiGlobalVariableGuid # ALWAYS_CONSUMED\r
gEfiConsoleInDeviceGuid # ALWAYS_CONSUMED\r
gEfiConsoleOutDeviceGuid # ALWAYS_CONSUMED\r
-\r
+ gShellDriver1HiiGuid ## PRODUCES\r
\r
STATIC CONST CHAR16 mFileName[] = L"ShellCommands";\r
EFI_HANDLE gShellInstall1HiiHandle = NULL;\r
-CONST EFI_GUID gShellInstall1HiiGuid = \\r
- { \\r
- 0x7d574d54, 0xd364, 0x4d4a, { 0x95, 0xe3, 0x49, 0x45, 0xdb, 0x7a, 0xd3, 0xee } \\r
- };\r
\r
/**\r
Function to get the filename with help context if HII will not be used.\r
#include <Uefi.h>\r
#include <ShellBase.h>\r
\r
+#include <Guid/ShellLibHiiGuid.h>\r
+\r
#include <Protocol/EfiShell.h>\r
#include <Protocol/EfiShellParameters.h>\r
#include <Protocol/DevicePath.h>\r
#include <Library/FileHandleLib.h>\r
\r
extern EFI_HANDLE gShellInstall1HiiHandle;\r
-extern CONST EFI_GUID gShellInstall1HiiGuid;\r
\r
/**\r
Function for 'bcfg' command.\r
## @file\r
# Provides shell install1 functions\r
#\r
-# Copyright (c) 2010, Intel Corporation. All rights reserved. <BR>\r
+# Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved. <BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
[Pcd]\r
gEfiShellPkgTokenSpaceGuid.PcdShellProfileMask # ALWAYS_CONSUMED\r
\r
+[Guids]\r
+ gShellInstall1HiiGuid\r
\r
STATIC CONST CHAR16 mFileName[] = L"ShellCommands";\r
EFI_HANDLE gShellLevel1HiiHandle = NULL;\r
-CONST EFI_GUID gShellLevel1HiiGuid = \\r
- { \\r
- 0xdec5daa4, 0x6781, 0x4820, { 0x9c, 0x63, 0xa7, 0xb0, 0xe4, 0xf1, 0xdb, 0x31 }\r
- };\r
-\r
\r
/**\r
Return the help text filename. Only used if no HII information found.\r
#include <Uefi.h>\r
#include <ShellBase.h>\r
\r
+#include <Guid/ShellLibHiiGuid.h>\r
+\r
#include <Protocol/EfiShell.h>\r
#include <Protocol/EfiShellParameters.h>\r
#include <Protocol/DevicePath.h>\r
#include <Library/FileHandleLib.h>\r
\r
extern EFI_HANDLE gShellLevel1HiiHandle;\r
-extern CONST EFI_GUID gShellLevel1HiiGuid;\r
\r
/**\r
Function for 'stall' command.\r
\r
[Pcd.common]\r
gEfiShellPkgTokenSpaceGuid.PcdShellSupportLevel # ALWAYS_CONSUMED\r
+\r
+[Guids]\r
+ gShellLevel1HiiGuid\r
\r
CONST CHAR16 mFileName[] = L"ShellCommands";\r
EFI_HANDLE gShellLevel2HiiHandle = NULL;\r
-CONST EFI_GUID gShellLevel2HiiGuid = \\r
- { \\r
- 0xf95a7ccc, 0x4c55, 0x4426, { 0xa7, 0xb4, 0xdc, 0x89, 0x61, 0x95, 0xb, 0xae } \\r
- };\r
\r
/**\r
Get the filename to get help text from if not using HII.\r
#include <Uefi.h>\r
#include <ShellBase.h>\r
\r
+#include <Guid/ShellLibHiiGuid.h>\r
+\r
#include <Protocol/EfiShell.h>\r
#include <Protocol/EfiShellParameters.h>\r
#include <Protocol/DevicePath.h>\r
\r
extern CONST CHAR16 mFileName[];\r
extern EFI_HANDLE gShellLevel2HiiHandle;\r
-extern CONST EFI_GUID gShellLevel2HiiGuid;\r
\r
/**\r
Function for 'attrib' command.\r
[Guids]\r
gEfiFileSystemInfoGuid\r
gEfiFileInfoGuid\r
+ gShellLevel2HiiGuid
\ No newline at end of file
\r
CONST CHAR16 gShellLevel3FileName[] = L"ShellCommands";\r
EFI_HANDLE gShellLevel3HiiHandle = NULL;\r
-STATIC CONST EFI_GUID gShellLevel3HiiGuid = \\r
- { \\r
- 0x4344558d, 0x4ef9, 0x4725, { 0xb1, 0xe4, 0x33, 0x76, 0xe8, 0xd6, 0x97, 0x4f } \\r
- };\r
\r
/**\r
return the filename to get help from is not using HII.\r
#include <Uefi.h>\r
#include <ShellBase.h>\r
\r
+#include <Guid/ShellLibHiiGuid.h>\r
+\r
#include <Protocol/EfiShell.h>\r
#include <Protocol/EfiShellParameters.h>\r
#include <Protocol/DevicePath.h>\r
# Provides shell level 3 functions\r
# Note that the interactive versions of the time, date, and timezone functions are handled in the level 2 library.\r
#\r
-# Copyright (c) 2009-2010, Intel Corporation. All rights reserved. <BR>\r
+# Copyright (c) 2009-2011, Intel Corporation. All rights reserved. <BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
\r
[Guids]\r
gEfiFileInfoGuid\r
+ gShellLevel3HiiGuid\r
\r
[Pcd.common]\r
gEfiShellPkgTokenSpaceGuid.PcdShellSupportLevel\r
\r
CONST CHAR16 gShellNetwork1FileName[] = L"ShellCommands";\r
EFI_HANDLE gShellNetwork1HiiHandle = NULL;\r
-STATIC CONST EFI_GUID gShellNetwork1HiiGuid = \\r
- { \\r
- 0xf3d301bb, 0xf4a5, 0x45a8, { 0xb0, 0xb7, 0xfa, 0x99, 0x9c, 0x62, 0x37, 0xae } \\r
- };\r
\r
/**\r
return the file name of the help text file if not using HII.\r
#include <Uefi.h>\r
#include <ShellBase.h>\r
\r
+#include <Guid/ShellLibHiiGuid.h>\r
+\r
#include <Protocol/Cpu.h>\r
#include <Protocol/ServiceBinding.h>\r
#include <Protocol/Ip6.h>\r
\r
gEfiIp6ProtocolGuid # SOMETIMES_CONSUMED\r
gEfiIp6ServiceBindingProtocolGuid # SOMETIMES_CONSUMED\r
- gEfiIp6ConfigProtocolGuid # SOMETIMES_CONSUMED
\ No newline at end of file
+ gEfiIp6ConfigProtocolGuid # SOMETIMES_CONSUMED\r
+ \r
+[Guids]\r
+ gShellNetwork1HiiGuid
\ No newline at end of file
gShellVariableGuid = {0x158def5a, 0xf656, 0x419c, {0xb0, 0x27, 0x7a, 0x31, 0x92, 0xc0, 0x79, 0xd2}}\r
gShellMapGuid = {0x51271e13, 0x7de3, 0x43af, {0x8b, 0xc2, 0x71, 0xad, 0x3b, 0x82, 0x43, 0x25}}\r
gShellAliasGuid = {0x0053d9d6, 0x2659, 0x4599, {0xa2, 0x6b, 0xef, 0x45, 0x36, 0xe6, 0x31, 0xa9}}\r
-\r
+ gHandleParsingHiiGuid = {0xb8969637, 0x81de, 0x43af, {0xbc, 0x9a, 0x24, 0xd9, 0x89, 0x13, 0xf2, 0xf6}}\r
+ gShellDebug1HiiGuid = {0x25f200aa, 0xd3cb, 0x470a, {0xbf, 0x51, 0xe7, 0xd1, 0x62, 0xd2, 0x2e, 0x6f}}\r
+ gShellDriver1HiiGuid = {0xaf0b742, 0x63ec, 0x45bd, {0x8d, 0xb6, 0x71, 0xad, 0x7f, 0x2f, 0xe8, 0xe8}}\r
+ gShellInstall1HiiGuid = {0x7d574d54, 0xd364, 0x4d4a, {0x95, 0xe3, 0x49, 0x45, 0xdb, 0x7a, 0xd3, 0xee}}\r
+ gShellLevel1HiiGuid = {0xdec5daa4, 0x6781, 0x4820, {0x9c, 0x63, 0xa7, 0xb0, 0xe4, 0xf1, 0xdb, 0x31}}\r
+ gShellLevel2HiiGuid = {0xf95a7ccc, 0x4c55, 0x4426, {0xa7, 0xb4, 0xdc, 0x89, 0x61, 0x95, 0xb, 0xae}}\r
+ gShellLevel3HiiGuid = {0x4344558d, 0x4ef9, 0x4725, {0xb1, 0xe4, 0x33, 0x76, 0xe8, 0xd6, 0x97, 0x4f}}\r
+ gShellNetwork1HiiGuid = {0xf3d301bb, 0xf4a5, 0x45a8, {0xb0, 0xb7, 0xfa, 0x99, 0x9c, 0x62, 0x37, 0xae}}\r
+ \r
[Protocols]\r
gEfiShellProtocolGuid = {0x6302d008, 0x7f9b, 0x4f30, {0x87, 0xac, 0x60, 0xc9, 0xfe, 0xf5, 0xda, 0x4e}}\r
gEfiShellParametersProtocolGuid = {0x752f3136, 0x4e16, 0x4fdc, {0xa2, 0x2a, 0xe5, 0xf4, 0x68, 0x12, 0xf4, 0xca}}\r