1 /***************************************************************************
5 copyright : (C) 2003 by Noberasco Michele
6 e-mail : 2001s098@educ.disi.unige.it
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 * This program is distributed in the hope that it will be useful, *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
19 * GNU General Public License for more details. *
21 * You should have received a copy of the GNU General Public License *
22 * along with this program; if not, write to the *
23 * Free Software Foundation, Inc., *
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
26 ***************************************************************************/
28 /***************************************************************************
29 Originally written by Filippo Panessa for his 'wmab' program
30 ***************************************************************************/
32 #define APMDEV "/proc/apm"
36 const char driver_version
[10];
37 int apm_version_major
;
38 int apm_version_minor
;
43 int battery_percentage
;
48 # ifndef APM_32_BIT_SUPPORT
49 # define APM_32_BIT_SUPPORT 0x0002
53 int apm_read(struct_apm_data
*);