TianoCore EDK2 master
Loading...
Searching...
No Matches
SmbiosMisc.h File Reference

Go to the source code of this file.

Data Structures

struct  SMBIOS_MISC_DATA_TABLE
 
struct  _SMBIOS_TYPE13_BIOS_LANGUAGE_INFORMATION_STRING
 

Macros

#define SMBIOS_MISC_TABLE_EXTERNS(NAME1, NAME2, NAME3)
 
#define SMBIOS_MISC_TABLE_ENTRY_DATA_AND_FUNCTION(NAME1, NAME2)
 
#define SMBIOS_MISC_TABLE_DATA(NAME1, NAME2)    NAME1 NAME2 ## Data
 
#define SMBIOS_MISC_TABLE_FUNCTION(NAME2)
 

Typedefs

typedef IN EFI_SMBIOS_PROTOCOLSmbios
 
typedef struct _SMBIOS_TYPE13_BIOS_LANGUAGE_INFORMATION_STRING SMBIOS_TYPE13_BIOS_LANGUAGE_INFORMATION_STRING
 

Functions

typedef EFI_STATUS (EFIAPI SMBIOS_MISC_DATA_FUNCTION)(IN VOID *RecordData
 
EFI_STATUS SmbiosMiscAddRecord (IN UINT8 *Buffer, IN OUT EFI_SMBIOS_HANDLE *SmbiosHandle OPTIONAL)
 
VOID SmbiosMiscGetLinkTypeHandle (IN UINT8 SmbiosType, OUT UINT16 **HandleArray, OUT UINTN *HandleCount)
 

Variables

EFI_HII_HANDLE mSmbiosMiscHiiHandle
 
SMBIOS_MISC_DATA_TABLE mSmbiosMiscDataTable []
 
UINTN mSmbiosMiscDataTableEntries
 
UINT8 mSmbiosMiscDxeStrings []
 

Detailed Description

Header file for the SmbiosMisc Driver.

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 SmbiosMisc.h.

Macro Definition Documentation

◆ SMBIOS_MISC_TABLE_DATA

#define SMBIOS_MISC_TABLE_DATA (   NAME1,
  NAME2 
)     NAME1 NAME2 ## Data

Definition at line 61 of file SmbiosMisc.h.

◆ SMBIOS_MISC_TABLE_ENTRY_DATA_AND_FUNCTION

#define SMBIOS_MISC_TABLE_ENTRY_DATA_AND_FUNCTION (   NAME1,
  NAME2 
)
Value:
{ \
& NAME1 ## Data, \
NAME2 ## Function \
}

Definition at line 52 of file SmbiosMisc.h.

◆ SMBIOS_MISC_TABLE_EXTERNS

#define SMBIOS_MISC_TABLE_EXTERNS (   NAME1,
  NAME2,
  NAME3 
)
Value:
extern NAME1 NAME2 ## Data; \
extern SMBIOS_MISC_DATA_FUNCTION NAME3 ## Function;

Definition at line 42 of file SmbiosMisc.h.

◆ SMBIOS_MISC_TABLE_FUNCTION

#define SMBIOS_MISC_TABLE_FUNCTION (   NAME2)
Value:
EFI_STATUS EFIAPI NAME2 ## Function( \
IN VOID *RecordData, \
)
#define IN
Definition: Base.h:279
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29

Definition at line 64 of file SmbiosMisc.h.

Typedef Documentation

◆ Smbios

typedef IN EFI_SMBIOS_PROTOCOL* Smbios

Definition at line 25 of file SmbiosMisc.h.

Function Documentation

◆ 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.

◆ SmbiosMiscGetLinkTypeHandle()

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

Get Link Type Handle.

Parameters
[in]SmbiosTypeGet this Type from SMBIOS table
[out]HandleArrayPointer to handle array which will be freed by caller
[out]HandleCountPointer to handle count

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

◆ mSmbiosMiscDataTableEntries

UINTN mSmbiosMiscDataTableEntries
extern

Definition at line 83 of file SmbiosMiscDataTable.c.

◆ mSmbiosMiscHiiHandle

EFI_HII_HANDLE mSmbiosMiscHiiHandle
extern

Definition at line 27 of file SmbiosMiscEntryPoint.c.