/** @file\r
Main file for devices shell Driver1 function.\r
\r
- Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2010 - 2014, 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
\r
//\r
// Print Header\r
+ // only in non SFO mode.\r
//\r
- ShellPrintHiiEx(-1, -1, Language, STRING_TOKEN (STR_DEVICES_HEADER_LINES), gShellDriver1HiiHandle);\r
+ if (!ShellCommandLineGetFlag(Package, L"-sfo")){\r
+ ShellPrintHiiEx(-1, -1, Language, STRING_TOKEN (STR_DEVICES_HEADER_LINES), gShellDriver1HiiHandle);\r
+ }\r
\r
//\r
// loop through each handle\r
Name = NULL;\r
Status = GetDeviceHandleInfo(*HandleListWalker, &Type, &Cfg, &Diag, &Parents, &Devices, &Children, &Name, Language);\r
if (Name != NULL && (Parents != 0 || Devices != 0 || Children != 0)) {\r
- ShellPrintHiiEx(\r
- -1,\r
- -1,\r
- Language,\r
- STRING_TOKEN (STR_DEVICES_ITEM_LINE),\r
- gShellDriver1HiiHandle,\r
- ConvertHandleToHandleIndex(*HandleListWalker),\r
- Type,\r
- Cfg?L'X':L'-',\r
- Diag?L'X':L'-',\r
- Parents,\r
- Devices,\r
- Children,\r
- Name!=NULL?Name:L"<UNKNOWN>");\r
+ if (!ShellCommandLineGetFlag(Package, L"-sfo")){\r
+ ShellPrintHiiEx(\r
+ -1,\r
+ -1,\r
+ Language,\r
+ STRING_TOKEN(STR_DEVICES_ITEM_LINE),\r
+ gShellDriver1HiiHandle,\r
+ ConvertHandleToHandleIndex(*HandleListWalker),\r
+ Type,\r
+ Cfg?L'X':L'-',\r
+ Diag?L'X':L'-',\r
+ Parents,\r
+ Devices,\r
+ Children,\r
+ Name != NULL ? Name : L"<UNKNOWN>");\r
+ } else {\r
+ ShellPrintHiiEx(\r
+ -1,\r
+ -1,\r
+ Language,\r
+ STRING_TOKEN(STR_DEVICES_ITEM_LINE_SFO),\r
+ gShellDriver1HiiHandle,\r
+ ConvertHandleToHandleIndex(*HandleListWalker),\r
+ Type,\r
+ Cfg?L'Y':L'N',\r
+ Diag?L'Y':L'N',\r
+ Parents,\r
+ Devices,\r
+ Children,\r
+ Name != NULL ? Name : L"<UNKNOWN>");\r
+ }\r
}\r
if (Name != NULL) {\r
FreePool(Name);\r