TianoCore EDK2 master
Loading...
Searching...
No Matches
SmbiosMiscEntryPoint.c File Reference

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_PROTOCOLmSmbiosMiscSmbios = NULL
 
EFI_HII_HANDLE mSmbiosMiscHiiHandle
 

Detailed Description

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.

Function Documentation

◆ GetHandleCount()

STATIC UINTN GetHandleCount ( IN UINT8  SmbiosType)

Fetches the number of handles of the specified SMBIOS type.

Parameters
SmbiosTypeThe type of SMBIOS record to look for.
Returns
The number of handles

Definition at line 152 of file SmbiosMiscEntryPoint.c.

◆ SmbiosMiscAddRecord()

EFI_STATUS SmbiosMiscAddRecord ( IN UINT8 *  Buffer,
IN OUT EFI_SMBIOS_HANDLE *SmbiosHandle  OPTIONAL 
)

Adds an SMBIOS record.

Parameters
BufferThe 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.
SmbiosHandleA unique handle will be assigned to the SMBIOS record if not NULL.
Return values
EFI_SUCCESSRecord was added.
EFI_OUT_OF_RESOURCESRecord was not added due to lack of system resources.
EFI_ALREADY_STARTEDThe SmbiosHandle passed in was already in use.

Definition at line 115 of file SmbiosMiscEntryPoint.c.

◆ SmbiosMiscEntryPoint()

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.

Parameters
ImageHandleHandle for the image of this driver
SystemTablePointer to the EFI System Table
Return values
EFI_SUCCESSThe data was successfully stored.

Definition at line 41 of file SmbiosMiscEntryPoint.c.

◆ SmbiosMiscGetLinkTypeHandle()

VOID SmbiosMiscGetLinkTypeHandle ( IN UINT8  SmbiosType,
OUT SMBIOS_HANDLE **  HandleArray,
OUT UINTN HandleCount 
)

Fetches a list of the specified SMBIOS table types.

Parameters
[in]SmbiosTypeThe type of table to fetch
[out]**HandleArrayThe array of handles
[out]*HandleCountNumber of handles in the array

Definition at line 189 of file SmbiosMiscEntryPoint.c.

Variable Documentation

◆ mSmbiosMiscHiiHandle

EFI_HII_HANDLE mSmbiosMiscHiiHandle

Definition at line 27 of file SmbiosMiscEntryPoint.c.

◆ mSmbiosMiscImageHandle

STATIC EFI_HANDLE mSmbiosMiscImageHandle

Definition at line 24 of file SmbiosMiscEntryPoint.c.

◆ mSmbiosMiscSmbios

STATIC EFI_SMBIOS_PROTOCOL* mSmbiosMiscSmbios = NULL

Definition at line 25 of file SmbiosMiscEntryPoint.c.