/usr/src/redhat/BUILD/libsmbios-2.2.27/src/include/smbios_c/obj/smi.h

Go to the documentation of this file.
00001 // vim:expandtab:autoindent:tabstop=4:shiftwidth=4:filetype=c:
00002 /*
00003  * Copyright (C) 2005 Dell Inc.
00004  *  by Michael Brown <Michael_E_Brown@dell.com>
00005  * Licensed under the Open Software License version 2.1
00006  *
00007  * Alternatively, you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published
00009  * by the Free Software Foundation; either version 2 of the License,
00010  * or (at your option) any later version.
00011 
00012  * This program is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00015  * See the GNU General Public License for more details.
00016  */
00017 
00018 #ifndef C_OBJ_SMI_H
00019 #define C_OBJ_SMI_H
00020 
00021 // include smbios_c/compat.h first
00022 #include "smbios_c/compat.h"
00023 #include "smbios_c/types.h"
00024 
00025 EXTERN_C_BEGIN;
00026 
00027 #define DELL_SMI_DEFAULTS       0x0000
00028 #define DELL_SMI_GET_SINGLETON  0x0001
00029 #define DELL_SMI_GET_NEW        0x0002
00030 #define DELL_SMI_UNIT_TEST_MODE 0x0004
00031 #define DELL_SMI_NO_ERR_CLEAR   0x0008
00032 
00033 struct dell_smi_obj;
00034 
00035 // construct
00036 LIBSMBIOS_C_DLL_SPEC struct dell_smi_obj *dell_smi_factory(int flags, ...);
00037 
00038 // destruct
00039 LIBSMBIOS_C_DLL_SPEC void dell_smi_obj_free(struct dell_smi_obj *);
00040 
00041 LIBSMBIOS_C_DLL_SPEC const char *dell_smi_obj_strerror(struct dell_smi_obj *);
00042 
00043 LIBSMBIOS_C_DLL_SPEC void dell_smi_obj_set_class(struct dell_smi_obj *, u16 );
00044 LIBSMBIOS_C_DLL_SPEC void dell_smi_obj_set_select(struct dell_smi_obj *, u16 );
00045 LIBSMBIOS_C_DLL_SPEC void dell_smi_obj_set_arg(struct dell_smi_obj *, u8 argno, u32 value);
00046 LIBSMBIOS_C_DLL_SPEC u32  dell_smi_obj_get_res(struct dell_smi_obj *, u8 argno);
00047 LIBSMBIOS_C_DLL_SPEC u8  *dell_smi_obj_make_buffer_frombios_auto(struct dell_smi_obj *, u8 argno, size_t size);
00048 LIBSMBIOS_C_DLL_SPEC u8  *dell_smi_obj_make_buffer_frombios_withheader(struct dell_smi_obj *, u8 argno, size_t size);
00049 LIBSMBIOS_C_DLL_SPEC u8  *dell_smi_obj_make_buffer_frombios_withoutheader(struct dell_smi_obj *, u8 argno, size_t size);
00050 LIBSMBIOS_C_DLL_SPEC u8  *dell_smi_obj_make_buffer_tobios(struct dell_smi_obj *, u8 argno, size_t size);
00051 LIBSMBIOS_C_DLL_SPEC int  dell_smi_obj_execute(struct dell_smi_obj *);
00052 
00053 EXTERN_C_END;
00054 
00055 #endif  /* C_SMI_H */

Generated on Fri May 25 17:04:54 2012 for libsmbios_c library by  doxygen 1.4.7