TianoCore EDK2 master
|
#include "UefiShellDebug1CommandsLib.h"
#include <Guid/SmBios.h>
#include "LibSmbiosView.h"
#include "SmbiosView.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | LibSmbiosInit (VOID) |
EFI_STATUS | LibSmbios64BitInit (VOID) |
VOID | LibSmbiosCleanup (VOID) |
VOID | LibSmbios64BitCleanup (VOID) |
VOID | LibSmbiosGetEPS (OUT SMBIOS_TABLE_ENTRY_POINT **EntryPointStructure) |
VOID | LibSmbios64BitGetEPS (OUT SMBIOS_TABLE_3_0_ENTRY_POINT **EntryPointStructure) |
CHAR8 * | LibGetSmbiosString (IN SMBIOS_STRUCTURE_POINTER *Smbios, IN UINT16 StringNumber) |
EFI_STATUS | LibGetSmbiosStructure (IN OUT UINT16 *Handle, OUT UINT8 **Buffer, OUT UINT16 *Length) |
EFI_STATUS | LibGetSmbios64BitStructure (IN OUT UINT16 *Handle, OUT UINT8 **Buffer, OUT UINT16 *Length) |
Variables | |
STATIC UINT8 | mInit = 0 |
STATIC UINT8 | m64Init = 0 |
STATIC SMBIOS_TABLE_ENTRY_POINT * | mSmbiosTable = NULL |
STATIC SMBIOS_TABLE_3_0_ENTRY_POINT * | mSmbios64BitTable = NULL |
STATIC SMBIOS_STRUCTURE_POINTER | m_SmbiosStruct |
STATIC SMBIOS_STRUCTURE_POINTER * | mSmbiosStruct = &m_SmbiosStruct |
STATIC SMBIOS_STRUCTURE_POINTER | m_Smbios64BitStruct |
STATIC SMBIOS_STRUCTURE_POINTER * | mSmbios64BitStruct = &m_Smbios64BitStruct |
API for SMBIOS table.
Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file LibSmbiosView.c.
EFI_STATUS LibGetSmbios64BitStructure | ( | IN OUT UINT16 * | Handle, |
OUT UINT8 ** | Buffer, | ||
OUT UINT16 * | Length | ||
) |
Get SMBIOS structure for the given Handle, Handle is changed to the next handle or 0xFFFF when the end is reached or the handle is not found.
[in,out] | Handle | 0xFFFF: get the first structure Others: get a structure according to this value. |
[out] | Buffer | The pointer to the pointer to the structure. |
[out] | Length | Length of the structure. |
DMI_SUCCESS | Handle is updated with next structure handle or 0xFFFF(end-of-list). |
DMI_INVALID_HANDLE | Handle is updated with first structure handle or 0xFFFF(end-of-list). |
Definition at line 321 of file LibSmbiosView.c.
CHAR8 * LibGetSmbiosString | ( | IN SMBIOS_STRUCTURE_POINTER * | Smbios, |
IN UINT16 | StringNumber | ||
) |
Return SMBIOS string for the given string number.
[in] | Smbios | Pointer to SMBIOS structure. |
[in] | StringNumber | String number to return. -1 is used to skip all strings and point to the next SMBIOS structure. |
Definition at line 185 of file LibSmbiosView.c.
EFI_STATUS LibGetSmbiosStructure | ( | IN OUT UINT16 * | Handle, |
OUT UINT8 ** | Buffer, | ||
OUT UINT16 * | Length | ||
) |
Get SMBIOS structure for the given Handle, Handle is changed to the next handle or 0xFFFF when the end is reached or the handle is not found.
[in,out] | Handle | 0xFFFF: get the first structure Others: get a structure according to this value. |
[out] | Buffer | The pointer to the pointer to the structure. |
[out] | Length | Length of the structure. |
DMI_SUCCESS | Handle is updated with next structure handle or 0xFFFF(end-of-list). |
DMI_INVALID_HANDLE | Handle is updated with first structure handle or 0xFFFF(end-of-list). |
Definition at line 247 of file LibSmbiosView.c.
VOID LibSmbios64BitCleanup | ( | VOID | ) |
Cleanup the Smbios information.
Definition at line 129 of file LibSmbiosView.c.
VOID LibSmbios64BitGetEPS | ( | OUT SMBIOS_TABLE_3_0_ENTRY_POINT ** | EntryPointStructure | ) |
Get the entry point structure for the table.
[out] | EntryPointStructure | The pointer to populate. |
Definition at line 165 of file LibSmbiosView.c.
EFI_STATUS LibSmbios64BitInit | ( | VOID | ) |
Init the SMBIOS VIEW API's environment.
EFI_SUCCESS | Successful to init the SMBIOS VIEW Lib. |
Definition at line 71 of file LibSmbiosView.c.
VOID LibSmbiosCleanup | ( | VOID | ) |
Cleanup the Smbios information.
Definition at line 111 of file LibSmbiosView.c.
VOID LibSmbiosGetEPS | ( | OUT SMBIOS_TABLE_ENTRY_POINT ** | EntryPointStructure | ) |
Get the entry point structure for the table.
[out] | EntryPointStructure | The pointer to populate. |
Definition at line 149 of file LibSmbiosView.c.
EFI_STATUS LibSmbiosInit | ( | VOID | ) |
Init the SMBIOS VIEW API's environment.
EFI_SUCCESS | Successful to init the SMBIOS VIEW Lib. |
Definition at line 29 of file LibSmbiosView.c.
STATIC UINT8 m64Init = 0 |
Definition at line 15 of file LibSmbiosView.c.
STATIC SMBIOS_STRUCTURE_POINTER m_Smbios64BitStruct |
Definition at line 20 of file LibSmbiosView.c.
STATIC SMBIOS_STRUCTURE_POINTER m_SmbiosStruct |
Definition at line 18 of file LibSmbiosView.c.
STATIC UINT8 mInit = 0 |
Definition at line 14 of file LibSmbiosView.c.
STATIC SMBIOS_STRUCTURE_POINTER* mSmbios64BitStruct = &m_Smbios64BitStruct |
Definition at line 21 of file LibSmbiosView.c.
STATIC SMBIOS_TABLE_3_0_ENTRY_POINT* mSmbios64BitTable = NULL |
Definition at line 17 of file LibSmbiosView.c.
STATIC SMBIOS_STRUCTURE_POINTER* mSmbiosStruct = &m_SmbiosStruct |
Definition at line 19 of file LibSmbiosView.c.
STATIC SMBIOS_TABLE_ENTRY_POINT* mSmbiosTable = NULL |
Definition at line 16 of file LibSmbiosView.c.