Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Smi.cpp File Reference

#include "smbios/compat.h"
#include "SmiImpl.h"
#include "smbios/ISmbios.h"
#include "smbios/IToken.h"
#include "TokenLowLevel.h"

Go to the source code of this file.

Namespaces

namespace  smi

Defines

#define LIBSMBIOS_SOURCE
#define DCOUT(line)   do {} while(0)
#define DCERR(line)   do {} while(0)
#define SIZEOF_KERNELBUF   (sizeof(kernel_buf) - sizeof(kernel_buf.command_buffer_start))

Functions

bool getPasswordPropertiesII (u16 which, u8 &maxLen, u8 &minLen, u8 &props)
u32 getAuthenticationKeyII (const string &password)
u32 getAuthenticationKey (const string &password)
u32 readSetting (u16 select, u32 location, u32 *minValue, u32 *maxValue)
u32 writeSetting (const std::string &password, u16 select, u32 location, u32 newValue, u32 *minValue, u32 *maxValue)
void setPropertyOwnershipTag (const string password, const char *newTag, size_t size)
void switchControl (u32 whichConfig, u32 whichSwitch, bool enable)


Define Documentation

#define DCERR line   )     do {} while(0)
 

Definition at line 37 of file Smi.cpp.

#define DCOUT line   )     do {} while(0)
 

Definition at line 36 of file Smi.cpp.

#define LIBSMBIOS_SOURCE
 

Definition at line 20 of file Smi.cpp.

#define SIZEOF_KERNELBUF   (sizeof(kernel_buf) - sizeof(kernel_buf.command_buffer_start))
 

Definition at line 41 of file Smi.cpp.

Referenced by DellCallingInterfaceSmiImpl::execute().


Function Documentation

u32 getAuthenticationKey const string &  password  ) 
 

Definition at line 338 of file Smi.cpp.

References smi::class_user_password, DCERR, smi::doSimpleCallingInterfaceSmi(), smi::getAuthenticationKeyII(), u16, and u32.

u32 getAuthenticationKeyII const string &  password  )  [static]
 

Definition at line 277 of file Smi.cpp.

References smi::class_user_password, DCERR, ISmi::execute(), smi::getPasswordPropertiesII(), IDellCallingInterfaceSmi::getRes(), IDellCallingInterfaceSmi::setArgAsPhysicalAddress(), ISmi::setBufferSize(), smi::setupCallingInterfaceSmi(), u16, u32, and u8.

Referenced by smi::getAuthenticationKey().

bool getPasswordPropertiesII u16  which,
u8 maxLen,
u8 minLen,
u8 props
[static]
 

Definition at line 246 of file Smi.cpp.

References DCERR, smi::doSimpleCallingInterfaceSmi(), and u32.

Referenced by smi::getAuthenticationKeyII(), and smi::getPasswordFormat().

u32 readSetting u16  select,
u32  location,
u32 minValue,
u32 maxValue
[static]
 

Definition at line 452 of file Smi.cpp.

References smi::doSimpleCallingInterfaceSmi(), and u32.

Referenced by smi::readACModeSetting(), smi::readBatteryModeSetting(), smi::readNVStorage(), and smi::readSystemStatus().

void setPropertyOwnershipTag const string  password,
const char *  newTag,
size_t  size
 

Definition at line 580 of file Smi.cpp.

References ISmi::execute(), smi::getAuthenticationKey(), IDellCallingInterfaceSmi::setArgAsPhysicalAddress(), ISmi::setBufferSize(), smi::setupCallingInterfaceSmi(), and u32.

void switchControl u32  whichConfig,
u32  whichSwitch,
bool  enable
[static]
 

Definition at line 671 of file Smi.cpp.

References ISmi::execute(), SmiFactory::getFactory(), IDellCallingInterfaceSmi::getRes(), SmiFactory::makeNew(), IDellCallingInterfaceSmi::setArg(), IDellCallingInterfaceSmi::setClass(), IDellCallingInterfaceSmi::setSelect(), and u32.

Referenced by smi::wirelessSwitchControl().

u32 writeSetting const std::string &  password,
u16  select,
u32  location,
u32  newValue,
u32 minValue,
u32 maxValue
[static]
 

Definition at line 487 of file Smi.cpp.

References DCERR, smi::doSimpleCallingInterfaceSmi(), smi::getAuthenticationKey(), and u32.

Referenced by smi::writeACModeSetting(), smi::writeBatteryModeSetting(), and smi::writeNVStorage().


Generated on Thu Jun 21 02:49:21 2007 for SMBIOS Library by  doxygen 1.3.9.1