IdByte.cpp File Reference

#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

Defines

#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::IExceptionSysInfoException


Define Documentation

#define LIBSMBIOS_SOURCE

Definition at line 19 of file IdByte.cpp.


Function Documentation

static u16 getIdByteFromMem (  )  [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(), one_byte_structure::system_id, and TWO_BYTE_STRUCT_LOC.

static u16 getIdByteFromMem_Diamond (  )  [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(), ID_BYTE_LOC_DIAMOND_1, ID_BYTE_LOC_DIAMOND_2, and SYSTEM_ID_DIAMOND.

static u16 getIdByteFromOEMItem (  )  [static]

Definition at line 123 of file IdByte.cpp.

References couldBeBayonet(), ISmbiosTable::end(), SmbiosFactory::getFactory(), SmbiosFactory::getSingleton(), and smbios::OEM_Strings.

static u16 getIdByteFromRevItem (  )  [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 _, and SysInfoException.

Referenced by couldBeDiamond(), testPlatform::testIdByte(), and testPlatform::testSystemInfo().


Variable Documentation

smbios::Exception<smbios::IException> SysInfoException

Definition at line 23 of file SysInfoError.cpp.

Referenced by SMBIOSGetAssetTag(), SMBIOSGetBiosVersion(), SMBIOSGetDellSystemId(), SMBIOSGetNvramStateBytes(), SMBIOSGetServiceTag(), SMBIOSGetSysInfoErrorString(), SMBIOSGetSystemName(), SMBIOSGetVendorName(), SMBIOSHasNvramStateBytes(), SMBIOSIsDellSystem(), SMBIOSSetAssetTag(), SMBIOSSetNvramStateBytes(), SMBIOSSetServiceTag(), and upBootHelper().


Generated on Wed Apr 2 16:37:32 2008 for SMBIOS Library by  doxygen 1.5.1