libsmbios_c library
Enumerations | Functions
smi.h File Reference
#include "smbios_c/compat.h"
#include "smbios_c/types.h"
Include dependency graph for smi.h:

Go to the source code of this file.

Enumerations

enum  {
  cbARG1 = 0 , cbARG2 = 1 , cbARG3 = 2 , cbARG4 = 3 ,
  cbRES1 = 0 , cbRES2 = 1 , cbRES3 = 2 , cbRES4 = 3
}
 
enum  { DELL_SMI_PASSWORD_ANY = 0 , DELL_SMI_PASSWORD_USER = 9 , DELL_SMI_PASSWORD_ADMIN = 10 , DELL_SMI_PASSWORD_OWNER = 12 }
 
enum  { DELL_SMI_PASSWORD_FMT_SCANCODE = 0 , DELL_SMI_PASSWORD_FMT_ASCII = 1 }
 

Functions

LIBSMBIOS_C_DLL_SPEC const char * dell_smi_strerror ()
 
LIBSMBIOS_C_DLL_SPEC int dell_simple_ci_smi (u16 smiClass, u16 select, const u32 args[4], u32 res[4])
 
LIBSMBIOS_C_DLL_SPEC int dell_adv_ci_smi (u16 smiClass, u16 select, const u32 args[4], u32 res[4], const u8 *buffer[4], const size_t buffer_size[4])
 
LIBSMBIOS_C_DLL_SPEC int dell_smi_read_nv_storage (u32 location, u32 *curValue, u32 *minValue, u32 *maxValue)
 
LIBSMBIOS_C_DLL_SPEC int dell_smi_read_battery_mode_setting (u32 location, u32 *curValue, u32 *minValue, u32 *maxValue)
 
LIBSMBIOS_C_DLL_SPEC int dell_smi_read_ac_mode_setting (u32 location, u32 *curValue, u32 *minValue, u32 *maxValue)
 
LIBSMBIOS_C_DLL_SPEC int dell_smi_write_nv_storage (u16 security_key, u32 location, u32 value, u32 *smiret)
 
LIBSMBIOS_C_DLL_SPEC int dell_smi_write_battery_mode_setting (u16 security_key, u32 location, u32 value, u32 *smiret)
 
LIBSMBIOS_C_DLL_SPEC int dell_smi_write_ac_mode_setting (u16 security_key, u32 location, u32 value, u32 *smiret)
 
LIBSMBIOS_C_DLL_SPEC int dell_smi_password_format (int which)
 
LIBSMBIOS_C_DLL_SPEC int dell_smi_get_security_key (const char *password, u16 *security_key)
 
LIBSMBIOS_C_DLL_SPEC bool dell_smi_is_password_present (int which)
 
LIBSMBIOS_C_DLL_SPEC int dell_smi_password_verify (int which, const char *password)
 
LIBSMBIOS_C_DLL_SPEC int dell_smi_password_max_len (int which)
 
LIBSMBIOS_C_DLL_SPEC int dell_smi_password_min_len (int which)
 
LIBSMBIOS_C_DLL_SPEC int dell_smi_password_change (int which, const char *oldpass, const char *newpass)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
cbARG1 
cbARG2 
cbARG3 
cbARG4 
cbRES1 
cbRES2 
cbRES3 
cbRES4 

◆ anonymous enum

anonymous enum
Enumerator
DELL_SMI_PASSWORD_ANY 
DELL_SMI_PASSWORD_USER 
DELL_SMI_PASSWORD_ADMIN 
DELL_SMI_PASSWORD_OWNER 

◆ anonymous enum

anonymous enum
Enumerator
DELL_SMI_PASSWORD_FMT_SCANCODE 
DELL_SMI_PASSWORD_FMT_ASCII 

Function Documentation

◆ dell_adv_ci_smi()

LIBSMBIOS_C_DLL_SPEC int dell_adv_ci_smi ( u16  smiClass,
u16  select,
const u32  args[4],
u32  res[4],
const u8 buffer[4],
const size_t  buffer_size[4] 
)

◆ dell_simple_ci_smi()

LIBSMBIOS_C_DLL_SPEC int dell_simple_ci_smi ( u16  smiClass,
u16  select,
const u32  args[4],
u32  res[4] 
)

◆ dell_smi_get_security_key()

LIBSMBIOS_C_DLL_SPEC int dell_smi_get_security_key ( const char *  password,
u16 security_key 
)

◆ dell_smi_is_password_present()

LIBSMBIOS_C_DLL_SPEC bool dell_smi_is_password_present ( int  which)

◆ dell_smi_password_change()

LIBSMBIOS_C_DLL_SPEC int dell_smi_password_change ( int  which,
const char *  oldpass,
const char *  newpass 
)

◆ dell_smi_password_format()

LIBSMBIOS_C_DLL_SPEC int dell_smi_password_format ( int  which)

◆ dell_smi_password_max_len()

LIBSMBIOS_C_DLL_SPEC int dell_smi_password_max_len ( int  which)

◆ dell_smi_password_min_len()

LIBSMBIOS_C_DLL_SPEC int dell_smi_password_min_len ( int  which)

◆ dell_smi_password_verify()

LIBSMBIOS_C_DLL_SPEC int dell_smi_password_verify ( int  which,
const char *  password 
)

◆ dell_smi_read_ac_mode_setting()

LIBSMBIOS_C_DLL_SPEC int dell_smi_read_ac_mode_setting ( u32  location,
u32 curValue,
u32 minValue,
u32 maxValue 
)

◆ dell_smi_read_battery_mode_setting()

LIBSMBIOS_C_DLL_SPEC int dell_smi_read_battery_mode_setting ( u32  location,
u32 curValue,
u32 minValue,
u32 maxValue 
)

◆ dell_smi_read_nv_storage()

LIBSMBIOS_C_DLL_SPEC int dell_smi_read_nv_storage ( u32  location,
u32 curValue,
u32 minValue,
u32 maxValue 
)

◆ dell_smi_strerror()

LIBSMBIOS_C_DLL_SPEC const char * dell_smi_strerror ( )

◆ dell_smi_write_ac_mode_setting()

LIBSMBIOS_C_DLL_SPEC int dell_smi_write_ac_mode_setting ( u16  security_key,
u32  location,
u32  value,
u32 smiret 
)

◆ dell_smi_write_battery_mode_setting()

LIBSMBIOS_C_DLL_SPEC int dell_smi_write_battery_mode_setting ( u16  security_key,
u32  location,
u32  value,
u32 smiret 
)

◆ dell_smi_write_nv_storage()

LIBSMBIOS_C_DLL_SPEC int dell_smi_write_nv_storage ( u16  security_key,
u32  location,
u32  value,
u32 smiret 
)