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 00019 #ifndef C_CMOS_H 00020 #define C_CMOS_H 00021 00022 // include smbios_c/compat.h first 00023 #include "smbios_c/compat.h" 00024 #include "smbios_c/types.h" 00025 00026 EXTERN_C_BEGIN; 00027 00035 int DLL_SPEC cmos_read_byte (u8 *byte, u32 indexPort, u32 dataPort, u32 offset); 00036 00044 int DLL_SPEC cmos_write_byte(u8 byte, u32 indexPort, u32 dataPort, u32 offset); 00045 00056 int DLL_SPEC cmos_run_callbacks(bool do_update); 00057 00062 const char * DLL_SPEC cmos_strerror(); 00063 00064 00065 00066 00067 EXTERN_C_END; 00068 00069 #endif /* CMOS_H */