libsmbios_c library
src
include
smbios_c
cmos.h
Go to the documentation of this file.
1
// vim:expandtab:autoindent:tabstop=4:shiftwidth=4:filetype=c:
2
/*
3
* Copyright (C) 2005 Dell Inc.
4
* by Michael Brown <Michael_E_Brown@dell.com>
5
* Licensed under the Open Software License version 2.1
6
*
7
* Alternatively, you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published
9
* by the Free Software Foundation; either version 2 of the License,
10
* or (at your option) any later version.
11
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
* See the GNU General Public License for more details.
16
*/
17
18
19
#ifndef C_CMOS_H
20
#define C_CMOS_H
21
22
// include smbios_c/compat.h first
23
#include "
smbios_c/compat.h
"
24
#include "
smbios_c/types.h
"
25
26
EXTERN_C_BEGIN
;
27
35
LIBSMBIOS_C_DLL_SPEC
int
cmos_read_byte
(
u8
*
byte
,
u32
indexPort,
u32
dataPort,
u32
offset);
36
44
LIBSMBIOS_C_DLL_SPEC
int
cmos_write_byte
(
u8
byte
,
u32
indexPort,
u32
dataPort,
u32
offset);
45
56
LIBSMBIOS_C_DLL_SPEC
int
cmos_run_callbacks
(
bool
do_update);
57
62
LIBSMBIOS_C_DLL_SPEC
const
char
*
cmos_strerror
();
63
64
65
66
67
EXTERN_C_END
;
68
69
#endif
/* CMOS_H */
EXTERN_C_BEGIN
#define EXTERN_C_BEGIN
Definition:
compat.h:55
cmos_read_byte
LIBSMBIOS_C_DLL_SPEC int cmos_read_byte(u8 *byte, u32 indexPort, u32 dataPort, u32 offset)
Read byte from CMOS.
types.h
EXTERN_C_END
#define EXTERN_C_END
Definition:
compat.h:56
LIBSMBIOS_C_DLL_SPEC
#define LIBSMBIOS_C_DLL_SPEC
Definition:
compat.h:48
cmos_strerror
const LIBSMBIOS_C_DLL_SPEC char * cmos_strerror()
Returns string describing the last error condition.
u32
unsigned int u32
Definition:
types.h:37
compat.h
cmos_run_callbacks
LIBSMBIOS_C_DLL_SPEC int cmos_run_callbacks(bool do_update)
Run all registered CMOS callbacks.
cmos_write_byte
LIBSMBIOS_C_DLL_SPEC int cmos_write_byte(u8 byte, u32 indexPort, u32 dataPort, u32 offset)
Write byte to CMOS.
u8
unsigned char u8
Definition:
types.h:29
Generated on Wed Jan 29 2020 00:00:00 for libsmbios_c library by
1.8.17