SMBIOS Library
|
#include "smbios/compat.h"
#include <string.h>
#include "smbios/ISmbios.h"
#include "smbios/IToken.h"
#include "smbios/SystemInfo.h"
#include "smbios/IMemory.h"
#include "smbios/SmbiosDefs.h"
#include "ExceptionImpl.h"
#include "SystemDetect.h"
#include "DellMagic.h"
#include "smbios/message.h"
Go to the source code of this file.
Classes | |
struct | DellIdByteFunctions |
Macros | |
#define | LIBSMBIOS_SOURCE |
Functions | |
static u16 | getIdByteFromMem () |
static u16 | getIdByteFromMem_Diamond () |
static u16 | getIdByteFromOEMItem () |
static u16 | getIdByteFromRevItem () |
int | SMBIOSGetDellSystemId () |
Return the Dell System ID Byte or Word. |
Variables | |
smbios::Exception < smbios::IException > | SysInfoException |
struct DellIdByteFunctions | DellIdByteFunctions [] |
#define LIBSMBIOS_SOURCE |
Definition at line 19 of file IdByte.cpp.
|
static |
Definition at line 49 of file IdByte.cpp.
References two_byte_structure::bios_version, DELL_SYSTEM_STRING, DELL_SYSTEM_STRING_LEN, DELL_SYSTEM_STRING_LOC, IMemory::fillBuffer(), MemoryFactory::getFactory(), MemoryFactory::getSingleton(), one_byte_structure::system_id, two_byte_structure::two_byte_id, and TWO_BYTE_STRUCT_LOC.
|
static |
Definition at line 98 of file IdByte.cpp.
References DELL_SYSTEM_STRING, DELL_SYSTEM_STRING_LEN, DELL_SYSTEM_STRING_LOC_DIAMOND_1, DELL_SYSTEM_STRING_LOC_DIAMOND_2, IMemory::fillBuffer(), IMemory::getByte(), MemoryFactory::getFactory(), MemoryFactory::getSingleton(), ID_BYTE_LOC_DIAMOND_1, ID_BYTE_LOC_DIAMOND_2, and SYSTEM_ID_DIAMOND.
|
static |
Definition at line 123 of file IdByte.cpp.
References couldBeBayonet(), ISmbiosTable::end(), SmbiosFactory::getFactory(), SmbiosFactory::getSingleton(), ISmbiosItem::getStringByStringNumber(), and smbios::OEM_Strings.
|
static |
Definition at line 155 of file IdByte.cpp.
References smbios::Dell_Revisions_and_IDs, ISmbiosTable::end(), SmbiosFactory::getFactory(), SmbiosFactory::getSingleton(), smbios::getU16_FromItem(), and smbios::getU8_FromItem().
int SMBIOSGetDellSystemId | ( | ) |
Return the Dell System ID Byte or Word.
The Dell System ID is a unique number allocated to each Dell System (server, desktop, workstation, or laptop) that uniquely identifies that system within Dell's product line.
Definition at line 202 of file IdByte.cpp.
References _, DellIdByteFunctions, DellIdByteFunctions::f_ptr, and SysInfoException.
Referenced by couldBeDiamond(), testPlatform::testIdByte(), and testPlatform::testSystemInfo().
struct DellIdByteFunctions DellIdByteFunctions[] |
Referenced by SMBIOSGetDellSystemId().
smbios::Exception<smbios::IException> SysInfoException |
Definition at line 23 of file SysInfoError.cpp.
Referenced by SMBIOSGetAssetTag(), SMBIOSGetBiosVersion(), SMBIOSGetDellSystemId(), SMBIOSGetNvramStateBytes(), SMBIOSGetServiceTag(), SMBIOSGetSystemName(), SMBIOSGetVendorName(), SMBIOSHasNvramStateBytes(), SMBIOSIsDellSystem(), SMBIOSSetAssetTag(), SMBIOSSetNvramStateBytes(), SMBIOSSetServiceTag(), and upBootHelper().