ShellPkg: update smbiosview for SMBIOS 3.0.

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
This commit is contained in:
Elvin Li
2015-03-17 08:12:59 +00:00
committed by li-elvin
parent ba9d087b8f
commit ec8a502e66
8 changed files with 843 additions and 51 deletions

View File

@ -1,7 +1,7 @@
/** @file
API for SMBIOS Plug and Play functions, access to SMBIOS table and structures.
Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@ -40,7 +40,7 @@
#define EFI_SMBIOSERR_UNSUPPORTED EFI_SMBIOSERR (4)
/**
Init the SMBIOS VIEW API's environment.
Init the SMBIOS VIEW API's environment for the 32-bit table..
@retval EFI_SUCCESS Successful to init the SMBIOS VIEW Lib.
**/
@ -49,6 +49,16 @@ LibSmbiosInit (
VOID
);
/**
Init the SMBIOS VIEW API's environment for the 64-bit table..
@retval EFI_SUCCESS Successful to init the SMBIOS VIEW Lib.
**/
EFI_STATUS
LibSmbios64BitInit (
VOID
);
/**
Cleanup the Smbios information.
**/
@ -57,6 +67,14 @@ LibSmbiosCleanup (
VOID
);
/**
Cleanup the Smbios information.
**/
VOID
LibSmbios64BitCleanup (
VOID
);
/**
Get the entry point structure for the table.
@ -67,6 +85,16 @@ LibSmbiosGetEPS (
OUT SMBIOS_TABLE_ENTRY_POINT **EntryPointStructure
);
/**
Get the entry point structure for the 64-bit table.
@param[out] EntryPointStructure The pointer to populate.
**/
VOID
LibSmbios64BitGetEPS (
OUT SMBIOS_TABLE_3_0_ENTRY_POINT **EntryPointStructure
);
/**
Return SMBIOS string for the given string number.
@ -105,4 +133,27 @@ LibGetSmbiosStructure (
OUT UINT16 *Length
);
/**
Get SMBIOS structure for the given Handle in 64-bit table,
Handle is changed to the next handle or 0xFFFF when the end is
reached or the handle is not found.
@param[in, out] Handle 0xFFFF: get the first structure
Others: get a structure according to this value.
@param[out] Buffer The pointer to the pointer to the structure.
@param[out] Length Length of the structure.
@retval DMI_SUCCESS Handle is updated with next structure handle or
0xFFFF(end-of-list).
@retval DMI_INVALID_HANDLE Handle is updated with first structure handle or
0xFFFF(end-of-list).
**/
EFI_STATUS
LibGetSmbios64BitStructure (
IN OUT UINT16 *Handle,
OUT UINT8 **Buffer,
OUT UINT16 *Length
);
#endif