Namespaces | Defines | Functions

Smi.cpp File Reference

#include "smbios/compat.h"
#include <string.h>
#include "SmiImpl.h"
#include "smbios/ISmbios.h"
#include "smbios/IToken.h"
#include "TokenLowLevel.h"
Include dependency graph for Smi.cpp:

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

std::auto_ptr
< smi::IDellCallingInterfaceSmi
setupCallingInterfaceSmi (u16 smiClass, u16 select, const u32 args[4])
void doSimpleCallingInterfaceSmi (u16 smiClass, u16 select, const u32 args[4], u32 res[4])
static bool getPasswordPropertiesII (u16 which, u8 &maxLen, u8 &minLen, u8 &props)
bool getPasswordStatus (u16 which)
static u32 getAuthenticationKeyII (const string &password)
u32 getAuthenticationKey (const string &password)
password_format_enum getPasswordFormat ()
static u32 readSetting (u16 select, u32 location, u32 *minValue, u32 *maxValue)
u32 readNVStorage (u32 location, u32 *minValue, u32 *maxValue)
u32 readBatteryModeSetting (u32 location, u32 *minValue, u32 *maxValue)
u32 readACModeSetting (u32 location, u32 *minValue, u32 *maxValue)
u32 readSystemStatus (u32 *failingSensorHandle)
static u32 writeSetting (const std::string &password, u16 select, u32 location, u32 newValue, u32 *minValue, u32 *maxValue)
u32 writeNVStorage (const std::string &password, u32 location, u32 value, u32 *minValue, u32 *maxValue)
u32 writeBatteryModeSetting (const std::string &password, u32 location, u32 value, u32 *minValue, u32 *maxValue)
u32 writeACModeSetting (const std::string &password, u32 location, u32 value, u32 *minValue, u32 *maxValue)
void getDisplayType (u32 &type, u32 &resolution, u32 &memSizeX256kb)
void getPanelResolution (u32 &horiz, u32 &vert)
void getActiveDisplays (u32 &bits)
void setActiveDisplays (u32 &bits)
void getPropertyOwnershipTag (char *tagBuf, size_t size)
void setPropertyOwnershipTag (const string password, const char *newTag, size_t size)
void wirelessRadioControl (bool enable, bool boot, bool runtime, int enable_token, int disable_token, int radioNum, std::string password)
static void switchControl (u32 whichConfig, u32 whichSwitch, bool enable)
void wirelessSwitchControl (bool enable, bool boot, bool runtime, int enable_token, int disable_token, int switchNum, std::string password)
radioStatusCode wirelessRadioStatus (radioNum which, std::ostream &cout=std::cout, u32 defRes2=0)

Define Documentation

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

Definition at line 37 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 42 of file Smi.cpp.

Referenced by DellCallingInterfaceSmiImpl::execute().