]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/LibSmbiosView.h
ShellPkg: update smbiosview for SMBIOS 3.0.
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / SmbiosView / LibSmbiosView.h
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