]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosView.h
ShellPkg/[hex]edit: use SimpleTextInEx to read console
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / SmbiosView / SmbiosView.h
index 22d7b241f4459f3bb02c1e3ca19273833f2d2073..d67af088faf7800a9b91bcbc512612fa7dac4237 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Tools of clarify the content of the smbios table.\r
 \r
-  Copyright (c) 2005 - 2011, 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
@@ -18,8 +18,6 @@
 #define STRUCTURE_TYPE_RANDOM     (UINT8) 0xFE\r
 #define STRUCTURE_TYPE_INVALID    (UINT8) 0xFF\r
 \r
-#define STRUCTURE_HANDLE_INVALID  (UINT16) 0xFFFF\r
-\r
 typedef struct {\r
   UINT16  Index;\r
   UINT8   Type;\r
@@ -41,7 +39,6 @@ typedef struct {
   @retval EFI_BAD_BUFFER_SIZE   structure is out of the range of SMBIOS table.\r
 **/\r
 EFI_STATUS\r
-EFIAPI\r
 SMBiosView (\r
   IN  UINT8     QueryType,\r
   IN  UINT16    QueryHandle,\r
@@ -49,17 +46,46 @@ 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
+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
   @retval EFI_SUCCESS           print is successful.\r
 **/\r
 EFI_STATUS\r
-EFIAPI\r
 InitSmbiosTableStatistics (\r
   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
+InitSmbios64BitTableStatistics (\r
+  VOID\r
+  );\r
+\r
 /**\r
   Function to display the global mStatisticsTable object.\r
 \r
@@ -68,11 +94,22 @@ InitSmbiosTableStatistics (
   @retval EFI_SUCCESS           print is successful.\r
 **/\r
 EFI_STATUS\r
-EFIAPI\r
 DisplayStatisticsTable (\r
   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
+DisplaySmbios64BitStatisticsTable (\r
+  IN UINT8 Option\r
+  );\r
+\r
 /**\r
   function to return a string of the detail level.\r
 \r
@@ -81,11 +118,12 @@ DisplayStatisticsTable (
   @return   A pointer to a string representing the ShowType (or 'undefined type' if not known).\r
 **/\r
 CHAR16*\r
-EFIAPI\r
 GetShowTypeString (\r
   UINT8 ShowType\r
   );\r
 \r
 extern UINT8  gShowType;\r
 \r
+extern UINTN  mSmbios64BitTableLength;\r
+\r
 #endif\r