TianoCore EDK2 master
|
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/HiiLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include "SmbiosMisc.h"
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | SmbiosMiscEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
EFI_STATUS | SmbiosMiscAddRecord (IN UINT8 *Buffer, IN OUT EFI_SMBIOS_HANDLE *SmbiosHandle OPTIONAL) |
STATIC UINTN | GetHandleCount (IN UINT8 SmbiosType) |
VOID | SmbiosMiscGetLinkTypeHandle (IN UINT8 SmbiosType, OUT SMBIOS_HANDLE **HandleArray, OUT UINTN *HandleCount) |
Variables | |
STATIC EFI_HANDLE | mSmbiosMiscImageHandle |
STATIC EFI_SMBIOS_PROTOCOL * | mSmbiosMiscSmbios = NULL |
EFI_HII_HANDLE | mSmbiosMiscHiiHandle |
This driver parses the mSmbiosMiscDataTable structure and reports any generated data using SMBIOS protocol.
Based on files under Nt32Pkg/MiscSubClassPlatformDxe/
Copyright (c) 2021, NUVIA Inc. All rights reserved.
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
Copyright (c) 2015, Hisilicon Limited. All rights reserved.
Copyright (c) 2015, Linaro Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SmbiosMiscEntryPoint.c.
Fetches the number of handles of the specified SMBIOS type.
SmbiosType | The type of SMBIOS record to look for. |
Definition at line 152 of file SmbiosMiscEntryPoint.c.
EFI_STATUS SmbiosMiscAddRecord | ( | IN UINT8 * | Buffer, |
IN OUT EFI_SMBIOS_HANDLE *SmbiosHandle | OPTIONAL | ||
) |
Adds an SMBIOS record.
Buffer | The data for the SMBIOS record. The format of the record is determined by EFI_SMBIOS_TABLE_HEADER.Type. The size of the formatted area is defined by EFI_SMBIOS_TABLE_HEADER.Length and either followed by a double-null (0x0000) or a set of null terminated strings and a null. |
SmbiosHandle | A unique handle will be assigned to the SMBIOS record if not NULL. |
EFI_SUCCESS | Record was added. |
EFI_OUT_OF_RESOURCES | Record was not added due to lack of system resources. |
EFI_ALREADY_STARTED | The SmbiosHandle passed in was already in use. |
Definition at line 115 of file SmbiosMiscEntryPoint.c.
EFI_STATUS EFIAPI SmbiosMiscEntryPoint | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Standard EFI driver point. This driver parses the mSmbiosMiscDataTable structure and reports any generated data using SMBIOS protocol.
ImageHandle | Handle for the image of this driver |
SystemTable | Pointer to the EFI System Table |
EFI_SUCCESS | The data was successfully stored. |
Definition at line 41 of file SmbiosMiscEntryPoint.c.
VOID SmbiosMiscGetLinkTypeHandle | ( | IN UINT8 | SmbiosType, |
OUT SMBIOS_HANDLE ** | HandleArray, | ||
OUT UINTN * | HandleCount | ||
) |
Fetches a list of the specified SMBIOS table types.
[in] | SmbiosType | The type of table to fetch |
[out] | **HandleArray | The array of handles |
[out] | *HandleCount | Number of handles in the array |
Definition at line 189 of file SmbiosMiscEntryPoint.c.
EFI_HII_HANDLE mSmbiosMiscHiiHandle |
Definition at line 27 of file SmbiosMiscEntryPoint.c.
STATIC EFI_HANDLE mSmbiosMiscImageHandle |
Definition at line 24 of file SmbiosMiscEntryPoint.c.
STATIC EFI_SMBIOS_PROTOCOL* mSmbiosMiscSmbios = NULL |
Definition at line 25 of file SmbiosMiscEntryPoint.c.