]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: update smbiosview for SMBIOS 3.0.
authorElvin Li <elvin.li@intel.com>
Tue, 17 Mar 2015 08:12:59 +0000 (08:12 +0000)
committerli-elvin <li-elvin@Edk2>
Tue, 17 Mar 2015 08:12:59 +0000 (08:12 +0000)
smbiosview can dump 64-bit entry point and table
as long as SMBIOS 3.0 table exists in system configuration table.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Elvin Li <elvin.li@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17060 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/LibSmbiosView.c
ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/LibSmbiosView.h
ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c
ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.h
ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosView.c
ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosView.h
ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosViewStrings.uni
ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf

index 23a46d3fe1116a0c6d4ae153d4f8b0b63e55dc56..766cbc254fece104263ecf37b1ad8622456771e5 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   API for SMBIOS table.\r
 \r
-  Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2015, 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
 #include "SmbiosView.h"\r
 \r
 STATIC UINT8                    mInit         = 0;\r
-STATIC SMBIOS_TABLE_ENTRY_POINT *mSmbiosTable = NULL;\r
+STATIC UINT8                    m64Init       = 0;\r
+STATIC SMBIOS_TABLE_ENTRY_POINT     *mSmbiosTable   = NULL;\r
+STATIC SMBIOS_TABLE_3_0_ENTRY_POINT *mSmbios64BitTable = NULL;\r
 STATIC SMBIOS_STRUCTURE_POINTER m_SmbiosStruct;\r
 STATIC SMBIOS_STRUCTURE_POINTER *mSmbiosStruct = &m_SmbiosStruct;\r
+STATIC SMBIOS_STRUCTURE_POINTER m_Smbios64BitStruct;\r
+STATIC SMBIOS_STRUCTURE_POINTER *mSmbios64BitStruct = &m_Smbios64BitStruct;\r
 \r
 /**\r
   Init the SMBIOS VIEW API's environment.\r
@@ -47,7 +51,6 @@ LibSmbiosInit (
   Status = GetSystemConfigurationTable (&gEfiSmbiosTableGuid, (VOID**)&mSmbiosTable);\r
 \r
   if (mSmbiosTable == NULL) {\r
-    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_LIBSMBIOSVIEW_CANNOT_GET_TABLE), gShellDebug1HiiHandle);\r
     return EFI_NOT_FOUND;\r
   }\r
 \r
@@ -64,6 +67,46 @@ LibSmbiosInit (
   return EFI_SUCCESS;\r
 }\r
 \r
+/**\r
+  Init the SMBIOS VIEW API's environment.\r
+\r
+  @retval EFI_SUCCESS  Successful to init the SMBIOS VIEW Lib.\r
+**/\r
+EFI_STATUS\r
+LibSmbios64BitInit (\r
+  VOID\r
+  )\r
+{\r
+  EFI_STATUS  Status;\r
+\r
+  //\r
+  // Init only once\r
+  //\r
+  if (m64Init == 1) {\r
+    return EFI_SUCCESS;\r
+  }\r
+  //\r
+  // Get SMBIOS table from System Configure table\r
+  //\r
+  Status = GetSystemConfigurationTable (&gEfiSmbios3TableGuid, (VOID**)&mSmbios64BitTable);\r
+\r
+  if (mSmbios64BitTable == NULL) {\r
+    return EFI_NOT_FOUND;\r
+  }\r
+\r
+  if (EFI_ERROR (Status)) {\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_LIBSMBIOSVIEW_GET_TABLE_ERROR), gShellDebug1HiiHandle, Status);\r
+    return Status;\r
+  }\r
+  //\r
+  // Init SMBIOS structure table address\r
+  //\r
+  mSmbios64BitStruct->Raw  = (UINT8 *) (UINTN) (mSmbios64BitTable->TableAddress);\r
+\r
+  m64Init               = 1;\r
+  return EFI_SUCCESS;\r
+}\r
+\r
 /**\r
   Cleanup the Smbios information.\r
 **/\r
@@ -82,6 +125,24 @@ LibSmbiosCleanup (
   mInit = 0;\r
 }\r
 \r
+/**\r
+  Cleanup the Smbios information.\r
+**/\r
+VOID\r
+LibSmbios64BitCleanup (\r
+  VOID\r
+  )\r
+{\r
+  //\r
+  // Release resources\r
+  //\r
+  if (mSmbios64BitTable != NULL) {\r
+    mSmbios64BitTable = NULL;\r
+  }\r
+\r
+  m64Init = 0;\r
+}\r
+\r
 /**\r
   Get the entry point structure for the table.\r
 \r
@@ -98,6 +159,22 @@ LibSmbiosGetEPS (
   *EntryPointStructure = mSmbiosTable;\r
 }\r
 \r
+/**\r
+  Get the entry point structure for the table.\r
+\r
+  @param[out] EntryPointStructure  The pointer to populate.\r
+**/\r
+VOID\r
+LibSmbios64BitGetEPS (\r
+  OUT SMBIOS_TABLE_3_0_ENTRY_POINT **EntryPointStructure\r
+  )\r
+{\r
+  //\r
+  // return SMBIOS Table address\r
+  //\r
+  *EntryPointStructure = mSmbios64BitTable;\r
+}\r
+\r
 /**\r
   Return SMBIOS string for the given string number.\r
 \r
@@ -222,3 +299,75 @@ LibGetSmbiosStructure (
   return DMI_INVALID_HANDLE;\r
 }\r
 \r
+/**\r
+    Get SMBIOS structure for the given Handle,\r
+    Handle is changed to the next handle or 0xFFFF when the end is\r
+    reached or the handle is not found.\r
+\r
+    @param[in, out] Handle     0xFFFF: get the first structure\r
+                               Others: get a structure according to this value.\r
+    @param[out] Buffer         The pointer to the pointer to the structure.\r
+    @param[out] Length         Length of the structure.\r
+\r
+    @retval DMI_SUCCESS   Handle is updated with next structure handle or\r
+                          0xFFFF(end-of-list).\r
+\r
+    @retval DMI_INVALID_HANDLE  Handle is updated with first structure handle or\r
+                                0xFFFF(end-of-list).\r
+**/\r
+EFI_STATUS\r
+LibGetSmbios64BitStructure (\r
+  IN  OUT UINT16  *Handle,\r
+  OUT UINT8       **Buffer,\r
+  OUT UINT16      *Length\r
+  )\r
+{\r
+  SMBIOS_STRUCTURE_POINTER  Smbios;\r
+  SMBIOS_STRUCTURE_POINTER  SmbiosEnd;\r
+  UINT8                     *Raw;\r
+\r
+  if (*Handle == INVALID_HANDLE) {\r
+    *Handle = mSmbios64BitStruct->Hdr->Handle;\r
+    return DMI_INVALID_HANDLE;\r
+  }\r
+\r
+  if ((Buffer == NULL) || (Length == NULL)) {\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_LIBSMBIOSVIEW_NO_BUFF_LEN_SPEC), gShellDebug1HiiHandle);\r
+    return DMI_INVALID_HANDLE;\r
+  }\r
+\r
+  *Length     = 0;\r
+  Smbios.Hdr  = mSmbios64BitStruct->Hdr;\r
+\r
+  SmbiosEnd.Raw = Smbios.Raw + mSmbios64BitTableLength;\r
+  while (Smbios.Raw < SmbiosEnd.Raw) {\r
+    if (Smbios.Hdr->Handle == *Handle) {\r
+      Raw = Smbios.Raw;\r
+      //\r
+      // Walk to next structure\r
+      //\r
+      LibGetSmbiosString (&Smbios, (UINT16) (-1));\r
+      //\r
+      // Length = Next structure head - this structure head\r
+      //\r
+      *Length = (UINT16) (Smbios.Raw - Raw);\r
+      *Buffer = Raw;\r
+      //\r
+      // update with the next structure handle.\r
+      //\r
+      if (Smbios.Raw < SmbiosEnd.Raw) {\r
+        *Handle = Smbios.Hdr->Handle;\r
+      } else {\r
+        *Handle = INVALID_HANDLE;\r
+      }\r
+      return DMI_SUCCESS;\r
+    }\r
+    //\r
+    // Walk to next structure\r
+    //\r
+    LibGetSmbiosString (&Smbios, (UINT16) (-1));\r
+  }\r
+\r
+  *Handle = INVALID_HANDLE;\r
+  return DMI_INVALID_HANDLE;\r
+}
\ No newline at end of file
index f953296bd9d5b81a61cdeb3b52e0e5f806e0f9eb..103f022fbe844215828c5f19be0b1061b538882c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   API for SMBIOS Plug and Play functions, access to SMBIOS table and structures.\r
 \r
-  Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2015, 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
@@ -40,7 +40,7 @@
 #define EFI_SMBIOSERR_UNSUPPORTED       EFI_SMBIOSERR (4)\r
 \r
 /**\r
-  Init the SMBIOS VIEW API's environment.\r
+  Init the SMBIOS VIEW API's environment for the 32-bit table..\r
 \r
   @retval EFI_SUCCESS  Successful to init the SMBIOS VIEW Lib.\r
 **/\r
@@ -49,6 +49,16 @@ LibSmbiosInit (
   VOID\r
   );\r
 \r
+/**\r
+  Init the SMBIOS VIEW API's environment for the 64-bit table..\r
+\r
+  @retval EFI_SUCCESS  Successful to init the SMBIOS VIEW Lib.\r
+**/\r
+EFI_STATUS\r
+LibSmbios64BitInit (\r
+  VOID\r
+  );\r
+\r
 /**\r
   Cleanup the Smbios information.\r
 **/\r
@@ -57,6 +67,14 @@ LibSmbiosCleanup (
   VOID\r
   );\r
 \r
+/**\r
+  Cleanup the Smbios information.\r
+**/\r
+VOID\r
+LibSmbios64BitCleanup (\r
+  VOID\r
+  );\r
+\r
 /**\r
   Get the entry point structure for the table.\r
 \r
@@ -67,6 +85,16 @@ LibSmbiosGetEPS (
   OUT SMBIOS_TABLE_ENTRY_POINT **EntryPointStructure\r
   );\r
 \r
+/**\r
+  Get the entry point structure for the 64-bit table.\r
+\r
+  @param[out] EntryPointStructure  The pointer to populate.\r
+**/\r
+VOID\r
+LibSmbios64BitGetEPS (\r
+  OUT SMBIOS_TABLE_3_0_ENTRY_POINT **EntryPointStructure\r
+  );\r
+\r
 /**\r
   Return SMBIOS string for the given string number.\r
 \r
@@ -105,4 +133,27 @@ LibGetSmbiosStructure (
   OUT UINT16      *Length\r
   );\r
 \r
+/**\r
+    Get SMBIOS structure for the given Handle in 64-bit table,\r
+    Handle is changed to the next handle or 0xFFFF when the end is\r
+    reached or the handle is not found.\r
+\r
+    @param[in, out] Handle     0xFFFF: get the first structure\r
+                               Others: get a structure according to this value.\r
+    @param[out] Buffer         The pointer to the pointer to the structure.\r
+    @param[out] Length         Length of the structure.\r
+\r
+    @retval DMI_SUCCESS   Handle is updated with next structure handle or\r
+                          0xFFFF(end-of-list).\r
+\r
+    @retval DMI_INVALID_HANDLE  Handle is updated with first structure handle or\r
+                                0xFFFF(end-of-list).\r
+**/\r
+EFI_STATUS\r
+LibGetSmbios64BitStructure (\r
+  IN  OUT UINT16  *Handle,\r
+  OUT UINT8       **Buffer,\r
+  OUT UINT16      *Length\r
+  );\r
+\r
 #endif\r
index 676aedef6eb462d738d18f112b3f9c148e706f29..1494c47e3709825f2799dd7cab5e7e14163b16a8 100644 (file)
@@ -199,6 +199,75 @@ SmbiosPrintEPSInfo (
   Print (L"\n");\r
 }\r
 \r
+/**\r
+  Print the info of 64-bit EPS(Entry Point Structure).\r
+\r
+  @param[in] SmbiosTable    Pointer to the SMBIOS table entry point.\r
+  @param[in] Option         Display option.\r
+**/\r
+VOID\r
+Smbios64BitPrintEPSInfo (\r
+  IN  SMBIOS_TABLE_3_0_ENTRY_POINT  *SmbiosTable,\r
+  IN  UINT8                         Option\r
+  )\r
+{\r
+  UINT8 Anchor[5];\r
+\r
+  if (SmbiosTable == NULL) {\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_SMBIOSTABLE_NULL), gShellDebug1HiiHandle);\r
+    return ;\r
+  }\r
+\r
+  if (Option == SHOW_NONE) {\r
+    return ;\r
+  }\r
+\r
+  if (Option >= SHOW_NORMAL) {\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_64_BIT_ENTRY_POINT_SIGN), gShellDebug1HiiHandle);\r
+\r
+    MemToString (Anchor, SmbiosTable->AnchorString, 5);\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_ANCHOR_STR), gShellDebug1HiiHandle, Anchor);\r
+\r
+    ShellPrintHiiEx(-1,-1,NULL,\r
+      STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_EPS_CHECKSUM),\r
+      gShellDebug1HiiHandle,\r
+      SmbiosTable->EntryPointStructureChecksum\r
+     );\r
+\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_ENTRY_POINT_LEN), gShellDebug1HiiHandle, SmbiosTable->EntryPointLength);\r
+\r
+    ShellPrintHiiEx(-1,-1,NULL,\r
+      STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_VERSION),\r
+      gShellDebug1HiiHandle,\r
+      SmbiosTable->MajorVersion,\r
+      SmbiosTable->MinorVersion\r
+     );\r
+\r
+    ShellPrintHiiEx(-1,-1,NULL,\r
+      STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_DOCREV),\r
+      gShellDebug1HiiHandle,\r
+      SmbiosTable->DocRev\r
+     );\r
+\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_TABLE_MAX_SIZE), gShellDebug1HiiHandle, SmbiosTable->TableMaximumSize);\r
+\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_TABLE_ADDR), gShellDebug1HiiHandle, SmbiosTable->TableAddress);\r
+\r
+  }\r
+  //\r
+  // If SHOW_ALL, also print followings.\r
+  //\r
+  if (Option >= SHOW_DETAIL) {\r
+    ShellPrintHiiEx(-1,-1,NULL,\r
+      STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_ENTRY_POINT_REVISION),\r
+      gShellDebug1HiiHandle,\r
+      SmbiosTable->EntryPointRevision\r
+     );\r
+  }\r
+\r
+  Print (L"\n");\r
+}\r
+\r
 /**\r
   This function print the content of the structure pointed by Struct.\r
 \r
index d24aeb96cc49ad4ac182a2bfa13f100b0856ba96..50667b684c531d5620e43a5d8dae269817ec34a5 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Module to clarify the element info of the smbios structure.\r
 \r
-  Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2015, 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
@@ -46,6 +46,18 @@ SmbiosPrintEPSInfo (
   IN  UINT8                     Option\r
   );\r
 \r
+/**\r
+  Print the info of 64-bit EPS(Entry Point Structure).\r
+\r
+  @param[in] SmbiosTable    Pointer to the SMBIOS table entry point.\r
+  @param[in] Option         Display option.\r
+**/\r
+VOID\r
+Smbios64BitPrintEPSInfo (\r
+  IN  SMBIOS_TABLE_3_0_ENTRY_POINT  *SmbiosTable,\r
+  IN  UINT8                         Option\r
+  );\r
+\r
 /**\r
   This function print the content of the structure pointed by Struct.\r
 \r
index 8fabaa6e316d2a801fb950288b21f065f7195a01..a06339452a37b19853a2aaac9047decdc32bdd3c 100644 (file)
 \r
 UINT8                       gShowType         = SHOW_DETAIL;\r
 STATIC STRUCTURE_STATISTICS *mStatisticsTable = NULL;\r
+STATIC STRUCTURE_STATISTICS *mSmbios64BitStatisticsTable = NULL;\r
 \r
 UINT8  SmbiosMajorVersion;\r
 UINT8  SmbiosMinorVersion;\r
 \r
+UINTN  mNumberOfSmbios64BitStructures;\r
+UINTN  mSmbios64BitTableLength;\r
+\r
 STATIC CONST SHELL_PARAM_ITEM ParamList[] = {\r
   {L"-t", TypeValue},\r
   {L"-h", TypeValue},\r
@@ -49,15 +53,18 @@ ShellCommandRunSmbiosView (
   UINT8               StructType;\r
   UINT16              StructHandle;\r
   EFI_STATUS          Status;\r
+  EFI_STATUS          Status1;\r
+  EFI_STATUS          Status2;\r
   BOOLEAN             RandomView;\r
   LIST_ENTRY          *Package;\r
   CHAR16              *ProblemParam;\r
   SHELL_STATUS        ShellStatus;\r
   CONST CHAR16        *Temp;\r
 \r
-  mStatisticsTable    = NULL;\r
-  Package             = NULL;\r
-  ShellStatus         = SHELL_SUCCESS;\r
+  mStatisticsTable            = NULL;\r
+  mSmbios64BitStatisticsTable = NULL;\r
+  Package                     = NULL;\r
+  ShellStatus                 = SHELL_SUCCESS;\r
 \r
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
@@ -92,57 +99,103 @@ ShellCommandRunSmbiosView (
 \r
       //\r
       // Init Lib\r
-      \r
-      Status = LibSmbiosInit ();\r
-      if (EFI_ERROR (Status)) {\r
-        ShellStatus = SHELL_NOT_FOUND;\r
-        goto Done;\r
-      }\r
       //\r
-      // build statistics table\r
-      //\r
-      Status = InitSmbiosTableStatistics ();\r
-      if (EFI_ERROR (Status)) {\r
+      Status1 = LibSmbiosInit ();\r
+      Status2 = LibSmbios64BitInit ();\r
+      if (EFI_ERROR (Status1) && EFI_ERROR (Status2)) {\r
+       ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_LIBSMBIOSVIEW_CANNOT_GET_TABLE), gShellDebug1HiiHandle);\r
         ShellStatus = SHELL_NOT_FOUND;\r
         goto Done;\r
       }\r
-\r
+      \r
       StructType    = STRUCTURE_TYPE_RANDOM;\r
       RandomView    = TRUE;\r
-      //\r
-      // Initialize the StructHandle to be the first handle\r
-      //\r
-      StructHandle  = INVALID_HANDLE;\r
-      LibGetSmbiosStructure (&StructHandle, NULL, NULL);\r
-\r
+      \r
       Temp          = ShellCommandLineGetValue(Package, L"-t");\r
       if (Temp != NULL) {\r
         StructType = (UINT8) ShellStrToUintn (Temp);\r
       }\r
-\r
-      Temp = ShellCommandLineGetValue(Package, L"-h");\r
-      if (Temp != NULL) {\r
-        RandomView   = FALSE;\r
-        StructHandle = (UINT16) ShellStrToUintn(Temp);\r
+      \r
+      if (ShellCommandLineGetFlag(Package, L"-a")) {\r
+        gShowType = SHOW_ALL;\r
       }\r
-\r
-      if (ShellCommandLineGetFlag(Package, L"-s")) {\r
-        Status = DisplayStatisticsTable (SHOW_DETAIL);\r
+      \r
+      if (!EFI_ERROR (Status1)) {\r
+        //\r
+        // Initialize the StructHandle to be the first handle\r
+        //\r
+        StructHandle  = INVALID_HANDLE;\r
+        LibGetSmbiosStructure (&StructHandle, NULL, NULL);\r
+        \r
+        Temp = ShellCommandLineGetValue(Package, L"-h");\r
+        if (Temp != NULL) {\r
+          RandomView   = FALSE;\r
+          StructHandle = (UINT16) ShellStrToUintn(Temp);\r
+        }\r
+        //\r
+        // build statistics table\r
+        //\r
+        Status = InitSmbiosTableStatistics ();\r
+        if (EFI_ERROR (Status)) {\r
+          ShellStatus = SHELL_NOT_FOUND;\r
+          goto Done;\r
+        }\r
+        \r
+        if (ShellCommandLineGetFlag(Package, L"-s")) {\r
+          Status = DisplayStatisticsTable (SHOW_DETAIL);\r
+          if (EFI_ERROR(Status)) {\r
+            ShellStatus = SHELL_NOT_FOUND;\r
+          }\r
+          goto Show64Bit;\r
+        }\r
+        \r
+        //\r
+        // Show SMBIOS structure information\r
+        //\r
+        Status = SMBiosView (StructType, StructHandle, gShowType, RandomView);\r
         if (EFI_ERROR(Status)) {\r
           ShellStatus = SHELL_NOT_FOUND;\r
+          goto Done;\r
         }\r
-        goto Done;\r
       }\r
 \r
-      if (ShellCommandLineGetFlag(Package, L"-a")) {\r
-        gShowType = SHOW_ALL;\r
-      }\r
-      //\r
-      // Show SMBIOS structure information\r
-      //\r
-      Status = SMBiosView (StructType, StructHandle, gShowType, RandomView);\r
-      if (EFI_ERROR(Status)) {\r
-        ShellStatus = SHELL_NOT_FOUND;\r
+Show64Bit:\r
+      if (!EFI_ERROR (Status2)) {\r
+        //\r
+        // build statistics table\r
+        //\r
+        Status = InitSmbios64BitTableStatistics ();\r
+        if (EFI_ERROR (Status)) {\r
+          ShellStatus = SHELL_NOT_FOUND;\r
+          goto Done;\r
+        }\r
+        //\r
+        // Initialize the StructHandle to be the first handle\r
+        //\r
+        StructHandle  = INVALID_HANDLE;\r
+        LibGetSmbios64BitStructure (&StructHandle, NULL, NULL);\r
+        \r
+        Temp = ShellCommandLineGetValue(Package, L"-h");\r
+        if (Temp != NULL) {\r
+          RandomView   = FALSE;\r
+          StructHandle = (UINT16) ShellStrToUintn(Temp);\r
+        }\r
+        \r
+        if (ShellCommandLineGetFlag(Package, L"-s")) {\r
+          Status = DisplaySmbios64BitStatisticsTable (SHOW_DETAIL);\r
+          if (EFI_ERROR(Status)) {\r
+            ShellStatus = SHELL_NOT_FOUND;\r
+          }\r
+          goto Done;\r
+        }\r
+        \r
+        //\r
+        // Show SMBIOS structure information\r
+        //\r
+        Status = SMBios64View (StructType, StructHandle, gShowType, RandomView);\r
+        if (EFI_ERROR(Status)) {\r
+          ShellStatus = SHELL_NOT_FOUND;\r
+        }\r
       }\r
     }\r
   }\r
@@ -158,11 +211,20 @@ Done:
     mStatisticsTable = NULL;\r
   }\r
 \r
+  if (mSmbios64BitStatisticsTable != NULL) {\r
+    //\r
+    // Release statistics table\r
+    //\r
+    FreePool (mSmbios64BitStatisticsTable);\r
+    mSmbios64BitStatisticsTable = NULL;\r
+  }\r
+\r
   if (Package != NULL) {\r
     ShellCommandLineFreeVarList (Package);\r
   }\r
 \r
   LibSmbiosCleanup ();\r
+  LibSmbios64BitCleanup ();\r
 \r
   return ShellStatus;\r
 }\r
@@ -341,6 +403,179 @@ SMBiosView (
   return EFI_BAD_BUFFER_SIZE;\r
 }\r
 \r
+/**\r
+  Query all structures Data from SMBIOS table and Display\r
+  the information to users as required display option.\r
+\r
+  @param[in] QueryType      Structure type to view.\r
+  @param[in] QueryHandle    Structure handle to view.\r
+  @param[in] Option         Display option: none,outline,normal,detail.\r
+  @param[in] RandomView     Support for -h parameter.\r
+\r
+  @retval EFI_SUCCESS           print is successful.\r
+  @retval EFI_BAD_BUFFER_SIZE   structure is out of the range of SMBIOS table.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+SMBios64View (\r
+  IN  UINT8   QueryType,\r
+  IN  UINT16  QueryHandle,\r
+  IN  UINT8   Option,\r
+  IN  BOOLEAN RandomView\r
+  )\r
+{\r
+  UINT16                        Handle;\r
+  UINT8                         *Buffer;\r
+  UINT16                        Length;\r
+  UINTN                         Index;\r
+  SMBIOS_STRUCTURE_POINTER      SmbiosStruct;\r
+  SMBIOS_TABLE_3_0_ENTRY_POINT  *SMBiosTable;\r
+\r
+  SMBiosTable = NULL;\r
+  LibSmbios64BitGetEPS (&SMBiosTable);\r
+  if (SMBiosTable == NULL) {\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_CANNOT_ACCESS_TABLE), gShellDebug1HiiHandle);\r
+    return EFI_BAD_BUFFER_SIZE;\r
+  }\r
+\r
+  if (CompareMem (SMBiosTable->AnchorString, "_SM3_", 5) == 0) {\r
+    //\r
+    // Have got SMBIOS table\r
+    //\r
+    Smbios64BitPrintEPSInfo (SMBiosTable, Option);\r
+\r
+    SmbiosMajorVersion = SMBiosTable->MajorVersion;\r
+    SmbiosMinorVersion = SMBiosTable->MinorVersion;\r
+\r
+    ShellPrintEx(-1,-1,L"=========================================================\n");\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_QUERY_STRUCT_COND), gShellDebug1HiiHandle);\r
+\r
+    if (QueryType == STRUCTURE_TYPE_RANDOM) {\r
+      ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_QUERYTYPE_RANDOM), gShellDebug1HiiHandle);\r
+    } else {\r
+      ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_QUERYTYPE), gShellDebug1HiiHandle, QueryType);\r
+    }\r
+\r
+    if (RandomView) {\r
+      ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_QUERYHANDLE_RANDOM), gShellDebug1HiiHandle);\r
+    } else {\r
+      ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_QUERYHANDLE), gShellDebug1HiiHandle, QueryHandle);\r
+    }\r
+\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_SHOWTYPE), gShellDebug1HiiHandle);\r
+    ShellPrintEx(-1,-1,GetShowTypeString (gShowType));\r
+    ShellPrintEx(-1,-1,L"\n\n");\r
+\r
+/*\r
+    //\r
+    // Get internal commands, such as change options.\r
+    //\r
+    Status = WaitEnter ();\r
+    if (EFI_ERROR (Status)) {\r
+      if (Status == EFI_ABORTED) {\r
+        return EFI_SUCCESS;\r
+      }\r
+\r
+      return Status;\r
+    }\r
+*/\r
+\r
+    //\r
+    // Searching and display structure info\r
+    //\r
+    Handle    = QueryHandle;\r
+    for (Index = 0; Index < mNumberOfSmbios64BitStructures; Index++) {\r
+      //\r
+      // if reach the end of table, break..\r
+      //\r
+      if (Handle == INVALID_HANDLE) {\r
+        break;\r
+      }\r
+      //\r
+      // handle then point to the next!\r
+      //\r
+      if (LibGetSmbios64BitStructure (&Handle, &Buffer, &Length) != DMI_SUCCESS) {\r
+        break;\r
+      }\r
+\r
+      SmbiosStruct.Raw = Buffer;\r
+\r
+      //\r
+      // if QueryType==Random, print this structure.\r
+      // if QueryType!=Random, but Hdr->Type==QueryType, also print it.\r
+      // only if QueryType != Random and Hdr->Type != QueryType, skiped it.\r
+      //\r
+      if (QueryType != STRUCTURE_TYPE_RANDOM && SmbiosStruct.Hdr->Type != QueryType) {\r
+        continue;\r
+      }\r
+\r
+      ShellPrintEx(-1,-1,L"\n=========================================================\n");\r
+      ShellPrintHiiEx(-1,-1,NULL,\r
+        STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_TYPE_HANDLE_DUMP_STRUCT),\r
+        gShellDebug1HiiHandle,\r
+        SmbiosStruct.Hdr->Type,\r
+        SmbiosStruct.Hdr->Handle\r
+       );\r
+      ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_INDEX_LENGTH), gShellDebug1HiiHandle, Index, Length);\r
+      //\r
+      // Addr of structure in structure in table\r
+      //\r
+      ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_ADDR), gShellDebug1HiiHandle, (UINTN) Buffer);\r
+      DumpHex (0, 0, Length, Buffer);\r
+\r
+/*\r
+      //\r
+      // Get internal commands, such as change options.\r
+      //\r
+      Status = WaitEnter ();\r
+      if (EFI_ERROR (Status)) {\r
+        if (Status == EFI_ABORTED) {\r
+          return EFI_SUCCESS;\r
+        }\r
+\r
+        return Status;\r
+      }\r
+*/\r
+\r
+      if (gShowType != SHOW_NONE) {\r
+        //\r
+        // Print structure information\r
+        //\r
+        SmbiosPrintStructure (&SmbiosStruct, gShowType);\r
+        ShellPrintEx(-1,-1,L"\n");\r
+\r
+/*\r
+        //\r
+        // Get internal commands, such as change options.\r
+        //\r
+        Status = WaitEnter ();\r
+        if (EFI_ERROR (Status)) {\r
+          if (Status == EFI_ABORTED) {\r
+            return EFI_SUCCESS;\r
+          }\r
+\r
+          return Status;\r
+        }\r
+*/\r
+      }\r
+      if (!RandomView) {\r
+        break;\r
+      }\r
+      //\r
+      // Support Execution Interrupt.\r
+      //\r
+      if (ShellGetExecutionBreakFlag ()) {\r
+        return EFI_ABORTED;\r
+      }\r
+    }\r
+\r
+    ShellPrintEx(-1,-1,L"\n=========================================================\n");\r
+    return EFI_SUCCESS;\r
+  }\r
+\r
+  return EFI_BAD_BUFFER_SIZE;\r
+}\r
+\r
 /**\r
   Function to initialize the global mStatisticsTable object.\r
 \r
@@ -429,6 +664,153 @@ InitSmbiosTableStatistics (
   return EFI_SUCCESS;\r
 }\r
 \r
+/**\r
+  @param[in]  Smbios64EntryPoint          SMBIOS 64-bit entry point.\r
+  @param[out] NumberOfSmbios64Structures  The number of structures in 64-bit SMBIOS table.\r
+  @param[out] Smbios64TableLength         The total length of 64-bit SMBIOS table.\r
+\r
+  @retval EFI_SUCCESS                                                  Calculation was successful.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+CalculateSmbios64BitStructureCountAndLength (\r
+  SMBIOS_TABLE_3_0_ENTRY_POINT    *Smbios64EntryPoint,\r
+  UINTN                           *NumberOfSmbios64Structures,\r
+  UINTN                           *Smbios64TableLength\r
+)\r
+{\r
+  SMBIOS_STRUCTURE_POINTER        Smbios;\r
+  UINT8                           *Raw;\r
+  \r
+  *Smbios64TableLength = 0;\r
+  *NumberOfSmbios64Structures = 0;\r
+  \r
+  Smbios.Raw = (UINT8 *)(UINTN)(Smbios64EntryPoint->TableAddress);\r
+  while (TRUE) {\r
+    if (Smbios.Hdr->Type == 127) {\r
+      //\r
+      // Reach the end of table type 127\r
+      //\r
+      (*NumberOfSmbios64Structures)++;\r
+      (*Smbios64TableLength) += sizeof (SMBIOS_STRUCTURE);\r
+      return EFI_SUCCESS;\r
+    }\r
+\r
+    Raw = Smbios.Raw;\r
+    //\r
+    // Walk to next structure\r
+    //\r
+    LibGetSmbiosString (&Smbios, (UINT16) (-1));\r
+    //\r
+    // Length = Next structure head - this structure head\r
+    //\r
+    (*Smbios64TableLength) += (UINTN) (Smbios.Raw - Raw);\r
+    if ((*Smbios64TableLength) > Smbios64EntryPoint->TableMaximumSize) {\r
+       //\r
+       // The actual table length exceeds maximum table size,\r
+       // There should be something wrong with SMBIOS table.\r
+       //\r
+       return EFI_INVALID_PARAMETER;\r
+    }\r
+    (*NumberOfSmbios64Structures)++;\r
+  }\r
+}\r
+\r
+/**\r
+  Function to initialize the global mSmbios64BitStatisticsTable object.\r
+\r
+  @retval EFI_SUCCESS           print is successful.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+InitSmbios64BitTableStatistics (\r
+  VOID\r
+  )\r
+{\r
+  UINT16                    Handle;\r
+  UINT8                     *Buffer;\r
+  UINT16                    Length;\r
+  UINT16                    Offset;\r
+  UINT16                    Index;\r
+       EFI_STATUS                                                              Status;\r
+  SMBIOS_STRUCTURE_POINTER      SmbiosStruct;\r
+  SMBIOS_TABLE_3_0_ENTRY_POINT  *SMBiosTable;\r
+  STRUCTURE_STATISTICS          *StatisticsPointer;\r
+\r
+  SMBiosTable = NULL;\r
+  LibSmbios64BitGetEPS (&SMBiosTable);\r
+  if (SMBiosTable == NULL) {\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_CANNOT_ACCESS_TABLE), gShellDebug1HiiHandle);\r
+    return EFI_NOT_FOUND;\r
+  }\r
+\r
+  if (CompareMem (SMBiosTable->AnchorString, "_SM3_", 5) != 0) {\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_SMBIOS_TABLE), gShellDebug1HiiHandle);\r
+    return EFI_INVALID_PARAMETER;\r
+  }\r
+  //\r
+  // Allocate memory to mSmbios64BitStatisticsTable\r
+  //\r
+  if (mSmbios64BitStatisticsTable != NULL) {\r
+    FreePool (mSmbios64BitStatisticsTable);\r
+    mSmbios64BitStatisticsTable = NULL;\r
+  }\r
+  //\r
+  // Calculate number of smbios structures\r
+  //\r
+  Status = CalculateSmbios64BitStructureCountAndLength (SMBiosTable, &mNumberOfSmbios64BitStructures, &mSmbios64BitTableLength);\r
+  if ((EFI_ERROR (Status)) || (mSmbios64BitTableLength > SMBiosTable->TableMaximumSize)) {\r
+       return EFI_INVALID_PARAMETER;\r
+  }\r
+  \r
+  mSmbios64BitStatisticsTable = (STRUCTURE_STATISTICS *) AllocateZeroPool (mNumberOfSmbios64BitStructures * sizeof (STRUCTURE_STATISTICS));\r
+\r
+  if (mSmbios64BitStatisticsTable == NULL) {\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_OUT_OF_MEM), gShellDebug1HiiHandle);\r
+    return EFI_OUT_OF_RESOURCES;\r
+  }\r
+\r
+  Offset      = 0;\r
+  StatisticsPointer = mSmbios64BitStatisticsTable;\r
+\r
+  //\r
+  // search from the first one\r
+  //\r
+  Handle = INVALID_HANDLE;\r
+  LibGetSmbios64BitStructure (&Handle, NULL, NULL);\r
+  for (Index = 1; Index <= mNumberOfSmbios64BitStructures; Index++) {\r
+    //\r
+    // If reach the end of table, break..\r
+    //\r
+    if (Handle == INVALID_HANDLE) {\r
+      break;\r
+    }\r
+    //\r
+    // After LibGetSmbios64BitStructure(), handle then point to the next!\r
+    //\r
+    if (LibGetSmbios64BitStructure (&Handle, &Buffer, &Length) != DMI_SUCCESS) {\r
+      break;\r
+    }\r
+\r
+    SmbiosStruct.Raw = Buffer;\r
+\r
+    //\r
+    // general statistics\r
+    //\r
+    StatisticsPointer->Index  = Index;\r
+    StatisticsPointer->Type   = SmbiosStruct.Hdr->Type;\r
+    StatisticsPointer->Handle = SmbiosStruct.Hdr->Handle;\r
+    StatisticsPointer->Length = Length;\r
+    StatisticsPointer->Addr   = Offset;\r
+\r
+    Offset = (UINT16) (Offset + Length);\r
+\r
+    StatisticsPointer         = &mSmbios64BitStatisticsTable[Index];\r
+  }\r
+\r
+  return EFI_SUCCESS;\r
+}\r
+\r
 /**\r
   Function to display the global mStatisticsTable object.\r
 \r
@@ -510,6 +892,87 @@ DisplayStatisticsTable (
   return EFI_SUCCESS;\r
 }\r
 \r
+/**\r
+  Function to display the global mSmbios64BitStatisticsTable object.\r
+\r
+  @param[in] Option             ECHO, NORMAL, or DETAIL control the amount of detail displayed.\r
+\r
+  @retval EFI_SUCCESS           print is successful.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+DisplaySmbios64BitStatisticsTable (\r
+  IN   UINT8   Option\r
+  )\r
+{\r
+  UINTN                    Index;\r
+  UINTN                    Num;\r
+  STRUCTURE_STATISTICS     *StatisticsPointer;\r
+  SMBIOS_TABLE_3_0_ENTRY_POINT *SMBiosTable;\r
+\r
+  SMBiosTable = NULL;\r
+  if (Option < SHOW_OUTLINE) {\r
+    return EFI_SUCCESS;\r
+  }\r
+  //\r
+  // display EPS information firstly\r
+  //\r
+  LibSmbios64BitGetEPS (&SMBiosTable);\r
+  if (SMBiosTable == NULL) {\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_CANNOT_ACCESS_TABLE), gShellDebug1HiiHandle);\r
+    return EFI_UNSUPPORTED;\r
+  }\r
+\r
+  ShellPrintEx(-1,-1,L"\n============================================================\n");\r
+  Smbios64BitPrintEPSInfo (SMBiosTable, Option);\r
+\r
+  if (Option < SHOW_NORMAL) {\r
+    return EFI_SUCCESS;\r
+  }\r
+\r
+  if (mSmbios64BitStatisticsTable == NULL) {\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_CANNOT_ACCESS_STATS), gShellDebug1HiiHandle);\r
+    return EFI_NOT_FOUND;\r
+  }\r
+\r
+  ShellPrintEx(-1,-1,L"============================================================\n");\r
+  StatisticsPointer = &mSmbios64BitStatisticsTable[0];\r
+  Num         = mNumberOfSmbios64BitStructures;\r
+  //\r
+  // display statistics table content\r
+  //\r
+  for (Index = 1; Index <= Num; Index++) {\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_INDEX), gShellDebug1HiiHandle, StatisticsPointer->Index);\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_TYPE), gShellDebug1HiiHandle, StatisticsPointer->Type);\r
+    ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_HANDLE), gShellDebug1HiiHandle, StatisticsPointer->Handle);\r
+    if (Option >= SHOW_DETAIL) {\r
+      ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_OFFSET), gShellDebug1HiiHandle, StatisticsPointer->Addr);\r
+      ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_LENGTH), gShellDebug1HiiHandle, StatisticsPointer->Length);\r
+    }\r
+\r
+    ShellPrintEx(-1,-1,L"\n");\r
+    StatisticsPointer = &mSmbios64BitStatisticsTable[Index];\r
+/*\r
+    //\r
+    // Display 20 lines and wait for a page break\r
+    //\r
+    if (Index % 20 == 0) {\r
+      ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_SMBIOSVIEW_ENTER_CONTINUE), gShellDebug1HiiHandle);\r
+      Status = WaitEnter ();\r
+      if (EFI_ERROR (Status)) {\r
+        if (Status == EFI_ABORTED) {\r
+          return EFI_SUCCESS;\r
+        }\r
+\r
+        return Status;\r
+      }\r
+    }\r
+*/\r
+  }\r
+\r
+  return EFI_SUCCESS;\r
+}\r
+\r
 /**\r
   function to return a string of the detail level.\r
 \r
index 638917ae8b6c70eb27bae9c6ab7e5627f3ea4fa9..647fd5fe269882a7578149a7776b2654d45c74eb 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Tools of clarify the content of the smbios table.\r
 \r
-  Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2015, 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
@@ -47,6 +47,27 @@ SMBiosView (
   IN  BOOLEAN   RandomView\r
   );\r
 \r
+/**\r
+  Query all structures Data from SMBIOS table and Display\r
+  the information to users as required display option.\r
+\r
+  @param[in] QueryType      Structure type to view.\r
+  @param[in] QueryHandle    Structure handle to view.\r
+  @param[in] Option         Display option: none,outline,normal,detail.\r
+  @param[in] RandomView     Support for -h parameter.\r
+\r
+  @retval EFI_SUCCESS           print is successful.\r
+  @retval EFI_BAD_BUFFER_SIZE   structure is out of the range of SMBIOS table.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+SMBios64View (\r
+  IN  UINT8     QueryType,\r
+  IN  UINT16    QueryHandle,\r
+  IN  UINT8     Option,\r
+  IN  BOOLEAN   RandomView\r
+  );\r
+\r
 /**\r
   Function to initialize the global mStatisticsTable object.\r
 \r
@@ -58,6 +79,17 @@ InitSmbiosTableStatistics (
   VOID\r
   );\r
 \r
+/**\r
+  Function to initialize the global mSmbios64BitStatisticsTable object.\r
+\r
+  @retval EFI_SUCCESS           print is successful.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+InitSmbios64BitTableStatistics (\r
+  VOID\r
+  );\r
+\r
 /**\r
   Function to display the global mStatisticsTable object.\r
 \r
@@ -71,6 +103,19 @@ DisplayStatisticsTable (
   IN UINT8 Option\r
   );\r
 \r
+/**\r
+  Function to display the global mSmbios64BitStatisticsTable object.\r
+\r
+  @param[in] Option             ECHO, NORMAL, or DETAIL control the amount of detail displayed.\r
+\r
+  @retval EFI_SUCCESS           print is successful.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+DisplaySmbios64BitStatisticsTable (\r
+  IN UINT8 Option\r
+  );\r
+\r
 /**\r
   function to return a string of the detail level.\r
 \r
@@ -86,4 +131,6 @@ GetShowTypeString (
 \r
 extern UINT8  gShowType;\r
 \r
+extern UINTN  mSmbios64BitTableLength;\r
+\r
 #endif\r
index bd47e9a48c2bb4c2dfdb4285c7f1ca3966f768ef..f36882573a5fc8ecad9e9cb4ecb02e586982a7b3 100644 (file)
Binary files a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosViewStrings.uni and b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosViewStrings.uni differ
index dc41b75d24e306ce494ef8bbeb9d1d8489afcc94..d8451c3976524f0e7e044c9561570469553b29a4 100644 (file)
 [Guids]\r
   gEfiGlobalVariableGuid          ## SOMETIMES_CONSUMES ## GUID\r
   gEfiSmbiosTableGuid             ## SOMETIMES_CONSUMES ## SystemTable\r
+  gEfiSmbios3TableGuid            ## SOMETIMES_CONSUMES ## SystemTable\r
   gEfiMpsTableGuid                ## SOMETIMES_CONSUMES ## SystemTable\r
   gEfiSalSystemTableGuid          ## SOMETIMES_CONSUMES ## SystemTable\r
   gEfiAcpi10TableGuid             ## SOMETIMES_CONSUMES ## SystemTable\r