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

Go to the source code of this file.

Macros

#define CMOS_DEFAULTS   0x0000
 
#define CMOS_GET_SINGLETON   0x0001
 
#define CMOS_GET_NEW   0x0002
 
#define CMOS_UNIT_TEST_MODE   0x0004
 
#define CMOS_NO_ERR_CLEAR   0x0008
 

Typedefs

typedef int(* cmos_write_callback) (const struct cmos_access_obj *, bool, void *)
 

Functions

LIBSMBIOS_C_DLL_SPEC struct cmos_access_obj * cmos_obj_factory (int flags,...)
 
LIBSMBIOS_C_DLL_SPEC void cmos_obj_free (struct cmos_access_obj *)
 
LIBSMBIOS_C_DLL_SPEC int cmos_obj_read_byte (const struct cmos_access_obj *, u8 *byte, u32 indexPort, u32 dataPort, u32 offset)
 
LIBSMBIOS_C_DLL_SPEC int cmos_obj_write_byte (const struct cmos_access_obj *, u8 byte, u32 indexPort, u32 dataPort, u32 offset)
 
LIBSMBIOS_C_DLL_SPEC const char * cmos_obj_strerror (const struct cmos_access_obj *m)
 
LIBSMBIOS_C_DLL_SPEC void cmos_obj_register_write_callback (struct cmos_access_obj *, cmos_write_callback, void *, void(*destruct)(void *))
 
LIBSMBIOS_C_DLL_SPEC int cmos_obj_run_callbacks (const struct cmos_access_obj *m, bool do_update)
 

Macro Definition Documentation

◆ CMOS_DEFAULTS

#define CMOS_DEFAULTS   0x0000

◆ CMOS_GET_NEW

#define CMOS_GET_NEW   0x0002

◆ CMOS_GET_SINGLETON

#define CMOS_GET_SINGLETON   0x0001

◆ CMOS_NO_ERR_CLEAR

#define CMOS_NO_ERR_CLEAR   0x0008

◆ CMOS_UNIT_TEST_MODE

#define CMOS_UNIT_TEST_MODE   0x0004

Typedef Documentation

◆ cmos_write_callback

typedef int(* cmos_write_callback) (const struct cmos_access_obj *, bool, void *)

Function Documentation

◆ cmos_obj_factory()

LIBSMBIOS_C_DLL_SPEC struct cmos_access_obj * cmos_obj_factory ( int  flags,
  ... 
)

◆ cmos_obj_free()

LIBSMBIOS_C_DLL_SPEC void cmos_obj_free ( struct cmos_access_obj *  )

◆ cmos_obj_read_byte()

LIBSMBIOS_C_DLL_SPEC int cmos_obj_read_byte ( const struct cmos_access_obj *  ,
u8 byte,
u32  indexPort,
u32  dataPort,
u32  offset 
)

◆ cmos_obj_register_write_callback()

LIBSMBIOS_C_DLL_SPEC void cmos_obj_register_write_callback ( struct cmos_access_obj *  ,
cmos_write_callback  ,
void *  ,
void(*)(void *)  destruct 
)

◆ cmos_obj_run_callbacks()

LIBSMBIOS_C_DLL_SPEC int cmos_obj_run_callbacks ( const struct cmos_access_obj *  m,
bool  do_update 
)

◆ cmos_obj_strerror()

LIBSMBIOS_C_DLL_SPEC const char * cmos_obj_strerror ( const struct cmos_access_obj *  m)

◆ cmos_obj_write_byte()

LIBSMBIOS_C_DLL_SPEC int cmos_obj_write_byte ( const struct cmos_access_obj *  ,
u8  byte,
u32  indexPort,
u32  dataPort,
u32  offset 
)