TianoCore EDK2 master
Loading...
Searching...
No Matches
SmbiosTable.c File Reference
#include <PiDxe.h>
#include <IndustryStandard/SmBios.h>
#include <Protocol/Smbios.h>
#include <Library/SmbiosLib.h>

Go to the source code of this file.

Variables

SMBIOS_TABLE_TYPE0 gSmbiosType0Template
 
CHAR8 * gSmbiosType0Strings []
 
SMBIOS_TABLE_TYPE1 gSmbiosType1Template
 
CHAR8 * gSmbiosType1Strings []
 
SMBIOS_TABLE_TYPE2 gSmbiosType2Template
 
CHAR8 * gSmbiosType2Strings []
 
SMBIOS_TABLE_TYPE3 gSmbiosType3Template
 
CHAR8 * gSmbiosType3Strings []
 
SMBIOS_TABLE_TYPE8 gSmbiosType8Template1
 
CHAR8 * gSmbiosType8Strings1 []
 
SMBIOS_TABLE_TYPE8 gSmbiosType8Template2
 
CHAR8 * gSmbiosType8Strings2 []
 
SMBIOS_TABLE_TYPE8 gSmbiosType8Template3
 
CHAR8 * gSmbiosType8Strings3 []
 
SMBIOS_TABLE_TYPE8 gSmbiosType8Template4
 
CHAR8 * gSmbiosType8Strings4 []
 
SMBIOS_TABLE_TYPE8 gSmbiosType8Template5
 
CHAR8 * gSmbiosType8Strings5 []
 
SMBIOS_TABLE_TYPE8 gSmbiosType8Template6
 
CHAR8 * gSmbiosType8Strings6 []
 
SMBIOS_TABLE_TYPE8 gSmbiosType8Template7
 
CHAR8 * gSmbiosType8Strings7 []
 
SMBIOS_TABLE_TYPE8 gSmbiosType8Template8
 
CHAR8 * gSmbiosType8Strings8 []
 
SMBIOS_TABLE_TYPE8 gSmbiosType8Template9
 
CHAR8 * gSmbiosType8Strings9 []
 
SMBIOS_TABLE_TYPE9 gSmbiosType9Template
 
CHAR8 * gSmbiosType9Strings []
 
SMBIOS_TABLE_TYPE11 gSmbiosType11Template
 
CHAR8 * gSmbiosType11Strings []
 
SMBIOS_TABLE_TYPE12 gSmbiosType12Template
 
CHAR8 * gSmbiosType12Strings []
 
SMBIOS_TABLE_TYPE16 gSmbiosType16Template
 
SMBIOS_TABLE_TYPE17 gSmbiosType17Template
 
CHAR8 * gSmbiosType17Strings []
 
SMBIOS_TABLE_TYPE23 gSmbiosType23Template
 
SMBIOS_TABLE_TYPE32 gSmbiosType32Template
 
SMBIOS_TEMPLATE_ENTRY gSmbiosTemplate []
 

Detailed Description

Static SMBIOS Table for platform

Note SMBIOS 2.7.1 Required structures: BIOS Information (Type 0) System Information (Type 1) System Enclosure (Type 3) Processor Information (Type 4) - CPU Driver Cache Information (Type 7) - For cache that is external to processor System Slots (Type 9) - If system has slots Physical Memory Array (Type 16) Memory Device (Type 17) - For each socketed system-memory Device Memory Array Mapped Address (Type 19) - One per contiguous block per Physical Memroy Array System Boot Information (Type 32)

Copyright (c) 2012, Apple Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SmbiosTable.c.

Variable Documentation

◆ gSmbiosTemplate

SMBIOS_TEMPLATE_ENTRY gSmbiosTemplate[]
Initial value:
= {
{ (SMBIOS_STRUCTURE *)&gSmbiosType0Template, gSmbiosType0Strings },
{ (SMBIOS_STRUCTURE *)&gSmbiosType1Template, gSmbiosType1Strings },
{ (SMBIOS_STRUCTURE *)&gSmbiosType2Template, gSmbiosType2Strings },
{ (SMBIOS_STRUCTURE *)&gSmbiosType3Template, gSmbiosType3Strings },
{ (SMBIOS_STRUCTURE *)&gSmbiosType8Template1, gSmbiosType8Strings1 },
{ (SMBIOS_STRUCTURE *)&gSmbiosType8Template2, gSmbiosType8Strings2 },
{ (SMBIOS_STRUCTURE *)&gSmbiosType8Template3, gSmbiosType8Strings3 },
{ (SMBIOS_STRUCTURE *)&gSmbiosType8Template4, gSmbiosType8Strings4 },
{ (SMBIOS_STRUCTURE *)&gSmbiosType8Template5, gSmbiosType8Strings5 },
{ (SMBIOS_STRUCTURE *)&gSmbiosType8Template6, gSmbiosType8Strings6 },
{ (SMBIOS_STRUCTURE *)&gSmbiosType8Template7, gSmbiosType8Strings7 },
{ (SMBIOS_STRUCTURE *)&gSmbiosType8Template8, gSmbiosType8Strings8 },
{ (SMBIOS_STRUCTURE *)&gSmbiosType8Template9, gSmbiosType8Strings9 },
{ (SMBIOS_STRUCTURE *)&gSmbiosType9Template, gSmbiosType9Strings },
{ (SMBIOS_STRUCTURE *)&gSmbiosType11Template, gSmbiosType11Strings },
{ (SMBIOS_STRUCTURE *)&gSmbiosType12Template, gSmbiosType12Strings },
{ (SMBIOS_STRUCTURE *)&gSmbiosType16Template, NULL },
{ (SMBIOS_STRUCTURE *)&gSmbiosType17Template, gSmbiosType17Strings },
{ (SMBIOS_STRUCTURE *)&gSmbiosType23Template, NULL },
{ (SMBIOS_STRUCTURE *)&gSmbiosType32Template, NULL },
{ NULL, NULL }
}
#define NULL
Definition: Base.h:319

Definition at line 418 of file SmbiosTable.c.

◆ gSmbiosType0Strings

CHAR8* gSmbiosType0Strings[]
Initial value:
= {
"http://www.tianocore.org/edk2/",
__TIME__,
__DATE__,
}

Definition at line 90 of file SmbiosTable.c.

◆ gSmbiosType0Template

SMBIOS_TABLE_TYPE0 gSmbiosType0Template

Definition at line 26 of file SmbiosTable.c.

◆ gSmbiosType11Strings

CHAR8* gSmbiosType11Strings[]
Initial value:
= {
"https://svn.code.sf.net/p/edk2/code/trunk/edk2/EmulatorPkg/",
}

Definition at line 332 of file SmbiosTable.c.

◆ gSmbiosType11Template

SMBIOS_TABLE_TYPE11 gSmbiosType11Template
Initial value:
= {
{ EFI_SMBIOS_TYPE_OEM_STRINGS, sizeof (SMBIOS_TABLE_TYPE11), 0 },
1
}

Definition at line 328 of file SmbiosTable.c.

◆ gSmbiosType12Strings

CHAR8* gSmbiosType12Strings[]
Initial value:
= {
"https://svn.code.sf.net/p/edk2/code/trunk/edk2/EmulatorPkg/EmulatorPkg.dsc",
}

Definition at line 341 of file SmbiosTable.c.

◆ gSmbiosType12Template

SMBIOS_TABLE_TYPE12 gSmbiosType12Template
Initial value:
= {
{ EFI_SMBIOS_TYPE_SYSTEM_CONFIGURATION_OPTIONS, sizeof (SMBIOS_TABLE_TYPE12), 0 },
1
}

Definition at line 337 of file SmbiosTable.c.

◆ gSmbiosType16Template

SMBIOS_TABLE_TYPE16 gSmbiosType16Template
Initial value:
= {
{ EFI_SMBIOS_TYPE_PHYSICAL_MEMORY_ARRAY, sizeof (SMBIOS_TABLE_TYPE16), 0 },
MemoryArrayLocationSystemBoard,
MemoryArrayUseSystemMemory,
MemoryErrorCorrectionUnknown,
0x80000000,
0xFFFE,
1,
0x3fffffffffffffffULL,
}

Definition at line 346 of file SmbiosTable.c.

◆ gSmbiosType17Strings

CHAR8* gSmbiosType17Strings[]
Initial value:
= {
"OS Virtual Memory",
"malloc",
"OSV",
}

Definition at line 396 of file SmbiosTable.c.

◆ gSmbiosType17Template

SMBIOS_TABLE_TYPE17 gSmbiosType17Template

Definition at line 357 of file SmbiosTable.c.

◆ gSmbiosType1Strings

CHAR8* gSmbiosType1Strings[]
Initial value:
= {
"http://www.tianocore.org/edk2/",
"EmulatorPkg",
"1.0",
"System Serial#",
"System SKU#",
"edk2",
}

Definition at line 109 of file SmbiosTable.c.

◆ gSmbiosType1Template

SMBIOS_TABLE_TYPE1 gSmbiosType1Template
Initial value:
= {
{ EFI_SMBIOS_TYPE_SYSTEM_INFORMATION, sizeof (SMBIOS_TABLE_TYPE1), 0 },
1,
2,
3,
4,
{ 0x25EF0280, 0xEC82, 0x42B0, { 0x8F, 0xB6, 0x10, 0xAD, 0xCC, 0xC6, 0x7C, 0x02}
},
SystemWakeupTypePowerSwitch,
5,
6,
}

Definition at line 97 of file SmbiosTable.c.

◆ gSmbiosType23Template

SMBIOS_TABLE_TYPE23 gSmbiosType23Template
Initial value:
= {
{ EFI_SMBIOS_TYPE_SYSTEM_BOOT_INFORMATION, sizeof (SMBIOS_TABLE_TYPE23), 0 },
0,
0,
0,
0,
0
}

Definition at line 403 of file SmbiosTable.c.

◆ gSmbiosType2Strings

CHAR8* gSmbiosType2Strings[]
Initial value:
= {
"http://www.tianocore.org/edk2/",
"EmulatorPkg",
"1.0",
"Base Board Serial#",
"Base Board Asset Tag#",
"Part Component",
}

Definition at line 140 of file SmbiosTable.c.

◆ gSmbiosType2Template

SMBIOS_TABLE_TYPE2 gSmbiosType2Template
Initial value:
= {
{ EFI_SMBIOS_TYPE_BASEBOARD_INFORMATION, sizeof (SMBIOS_TABLE_TYPE2), 0 },
1,
2,
3,
4,
5,
{
1,
0,
0,
0,
0,
0,
},
6,
0,
BaseBoardTypeMotherBoard,
0,
{ 0 }
}

Definition at line 119 of file SmbiosTable.c.

◆ gSmbiosType32Template

SMBIOS_TABLE_TYPE32 gSmbiosType32Template
Initial value:
= {
{ EFI_SMBIOS_TYPE_SYSTEM_BOOT_INFORMATION, sizeof (SMBIOS_TABLE_TYPE32), 0 },
{ 0, 0, 0, 0, 0, 0},
BootInformationStatusNoError
}

Definition at line 412 of file SmbiosTable.c.

◆ gSmbiosType3Strings

CHAR8* gSmbiosType3Strings[]
Initial value:
= {
"http://www.tianocore.org/edk2/",
"EmulatorPkg",
"Chassis Board Serial#",
"Chassis Board Asset Tag#",
}

Definition at line 170 of file SmbiosTable.c.

◆ gSmbiosType3Template

SMBIOS_TABLE_TYPE3 gSmbiosType3Template
Initial value:
= {
{ EFI_SMBIOS_TYPE_SYSTEM_ENCLOSURE, sizeof (SMBIOS_TABLE_TYPE3), 0 },
1,
MiscChassisTypeLapTop,
2,
3,
4,
ChassisStateSafe,
ChassisStateSafe,
ChassisStateSafe,
ChassisSecurityStatusNone,
{ 0, 0, 0, 0},
0,
0,
0,
0,
{
{ 0 }
},
}

Definition at line 150 of file SmbiosTable.c.

◆ gSmbiosType8Strings1

CHAR8* gSmbiosType8Strings1[]
Initial value:
= {
"Mini DisplayPort",
}

Definition at line 186 of file SmbiosTable.c.

◆ gSmbiosType8Strings2

CHAR8* gSmbiosType8Strings2[]
Initial value:
= {
"FireWire 800",
}

Definition at line 199 of file SmbiosTable.c.

◆ gSmbiosType8Strings3

CHAR8* gSmbiosType8Strings3[]
Initial value:
= {
"Ethernet",
}

Definition at line 212 of file SmbiosTable.c.

◆ gSmbiosType8Strings4

CHAR8* gSmbiosType8Strings4[]
Initial value:
= {
"USB0",
}

Definition at line 225 of file SmbiosTable.c.

◆ gSmbiosType8Strings5

CHAR8* gSmbiosType8Strings5[]
Initial value:
= {
"USB1",
}

Definition at line 238 of file SmbiosTable.c.

◆ gSmbiosType8Strings6

CHAR8* gSmbiosType8Strings6[]
Initial value:
= {
"USB2",
}

Definition at line 251 of file SmbiosTable.c.

◆ gSmbiosType8Strings7

CHAR8* gSmbiosType8Strings7[]
Initial value:
= {
"USB3",
}

Definition at line 264 of file SmbiosTable.c.

◆ gSmbiosType8Strings8

CHAR8* gSmbiosType8Strings8[]
Initial value:
= {
"Audio Line In",
}

Definition at line 277 of file SmbiosTable.c.

◆ gSmbiosType8Strings9

CHAR8* gSmbiosType8Strings9[]
Initial value:
= {
"Audio Line Out",
}

Definition at line 290 of file SmbiosTable.c.

◆ gSmbiosType8Template1

SMBIOS_TABLE_TYPE8 gSmbiosType8Template1
Initial value:
= {
{ EFI_SMBIOS_TYPE_PORT_CONNECTOR_INFORMATION, sizeof (SMBIOS_TABLE_TYPE8), 0 },
0,
PortConnectorTypeNone,
1,
PortConnectorTypeNone,
PortTypeOther,
}

Definition at line 178 of file SmbiosTable.c.

◆ gSmbiosType8Template2

SMBIOS_TABLE_TYPE8 gSmbiosType8Template2
Initial value:
= {
{ EFI_SMBIOS_TYPE_PORT_CONNECTOR_INFORMATION, sizeof (SMBIOS_TABLE_TYPE8), 0 },
0,
PortConnectorTypeNone,
1,
PortConnectorTypeNone,
PortTypeFireWire,
}

Definition at line 191 of file SmbiosTable.c.

◆ gSmbiosType8Template3

SMBIOS_TABLE_TYPE8 gSmbiosType8Template3
Initial value:
= {
{ EFI_SMBIOS_TYPE_PORT_CONNECTOR_INFORMATION, sizeof (SMBIOS_TABLE_TYPE8), 0 },
0,
PortConnectorTypeNone,
1,
PortConnectorTypeRJ45,
PortTypeNetworkPort,
}

Definition at line 204 of file SmbiosTable.c.

◆ gSmbiosType8Template4

SMBIOS_TABLE_TYPE8 gSmbiosType8Template4
Initial value:
= {
{ EFI_SMBIOS_TYPE_PORT_CONNECTOR_INFORMATION, sizeof (SMBIOS_TABLE_TYPE8), 0 },
0,
PortConnectorTypeNone,
1,
PortConnectorTypeUsb,
PortTypeUsb,
}

Definition at line 217 of file SmbiosTable.c.

◆ gSmbiosType8Template5

SMBIOS_TABLE_TYPE8 gSmbiosType8Template5
Initial value:
= {
{ EFI_SMBIOS_TYPE_PORT_CONNECTOR_INFORMATION, sizeof (SMBIOS_TABLE_TYPE8), 0 },
0,
PortConnectorTypeNone,
1,
PortConnectorTypeUsb,
PortTypeUsb,
}

Definition at line 230 of file SmbiosTable.c.

◆ gSmbiosType8Template6

SMBIOS_TABLE_TYPE8 gSmbiosType8Template6
Initial value:
= {
{ EFI_SMBIOS_TYPE_PORT_CONNECTOR_INFORMATION, sizeof (SMBIOS_TABLE_TYPE8), 0 },
0,
PortConnectorTypeNone,
1,
PortConnectorTypeUsb,
PortTypeUsb,
}

Definition at line 243 of file SmbiosTable.c.

◆ gSmbiosType8Template7

SMBIOS_TABLE_TYPE8 gSmbiosType8Template7
Initial value:
= {
{ EFI_SMBIOS_TYPE_PORT_CONNECTOR_INFORMATION, sizeof (SMBIOS_TABLE_TYPE8), 0 },
0,
PortConnectorTypeNone,
1,
PortConnectorTypeUsb,
PortTypeUsb,
}

Definition at line 256 of file SmbiosTable.c.

◆ gSmbiosType8Template8

SMBIOS_TABLE_TYPE8 gSmbiosType8Template8
Initial value:
= {
{ EFI_SMBIOS_TYPE_PORT_CONNECTOR_INFORMATION, sizeof (SMBIOS_TABLE_TYPE8), 0 },
0,
PortConnectorTypeNone,
1,
PortConnectorTypeHeadPhoneMiniJack,
PortTypeAudioPort,
}

Definition at line 269 of file SmbiosTable.c.

◆ gSmbiosType8Template9

SMBIOS_TABLE_TYPE8 gSmbiosType8Template9
Initial value:
= {
{ EFI_SMBIOS_TYPE_PORT_CONNECTOR_INFORMATION, sizeof (SMBIOS_TABLE_TYPE8), 0 },
0,
PortConnectorTypeNone,
1,
PortConnectorTypeHeadPhoneMiniJack,
PortTypeAudioPort,
}

Definition at line 282 of file SmbiosTable.c.

◆ gSmbiosType9Strings

CHAR8* gSmbiosType9Strings[]
Initial value:
= {
"SD Card",
}

Definition at line 323 of file SmbiosTable.c.

◆ gSmbiosType9Template

SMBIOS_TABLE_TYPE9 gSmbiosType9Template
Initial value:
= {
{ EFI_SMBIOS_TYPE_SYSTEM_SLOTS, sizeof (SMBIOS_TABLE_TYPE9), 0 },
1,
SlotTypeOther,
SlotDataBusWidthOther,
SlotUsageAvailable,
SlotLengthOther,
0,
{
1,
0,
0,
0,
0,
0,
0,
0,
},
{
0,
0,
0,
0,
},
0,
0,
0,
}

Definition at line 295 of file SmbiosTable.c.